@bubblelab/bubble-core 0.1.118 → 0.1.122

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.
@@ -53,14 +53,14 @@ 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }, { id: string; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>; export type DatabaseMetadata = z.infer<typeof databaseMetadataSchema>; export declare const jiraOAuthMetadataSchema: z.ZodObject<{ cloudId: z.ZodString; siteUrl: z.ZodString; siteName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }>; export type JiraOAuthMetadata = z.infer<typeof jiraOAuthMetadataSchema>; export declare const stripeOAuthMetadataSchema: z.ZodObject<{ stripeUserId: z.ZodString; stripePublishableKey: z.ZodString; livemode: z.ZodBoolean; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; }, { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; }>; export type StripeOAuthMetadata = z.infer<typeof stripeOAuthMetadataSchema>; export declare const slackOAuthMetadataSchema: z.ZodObject<{ teamId: z.ZodString; teamName: z.ZodString; botUserId: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; }, { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; }>; export type SlackOAuthMetadata = z.infer<typeof slackOAuthMetadataSchema>; export declare const airtableOAuthMetadataSchema: z.ZodObject<{ airtableUserId: z.ZodString; email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; }, { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; }>; export type AirtableOAuthMetadata = z.infer<typeof airtableOAuthMetadataSchema>; export declare const googleOAuthMetadataSchema: z.ZodObject<{ email: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; displayName?: string | undefined; }, { email: string; displayName?: string | undefined; }>; export type GoogleOAuthMetadata = z.infer<typeof googleOAuthMetadataSchema>; export declare const credentialPreferencesSchema: z.ZodObject<{ isDefault: z.ZodOptional<z.ZodBoolean>; lastUsedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; }, { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; }>; export type CredentialPreferences = z.infer<typeof credentialPreferencesSchema>; export declare const confluenceOAuthMetadataSchema: z.ZodObject<{ cloudId: z.ZodString; siteUrl: z.ZodString; siteName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }>; export type ConfluenceOAuthMetadata = z.infer<typeof confluenceOAuthMetadataSchema>; export type CredentialMetadata = DatabaseMetadata | JiraOAuthMetadata | SlackOAuthMetadata | AirtableOAuthMetadata | GoogleOAuthMetadata | ConfluenceOAuthMetadata | StripeOAuthMetadata | CredentialPreferences; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }, { id: string; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>; export type DatabaseMetadata = z.infer<typeof databaseMetadataSchema>; export declare const jiraOAuthMetadataSchema: z.ZodObject<{ cloudId: z.ZodString; siteUrl: z.ZodString; siteName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }>; export type JiraOAuthMetadata = z.infer<typeof jiraOAuthMetadataSchema>; export declare const stripeOAuthMetadataSchema: z.ZodObject<{ stripeUserId: z.ZodString; stripePublishableKey: z.ZodString; livemode: z.ZodBoolean; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; }, { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; }>; export type StripeOAuthMetadata = z.infer<typeof stripeOAuthMetadataSchema>; export declare const slackOAuthMetadataSchema: z.ZodObject<{ teamId: z.ZodString; teamName: z.ZodString; botUserId: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; }, { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; }>; export type SlackOAuthMetadata = z.infer<typeof slackOAuthMetadataSchema>; export declare const airtableOAuthMetadataSchema: z.ZodObject<{ airtableUserId: z.ZodString; email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; }, { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; }>; export type AirtableOAuthMetadata = z.infer<typeof airtableOAuthMetadataSchema>; export declare const googleOAuthMetadataSchema: z.ZodObject<{ email: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; displayName?: string | undefined; }, { email: string; displayName?: string | undefined; }>; export type GoogleOAuthMetadata = z.infer<typeof googleOAuthMetadataSchema>; export declare const credentialPreferencesSchema: z.ZodObject<{ isDefault: z.ZodOptional<z.ZodBoolean>; lastUsedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; }, { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; }>; export type CredentialPreferences = z.infer<typeof credentialPreferencesSchema>; export declare const confluenceOAuthMetadataSchema: z.ZodObject<{ cloudId: z.ZodString; siteUrl: z.ZodString; siteName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }>; export type ConfluenceOAuthMetadata = z.infer<typeof confluenceOAuthMetadataSchema>; export type CredentialMetadata = DatabaseMetadata | JiraOAuthMetadata | SlackOAuthMetadata | AirtableOAuthMetadata | GoogleOAuthMetadata | ConfluenceOAuthMetadata | StripeOAuthMetadata | CredentialPreferences; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
57
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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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' | 'jira' | 'slack' | 'airtable'; export interface ScopeDescription { scope: string; description: string; defaultEnabled: boolean; }
59
59
  export interface OAuthCredentialConfig { displayName: string; defaultScopes: string[]; adminScopes?: 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 declare function getDefaultScopes(credentialType: CredentialType): string[]; export declare function getAdminScopes(credentialType: CredentialType): string[]; 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 type BubbleCredentialOption = CredentialType[]; export declare const BUBBLE_CREDENTIAL_OPTIONS: Record<BubbleName, BubbleCredentialOption>; 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }, { id: string; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }, { id: string; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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.ZodUnion<[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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }, { id: string; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>, z.ZodObject<{ cloudId: z.ZodString; siteUrl: z.ZodString; siteName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }>, z.ZodObject<{ teamId: z.ZodString; teamName: z.ZodString; botUserId: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; }, { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; }>, z.ZodObject<{ airtableUserId: z.ZodString; email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; }, { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; }>, z.ZodObject<{ email: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; displayName?: string | undefined; }, { email: string; displayName?: string | undefined; }>, z.ZodObject<{ cloudId: z.ZodString; siteUrl: z.ZodString; siteName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }>, z.ZodObject<{ stripeUserId: z.ZodString; stripePublishableKey: z.ZodString; livemode: z.ZodBoolean; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; }, { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; }>, z.ZodObject<{ isDefault: z.ZodOptional<z.ZodBoolean>; lastUsedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; }, { isDefault?: boolean | undefined; lastUsedAt?: 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; }>>; masterCredentialId: z.ZodOptional<z.ZodNumber>; }, "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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; } | { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; } | { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; } | { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; } | { email: string; displayName?: string | undefined; } | { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: 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; masterCredentialId?: number | 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; } | { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; } | { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; } | { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; } | { email: string; displayName?: string | undefined; } | { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: 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; masterCredentialId?: number | 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
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 type BubbleCredentialOption = CredentialType[]; export declare const BUBBLE_CREDENTIAL_OPTIONS: Record<BubbleName, BubbleCredentialOption>; 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }, { id: string; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }, { id: string; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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.ZodUnion<[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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }, { id: string; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>, z.ZodObject<{ cloudId: z.ZodString; siteUrl: z.ZodString; siteName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }>, z.ZodObject<{ teamId: z.ZodString; teamName: z.ZodString; botUserId: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; }, { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; }>, z.ZodObject<{ airtableUserId: z.ZodString; email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; }, { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; }>, z.ZodObject<{ email: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; displayName?: string | undefined; }, { email: string; displayName?: string | undefined; }>, z.ZodObject<{ cloudId: z.ZodString; siteUrl: z.ZodString; siteName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }, { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; }>, z.ZodObject<{ stripeUserId: z.ZodString; stripePublishableKey: z.ZodString; livemode: z.ZodBoolean; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; }, { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; }>, z.ZodObject<{ isDefault: z.ZodOptional<z.ZodBoolean>; lastUsedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; }, { isDefault?: boolean | undefined; lastUsedAt?: 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; }>>; masterCredentialId: z.ZodOptional<z.ZodNumber>; }, "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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; } | { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; } | { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; } | { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; } | { email: string; displayName?: string | undefined; } | { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: 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; masterCredentialId?: number | 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; updatedAt: string; createdAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; } | { stripeUserId: string; stripePublishableKey: string; livemode: boolean; displayName?: string | undefined; } | { teamId: string; teamName: string; botUserId: string; displayName?: string | undefined; } | { airtableUserId: string; email?: string | undefined; displayName?: string | undefined; } | { email: string; displayName?: string | undefined; } | { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: 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; masterCredentialId?: number | 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
64
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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
65
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[]; }
@@ -75,14 +75,14 @@ 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, { 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
80
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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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_call_start'; data: { tool: string; input: unknown; callId: string; variableId?: number; }; } | { type: 'tool_call_complete'; data: { tool: string; input: unknown; output: unknown; duration: number; callId: string; variableId?: number; }; } | { 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
- export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
84
+ export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
86
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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
87
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[]; }
@@ -97,10 +97,10 @@ 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, { 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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; }>>>; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; }, "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; triggerCredentialId?: number | null | 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; triggerCredentialId?: number | null | 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>>; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { name: string; eventType: string; prompt: string; description?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; triggerCredentialId?: number | null | undefined; }, { name: string; eventType: string; prompt: string; description?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; triggerCredentialId?: number | null | 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; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; 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; triggerCredentialId?: number | null | 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; triggerCredentialId?: number | null | 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 usedCredentialSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodNativeEnum<typeof CredentialType>; ownerId: z.ZodString; isMine: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }>; export type UsedCredential = z.infer<typeof usedCredentialSchema>; 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; organizationId: z.ZodOptional<z.ZodNumber>; requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>; usedCredentials: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodNativeEnum<typeof CredentialType>; ownerId: z.ZodString; isMine: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }>, "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>>; permission: z.ZodOptional<z.ZodEnum<["owner", "editor", "runner", "viewer"]>>; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; triggerCredential: z.ZodOptional<z.ZodNullable<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodNativeEnum<typeof CredentialType>; ownerId: z.ZodString; isMine: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }>>>; 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[]>; updatedAt: 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; }>; isActive: boolean; createdAt: 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; organizationId?: number | undefined; prompt?: string | undefined; triggerCredentialId?: number | null | undefined; generationError?: string | null | undefined; usedCredentials?: { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }[] | undefined; displayedBubbleParameters?: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }> | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; triggerCredential?: { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; } | null | undefined; }, { name: string; code: string; id: number; webhook_url: string; eventType: string; requiredCredentials: Record<string, CredentialType[]>; updatedAt: 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; }>; isActive: boolean; createdAt: 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; organizationId?: number | undefined; prompt?: string | undefined; triggerCredentialId?: number | null | undefined; generationError?: string | null | undefined; usedCredentials?: { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }[] | undefined; displayedBubbleParameters?: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }> | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; triggerCredential?: { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; } | null | 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">>; permission: z.ZodOptional<z.ZodEnum<["owner", "editor", "runner", "viewer"]>>; organizationId: z.ZodOptional<z.ZodNumber>; ownerId: z.ZodString; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; cronSchedule?: string | undefined; }, { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | 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">>; permission: z.ZodOptional<z.ZodEnum<["owner", "editor", "runner", "viewer"]>>; organizationId: z.ZodOptional<z.ZodNumber>; ownerId: z.ZodString; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; cronSchedule?: string | undefined; }, { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | 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; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; cronSchedule?: string | undefined; }[]; userMonthlyUsage: { count: number; }; }, { userMonthlyUsage: { count: number; }; bubbleFlows?: { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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>; totalCost: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; totalCost?: number | 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; totalCost?: number | undefined; result?: any; completedAt?: string | undefined; }>; export declare const listBubbleFlowExecutionsResponseSchema: z.ZodObject<{ items: 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>; totalCost: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; totalCost?: number | 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; totalCost?: number | undefined; result?: any; completedAt?: string | undefined; }>, "many">; total: z.ZodNumber; }, "strip", z.ZodTypeAny, { items: { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; totalCost?: number | undefined; result?: any; completedAt?: string | undefined; }[]; total: number; }, { items: { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; totalCost?: number | undefined; result?: any; completedAt?: string | undefined; }[]; total: number; }>; 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>; totalCost: z.ZodOptional<z.ZodNumber>; } & { 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; totalCost?: number | 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; totalCost?: number | 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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; }>>>; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; }, "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; triggerCredentialId?: number | null | 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; triggerCredentialId?: number | null | 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>>; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { name: string; eventType: string; prompt: string; description?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; triggerCredentialId?: number | null | undefined; }, { name: string; eventType: string; prompt: string; description?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; triggerCredentialId?: number | null | 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; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; 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; triggerCredentialId?: number | null | 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; triggerCredentialId?: number | null | 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 usedCredentialSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodNativeEnum<typeof CredentialType>; ownerId: z.ZodString; isMine: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }>; export type UsedCredential = z.infer<typeof usedCredentialSchema>; 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; organizationId: z.ZodOptional<z.ZodNumber>; requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>; usedCredentials: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodNativeEnum<typeof CredentialType>; ownerId: z.ZodString; isMine: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }>, "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>>; permission: z.ZodOptional<z.ZodEnum<["owner", "editor", "runner", "viewer"]>>; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; triggerCredential: z.ZodOptional<z.ZodNullable<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodNativeEnum<typeof CredentialType>; ownerId: z.ZodString; isMine: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }, { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }>>>; 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[]>; updatedAt: 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; }>; isActive: boolean; createdAt: 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; organizationId?: number | undefined; prompt?: string | undefined; triggerCredentialId?: number | null | undefined; generationError?: string | null | undefined; usedCredentials?: { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }[] | undefined; displayedBubbleParameters?: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }> | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; triggerCredential?: { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; } | null | undefined; }, { name: string; code: string; id: number; webhook_url: string; eventType: string; requiredCredentials: Record<string, CredentialType[]>; updatedAt: 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; }>; isActive: boolean; createdAt: 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; organizationId?: number | undefined; prompt?: string | undefined; triggerCredentialId?: number | null | undefined; generationError?: string | null | undefined; usedCredentials?: { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; }[] | undefined; displayedBubbleParameters?: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }> | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; triggerCredential?: { name: string; type: CredentialType; id: number; ownerId: string; isMine: boolean; } | null | 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">>; permission: z.ZodOptional<z.ZodEnum<["owner", "editor", "runner", "viewer"]>>; organizationId: z.ZodOptional<z.ZodNumber>; ownerId: z.ZodString; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; cronSchedule?: string | undefined; }, { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | 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">>; permission: z.ZodOptional<z.ZodEnum<["owner", "editor", "runner", "viewer"]>>; organizationId: z.ZodOptional<z.ZodNumber>; ownerId: z.ZodString; triggerCredentialId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; cronSchedule?: string | undefined; }, { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | 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; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | undefined; cronSchedule?: string | undefined; }[]; userMonthlyUsage: { count: number; }; }, { userMonthlyUsage: { count: number; }; bubbleFlows?: { name: string; id: number; eventType: string; cronActive: boolean; updatedAt: string; ownerId: string; isActive: boolean; createdAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; organizationId?: number | undefined; triggerCredentialId?: number | null | undefined; permission?: "owner" | "editor" | "runner" | "viewer" | 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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>; totalCost: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; totalCost?: number | 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; totalCost?: number | undefined; result?: any; completedAt?: string | undefined; }>; export declare const listBubbleFlowExecutionsResponseSchema: z.ZodObject<{ items: 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>; totalCost: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; totalCost?: number | 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; totalCost?: number | undefined; result?: any; completedAt?: string | undefined; }>, "many">; total: z.ZodNumber; }, "strip", z.ZodTypeAny, { items: { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; totalCost?: number | undefined; result?: any; completedAt?: string | undefined; }[]; total: number; }, { items: { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; totalCost?: number | undefined; result?: any; completedAt?: string | undefined; }[]; total: number; }>; 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>; totalCost: z.ZodOptional<z.ZodNumber>; } & { 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; totalCost?: number | 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; totalCost?: number | 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
104
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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
105
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[]; }
@@ -115,10 +115,10 @@ 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, { 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
119
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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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; maxTokens?: number | undefined; temperature?: number | undefined; jsonMode?: boolean | undefined; }, { model?: string | undefined; maxTokens?: number | undefined; temperature?: 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; maxTokens?: number | undefined; temperature?: 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; maxTokens?: number | undefined; temperature?: 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; updatedAt: 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; requiredCredentials?: Record<string, CredentialType[]> | undefined; webhook?: { path: string; id: number; url: string; active: boolean; } | undefined; }, { name: string; description: string; id: number; eventType: string; updatedAt: 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; 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 tokenUsageSchema: z.ZodObject<{ modelName: z.ZodOptional<z.ZodString>; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; totalTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }, { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }>; export type TokenUsage = z.infer<typeof tokenUsageSchema>; export declare const usageSchema: z.ZodObject<{ executionCount: z.ZodNumber; tokenUsage: z.ZodArray<z.ZodObject<{ modelName: z.ZodOptional<z.ZodString>; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; totalTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }, { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }>, "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">; estimatedMonthlyCost: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost?: number | undefined; }, { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost?: number | undefined; }>; export type Usage = z.infer<typeof usageSchema>; export declare const billingOrganizationSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; type: z.ZodOptional<z.ZodEnum<["personal", "organization"]>>; role: z.ZodEnum<["owner", "admin", "member"]>; memberCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string; id: number; slug: string; memberCount: number; type?: "personal" | "organization" | undefined; }, { role: "owner" | "admin" | "member"; name: string; id: number; slug: string; memberCount: number; type?: "personal" | "organization" | undefined; }>; export type BillingOrganization = z.infer<typeof billingOrganizationSchema>; 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">; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; type: z.ZodOptional<z.ZodEnum<["personal", "organization"]>>; role: z.ZodEnum<["owner", "admin", "member"]>; memberCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string; id: number; slug: string; memberCount: number; type?: "personal" | "organization" | undefined; }, { role: "owner" | "admin" | "member"; name: string; id: number; slug: string; memberCount: number; type?: "personal" | "organization" | undefined; }>>; 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.ZodOptional<z.ZodString>; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; totalTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }, { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }>, "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; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; resetDate: string; }, { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; resetDate: string; }>; personalUsage: z.ZodOptional<z.ZodObject<{ executionCount: z.ZodNumber; tokenUsage: z.ZodArray<z.ZodObject<{ modelName: z.ZodOptional<z.ZodString>; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; totalTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }, { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }>, "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">; estimatedMonthlyCost: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost?: number | undefined; }, { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost?: number | undefined; }>>; 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; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; resetDate: string; }; userId: string; isActive: boolean; plan: string; planDisplayName: string; features: string[]; organization?: { role: "owner" | "admin" | "member"; name: string; id: number; slug: string; memberCount: number; type?: "personal" | "organization" | undefined; } | undefined; personalUsage?: { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost?: number | undefined; } | undefined; 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; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; resetDate: string; }; userId: string; isActive: boolean; plan: string; planDisplayName: string; features: string[]; organization?: { role: "owner" | "admin" | "member"; name: string; id: number; slug: string; memberCount: number; type?: "personal" | "organization" | undefined; } | undefined; personalUsage?: { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; modelName?: string | undefined; }[]; estimatedMonthlyCost?: number | undefined; } | undefined; 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 userUsageItemSchema: z.ZodObject<{ userId: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; userEmail: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "admin", "member"]>; executionCount: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; totalCost: number; userId: string; executionCount: number; firstName?: string | undefined; lastName?: string | undefined; userEmail?: string | undefined; }, { role: "owner" | "admin" | "member"; totalCost: number; userId: string; executionCount: number; firstName?: string | undefined; lastName?: string | undefined; userEmail?: string | undefined; }>; export type UserUsageItem = z.infer<typeof userUsageItemSchema>; export declare const orgUsageBreakdownResponseSchema: z.ZodObject<{ organizationId: z.ZodNumber; organizationName: z.ZodOptional<z.ZodString>; monthYear: z.ZodString; totalOrgCost: z.ZodNumber; totalOrgExecutions: z.ZodNumber; users: z.ZodArray<z.ZodObject<{ userId: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; userEmail: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "admin", "member"]>; executionCount: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; totalCost: number; userId: string; executionCount: number; firstName?: string | undefined; lastName?: string | undefined; userEmail?: string | undefined; }, { role: "owner" | "admin" | "member"; totalCost: number; userId: string; executionCount: number; firstName?: string | undefined; lastName?: string | undefined; userEmail?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { organizationId: number; users: { role: "owner" | "admin" | "member"; totalCost: number; userId: string; executionCount: number; firstName?: string | undefined; lastName?: string | undefined; userEmail?: string | undefined; }[]; monthYear: string; totalOrgCost: number; totalOrgExecutions: number; organizationName?: string | undefined; }, { organizationId: number; users: { role: "owner" | "admin" | "member"; totalCost: number; userId: string; executionCount: number; firstName?: string | undefined; lastName?: string | undefined; userEmail?: string | undefined; }[]; monthYear: string; totalOrgCost: number; totalOrgExecutions: number; organizationName?: string | undefined; }>; export type OrgUsageBreakdownResponse = z.infer<typeof orgUsageBreakdownResponseSchema>; export declare function isAdminOrOwner(subscription: SubscriptionStatusResponse): boolean; export declare function isMember(subscription: SubscriptionStatusResponse): boolean; 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/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>>; }, "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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; 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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | 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/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>>; 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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; 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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
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/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>>; }, "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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; 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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | 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/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>>; 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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; 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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | 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 { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
122
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' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export declare const 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/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>>>; }, "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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; 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/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | 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/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export 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
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; 'airtable/record_created': AirtableRecordCreatedEvent; 'airtable/record_updated': AirtableRecordUpdatedEvent; 'airtable/record_deleted': AirtableRecordDeletedEvent; 'schedule/cron': CronEvent; 'webhook/http': WebhookEvent; }
@@ -143,8 +143,8 @@ export declare const TRIGGER_EVENT_CONFIGS: Record<keyof BubbleTriggerEventRegis
143
143
  export interface AirtableTable { id: string; name: string; description?: string; }
144
144
  export interface AirtableTableFull extends AirtableTable { primaryFieldId: string; fields: Array<{ id: string; name: string; type: string; description?: string; }>; }
145
145
  export declare const AIRTABLE_TRIGGER_CONFIG_KEYS: { readonly BASE_ID: "airtable_base_id"; readonly TABLE_ID: "airtable_table_id"; readonly WEBHOOK_ID: "airtable_webhook_id"; readonly MAC_SECRET: "airtable_mac_secret"; readonly WEBHOOK_EXPIRATION: "airtable_webhook_expiration"; readonly DELAY_SECONDS: "airtable_trigger_delay_seconds"; }; export interface AirtableTriggerConfig { airtable_base_id?: string; airtable_table_id?: string; airtable_webhook_id?: string; airtable_mac_secret?: string; airtable_webhook_expiration?: string; airtable_trigger_delay_seconds?: AirtableDelaySeconds; }
146
- export declare function getAirtableTriggerConfig(defaultInputs: Record<string, unknown>): AirtableTriggerConfig; export type AirtableEventType = Extract<keyof BubbleTriggerEventRegistry, `airtable/${string}`>; export declare const AvailableModels: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export declare const RECOMMENDED_MODELS: Record<string, AvailableModel>; export type StorableValue = { truncated: boolean; preview: string | unknown; sizeBytes: number; }; export declare function prepareForStorage(value: unknown, options?: { maxBytes?: number; previewBytes?: number; }): StorableValue; export declare function cleanUpObjectForDisplayAndStorage(obj: unknown, maxBytes?: number): unknown; export declare function sanitizeParams(params: Record<string, unknown>): Record<string, unknown>; export declare function enhanceErrorMessage(errorMessage: string): string; export declare function hashToVariableId(input: string): number; export declare function buildCallSiteKey(methodName: string, invocationIndex: number): string; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
147
- export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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 enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
146
+ export declare function getAirtableTriggerConfig(defaultInputs: Record<string, unknown>): AirtableTriggerConfig; export type AirtableEventType = Extract<keyof BubbleTriggerEventRegistry, `airtable/${string}`>; export declare const AvailableModels: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export declare const RECOMMENDED_MODELS: Record<string, AvailableModel>; export type StorableValue = { truncated: boolean; preview: string | unknown; sizeBytes: number; }; export declare function prepareForStorage(value: unknown, options?: { maxBytes?: number; previewBytes?: number; }): StorableValue; export declare function cleanUpObjectForDisplayAndStorage(obj: unknown, maxBytes?: number): unknown; export declare function sanitizeParams(params: Record<string, unknown>): Record<string, unknown>; export declare function enhanceErrorMessage(errorMessage: string): string; export declare function hashToVariableId(input: string): number; export declare function buildCallSiteKey(methodName: string, invocationIndex: number): string; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
147
+ export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-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 enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
148
148
  export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
149
149
  export declare const CREDENTIAL_CONFIGURATION_MAP: Record<CredentialType, Record<string, BubbleParameterType>>; export declare const BUBBLE_NAMES_WITH_CONTEXT_INJECTION: string[]; export declare const BubbleParameterTypeSchema: z.ZodNativeEnum<typeof BubbleParameterType>; export declare const BubbleParameterSchema: z.ZodObject<{ location: z.ZodOptional<z.ZodObject<{ startLine: z.ZodNumber; startCol: z.ZodNumber; endLine: z.ZodNumber; endCol: z.ZodNumber; }, "strip", z.ZodTypeAny, { startLine: number; startCol: number; endLine: number; endCol: number; }, { startLine: number; startCol: number; endLine: number; endCol: number; }>>; variableId: z.ZodOptional<z.ZodNumber>; name: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>; type: z.ZodNativeEnum<typeof BubbleParameterType>; source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>; }, "strip", z.ZodTypeAny, { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>; export type BubbleParameter = z.infer<typeof BubbleParameterSchema>; export interface ParsedBubble { variableName: string; bubbleName: BubbleName; className: string; parameters: BubbleParameter[]; hasAwait: boolean; hasActionCall: boolean; dependencies?: BubbleName[]; dependencyGraph?: DependencyGraphNode; }
150
150
  export interface DependencyGraphNode { name: BubbleName; variableName?: string; nodeType: BubbleNodeType; uniqueId?: string; variableId?: number; dependencies: DependencyGraphNode[]; functionCallChildren?: FunctionCallWorkflowNode[]; }
@@ -160,8 +160,8 @@ export interface ParallelExecutionWorkflowNode { type: 'parallel_execution'; loc
160
160
  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[]; }; }
161
161
  export type WorkflowNode = BubbleWorkflowNode | ControlFlowWorkflowNode | TryCatchWorkflowNode | CodeBlockWorkflowNode | VariableDeclarationBlockNode | ReturnWorkflowNode | FunctionCallWorkflowNode | ParallelExecutionWorkflowNode | TransformationFunctionWorkflowNode; export interface ParsedWorkflow { root: WorkflowNode[]; bubbles: Record<number, ParsedBubbleWithInfo>; }
162
162
  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 function containsFunctionLiteral(value: string): boolean; export declare function formatParameterValue(value: unknown, type: string): string; export declare function condenseToSingleLine(input: string): string; export declare function stripCommentsOutsideStrings(input: string): string; export interface BuildParameterObjectOptions { preserveFormatting?: boolean; }
163
- export declare function buildParameterObjectLiteral(parameters: BubbleParameter[], options?: BuildParameterObjectOptions): string; export declare const flowRoleSchema: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; export type FlowRole = z.infer<typeof flowRoleSchema>; export declare const flowPermissionSchema: z.ZodObject<{ userId: z.ZodString; email: z.ZodString; name: z.ZodNullable<z.ZodString>; avatarUrl: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; grantedAt: z.ZodString; grantedBy: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }, { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }>; export type FlowPermission = z.infer<typeof flowPermissionSchema>; export declare const trashedFlowSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; organizationId: z.ZodNullable<z.ZodNumber>; organizationName: z.ZodNullable<z.ZodString>; deletedAt: z.ZodString; deletedBy: z.ZodNullable<z.ZodString>; canRestore: z.ZodBoolean; canPermanentDelete: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }, { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }>; export type TrashedFlow = z.infer<typeof trashedFlowSchema>; export declare const grantPermissionSchema: z.ZodEffects<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; userId: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; userId?: string | undefined; email?: string | undefined; }, { role: "owner" | "editor" | "runner" | "viewer"; userId?: string | undefined; email?: string | undefined; }>, { role: "owner" | "editor" | "runner" | "viewer"; userId?: string | undefined; email?: string | undefined; }, { role: "owner" | "editor" | "runner" | "viewer"; userId?: string | undefined; email?: string | undefined; }>; export type GrantPermissionRequest = z.infer<typeof grantPermissionSchema>; export declare const updatePermissionSchema: z.ZodObject<{ role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; }, { role: "owner" | "editor" | "runner" | "viewer"; }>; export type UpdatePermissionRequest = z.infer<typeof updatePermissionSchema>; export declare const transferOwnershipSchema: z.ZodObject<{ fromUserId: z.ZodString; toUserId: z.ZodString; }, "strip", z.ZodTypeAny, { fromUserId: string; toUserId: string; }, { fromUserId: string; toUserId: string; }>; export type TransferOwnershipRequest = z.infer<typeof transferOwnershipSchema>; export declare const listFlowPermissionsResponseSchema: z.ZodObject<{ permissions: z.ZodArray<z.ZodObject<{ userId: z.ZodString; email: z.ZodString; name: z.ZodNullable<z.ZodString>; avatarUrl: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; grantedAt: z.ZodString; grantedBy: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }, { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }>, "many">; organizationId: z.ZodNullable<z.ZodNumber>; isInTrash: z.ZodBoolean; }, "strip", z.ZodTypeAny, { organizationId: number | null; permissions: { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }[]; isInTrash: boolean; }, { organizationId: number | null; permissions: { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }[]; isInTrash: boolean; }>; export type ListFlowPermissionsResponse = z.infer<typeof listFlowPermissionsResponseSchema>; export declare const grantPermissionResponseSchema: z.ZodObject<{ userId: z.ZodString; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; grantedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; userId: string; grantedAt: string; }, { role: "owner" | "editor" | "runner" | "viewer"; userId: string; grantedAt: string; }>; export type GrantPermissionResponse = z.infer<typeof grantPermissionResponseSchema>; export declare const updatePermissionResponseSchema: z.ZodObject<{ userId: z.ZodString; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; userId: string; updatedAt: string; }, { role: "owner" | "editor" | "runner" | "viewer"; userId: string; updatedAt: string; }>; export type UpdatePermissionResponse = z.infer<typeof updatePermissionResponseSchema>; export declare const transferOwnershipResponseSchema: z.ZodObject<{ previousOwner: z.ZodString; newOwner: z.ZodString; transferredAt: z.ZodString; }, "strip", z.ZodTypeAny, { previousOwner: string; newOwner: string; transferredAt: string; }, { previousOwner: string; newOwner: string; transferredAt: string; }>; export type TransferOwnershipResponse = z.infer<typeof transferOwnershipResponseSchema>; export declare const listTrashResponseSchema: z.ZodObject<{ workflows: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; organizationId: z.ZodNullable<z.ZodNumber>; organizationName: z.ZodNullable<z.ZodString>; deletedAt: z.ZodString; deletedBy: z.ZodNullable<z.ZodString>; canRestore: z.ZodBoolean; canPermanentDelete: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }, { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }>, "many">; }, "strip", z.ZodTypeAny, { workflows: { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }[]; }, { workflows: { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }[]; }>; export type ListTrashResponse = z.infer<typeof listTrashResponseSchema>; export declare const restoreFlowResponseSchema: z.ZodObject<{ id: z.ZodNumber; restoredAt: z.ZodString; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: number; restoredAt: string; }, { message: string; id: number; restoredAt: string; }>; export type RestoreFlowResponse = z.infer<typeof restoreFlowResponseSchema>; export declare const orgRoleSchema: z.ZodEnum<["owner", "admin", "member"]>; export type OrgRole = z.infer<typeof orgRoleSchema>; export declare const orgTypeSchema: z.ZodEnum<["personal", "organization"]>; export type OrgType = z.infer<typeof orgTypeSchema>; export declare const organizationSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; type: z.ZodEnum<["personal", "organization"]>; domain: z.ZodOptional<z.ZodNullable<z.ZodString>>; role: z.ZodEnum<["owner", "admin", "member"]>; memberCount: z.ZodNumber; createdAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }>; export type Organization = z.infer<typeof organizationSchema>; export declare const organizationDetailSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; type: z.ZodEnum<["personal", "organization"]>; domain: z.ZodOptional<z.ZodNullable<z.ZodString>>; role: z.ZodEnum<["owner", "admin", "member"]>; memberCount: z.ZodNumber; createdAt: z.ZodString; } & { workflowCount: z.ZodNumber; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; updatedAt: string; createdAt: string; slug: string; memberCount: number; workflowCount: number; domain?: string | null | undefined; }, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; updatedAt: string; createdAt: string; slug: string; memberCount: number; workflowCount: number; domain?: string | null | undefined; }>; export type OrganizationDetail = z.infer<typeof organizationDetailSchema>; export declare const organizationMemberSchema: z.ZodObject<{ userId: z.ZodString; email: z.ZodString; name: z.ZodNullable<z.ZodString>; avatarUrl: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "admin", "member"]>; joinedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }, { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }>; export type OrganizationMember = z.infer<typeof organizationMemberSchema>; export declare const createOrganizationSchema: z.ZodObject<{ name: z.ZodString; slug: z.ZodString; domain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; slug: string; domain?: string | undefined; }, { name: string; slug: string; domain?: string | undefined; }>; export type CreateOrganizationRequest = z.infer<typeof createOrganizationSchema>; export declare const updateOrganizationSchema: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; slug: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { name?: string | undefined; domain?: string | null | undefined; slug?: string | undefined; }, { name?: string | undefined; domain?: string | null | undefined; slug?: string | undefined; }>; export type UpdateOrganizationRequest = z.infer<typeof updateOrganizationSchema>; export declare const addMemberSchema: z.ZodObject<{ email: z.ZodString; role: z.ZodEnum<["admin", "member"]>; }, "strip", z.ZodTypeAny, { role: "admin" | "member"; email: string; }, { role: "admin" | "member"; email: string; }>; export type AddMemberRequest = z.infer<typeof addMemberSchema>; export declare const updateMemberRoleSchema: z.ZodObject<{ role: z.ZodEnum<["admin", "member"]>; }, "strip", z.ZodTypeAny, { role: "admin" | "member"; }, { role: "admin" | "member"; }>; export type UpdateMemberRoleRequest = z.infer<typeof updateMemberRoleSchema>; export declare const listOrganizationsResponseSchema: z.ZodObject<{ organizations: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; type: z.ZodEnum<["personal", "organization"]>; domain: z.ZodOptional<z.ZodNullable<z.ZodString>>; role: z.ZodEnum<["owner", "admin", "member"]>; memberCount: z.ZodNumber; createdAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { organizations: { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }[]; }, { organizations: { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }[]; }>; export type ListOrganizationsResponse = z.infer<typeof listOrganizationsResponseSchema>; export declare const updateOrganizationResponseSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; updatedAt: string; slug: string; }, { name: string; id: number; updatedAt: string; slug: string; }>; export type UpdateOrganizationResponse = z.infer<typeof updateOrganizationResponseSchema>; export declare const listMembersResponseSchema: z.ZodObject<{ members: z.ZodArray<z.ZodObject<{ userId: z.ZodString; email: z.ZodString; name: z.ZodNullable<z.ZodString>; avatarUrl: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "admin", "member"]>; joinedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }, { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { members: { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }[]; }, { members: { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }[]; }>; export type ListMembersResponse = z.infer<typeof listMembersResponseSchema>; export declare const addMemberResponseSchema: z.ZodObject<{ userId: z.ZodString; role: z.ZodEnum<["owner", "admin", "member"]>; joinedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; userId: string; joinedAt: string; }, { role: "owner" | "admin" | "member"; userId: string; joinedAt: string; }>; export type AddMemberResponse = z.infer<typeof addMemberResponseSchema>; export declare const updateMemberRoleResponseSchema: z.ZodObject<{ userId: z.ZodString; role: z.ZodEnum<["owner", "admin", "member"]>; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; userId: string; }, { role: "owner" | "admin" | "member"; userId: string; }>; export type UpdateMemberRoleResponse = z.infer<typeof updateMemberRoleResponseSchema>; export declare const successResponseSchema: z.ZodObject<{ success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; }, { success: boolean; }>; export type SuccessResponse = z.infer<typeof successResponseSchema>; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
164
- export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare const CapabilityInputSchema: z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<["string", "number", "boolean", "string[]"]>; label: z.ZodOptional<z.ZodString>; description: z.ZodString; required: z.ZodDefault<z.ZodBoolean>; default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>; }, "strip", z.ZodTypeAny, { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; required: boolean; default?: string | number | boolean | string[] | undefined; label?: string | undefined; }, { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; default?: string | number | boolean | string[] | undefined; required?: boolean | undefined; label?: string | undefined; }>; export type CapabilityInput = z.infer<typeof CapabilityInputSchema>; export declare const CapabilityToolDefSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; parameterSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; internalBubbles: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; }, "strip", z.ZodTypeAny, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }>; export type CapabilityToolDef = z.infer<typeof CapabilityToolDefSchema>; export declare const CapabilityModelConfigOverrideSchema: z.ZodObject<{ model: z.ZodOptional<z.ZodString>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxTokens: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; }, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; }>; export type CapabilityModelConfigOverride = z.infer<typeof CapabilityModelConfigOverrideSchema>; export declare const CapabilityMetadataSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodString; icon: z.ZodOptional<z.ZodString>; category: z.ZodOptional<z.ZodString>; version: z.ZodDefault<z.ZodString>; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; inputs: z.ZodArray<z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<["string", "number", "boolean", "string[]"]>; label: z.ZodOptional<z.ZodString>; description: z.ZodString; required: z.ZodDefault<z.ZodBoolean>; default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>; }, "strip", z.ZodTypeAny, { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; required: boolean; default?: string | number | boolean | string[] | undefined; label?: string | undefined; }, { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; default?: string | number | boolean | string[] | undefined; required?: boolean | undefined; label?: string | undefined; }>, "many">; tools: z.ZodArray<z.ZodObject<{ name: z.ZodString; description: z.ZodString; parameterSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; internalBubbles: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; }, "strip", z.ZodTypeAny, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }>, "many">; systemPromptAddition: z.ZodOptional<z.ZodString>; modelConfigOverride: z.ZodOptional<z.ZodObject<{ model: z.ZodOptional<z.ZodString>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxTokens: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; }, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { name: string; description: string; tools: { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }[]; id: string; requiredCredentials: CredentialType[]; version: string; inputs: { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; required: boolean; default?: string | number | boolean | string[] | undefined; label?: string | undefined; }[]; icon?: string | undefined; category?: string | undefined; systemPromptAddition?: string | undefined; modelConfigOverride?: { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; } | undefined; }, { name: string; description: string; tools: { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }[]; id: string; requiredCredentials: CredentialType[]; inputs: { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; default?: string | number | boolean | string[] | undefined; required?: boolean | undefined; label?: string | undefined; }[]; icon?: string | undefined; category?: string | undefined; version?: string | undefined; systemPromptAddition?: string | undefined; modelConfigOverride?: { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; } | undefined; }>; export type CapabilityMetadata = z.infer<typeof CapabilityMetadataSchema>; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
163
+ export declare function buildParameterObjectLiteral(parameters: BubbleParameter[], options?: BuildParameterObjectOptions): string; export declare const flowRoleSchema: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; export type FlowRole = z.infer<typeof flowRoleSchema>; export declare const flowPermissionSchema: z.ZodObject<{ userId: z.ZodString; email: z.ZodString; name: z.ZodNullable<z.ZodString>; avatarUrl: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; grantedAt: z.ZodString; grantedBy: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }, { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }>; export type FlowPermission = z.infer<typeof flowPermissionSchema>; export declare const trashedFlowSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; organizationId: z.ZodNullable<z.ZodNumber>; organizationName: z.ZodNullable<z.ZodString>; deletedAt: z.ZodString; deletedBy: z.ZodNullable<z.ZodString>; canRestore: z.ZodBoolean; canPermanentDelete: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }, { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }>; export type TrashedFlow = z.infer<typeof trashedFlowSchema>; export declare const grantPermissionSchema: z.ZodEffects<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; userId: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; userId?: string | undefined; email?: string | undefined; }, { role: "owner" | "editor" | "runner" | "viewer"; userId?: string | undefined; email?: string | undefined; }>, { role: "owner" | "editor" | "runner" | "viewer"; userId?: string | undefined; email?: string | undefined; }, { role: "owner" | "editor" | "runner" | "viewer"; userId?: string | undefined; email?: string | undefined; }>; export type GrantPermissionRequest = z.infer<typeof grantPermissionSchema>; export declare const updatePermissionSchema: z.ZodObject<{ role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; }, { role: "owner" | "editor" | "runner" | "viewer"; }>; export type UpdatePermissionRequest = z.infer<typeof updatePermissionSchema>; export declare const transferOwnershipSchema: z.ZodObject<{ fromUserId: z.ZodString; toUserId: z.ZodString; }, "strip", z.ZodTypeAny, { fromUserId: string; toUserId: string; }, { fromUserId: string; toUserId: string; }>; export type TransferOwnershipRequest = z.infer<typeof transferOwnershipSchema>; export declare const listFlowPermissionsResponseSchema: z.ZodObject<{ permissions: z.ZodArray<z.ZodObject<{ userId: z.ZodString; email: z.ZodString; name: z.ZodNullable<z.ZodString>; avatarUrl: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; grantedAt: z.ZodString; grantedBy: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }, { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }>, "many">; organizationId: z.ZodNullable<z.ZodNumber>; isInTrash: z.ZodBoolean; }, "strip", z.ZodTypeAny, { organizationId: number | null; permissions: { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }[]; isInTrash: boolean; }, { organizationId: number | null; permissions: { role: "owner" | "editor" | "runner" | "viewer"; name: string | null; userId: string; email: string; grantedAt: string; grantedBy: string | null; avatarUrl?: string | undefined; }[]; isInTrash: boolean; }>; export type ListFlowPermissionsResponse = z.infer<typeof listFlowPermissionsResponseSchema>; export declare const grantPermissionResponseSchema: z.ZodObject<{ userId: z.ZodString; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; grantedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; userId: string; grantedAt: string; }, { role: "owner" | "editor" | "runner" | "viewer"; userId: string; grantedAt: string; }>; export type GrantPermissionResponse = z.infer<typeof grantPermissionResponseSchema>; export declare const updatePermissionResponseSchema: z.ZodObject<{ userId: z.ZodString; role: z.ZodEnum<["owner", "editor", "runner", "viewer"]>; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "editor" | "runner" | "viewer"; userId: string; updatedAt: string; }, { role: "owner" | "editor" | "runner" | "viewer"; userId: string; updatedAt: string; }>; export type UpdatePermissionResponse = z.infer<typeof updatePermissionResponseSchema>; export declare const transferOwnershipResponseSchema: z.ZodObject<{ previousOwner: z.ZodString; newOwner: z.ZodString; transferredAt: z.ZodString; }, "strip", z.ZodTypeAny, { previousOwner: string; newOwner: string; transferredAt: string; }, { previousOwner: string; newOwner: string; transferredAt: string; }>; export type TransferOwnershipResponse = z.infer<typeof transferOwnershipResponseSchema>; export declare const listTrashResponseSchema: z.ZodObject<{ workflows: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; organizationId: z.ZodNullable<z.ZodNumber>; organizationName: z.ZodNullable<z.ZodString>; deletedAt: z.ZodString; deletedBy: z.ZodNullable<z.ZodString>; canRestore: z.ZodBoolean; canPermanentDelete: z.ZodBoolean; }, "strip", z.ZodTypeAny, { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }, { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }>, "many">; }, "strip", z.ZodTypeAny, { workflows: { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }[]; }, { workflows: { name: string; id: number; organizationId: number | null; organizationName: string | null; deletedAt: string; deletedBy: string | null; canRestore: boolean; canPermanentDelete: boolean; }[]; }>; export type ListTrashResponse = z.infer<typeof listTrashResponseSchema>; export declare const restoreFlowResponseSchema: z.ZodObject<{ id: z.ZodNumber; restoredAt: z.ZodString; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: number; restoredAt: string; }, { message: string; id: number; restoredAt: string; }>; export type RestoreFlowResponse = z.infer<typeof restoreFlowResponseSchema>; export declare const orgRoleSchema: z.ZodEnum<["owner", "admin", "member"]>; export type OrgRole = z.infer<typeof orgRoleSchema>; export declare const orgTypeSchema: z.ZodEnum<["personal", "organization"]>; export type OrgType = z.infer<typeof orgTypeSchema>; export declare const organizationSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; type: z.ZodEnum<["personal", "organization"]>; domain: z.ZodOptional<z.ZodNullable<z.ZodString>>; role: z.ZodEnum<["owner", "admin", "member"]>; memberCount: z.ZodNumber; createdAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }>; export type Organization = z.infer<typeof organizationSchema>; export declare const organizationDetailSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; type: z.ZodEnum<["personal", "organization"]>; domain: z.ZodOptional<z.ZodNullable<z.ZodString>>; role: z.ZodEnum<["owner", "admin", "member"]>; memberCount: z.ZodNumber; createdAt: z.ZodString; } & { workflowCount: z.ZodNumber; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; updatedAt: string; createdAt: string; slug: string; memberCount: number; workflowCount: number; domain?: string | null | undefined; }, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; updatedAt: string; createdAt: string; slug: string; memberCount: number; workflowCount: number; domain?: string | null | undefined; }>; export type OrganizationDetail = z.infer<typeof organizationDetailSchema>; export declare const organizationMemberSchema: z.ZodObject<{ userId: z.ZodString; email: z.ZodString; name: z.ZodNullable<z.ZodString>; avatarUrl: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "admin", "member"]>; joinedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }, { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }>; export type OrganizationMember = z.infer<typeof organizationMemberSchema>; export declare const createOrganizationSchema: z.ZodObject<{ name: z.ZodString; slug: z.ZodString; domain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; slug: string; domain?: string | undefined; }, { name: string; slug: string; domain?: string | undefined; }>; export type CreateOrganizationRequest = z.infer<typeof createOrganizationSchema>; export declare const updateOrganizationSchema: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; slug: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { name?: string | undefined; domain?: string | null | undefined; slug?: string | undefined; }, { name?: string | undefined; domain?: string | null | undefined; slug?: string | undefined; }>; export type UpdateOrganizationRequest = z.infer<typeof updateOrganizationSchema>; export declare const addMemberSchema: z.ZodObject<{ email: z.ZodString; role: z.ZodEnum<["admin", "member"]>; }, "strip", z.ZodTypeAny, { role: "admin" | "member"; email: string; }, { role: "admin" | "member"; email: string; }>; export type AddMemberRequest = z.infer<typeof addMemberSchema>; export declare const updateMemberRoleSchema: z.ZodObject<{ role: z.ZodEnum<["admin", "member"]>; }, "strip", z.ZodTypeAny, { role: "admin" | "member"; }, { role: "admin" | "member"; }>; export type UpdateMemberRoleRequest = z.infer<typeof updateMemberRoleSchema>; export declare const listOrganizationsResponseSchema: z.ZodObject<{ organizations: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; type: z.ZodEnum<["personal", "organization"]>; domain: z.ZodOptional<z.ZodNullable<z.ZodString>>; role: z.ZodEnum<["owner", "admin", "member"]>; memberCount: z.ZodNumber; createdAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }, { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { organizations: { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }[]; }, { organizations: { role: "owner" | "admin" | "member"; name: string; type: "personal" | "organization"; id: number; createdAt: string; slug: string; memberCount: number; domain?: string | null | undefined; }[]; }>; export type ListOrganizationsResponse = z.infer<typeof listOrganizationsResponseSchema>; export declare const updateOrganizationResponseSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; slug: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; updatedAt: string; slug: string; }, { name: string; id: number; updatedAt: string; slug: string; }>; export type UpdateOrganizationResponse = z.infer<typeof updateOrganizationResponseSchema>; export declare const listMembersResponseSchema: z.ZodObject<{ members: z.ZodArray<z.ZodObject<{ userId: z.ZodString; email: z.ZodString; name: z.ZodNullable<z.ZodString>; avatarUrl: z.ZodOptional<z.ZodString>; role: z.ZodEnum<["owner", "admin", "member"]>; joinedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }, { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { members: { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }[]; }, { members: { role: "owner" | "admin" | "member"; name: string | null; userId: string; email: string; joinedAt: string; avatarUrl?: string | undefined; }[]; }>; export type ListMembersResponse = z.infer<typeof listMembersResponseSchema>; export declare const addMemberResponseSchema: z.ZodObject<{ userId: z.ZodString; role: z.ZodEnum<["owner", "admin", "member"]>; joinedAt: z.ZodString; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; userId: string; joinedAt: string; }, { role: "owner" | "admin" | "member"; userId: string; joinedAt: string; }>; export type AddMemberResponse = z.infer<typeof addMemberResponseSchema>; export declare const updateMemberRoleResponseSchema: z.ZodObject<{ userId: z.ZodString; role: z.ZodEnum<["owner", "admin", "member"]>; }, "strip", z.ZodTypeAny, { role: "owner" | "admin" | "member"; userId: string; }, { role: "owner" | "admin" | "member"; userId: string; }>; export type UpdateMemberRoleResponse = z.infer<typeof updateMemberRoleResponseSchema>; export declare const successResponseSchema: z.ZodObject<{ success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; }, { success: boolean; }>; export type SuccessResponse = z.infer<typeof successResponseSchema>; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", SLACK_API = "SLACK_API", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED", CONFLUENCE_CRED = "CONFLUENCE_CRED" }
164
+ export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe' | 'confluence' | 'yc-scraper-tool'; export declare const CapabilityInputSchema: z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<["string", "number", "boolean", "string[]"]>; label: z.ZodOptional<z.ZodString>; description: z.ZodString; required: z.ZodDefault<z.ZodBoolean>; default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>; }, "strip", z.ZodTypeAny, { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; required: boolean; default?: string | number | boolean | string[] | undefined; label?: string | undefined; }, { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; default?: string | number | boolean | string[] | undefined; required?: boolean | undefined; label?: string | undefined; }>; export type CapabilityInput = z.infer<typeof CapabilityInputSchema>; export declare const CapabilityToolDefSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; parameterSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; internalBubbles: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; }, "strip", z.ZodTypeAny, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }>; export type CapabilityToolDef = z.infer<typeof CapabilityToolDefSchema>; export declare const CapabilityModelConfigOverrideSchema: z.ZodObject<{ model: z.ZodOptional<z.ZodString>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxTokens: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; }, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; }>; export type CapabilityModelConfigOverride = z.infer<typeof CapabilityModelConfigOverrideSchema>; export declare const CapabilityMetadataSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodString; icon: z.ZodOptional<z.ZodString>; category: z.ZodOptional<z.ZodString>; version: z.ZodDefault<z.ZodString>; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optionalCredentials: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>; inputs: z.ZodArray<z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<["string", "number", "boolean", "string[]"]>; label: z.ZodOptional<z.ZodString>; description: z.ZodString; required: z.ZodDefault<z.ZodBoolean>; default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>; }, "strip", z.ZodTypeAny, { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; required: boolean; default?: string | number | boolean | string[] | undefined; label?: string | undefined; }, { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; default?: string | number | boolean | string[] | undefined; required?: boolean | undefined; label?: string | undefined; }>, "many">; tools: z.ZodArray<z.ZodObject<{ name: z.ZodString; description: z.ZodString; parameterSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; internalBubbles: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; }, "strip", z.ZodTypeAny, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }>, "many">; systemPromptAddition: z.ZodOptional<z.ZodString>; modelConfigOverride: z.ZodOptional<z.ZodObject<{ model: z.ZodOptional<z.ZodString>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxTokens: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; }, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { name: string; description: string; tools: { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }[]; id: string; requiredCredentials: CredentialType[]; version: string; inputs: { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; required: boolean; default?: string | number | boolean | string[] | undefined; label?: string | undefined; }[]; icon?: string | undefined; category?: string | undefined; optionalCredentials?: CredentialType[] | undefined; systemPromptAddition?: string | undefined; modelConfigOverride?: { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; } | undefined; }, { name: string; description: string; tools: { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; }[]; id: string; requiredCredentials: CredentialType[]; inputs: { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; default?: string | number | boolean | string[] | undefined; required?: boolean | undefined; label?: string | undefined; }[]; icon?: string | undefined; category?: string | undefined; version?: string | undefined; optionalCredentials?: CredentialType[] | undefined; systemPromptAddition?: string | undefined; modelConfigOverride?: { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxTokens?: number | undefined; } | undefined; }>; export type CapabilityMetadata = z.infer<typeof CapabilityMetadataSchema>; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
165
165
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
166
166
  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; }); }
167
167
  export declare enum LogLevel { TRACE = 0, DEBUG = 1, INFO = 2, WARN = 3, ERROR = 4, FATAL = 5 }
@@ -214,7 +214,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
214
214
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
215
215
  export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export interface CapabilityRuntimeContext { credentials: Partial<Record<CredentialType, string>>; inputs: Record<string, string | number | boolean | string[]>; bubbleContext?: BubbleContext; }
216
216
  export type CapabilityToolFunc = (params: Record<string, unknown>) => Promise<unknown>; export type CapabilityToolFactory = (context: CapabilityRuntimeContext) => Record<string, CapabilityToolFunc>; export type CapabilitySystemPromptFactory = (context: CapabilityRuntimeContext) => string | Promise<string>; export type CapabilityResponseAppendFactory = (context: CapabilityRuntimeContext) => string | Promise<string>; export interface CapabilityDefinition { metadata: CapabilityMetadata; createTools: CapabilityToolFactory; createSystemPrompt?: CapabilitySystemPromptFactory; createResponseAppend?: CapabilityResponseAppendFactory; hooks?: { beforeToolCall?: ToolHookBefore; afterToolCall?: ToolHookAfter; }; }
217
- export interface DefineCapabilityOptions { id: string; name: string; description: string; icon?: string; category?: string; version?: string; requiredCredentials: CredentialType[]; inputs: CapabilityInput[]; tools: Array<{ name: string; description: string; schema: z.ZodObject<z.ZodRawShape>; internalBubbles?: BubbleName[]; func: (ctx: CapabilityRuntimeContext) => CapabilityToolFunc; }>; systemPrompt?: string | CapabilitySystemPromptFactory; responseAppend?: string | CapabilityResponseAppendFactory; hooks?: CapabilityDefinition['hooks']; modelConfigOverride?: CapabilityModelConfigOverride; }
217
+ export interface DefineCapabilityOptions { id: string; name: string; description: string; icon?: string; category?: string; version?: string; requiredCredentials: CredentialType[]; optionalCredentials?: CredentialType[]; inputs: CapabilityInput[]; tools: Array<{ name: string; description: string; schema: z.ZodObject<z.ZodRawShape>; internalBubbles?: BubbleName[]; func: (ctx: CapabilityRuntimeContext) => CapabilityToolFunc; }>; systemPrompt?: string | CapabilitySystemPromptFactory; responseAppend?: string | CapabilityResponseAppendFactory; hooks?: CapabilityDefinition['hooks']; modelConfigOverride?: CapabilityModelConfigOverride; }
218
218
  export declare function defineCapability(options: DefineCapabilityOptions): CapabilityDefinition; 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>; }
219
219
  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; }
220
220
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
@@ -252,7 +252,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
252
252
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
253
253
  export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export interface CapabilityRuntimeContext { credentials: Partial<Record<CredentialType, string>>; inputs: Record<string, string | number | boolean | string[]>; bubbleContext?: BubbleContext; }
254
254
  export type CapabilityToolFunc = (params: Record<string, unknown>) => Promise<unknown>; export type CapabilityToolFactory = (context: CapabilityRuntimeContext) => Record<string, CapabilityToolFunc>; export type CapabilitySystemPromptFactory = (context: CapabilityRuntimeContext) => string | Promise<string>; export type CapabilityResponseAppendFactory = (context: CapabilityRuntimeContext) => string | Promise<string>; export interface CapabilityDefinition { metadata: CapabilityMetadata; createTools: CapabilityToolFactory; createSystemPrompt?: CapabilitySystemPromptFactory; createResponseAppend?: CapabilityResponseAppendFactory; hooks?: { beforeToolCall?: ToolHookBefore; afterToolCall?: ToolHookAfter; }; }
255
- export interface DefineCapabilityOptions { id: string; name: string; description: string; icon?: string; category?: string; version?: string; requiredCredentials: CredentialType[]; inputs: CapabilityInput[]; tools: Array<{ name: string; description: string; schema: z.ZodObject<z.ZodRawShape>; internalBubbles?: BubbleName[]; func: (ctx: CapabilityRuntimeContext) => CapabilityToolFunc; }>; systemPrompt?: string | CapabilitySystemPromptFactory; responseAppend?: string | CapabilityResponseAppendFactory; hooks?: CapabilityDefinition['hooks']; modelConfigOverride?: CapabilityModelConfigOverride; }
255
+ export interface DefineCapabilityOptions { id: string; name: string; description: string; icon?: string; category?: string; version?: string; requiredCredentials: CredentialType[]; optionalCredentials?: CredentialType[]; inputs: CapabilityInput[]; tools: Array<{ name: string; description: string; schema: z.ZodObject<z.ZodRawShape>; internalBubbles?: BubbleName[]; func: (ctx: CapabilityRuntimeContext) => CapabilityToolFunc; }>; systemPrompt?: string | CapabilitySystemPromptFactory; responseAppend?: string | CapabilityResponseAppendFactory; hooks?: CapabilityDefinition['hooks']; modelConfigOverride?: CapabilityModelConfigOverride; }
256
256
  export declare function defineCapability(options: DefineCapabilityOptions): CapabilityDefinition; export declare function registerCapability(cap: CapabilityDefinition): void; export declare function getCapability(id: string): CapabilityDefinition | undefined; export declare function getAllCapabilities(): CapabilityDefinition[]; export declare function getAllCapabilityMetadata(): CapabilityMetadata[]; export declare function getCapabilityMetadataById(id: string): CapabilityMetadata | undefined; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
257
257
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
258
258
  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; }); }
@@ -365,7 +365,7 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
365
365
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
366
366
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
367
367
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
368
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; channel: z.ZodString; text: z.ZodString; username: z.ZodOptional<z.ZodString>; icon_emoji: z.ZodOptional<z.ZodString>; icon_url: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; thread_ts: z.ZodOptional<z.ZodString>; reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; channel: string; reply_broadcast: boolean; unfurl_links: boolean; unfurl_media: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "send_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; reply_broadcast?: boolean | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>; exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { types: ("public_channel" | "private_channel" | "mpim" | "im")[]; operation: "list_channels"; exclude_archived: boolean; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_channels"; types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; exclude_archived?: boolean | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; channel: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_channel_info"; channel: string; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_channel_info"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; user: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { user: string; operation: "get_user_info"; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { user: string; operation: "get_user_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; limit: number; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; channel: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_conversation_history"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_conversation_history"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; channel: z.ZodString; ts: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; ts: string; operation: "get_thread_replies"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { ts: string; operation: "get_thread_replies"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; channel: z.ZodString; ts: z.ZodString; text: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; channel: z.ZodString; ts: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"join_channel">; channel: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "join_channel"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "join_channel"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; channel: z.ZodString; file_path: z.ZodOptional<z.ZodString>; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; initial_comment: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "upload_file"; channel: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; content?: string | undefined; thread_ts?: string | undefined; file_path?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }, { operation: "upload_file"; channel: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; content?: string | undefined; thread_ts?: string | undefined; file_path?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"schedule_message">; channel: z.ZodString; text: z.ZodString; post_at: z.ZodNumber; thread_ts: z.ZodOptional<z.ZodString>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "schedule_message"; channel: string; unfurl_links: boolean; unfurl_media: boolean; post_at: number; credentials?: Partial<Record<CredentialType, string>> | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "schedule_message"; channel: string; post_at: number; credentials?: Partial<Record<CredentialType, string>> | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_url: z.ZodOptional<z.ZodString>; file_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; file_id?: string | undefined; file_url?: string | undefined; }, { operation: "download_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; file_id?: string | undefined; file_url?: string | undefined; }>]>; declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; ok: z.ZodBoolean; channels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; ok: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; ok: z.ZodBoolean; members: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_conversation_history"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "get_conversation_history"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_thread_replies"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "get_thread_replies"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "update_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "add_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "remove_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"join_channel">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; already_in_channel: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "join_channel"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; already_in_channel?: boolean | undefined; }, { error: string; success: boolean; operation: "join_channel"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; already_in_channel?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; created: z.ZodNumber; timestamp: z.ZodNumber; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; pretty_type: z.ZodString; user: z.ZodString; editable: z.ZodBoolean; size: z.ZodNumber; mode: z.ZodString; is_external: z.ZodBoolean; external_type: z.ZodString; is_public: z.ZodBoolean; public_url_shared: z.ZodBoolean; display_as_bot: z.ZodBoolean; username: z.ZodString; url_private: z.ZodString; url_private_download: z.ZodString; permalink: z.ZodString; permalink_public: z.ZodOptional<z.ZodString>; shares: z.ZodOptional<z.ZodObject<{ public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }>>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; has_rich_preview: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }, { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_file"; ok: boolean; file?: { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "upload_file"; ok: boolean; file?: { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"schedule_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; scheduled_message_id: z.ZodOptional<z.ZodString>; post_at: z.ZodOptional<z.ZodNumber>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "schedule_message"; ok: boolean; channel?: string | undefined; post_at?: number | undefined; scheduled_message_id?: string | undefined; }, { error: string; success: boolean; operation: "schedule_message"; ok: boolean; channel?: string | undefined; post_at?: number | undefined; scheduled_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; size: z.ZodNumber; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_info"; ok: boolean; file?: { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_info"; ok: boolean; file?: { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; ok: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "download_file"; ok: boolean; content?: string | undefined; filename?: string | undefined; mimetype?: string | undefined; size?: number | undefined; }, { error: string; success: boolean; operation: "download_file"; ok: boolean; content?: string | undefined; filename?: string | undefined; mimetype?: string | undefined; size?: number | undefined; }>]>; type SlackResult = z.output<typeof SlackResultSchema>; type SlackParams = z.input<typeof SlackParamsSchema>;; export type SlackOperationResult<T extends SlackParams['operation']> = Extract<SlackResult, { operation: T; }>; export declare class SlackBubble<T extends SlackParams = SlackParams> extends ServiceBubble<T, Extract<SlackResult, { operation: T['operation']; }>> { testCredential(): Promise<boolean>; static readonly type: "service"; static readonly service = "slack"; static readonly authType: "apikey"; static readonly bubbleName = "slack"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; channel: z.ZodString; text: z.ZodString; username: z.ZodOptional<z.ZodString>; icon_emoji: z.ZodOptional<z.ZodString>; icon_url: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; thread_ts: z.ZodOptional<z.ZodString>; reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; channel: string; reply_broadcast: boolean; unfurl_links: boolean; unfurl_media: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "send_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; reply_broadcast?: boolean | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>; exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { types: ("public_channel" | "private_channel" | "mpim" | "im")[]; operation: "list_channels"; exclude_archived: boolean; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_channels"; types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; exclude_archived?: boolean | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; channel: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_channel_info"; channel: string; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_channel_info"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; user: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { user: string; operation: "get_user_info"; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { user: string; operation: "get_user_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; limit: number; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; channel: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_conversation_history"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_conversation_history"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; channel: z.ZodString; ts: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; ts: string; operation: "get_thread_replies"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { ts: string; operation: "get_thread_replies"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; channel: z.ZodString; ts: z.ZodString; text: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; channel: z.ZodString; ts: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"join_channel">; channel: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "join_channel"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "join_channel"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; channel: z.ZodString; file_path: z.ZodOptional<z.ZodString>; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; initial_comment: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "upload_file"; channel: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; content?: string | undefined; thread_ts?: string | undefined; file_path?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }, { operation: "upload_file"; channel: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; content?: string | undefined; thread_ts?: string | undefined; file_path?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"schedule_message">; channel: z.ZodString; text: z.ZodString; post_at: z.ZodNumber; thread_ts: z.ZodOptional<z.ZodString>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "schedule_message"; channel: string; unfurl_links: boolean; unfurl_media: boolean; post_at: number; credentials?: Partial<Record<CredentialType, string>> | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "schedule_message"; channel: string; post_at: number; credentials?: Partial<Record<CredentialType, string>> | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_url: z.ZodOptional<z.ZodString>; file_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; file_id?: string | undefined; file_url?: string | undefined; }, { operation: "download_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; file_id?: string | undefined; file_url?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; ok: z.ZodBoolean; channels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; ok: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; ok: z.ZodBoolean; members: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_conversation_history"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "get_conversation_history"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_thread_replies"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "get_thread_replies"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "update_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "add_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "remove_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"join_channel">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; already_in_channel: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "join_channel"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; already_in_channel?: boolean | undefined; }, { error: string; success: boolean; operation: "join_channel"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; already_in_channel?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; created: z.ZodNumber; timestamp: z.ZodNumber; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; pretty_type: z.ZodString; user: z.ZodString; editable: z.ZodBoolean; size: z.ZodNumber; mode: z.ZodString; is_external: z.ZodBoolean; external_type: z.ZodString; is_public: z.ZodBoolean; public_url_shared: z.ZodBoolean; display_as_bot: z.ZodBoolean; username: z.ZodString; url_private: z.ZodString; url_private_download: z.ZodString; permalink: z.ZodString; permalink_public: z.ZodOptional<z.ZodString>; shares: z.ZodOptional<z.ZodObject<{ public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }>>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; has_rich_preview: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }, { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_file"; ok: boolean; file?: { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "upload_file"; ok: boolean; file?: { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"schedule_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; scheduled_message_id: z.ZodOptional<z.ZodString>; post_at: z.ZodOptional<z.ZodNumber>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "schedule_message"; ok: boolean; channel?: string | undefined; post_at?: number | undefined; scheduled_message_id?: string | undefined; }, { error: string; success: boolean; operation: "schedule_message"; ok: boolean; channel?: string | undefined; post_at?: number | undefined; scheduled_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; size: z.ZodNumber; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_info"; ok: boolean; file?: { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_info"; ok: boolean; file?: { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; ok: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "download_file"; ok: boolean; content?: string | undefined; filename?: string | undefined; mimetype?: string | undefined; size?: number | undefined; }, { error: string; success: boolean; operation: "download_file"; ok: boolean; content?: string | undefined; filename?: string | undefined; mimetype?: string | undefined; size?: number | undefined; }>]>; static readonly shortDescription = "Slack integration for messaging and workspace management"; static readonly longDescription = "\nComprehensive Slack integration for messaging and workspace management.\n "; static readonly alias = "slack"; constructor(params?: T, context?: BubbleContext, instanceId?: string); protected performAction(context?: BubbleContext): Promise<Extract<SlackResult, { operation: T['operation']; }>>; private resolveChannelId; private static readonly MAX_BLOCKS_PER_MESSAGE; private sendMessage; private sendMessageWithBlockChunks; private listChannels; private getChannelInfo; private getUserInfo; private listUsers; private getConversationHistory; private getThreadReplies; private updateMessage; private deleteMessage; private addReaction; private removeReaction; private uploadFile; private joinChannel; private scheduleMessage; private getFileInfo; private downloadFile; private openDmConversation; protected chooseCredential(): string | undefined; private makeSlackApiCall; }
368
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; channel: z.ZodString; text: z.ZodString; username: z.ZodOptional<z.ZodString>; icon_emoji: z.ZodOptional<z.ZodString>; icon_url: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; thread_ts: z.ZodOptional<z.ZodString>; reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; channel: string; reply_broadcast: boolean; unfurl_links: boolean; unfurl_media: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "send_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; reply_broadcast?: boolean | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>; exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { types: ("public_channel" | "private_channel" | "mpim" | "im")[]; operation: "list_channels"; exclude_archived: boolean; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_channels"; types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; exclude_archived?: boolean | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; channel: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_channel_info"; channel: string; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_channel_info"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; user: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { user: string; operation: "get_user_info"; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { user: string; operation: "get_user_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; limit: number; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; channel: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_conversation_history"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_conversation_history"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; channel: z.ZodString; ts: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; ts: string; operation: "get_thread_replies"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { ts: string; operation: "get_thread_replies"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; channel: z.ZodString; ts: z.ZodString; text: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; channel: z.ZodString; ts: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"join_channel">; channel: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "join_channel"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "join_channel"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; channel: z.ZodString; file_path: z.ZodOptional<z.ZodString>; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; initial_comment: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "upload_file"; channel: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; content?: string | undefined; thread_ts?: string | undefined; file_path?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }, { operation: "upload_file"; channel: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; content?: string | undefined; thread_ts?: string | undefined; file_path?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"schedule_message">; channel: z.ZodString; text: z.ZodString; post_at: z.ZodNumber; thread_ts: z.ZodOptional<z.ZodString>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "schedule_message"; channel: string; unfurl_links: boolean; unfurl_media: boolean; post_at: number; credentials?: Partial<Record<CredentialType, string>> | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "schedule_message"; channel: string; post_at: number; credentials?: Partial<Record<CredentialType, string>> | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_url: z.ZodOptional<z.ZodString>; file_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; file_id?: string | undefined; file_url?: string | undefined; }, { operation: "download_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; file_id?: string | undefined; file_url?: string | undefined; }>]>; declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; ok: z.ZodBoolean; channels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; ok: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; ok: z.ZodBoolean; members: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_conversation_history"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "get_conversation_history"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_thread_replies"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "get_thread_replies"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "update_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "add_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "remove_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"join_channel">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; already_in_channel: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "join_channel"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; already_in_channel?: boolean | undefined; }, { error: string; success: boolean; operation: "join_channel"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; already_in_channel?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; created: z.ZodNumber; timestamp: z.ZodNumber; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; pretty_type: z.ZodString; user: z.ZodString; editable: z.ZodBoolean; size: z.ZodNumber; mode: z.ZodString; is_external: z.ZodBoolean; external_type: z.ZodString; is_public: z.ZodBoolean; public_url_shared: z.ZodBoolean; display_as_bot: z.ZodBoolean; username: z.ZodString; url_private: z.ZodString; url_private_download: z.ZodString; permalink: z.ZodString; permalink_public: z.ZodOptional<z.ZodString>; shares: z.ZodOptional<z.ZodObject<{ public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }>>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; has_rich_preview: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }, { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_file"; ok: boolean; file?: { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "upload_file"; ok: boolean; file?: { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"schedule_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; scheduled_message_id: z.ZodOptional<z.ZodString>; post_at: z.ZodOptional<z.ZodNumber>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "schedule_message"; ok: boolean; channel?: string | undefined; post_at?: number | undefined; scheduled_message_id?: string | undefined; }, { error: string; success: boolean; operation: "schedule_message"; ok: boolean; channel?: string | undefined; post_at?: number | undefined; scheduled_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; size: z.ZodNumber; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_info"; ok: boolean; file?: { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_info"; ok: boolean; file?: { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; ok: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "download_file"; ok: boolean; content?: string | undefined; filename?: string | undefined; mimetype?: string | undefined; size?: number | undefined; }, { error: string; success: boolean; operation: "download_file"; ok: boolean; content?: string | undefined; filename?: string | undefined; mimetype?: string | undefined; size?: number | undefined; }>]>; type SlackResult = z.output<typeof SlackResultSchema>; type SlackParams = z.input<typeof SlackParamsSchema>;; export type SlackOperationResult<T extends SlackParams['operation']> = Extract<SlackResult, { operation: T; }>; export declare class SlackBubble<T extends SlackParams = SlackParams> extends ServiceBubble<T, Extract<SlackResult, { operation: T['operation']; }>> { testCredential(): Promise<boolean>; static readonly type: "service"; static readonly service = "slack"; static readonly authType: "apikey"; static readonly bubbleName = "slack"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; channel: z.ZodString; text: z.ZodString; username: z.ZodOptional<z.ZodString>; icon_emoji: z.ZodOptional<z.ZodString>; icon_url: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; thread_ts: z.ZodOptional<z.ZodString>; reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; channel: string; reply_broadcast: boolean; unfurl_links: boolean; unfurl_media: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "send_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; reply_broadcast?: boolean | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>; exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { types: ("public_channel" | "private_channel" | "mpim" | "im")[]; operation: "list_channels"; exclude_archived: boolean; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_channels"; types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; exclude_archived?: boolean | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; channel: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_channel_info"; channel: string; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_channel_info"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; user: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { user: string; operation: "get_user_info"; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { user: string; operation: "get_user_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; limit: number; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; channel: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_conversation_history"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_conversation_history"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; channel: z.ZodString; ts: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; ts: string; operation: "get_thread_replies"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { ts: string; operation: "get_thread_replies"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; channel: z.ZodString; ts: z.ZodString; text: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; channel: z.ZodString; ts: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"join_channel">; channel: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "join_channel"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "join_channel"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; channel: z.ZodString; file_path: z.ZodOptional<z.ZodString>; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; initial_comment: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "upload_file"; channel: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; content?: string | undefined; thread_ts?: string | undefined; file_path?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }, { operation: "upload_file"; channel: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; content?: string | undefined; thread_ts?: string | undefined; file_path?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"schedule_message">; channel: z.ZodString; text: z.ZodString; post_at: z.ZodNumber; thread_ts: z.ZodOptional<z.ZodString>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "schedule_message"; channel: string; unfurl_links: boolean; unfurl_media: boolean; post_at: number; credentials?: Partial<Record<CredentialType, string>> | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "schedule_message"; channel: string; post_at: number; credentials?: Partial<Record<CredentialType, string>> | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; text?: string | undefined; image_url?: string | undefined; emoji?: boolean | undefined; alt_text?: string | undefined; verbatim?: boolean | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_url: z.ZodOptional<z.ZodString>; file_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; file_id?: string | undefined; file_url?: string | undefined; }, { operation: "download_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; file_id?: string | undefined; file_url?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "send_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; ok: z.ZodBoolean; channels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; ok: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; ok: z.ZodBoolean; members: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_conversation_history"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "get_conversation_history"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_thread_replies"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "get_thread_replies"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; messages?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }[] | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodOptional<z.ZodString>; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; filetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }, { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "update_message"; ok: boolean; message?: { type: string; text?: string | undefined; user?: string | undefined; ts?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; files?: { id: string; title?: string | undefined; name?: string | undefined; user?: string | undefined; mimetype?: string | undefined; filetype?: string | undefined; size?: number | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }, { error: string; success: boolean; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "add_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_reaction"; ok: boolean; }, { error: string; success: boolean; operation: "remove_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"join_channel">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; already_in_channel: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "join_channel"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; already_in_channel?: boolean | undefined; }, { error: string; success: boolean; operation: "join_channel"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; already_in_channel?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; created: z.ZodNumber; timestamp: z.ZodNumber; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; pretty_type: z.ZodString; user: z.ZodString; editable: z.ZodBoolean; size: z.ZodNumber; mode: z.ZodString; is_external: z.ZodBoolean; external_type: z.ZodString; is_public: z.ZodBoolean; public_url_shared: z.ZodBoolean; display_as_bot: z.ZodBoolean; username: z.ZodString; url_private: z.ZodString; url_private_download: z.ZodString; permalink: z.ZodString; permalink_public: z.ZodOptional<z.ZodString>; shares: z.ZodOptional<z.ZodObject<{ public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }>>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; has_rich_preview: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }, { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_file"; ok: boolean; file?: { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "upload_file"; ok: boolean; file?: { name: string; id: string; user: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; size: number; url_private: string; url_private_download: string; permalink: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"schedule_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; scheduled_message_id: z.ZodOptional<z.ZodString>; post_at: z.ZodOptional<z.ZodNumber>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "schedule_message"; ok: boolean; channel?: string | undefined; post_at?: number | undefined; scheduled_message_id?: string | undefined; }, { error: string; success: boolean; operation: "schedule_message"; ok: boolean; channel?: string | undefined; post_at?: number | undefined; scheduled_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; size: z.ZodNumber; user: z.ZodOptional<z.ZodString>; url_private: z.ZodOptional<z.ZodString>; url_private_download: z.ZodOptional<z.ZodString>; thumb_64: z.ZodOptional<z.ZodString>; thumb_360: z.ZodOptional<z.ZodString>; thumb_480: z.ZodOptional<z.ZodString>; original_w: z.ZodOptional<z.ZodNumber>; original_h: z.ZodOptional<z.ZodNumber>; permalink: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }, { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_info"; ok: boolean; file?: { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_info"; ok: boolean; file?: { name: string; id: string; mimetype: string; filetype: string; size: number; title?: string | undefined; user?: string | undefined; url_private?: string | undefined; url_private_download?: string | undefined; thumb_64?: string | undefined; thumb_360?: string | undefined; thumb_480?: string | undefined; original_w?: number | undefined; original_h?: number | undefined; permalink?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; ok: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; mimetype: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "download_file"; ok: boolean; content?: string | undefined; filename?: string | undefined; mimetype?: string | undefined; size?: number | undefined; }, { error: string; success: boolean; operation: "download_file"; ok: boolean; content?: string | undefined; filename?: string | undefined; mimetype?: string | undefined; size?: number | undefined; }>]>; static readonly shortDescription = "Slack integration for messaging and workspace management"; static readonly longDescription = "\nComprehensive Slack integration for messaging and workspace management.\n "; static readonly alias = "slack"; constructor(params?: T, context?: BubbleContext, instanceId?: string); protected performAction(context?: BubbleContext): Promise<Extract<SlackResult, { operation: T['operation']; }>>; private resolveChannelId; private static readonly MAX_BLOCKS_PER_MESSAGE; private sendMessage; private sendMessageWithBlockChunks; private listChannels; private getChannelInfo; private getUserInfo; private listUsers; private getConversationHistory; private getThreadReplies; private updateMessage; private deleteMessage; private addReaction; private removeReaction; private uploadFile; private joinChannel; private scheduleMessage; private getFileInfo; private downloadFile; private openDmConversation; protected chooseCredential(): string | undefined; private makeSlackApiCall; }
369
369
  export {}; export interface SlackTextObject { type: 'plain_text' | 'mrkdwn'; text: string; emoji?: boolean; verbatim?: boolean; }
370
370
  export interface SlackSectionBlock { type: 'section'; text: SlackTextObject; }
371
371
  export interface SlackDividerBlock { type: 'divider'; }
@@ -375,7 +375,8 @@ export interface SlackTableCellRawText { type: 'raw_text'; text: string; }
375
375
  export interface SlackTableCellRichText { type: 'rich_text'; elements: unknown[]; }
376
376
  export type SlackTableCell = SlackTableCellRawText | SlackTableCellRichText; export interface SlackTableColumnSetting { align?: 'left' | 'center' | 'right'; is_wrapped?: boolean; }
377
377
  export interface SlackTableBlock { type: 'table'; rows: SlackTableCell[][]; column_settings?: SlackTableColumnSetting[]; block_id?: string; }
378
- export type SlackBlock = SlackSectionBlock | SlackDividerBlock | SlackHeaderBlock | SlackContextBlock | SlackTableBlock; export interface MarkdownToBlocksOptions { useHeaderBlocks?: boolean; addDividersAfterHeaders?: boolean; preserveLineBreaks?: boolean; }
378
+ export interface SlackImageBlock { type: 'image'; image_url: string; alt_text: string; title?: SlackTextObject; block_id?: string; }
379
+ export type SlackBlock = SlackSectionBlock | SlackDividerBlock | SlackHeaderBlock | SlackContextBlock | SlackTableBlock | SlackImageBlock; export interface MarkdownToBlocksOptions { useHeaderBlocks?: boolean; addDividersAfterHeaders?: boolean; preserveLineBreaks?: boolean; }
379
380
  export declare function markdownToMrkdwn(markdown: string): string; export declare function markdownToBlocks(markdown: string, options?: MarkdownToBlocksOptions): SlackBlock[]; export declare function createTextBlock(text: string, useMrkdwn?: boolean): SlackSectionBlock; export declare function createDividerBlock(): SlackDividerBlock; export declare function createHeaderBlock(text: string): SlackHeaderBlock; export declare function createContextBlock(texts: string[]): SlackContextBlock; export declare const SLACK_TABLE_MAX_ROWS = 100; export declare const SLACK_TABLE_MAX_COLUMNS = 20; export interface CreateTableBlockResult { tableBlock: SlackTableBlock; overflowCsv?: string; wasTruncated: boolean; originalRowCount: number; }
380
381
  export declare function createTableBlock(headers: string[], rows: string[][], columnSettings?: SlackTableColumnSetting[]): CreateTableBlockResult; export declare function splitLongText(text: string, maxLength?: number): string[]; export declare function splitLongBlocks(blocks: SlackBlock[]): SlackBlock[]; export declare function containsMarkdown(text: string): boolean; 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>; }
381
382
  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; }