@bubblelab/bubble-core 0.1.219 → 0.1.221

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.
Files changed (30) hide show
  1. package/dist/bubble-bundle.d.ts +66 -27
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +22 -46
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts +1 -0
  6. package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts.map +1 -1
  7. package/dist/bubbles/service-bubble/slack/slack-table-blocks.js +1 -0
  8. package/dist/bubbles/service-bubble/slack/slack-table-blocks.js.map +1 -1
  9. package/dist/bubbles/service-bubble/slack/slack.d.ts.map +1 -1
  10. package/dist/bubbles/service-bubble/slack/slack.js +23 -22
  11. package/dist/bubbles/service-bubble/slack/slack.js.map +1 -1
  12. package/dist/bubbles/service-bubble/zendesk/index.d.ts +3 -0
  13. package/dist/bubbles/service-bubble/zendesk/index.d.ts.map +1 -0
  14. package/dist/bubbles/service-bubble/zendesk/index.js +3 -0
  15. package/dist/bubbles/service-bubble/zendesk/index.js.map +1 -0
  16. package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts +1065 -0
  17. package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts.map +1 -0
  18. package/dist/bubbles/service-bubble/zendesk/zendesk.js +531 -0
  19. package/dist/bubbles/service-bubble/zendesk/zendesk.js.map +1 -0
  20. package/dist/bubbles/service-bubble/zendesk/zendesk.schema.d.ts +1008 -0
  21. package/dist/bubbles/service-bubble/zendesk/zendesk.schema.d.ts.map +1 -0
  22. package/dist/bubbles/service-bubble/zendesk/zendesk.schema.js +473 -0
  23. package/dist/bubbles/service-bubble/zendesk/zendesk.schema.js.map +1 -0
  24. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +4 -4
  25. package/dist/bubbles.json +1523 -2
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +1 -0
  29. package/dist/index.js.map +1 -1
  30. package/package.json +2 -2
@@ -53,18 +53,18 @@ 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 notionOAuthMetadataSchema: z.ZodObject<{ workspaceId: z.ZodString; workspaceName: z.ZodOptional<z.ZodString>; workspaceIcon: z.ZodOptional<z.ZodString>; botId: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; }, { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; }>; export type NotionOAuthMetadata = z.infer<typeof notionOAuthMetadataSchema>; export declare const linearOAuthMetadataSchema: z.ZodObject<{ organizationName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { organizationName?: string | undefined; displayName?: string | undefined; }, { organizationName?: string | undefined; displayName?: string | undefined; }>; export type LinearOAuthMetadata = z.infer<typeof linearOAuthMetadataSchema>; export declare const xeroOAuthMetadataSchema: z.ZodObject<{ tenantId: z.ZodString; tenantName: z.ZodOptional<z.ZodString>; tenantType: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { tenantId: string; displayName?: string | undefined; tenantName?: string | undefined; tenantType?: string | undefined; }, { tenantId: string; displayName?: string | undefined; tenantName?: string | undefined; tenantType?: string | undefined; }>; export type XeroOAuthMetadata = z.infer<typeof xeroOAuthMetadataSchema>; export declare const rampOAuthMetadataSchema: z.ZodObject<{ businessName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; businessName?: string | undefined; }, { displayName?: string | undefined; businessName?: string | undefined; }>; export type RampOAuthMetadata = z.infer<typeof rampOAuthMetadataSchema>; 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 declare const browserSessionProxyConfigSchema: z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>; export type BrowserSessionProxyConfig = z.infer<typeof browserSessionProxyConfigSchema>; export declare const browserSessionMetadataSchema: z.ZodObject<{ proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionMetadata = z.infer<typeof browserSessionMetadataSchema>; export type CredentialMetadata = DatabaseMetadata | JiraOAuthMetadata | SlackOAuthMetadata | AirtableOAuthMetadata | GoogleOAuthMetadata | NotionOAuthMetadata | ConfluenceOAuthMetadata | StripeOAuthMetadata | LinearOAuthMetadata | BrowserSessionMetadata | 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
57
- export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; export interface CredentialRequirements { required: Record<string, CredentialType[]>; optional: Record<string, CredentialType[]>; }
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 notionOAuthMetadataSchema: z.ZodObject<{ workspaceId: z.ZodString; workspaceName: z.ZodOptional<z.ZodString>; workspaceIcon: z.ZodOptional<z.ZodString>; botId: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; }, { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; }>; export type NotionOAuthMetadata = z.infer<typeof notionOAuthMetadataSchema>; export declare const linearOAuthMetadataSchema: z.ZodObject<{ organizationName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { organizationName?: string | undefined; displayName?: string | undefined; }, { organizationName?: string | undefined; displayName?: string | undefined; }>; export type LinearOAuthMetadata = z.infer<typeof linearOAuthMetadataSchema>; export declare const xeroOAuthMetadataSchema: z.ZodObject<{ tenantId: z.ZodString; tenantName: z.ZodOptional<z.ZodString>; tenantType: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { tenantId: string; displayName?: string | undefined; tenantName?: string | undefined; tenantType?: string | undefined; }, { tenantId: string; displayName?: string | undefined; tenantName?: string | undefined; tenantType?: string | undefined; }>; export type XeroOAuthMetadata = z.infer<typeof xeroOAuthMetadataSchema>; export declare const rampOAuthMetadataSchema: z.ZodObject<{ businessName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; businessName?: string | undefined; }, { displayName?: string | undefined; businessName?: string | undefined; }>; export type RampOAuthMetadata = z.infer<typeof rampOAuthMetadataSchema>; export declare const zendeskOAuthMetadataSchema: z.ZodObject<{ subdomain: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { subdomain: string; displayName?: string | undefined; }, { subdomain: string; displayName?: string | undefined; }>; export type ZendeskOAuthMetadata = z.infer<typeof zendeskOAuthMetadataSchema>; 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 declare const browserSessionProxyConfigSchema: z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>; export type BrowserSessionProxyConfig = z.infer<typeof browserSessionProxyConfigSchema>; export declare const browserSessionMetadataSchema: z.ZodObject<{ proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionMetadata = z.infer<typeof browserSessionMetadataSchema>; export type CredentialMetadata = DatabaseMetadata | JiraOAuthMetadata | SlackOAuthMetadata | AirtableOAuthMetadata | GoogleOAuthMetadata | NotionOAuthMetadata | ConfluenceOAuthMetadata | StripeOAuthMetadata | LinearOAuthMetadata | BrowserSessionMetadata | 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
57
+ export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; export interface CredentialRequirements { required: Record<string, CredentialType[]>; optional: Record<string, CredentialType[]>; }
58
58
  export interface CredentialField { key: string; label: string; placeholder: string; type?: 'text' | 'password'; required?: boolean; }
59
59
  export interface CredentialConfig { label: string; description: string; placeholder: string; namePlaceholder: string; credentialConfigurations: Record<string, unknown>; fields?: CredentialField[]; }
60
- export declare function encodeCredentialPayload(jsonPayload: string): string; export declare function decodeCredentialPayload<T = Record<string, unknown>>(value: string): T; 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' | 'linear' | 'attio' | 'hubspot' | 'xero' | 'ramp'; export interface ScopeDescription { scope: string; description: string; defaultEnabled: boolean; }
60
+ export declare function encodeCredentialPayload(jsonPayload: string): string; export declare function decodeCredentialPayload<T = Record<string, unknown>>(value: string): T; 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' | 'linear' | 'attio' | 'hubspot' | 'xero' | 'ramp' | 'zendesk'; export interface ScopeDescription { scope: string; description: string; defaultEnabled: boolean; }
61
61
  export interface OAuthCredentialConfig { displayName: string; defaultScopes: string[]; adminScopes?: string[]; description: string; scopeDescriptions?: ScopeDescription[]; }
62
62
  export interface OAuthProviderConfig { name: OAuthProvider; displayName: string; credentialTypes: Partial<Record<CredentialType, OAuthCredentialConfig>>; authorizationParams?: Record<string, string>; }
63
63
  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; }
64
64
  export interface BrowserSessionProviderConfig { name: BrowserSessionProvider; displayName: string; credentialTypes: Partial<Record<CredentialType, BrowserSessionCredentialConfig>>; }
65
65
  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 BROWSERBASE_OPTIONAL_CREDENTIALS: CredentialType[]; export declare const BUBBLE_CREDENTIAL_OPTIONS: Record<BubbleName, BubbleCredentialOption>; export interface CredentialSiblingEntry { oauthType: CredentialType; apiType: CredentialType; canonicalType: CredentialType; }
66
- export declare const CREDENTIAL_TYPE_SIBLINGS: Partial<Record<CredentialType, CredentialSiblingEntry>>; export declare function getSiblingCredentialTypes(credType: CredentialType): CredentialType[]; export declare function getCanonicalCredentialType(credType: CredentialType): CredentialType; export declare const createCredentialSchema: z.ZodObject<{ credentialType: z.ZodNativeEnum<typeof CredentialType>; value: z.ZodString; name: z.ZodOptional<z.ZodString>; skipValidation: z.ZodOptional<z.ZodBoolean>; credentialConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; metadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; 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<{ workspaceId: z.ZodString; workspaceName: z.ZodOptional<z.ZodString>; workspaceIcon: z.ZodOptional<z.ZodString>; botId: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; }, { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: 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<{ organizationName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { organizationName?: string | undefined; displayName?: string | undefined; }, { organizationName?: string | undefined; displayName?: string | undefined; }>, z.ZodObject<{ proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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; } | { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; } | { organizationName?: string | undefined; displayName?: string | undefined; } | { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; } | { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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; } | { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; } | { organizationName?: string | undefined; displayName?: string | undefined; } | { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; } | { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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>; proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { credentialType: CredentialType; name?: string | undefined; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { credentialType: CredentialType; name?: string | undefined; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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>; proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { sessionId: string; state: string; name?: string | undefined; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { sessionId: string; state: string; name?: string | undefined; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
67
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
66
+ export declare const CREDENTIAL_TYPE_SIBLINGS: Partial<Record<CredentialType, CredentialSiblingEntry>>; export declare function getSiblingCredentialTypes(credType: CredentialType): CredentialType[]; export declare function getCanonicalCredentialType(credType: CredentialType): CredentialType; export declare const createCredentialSchema: z.ZodObject<{ credentialType: z.ZodNativeEnum<typeof CredentialType>; value: z.ZodString; name: z.ZodOptional<z.ZodString>; skipValidation: z.ZodOptional<z.ZodBoolean>; credentialConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; metadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; 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<{ workspaceId: z.ZodString; workspaceName: z.ZodOptional<z.ZodString>; workspaceIcon: z.ZodOptional<z.ZodString>; botId: z.ZodString; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; }, { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: 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<{ organizationName: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { organizationName?: string | undefined; displayName?: string | undefined; }, { organizationName?: string | undefined; displayName?: string | undefined; }>, z.ZodObject<{ proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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; } | { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; } | { organizationName?: string | undefined; displayName?: string | undefined; } | { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; } | { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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; } | { workspaceId: string; botId: string; displayName?: string | undefined; workspaceName?: string | undefined; workspaceIcon?: string | undefined; } | { organizationName?: string | undefined; displayName?: string | undefined; } | { isDefault?: boolean | undefined; lastUsedAt?: string | undefined; } | { cloudId: string; siteUrl: string; siteName?: string | undefined; displayName?: string | undefined; } | { proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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>; proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { credentialType: CredentialType; name?: string | undefined; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { credentialType: CredentialType; name?: string | undefined; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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>; proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { sessionId: string; state: string; name?: string | undefined; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { sessionId: string; state: string; name?: string | undefined; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
67
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
68
68
  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; }
69
69
  export interface DependencyGraphNode { name: BubbleName; variableName?: string; nodeType: BubbleNodeType; uniqueId?: string; variableId?: number; dependencies: DependencyGraphNode[]; functionCallChildren?: FunctionCallWorkflowNode[]; }
70
70
  export interface BubbleDependencySpec { name: BubbleName; tools?: BubbleName[]; }
@@ -78,15 +78,15 @@ export interface FunctionCallWorkflowNode { type: 'function_call'; location: { s
78
78
  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[]; }
79
79
  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[]; }; }
80
80
  export type WorkflowNode = BubbleWorkflowNode | ControlFlowWorkflowNode | TryCatchWorkflowNode | CodeBlockWorkflowNode | VariableDeclarationBlockNode | ReturnWorkflowNode | FunctionCallWorkflowNode | ParallelExecutionWorkflowNode | TransformationFunctionWorkflowNode; export interface ParsedWorkflow { root: WorkflowNode[]; bubbles: Record<number, ParsedBubbleWithInfo>; }
81
- 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
82
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
83
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; 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[]; estimatedCapabilities?: string[] | undefined; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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[]; estimatedCapabilities?: string[] | undefined; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>>; 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[]; estimatedCapabilities?: string[] | undefined; } | 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[]; estimatedCapabilities?: string[] | undefined; } | 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
+ 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
82
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
83
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; 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[]; estimatedCapabilities?: string[] | undefined; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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[]; estimatedCapabilities?: string[] | undefined; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>>; 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[]; estimatedCapabilities?: string[] | undefined; } | 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[]; estimatedCapabilities?: string[] | undefined; } | 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; }
84
84
  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; }
85
85
  export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
86
86
  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>; }
87
- 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
88
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
89
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
87
+ export declare 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
88
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; export declare const oauthInitiateRequestSchema: z.ZodObject<{ credentialType: z.ZodNativeEnum<typeof CredentialType>; name: z.ZodOptional<z.ZodString>; scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subdomain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { credentialType: CredentialType; name?: string | undefined; subdomain?: string | undefined; scopes?: string[] | undefined; }, { credentialType: CredentialType; name?: string | undefined; subdomain?: 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
89
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
90
90
  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; }
91
91
  export interface DependencyGraphNode { name: BubbleName; variableName?: string; nodeType: BubbleNodeType; uniqueId?: string; variableId?: number; dependencies: DependencyGraphNode[]; functionCallChildren?: FunctionCallWorkflowNode[]; }
92
92
  export interface BubbleDependencySpec { name: BubbleName; tools?: BubbleName[]; }
@@ -100,11 +100,11 @@ export interface FunctionCallWorkflowNode { type: 'function_call'; location: { s
100
100
  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[]; }
101
101
  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[]; }; }
102
102
  export type WorkflowNode = BubbleWorkflowNode | ControlFlowWorkflowNode | TryCatchWorkflowNode | CodeBlockWorkflowNode | VariableDeclarationBlockNode | ReturnWorkflowNode | FunctionCallWorkflowNode | ParallelExecutionWorkflowNode | TransformationFunctionWorkflowNode; export interface ParsedWorkflow { root: WorkflowNode[]; bubbles: Record<number, ParsedBubbleWithInfo>; }
103
- 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
104
- export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
105
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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">>>; optionalCredentials: 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; optionalCredentials?: 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; optionalCredentials?: 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">>; optionalCredentials: z.ZodOptional<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; optionalCredentials?: Record<string, CredentialType[]> | 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; optionalCredentials?: Record<string, CredentialType[]> | 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
106
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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">>>; optionalCredentials: 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; optionalCredentials?: 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; optionalCredentials?: 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
107
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
103
+ 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
104
+ export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
105
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; 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">>>; optionalCredentials: 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; optionalCredentials?: 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; optionalCredentials?: 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">>; optionalCredentials: z.ZodOptional<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; optionalCredentials?: Record<string, CredentialType[]> | 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; optionalCredentials?: Record<string, CredentialType[]> | 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
106
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; 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">>>; optionalCredentials: 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; optionalCredentials?: 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; optionalCredentials?: 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
107
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
108
108
  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; }
109
109
  export interface DependencyGraphNode { name: BubbleName; variableName?: string; nodeType: BubbleNodeType; uniqueId?: string; variableId?: number; dependencies: DependencyGraphNode[]; functionCallChildren?: FunctionCallWorkflowNode[]; }
110
110
  export interface BubbleDependencySpec { name: BubbleName; tools?: BubbleName[]; }
@@ -118,11 +118,11 @@ export interface FunctionCallWorkflowNode { type: 'function_call'; location: { s
118
118
  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[]; }
119
119
  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[]; }; }
120
120
  export type WorkflowNode = BubbleWorkflowNode | ControlFlowWorkflowNode | TryCatchWorkflowNode | CodeBlockWorkflowNode | VariableDeclarationBlockNode | ReturnWorkflowNode | FunctionCallWorkflowNode | ParallelExecutionWorkflowNode | TransformationFunctionWorkflowNode; export interface ParsedWorkflow { root: WorkflowNode[]; bubbles: Record<number, ParsedBubbleWithInfo>; }
121
- 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
122
- export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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; }
123
- 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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
124
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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 type PearlRequest = z.infer<typeof PearlRequestSchema>; export type PearlResponse = z.infer<typeof PearlResponseSchema>; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
125
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; 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[]; estimatedCapabilities?: string[] | undefined; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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[]; estimatedCapabilities?: string[] | undefined; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>>; 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[]; estimatedCapabilities?: string[] | undefined; } | 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[]; estimatedCapabilities?: string[] | undefined; } | 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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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 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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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 interface CronExpression { minute: string; hour: string; dayOfMonth: string; month: string; dayOfWeek: string; original: string; }
121
+ 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
122
+ export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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; }
123
+ 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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
124
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; 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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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 type PearlRequest = z.infer<typeof PearlRequestSchema>; export type PearlResponse = z.infer<typeof PearlResponseSchema>; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
125
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>; 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; }>, 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; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; }>, 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }; } | { 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; credentialRequirements: z.ZodObject<{ required: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; optional: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; }, "strip", z.ZodTypeAny, { required: CredentialType[]; optional: CredentialType[]; }, { required: CredentialType[]; optional: CredentialType[]; }>; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }, { description: string; flowId: string; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; }>>; 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[]; estimatedCapabilities?: string[] | undefined; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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[]; estimatedCapabilities?: string[] | undefined; } | 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; flowCode: string; credentialRequirements: { required: CredentialType[]; optional: CredentialType[]; }; } | 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">; estimatedCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; estimatedCapabilities?: string[] | undefined; }>>; 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[]; estimatedCapabilities?: string[] | undefined; } | 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[]; estimatedCapabilities?: string[] | undefined; } | 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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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 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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "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-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "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", "google/gemini-3.1-pro-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "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-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "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 interface CronExpression { minute: string; hour: string; dayOfMonth: string; month: string; dayOfWeek: string; original: string; }
126
126
  export interface CronScheduleInfo { expression: CronExpression; description: string; nextRun?: Date; isValid: boolean; error?: string; }
127
127
  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; 'slack/reaction_added': SlackReactionAddedEvent; 'slack/approval_resumed': SlackApprovalResumedEvent; 'airtable/record_created': AirtableRecordCreatedEvent; 'airtable/record_updated': AirtableRecordUpdatedEvent; 'airtable/record_deleted': AirtableRecordDeletedEvent; 'schedule/cron': CronEvent; 'webhook/http': WebhookEvent; }
128
128
  export declare const BUBBLE_TRIGGER_EVENTS: { readonly 'slack/bot_mentioned': true; readonly 'slack/message_received': true; readonly 'slack/reaction_added': true; readonly 'slack/approval_resumed': true; readonly 'airtable/record_created': true; readonly 'airtable/record_updated': true; readonly 'airtable/record_deleted': true; readonly 'schedule/cron': true; readonly 'webhook/http': true; }; export declare function isValidBubbleTriggerEvent(eventType: string): eventType is keyof BubbleTriggerEventRegistry; export interface BubbleTriggerEvent { type: keyof BubbleTriggerEventRegistry; timestamp: string; executionId: string; path: string; [key: string]: unknown; }
@@ -150,9 +150,9 @@ export declare const TRIGGER_EVENT_CONFIGS: Record<keyof BubbleTriggerEventRegis
150
150
  export interface AirtableTable { id: string; name: string; description?: string; }
151
151
  export interface AirtableTableFull extends AirtableTable { primaryFieldId: string; fields: Array<{ id: string; name: string; type: string; description?: string; }>; }
152
152
  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; }
153
- export declare function getAirtableTriggerConfig(defaultInputs: Record<string, unknown>): AirtableTriggerConfig; export type AirtableEventType = Extract<keyof BubbleTriggerEventRegistry, `airtable/${string}`>; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
154
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
155
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
153
+ export declare function getAirtableTriggerConfig(defaultInputs: Record<string, unknown>): AirtableTriggerConfig; export type AirtableEventType = Extract<keyof BubbleTriggerEventRegistry, `airtable/${string}`>; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
154
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
155
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
156
156
  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; }
157
157
  export interface DependencyGraphNode { name: BubbleName; variableName?: string; nodeType: BubbleNodeType; uniqueId?: string; variableId?: number; dependencies: DependencyGraphNode[]; functionCallChildren?: FunctionCallWorkflowNode[]; }
158
158
  export interface BubbleDependencySpec { name: BubbleName; tools?: BubbleName[]; }
@@ -167,8 +167,8 @@ export interface ParallelExecutionWorkflowNode { type: 'parallel_execution'; loc
167
167
  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[]; }; }
168
168
  export type WorkflowNode = BubbleWorkflowNode | ControlFlowWorkflowNode | TryCatchWorkflowNode | CodeBlockWorkflowNode | VariableDeclarationBlockNode | ReturnWorkflowNode | FunctionCallWorkflowNode | ParallelExecutionWorkflowNode | TransformationFunctionWorkflowNode; export interface ParsedWorkflow { root: WorkflowNode[]; bubbles: Record<number, ParsedBubbleWithInfo>; }
169
169
  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; }
170
- 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED" }
171
- 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp'; export type CapabilityId = 'knowledge-base' | 'google-doc-knowledge-base' | 'data-analyst' | 'chart-maker' | 'gmail-assistant' | 'google-calendar' | 'jira-assistant' | 'notion-assistant' | 'stripe-assistant' | 'airtable-assistant' | 'github-assistant' | 'ashby-assistant' | 'google-sheets-assistant' | 'slack-assistant' | 'google-docs-assistant' | 'google-drive-assistant' | 'confluence-assistant' | 'telegram-assistant' | 'resend-assistant' | 'eleven-labs-assistant' | 'firecrawl-assistant' | 'apify-assistant' | 'browserbase-assistant' | 'crustdata-assistant' | 'fullenrich-assistant' | 'followupboss-assistant' | 'posthog-assistant' | 'linear-assistant' | 'attio-assistant' | 'hubspot-assistant' | 'flow-assistant' | 'research-assistant' | 'sortly-assistant' | 'assembled-assistant' | 'xero-assistant' | 'ramp-assistant'; export declare const CapabilityProviderMetadataSchema: z.ZodObject<{ value: z.ZodString; label: z.ZodString; credentialType: z.ZodNativeEnum<typeof CredentialType>; icon: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label: string; credentialType: CredentialType; icon: string; }, { value: string; label: string; credentialType: CredentialType; icon: string; }>; export type CapabilityProviderMetadata = z.infer<typeof CapabilityProviderMetadataSchema>; 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">>; requiresApproval: z.ZodOptional<z.ZodBoolean>; masterTool: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | undefined; }, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | 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", "none"]>>; maxTokens: z.ZodOptional<z.ZodNumber>; maxIterations: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; }, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; }>; export type CapabilityModelConfigOverride = z.infer<typeof CapabilityModelConfigOverrideSchema>; export declare const CapabilityMetadataSchema: z.ZodObject<{ id: z.ZodType<CapabilityId>; 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">>; requiresApproval: z.ZodOptional<z.ZodBoolean>; masterTool: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | undefined; }, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | 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", "none"]>>; maxTokens: z.ZodOptional<z.ZodNumber>; maxIterations: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; }, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; }>>; delegationHint: z.ZodOptional<z.ZodString>; hidden: z.ZodOptional<z.ZodBoolean>; providers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; label: z.ZodString; credentialType: z.ZodNativeEnum<typeof CredentialType>; icon: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label: string; credentialType: CredentialType; icon: string; }, { value: string; label: string; credentialType: CredentialType; icon: string; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; description: string; tools: { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | undefined; }[]; id: CapabilityId; 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; }[]; optionalCredentials?: CredentialType[] | undefined; icon?: string | undefined; category?: string | undefined; systemPromptAddition?: string | undefined; modelConfigOverride?: { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; } | undefined; delegationHint?: string | undefined; hidden?: boolean | undefined; providers?: { value: string; label: string; credentialType: CredentialType; icon: string; }[] | undefined; }, { name: string; description: string; tools: { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | undefined; }[]; id: CapabilityId; requiredCredentials: CredentialType[]; inputs: { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; default?: string | number | boolean | string[] | undefined; required?: boolean | undefined; label?: string | undefined; }[]; optionalCredentials?: CredentialType[] | undefined; icon?: string | undefined; category?: string | undefined; version?: string | undefined; systemPromptAddition?: string | undefined; modelConfigOverride?: { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; } | undefined; delegationHint?: string | undefined; hidden?: boolean | undefined; providers?: { value: string; label: string; credentialType: CredentialType; icon: string; }[] | undefined; }>; export type CapabilityMetadata = z.infer<typeof CapabilityMetadataSchema>; export interface PendingApproval { id: string; action: string; targetFlowId: number; expiresAt: number; targetFlowName?: string; aiReasoning?: string; toolInputSummary?: string; lastAIText?: string; }
170
+ 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", S3_CRED = "S3_CRED", 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", NOTION_API = "NOTION_API", 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", BROWSERBASE_CRED = "BROWSERBASE_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", POSTHOG_API_KEY = "POSTHOG_API_KEY", SENDSAFELY_CRED = "SENDSAFELY_CRED", LINEAR_CRED = "LINEAR_CRED", ATTIO_CRED = "ATTIO_CRED", HUBSPOT_CRED = "HUBSPOT_CRED", SORTLY_API_KEY = "SORTLY_API_KEY", ASSEMBLED_CRED = "ASSEMBLED_CRED", XERO_CRED = "XERO_CRED", RAMP_CRED = "RAMP_CRED", ZENDESK_CRED = "ZENDESK_CRED" }
171
+ 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' | 'list-capabilities-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' | 's3-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' | 'linkedin-sent-invitations-tool' | 'linkedin-received-invitations-tool' | 'linkedin-accept-invitations-tool' | 'stripe' | 'confluence' | 'sendsafely' | 'yc-scraper-tool' | 'posthog' | 'linear' | 'attio' | 'hubspot' | 'assembled' | 'xero' | 'ramp' | 'zendesk'; export type CapabilityId = 'knowledge-base' | 'google-doc-knowledge-base' | 'data-analyst' | 'chart-maker' | 'gmail-assistant' | 'google-calendar' | 'jira-assistant' | 'notion-assistant' | 'stripe-assistant' | 'airtable-assistant' | 'github-assistant' | 'ashby-assistant' | 'google-sheets-assistant' | 'slack-assistant' | 'google-docs-assistant' | 'google-drive-assistant' | 'confluence-assistant' | 'telegram-assistant' | 'resend-assistant' | 'eleven-labs-assistant' | 'firecrawl-assistant' | 'apify-assistant' | 'browserbase-assistant' | 'crustdata-assistant' | 'fullenrich-assistant' | 'followupboss-assistant' | 'posthog-assistant' | 'linear-assistant' | 'attio-assistant' | 'hubspot-assistant' | 'flow-assistant' | 'research-assistant' | 'sortly-assistant' | 'assembled-assistant' | 'xero-assistant' | 'ramp-assistant' | 'zendesk-assistant'; export declare const CapabilityProviderMetadataSchema: z.ZodObject<{ value: z.ZodString; label: z.ZodString; credentialType: z.ZodNativeEnum<typeof CredentialType>; icon: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label: string; credentialType: CredentialType; icon: string; }, { value: string; label: string; credentialType: CredentialType; icon: string; }>; export type CapabilityProviderMetadata = z.infer<typeof CapabilityProviderMetadataSchema>; 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">>; requiresApproval: z.ZodOptional<z.ZodBoolean>; masterTool: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | undefined; }, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | 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", "none"]>>; maxTokens: z.ZodOptional<z.ZodNumber>; maxIterations: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; }, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; }>; export type CapabilityModelConfigOverride = z.infer<typeof CapabilityModelConfigOverrideSchema>; export declare const CapabilityMetadataSchema: z.ZodObject<{ id: z.ZodType<CapabilityId>; 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">>; requiresApproval: z.ZodOptional<z.ZodBoolean>; masterTool: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | undefined; }, { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | 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", "none"]>>; maxTokens: z.ZodOptional<z.ZodNumber>; maxIterations: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; }, { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; }>>; delegationHint: z.ZodOptional<z.ZodString>; hidden: z.ZodOptional<z.ZodBoolean>; providers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; label: z.ZodString; credentialType: z.ZodNativeEnum<typeof CredentialType>; icon: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label: string; credentialType: CredentialType; icon: string; }, { value: string; label: string; credentialType: CredentialType; icon: string; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; description: string; tools: { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | undefined; }[]; id: CapabilityId; 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; }[]; optionalCredentials?: CredentialType[] | undefined; icon?: string | undefined; category?: string | undefined; systemPromptAddition?: string | undefined; modelConfigOverride?: { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; } | undefined; delegationHint?: string | undefined; hidden?: boolean | undefined; providers?: { value: string; label: string; credentialType: CredentialType; icon: string; }[] | undefined; }, { name: string; description: string; tools: { name: string; description: string; parameterSchema: Record<string, unknown>; internalBubbles?: BubbleName[] | undefined; requiresApproval?: boolean | undefined; masterTool?: boolean | undefined; }[]; id: CapabilityId; requiredCredentials: CredentialType[]; inputs: { name: string; type: "string" | "number" | "boolean" | "string[]"; description: string; default?: string | number | boolean | string[] | undefined; required?: boolean | undefined; label?: string | undefined; }[]; optionalCredentials?: CredentialType[] | undefined; icon?: string | undefined; category?: string | undefined; version?: string | undefined; systemPromptAddition?: string | undefined; modelConfigOverride?: { model?: string | undefined; reasoningEffort?: "low" | "medium" | "high" | "none" | undefined; maxTokens?: number | undefined; maxIterations?: number | undefined; } | undefined; delegationHint?: string | undefined; hidden?: boolean | undefined; providers?: { value: string; label: string; credentialType: CredentialType; icon: string; }[] | undefined; }>; export type CapabilityMetadata = z.infer<typeof CapabilityMetadataSchema>; export interface PendingApproval { id: string; action: string; targetFlowId: number; expiresAt: number; targetFlowName?: string; aiReasoning?: string; toolInputSummary?: string; lastAIText?: string; }
172
172
  export interface MemoryToolDef { name: string; description: string; schema: ZodTypeAny; func: (input: Record<string, unknown>) => Promise<string>; }
173
173
  export interface MasterAgentSnapshot { messages: Array<Record<string, unknown>>; capabilityId: string; capabilityTask: string; }
174
174
  export interface ResumeAgentStateV2 { __version: 2; masterState: Array<Record<string, unknown>>; capabilityId: string; capabilityTask: string; subagentState: Array<Record<string, unknown>>; }
@@ -1157,6 +1157,45 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1157
1157
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1158
1158
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1159
1159
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
1160
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export
1161
+ type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>;;;;; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare class ZendeskBubble<T extends ZendeskParamsInput = ZendeskParamsInput> extends ServiceBubble<T, Extract<ZendeskResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "zendesk"; static readonly authType: "oauth"; static readonly bubbleName = "zendesk"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; ticket_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; subject: import("zod").ZodString; body: import("zod").ZodString; requester_email: import("zod").ZodOptional<import("zod").ZodString>; requester_name: import("zod").ZodOptional<import("zod").ZodString>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; type: import("zod").ZodOptional<import("zod").ZodEnum<["problem", "incident", "question", "task"]>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; ticket_id: import("zod").ZodString; comment: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; assignee_id?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; ticket_id: import("zod").ZodString; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; query: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodEnum<["end-user", "agent", "admin"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; query: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; organization_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; query: import("zod").ZodString; sort_by: import("zod").ZodOptional<import("zod").ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; query: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodString>; category_id: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; article_id: import("zod").ZodString; locale: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; success: import("zod").ZodBoolean; tickets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; success: import("zod").ZodBoolean; comments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; success: import("zod").ZodBoolean; users: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; success: import("zod").ZodBoolean; user: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; success: import("zod").ZodBoolean; organizations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; success: import("zod").ZodBoolean; organization: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; success: import("zod").ZodBoolean; articles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; success: import("zod").ZodBoolean; article: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>]>; static readonly shortDescription = "Zendesk integration for tickets, comments, users, and help center"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "support"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private parseCredentials; protected chooseCredential(): string | undefined; private makeZendeskApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<ZendeskResult, { operation: T['operation']; }>>; private listTickets; private getTicket; private createTicket; private updateTicket; private listTicketComments; private listUsers; private getUser; private listOrganizations; private getOrganization; private search; private listArticles; private getArticle; private mapTicket; private mapComment; private mapUser; private mapOrganization; private mapArticle; }
1162
+ export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; 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>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1163
+ 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; }
1164
+ export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1165
+ export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
1166
+ 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; }); }
1167
+ export declare enum LogLevel { TRACE = 0, DEBUG = 1, INFO = 2, WARN = 3, ERROR = 4, FATAL = 5 }
1168
+ export interface LogEntry { id: string; timestamp: number; level: LogLevel; message: string; metadata: LogMetadata; duration?: number; }
1169
+ export interface LogServiceUsage { usage: number; service: CredentialType; unit: string; subService?: string; }
1170
+ export interface LogMetadata { flowName: string; variableId?: number; lineNumber?: number; functionName?: string; bubbleName?: string; variableName?: string; operationType?: 'bubble_instantiation' | 'bubble_execution' | 'variable_assignment' | 'condition' | 'loop_iteration' | 'script' | 'bubble_execution_complete' | 'function_call'; memoryUsage?: NodeJS.MemoryUsage; stackTrace?: string; additionalData?: Record<string, unknown>; serviceUsage?: LogServiceUsage; }
1171
+ export interface LoggerConfig { minLevel: LogLevel; enableTiming: boolean; enableMemoryTracking: boolean; enableStackTraces: boolean; maxLogEntries: number; bufferSize: number; flushInterval?: number; pricingTable: Record<string, { unit: string; unitCost: number; }>; userCredentialMapping?: Map<number, Set<CredentialType>>; }
1172
+ export declare class BubbleLogger { private flowName; private config; private logs; private startTime; private lastLogTime; private executionId; private lineTimings; private lineLogCounts; private peakMemoryUsage?; private buffer; private flushTimer?; cumulativeServiceUsageByService: Map<string, Map<number, { usage: number; service: CredentialType; subService?: string; unit: string; }>>; private bubbleStartTimes; private functionCallStartTimes; private userCredentialMapping?; constructor(flowName: string, config: Partial<Omit<LoggerConfig, 'pricingTable'>> & { pricingTable: Record<string, { unit: string; unitCost: number; }>; }); logLine(lineNumber: number, message: string, additionalData?: Record<string, unknown>): string; protected shouldLogLine(lineNumber: number): boolean; logBubbleInstantiation(variableId: number, bubbleName: string, variableName: string, parameters?: Record<string, unknown>): string; logBubbleExecution(variableId: number, bubbleName: string, variableName: string, parameters?: Record<string, unknown>): string; logBubbleExecutionComplete(variableId: number, bubbleName: string, variableName: string, result?: unknown): string; logVariableAssignment(lineNumber: number, variableName: string, value: unknown): void; logControlFlow(lineNumber: number, type: 'condition' | 'loop_iteration', condition: string, result?: boolean): void; protected getServiceUsageKey(service: LogServiceUsage, unitCost?: number): string; addServiceUsage(serviceUsage: LogServiceUsage, variableId?: number): void; logTokenUsage(serviceUsage: LogServiceUsage, message?: string, metadata?: Partial<LogMetadata>): string; logToolCallStart(toolCallId: string, toolName: string, toolInput: unknown, message?: string): string; logToolCallComplete(toolCallId: string, toolName: string, toolInput: unknown, toolOutput: unknown, duration: number, message?: string): string; logFunctionCallStart(variableId: number, functionName: string, functionInput: unknown, lineNumber?: number): string; logFunctionCallComplete(variableId: number, functionName: string, functionOutput: unknown, duration: number, lineNumber?: number): string; protected getFunctionCallExecutionTime(variableId: number): number; log(level: LogLevel, message: string, metadata?: Partial<LogMetadata>): void; trace(message: string, metadata?: Partial<LogMetadata>): void; debug(message: string, metadata?: Partial<LogMetadata>): void; info(message: string, metadata?: Partial<LogMetadata>): void; warn(message: string, metadata?: Partial<LogMetadata>): void; error(message: string, error?: BubbleError, metadata?: Partial<LogMetadata>): void; fatal(message: string, error?: BubbleError, metadata?: Partial<LogMetadata>): void; flush(): void; getExecutionSummary(): ExecutionSummary; getLogs(): LogEntry[]; getLogsByLevel(level: LogLevel): LogEntry[]; getLogsByLine(lineNumber: number): LogEntry[]; exportLogs(format: 'json' | 'csv' | 'table'): string; dispose(): void; private captureStackTrace; private formatAsTable; protected getBubbleExecutionTime(variableId: number): number; logBrowserSessionStart(_sessionId: string, _sessionUrl: string, _variableId?: number): void; logBrowserSessionEnd(_sessionId: string, _variableId?: number): void; }
1173
+ export interface IBubble<TResult extends BubbleOperationResult = BubbleOperationResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; previousResult: BubbleResult<BubbleOperationResult> | undefined; action: () => Promise<BubbleResult<TResult>>; saveResult: <R extends BubbleOperationResult>(result: BubbleResult<R>) => void; clearSavedResult: () => void; generateMockResult: () => BubbleResult<TResult>; generateMockResultWithSeed: (seed: number) => BubbleResult<TResult>; }
1174
+ export interface IServiceBubble<TParams extends Record<string, unknown> = Record<string, unknown>, TResult extends BubbleOperationResult = BubbleOperationResult> extends IBubble<TResult> { readonly type: 'service'; authType?: 'oauth' | 'apikey' | 'none' | 'connection-string'; testCredential: () => Promise<boolean>; setParam: <K extends keyof TParams>(paramName: K, paramValue: TParams[K]) => void; getCredentialMetadata: () => Promise<DatabaseMetadata | undefined>; }
1175
+ export interface IWorkflowBubble<TResult extends BubbleOperationResult = BubbleOperationResult> extends IBubble<TResult> { readonly type: 'workflow'; }
1176
+ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOperationResult> extends IBubble<TResult> { readonly type: 'tool'; }
1177
+ export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1178
+ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1179
+ export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
1180
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare class ZendeskBubble<T extends ZendeskParamsInput = ZendeskParamsInput> extends ServiceBubble<T, Extract<ZendeskResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "zendesk"; static readonly authType: "oauth"; static readonly bubbleName = "zendesk"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; ticket_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; subject: import("zod").ZodString; body: import("zod").ZodString; requester_email: import("zod").ZodOptional<import("zod").ZodString>; requester_name: import("zod").ZodOptional<import("zod").ZodString>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; type: import("zod").ZodOptional<import("zod").ZodEnum<["problem", "incident", "question", "task"]>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; ticket_id: import("zod").ZodString; comment: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; assignee_id?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; ticket_id: import("zod").ZodString; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; query: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodEnum<["end-user", "agent", "admin"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; query: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; organization_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; query: import("zod").ZodString; sort_by: import("zod").ZodOptional<import("zod").ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; query: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodString>; category_id: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; article_id: import("zod").ZodString; locale: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; success: import("zod").ZodBoolean; tickets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; success: import("zod").ZodBoolean; comments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; success: import("zod").ZodBoolean; users: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; success: import("zod").ZodBoolean; user: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; success: import("zod").ZodBoolean; organizations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; success: import("zod").ZodBoolean; organization: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; success: import("zod").ZodBoolean; articles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; success: import("zod").ZodBoolean; article: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>]>; static readonly shortDescription = "Zendesk integration for tickets, comments, users, and help center"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "support"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private parseCredentials; protected chooseCredential(): string | undefined; private makeZendeskApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<ZendeskResult, { operation: T['operation']; }>>; private listTickets; private getTicket; private createTicket; private updateTicket; private listTicketComments; private listUsers; private getUser; private listOrganizations; private getOrganization; private search; private listArticles; private getArticle; private mapTicket; private mapComment; private mapUser; private mapOrganization; private mapArticle; }
1181
+ export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; 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>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1182
+ 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; }
1183
+ export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1184
+ export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
1185
+ 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; }); }
1186
+ export declare enum LogLevel { TRACE = 0, DEBUG = 1, INFO = 2, WARN = 3, ERROR = 4, FATAL = 5 }
1187
+ export interface LogEntry { id: string; timestamp: number; level: LogLevel; message: string; metadata: LogMetadata; duration?: number; }
1188
+ export interface LogServiceUsage { usage: number; service: CredentialType; unit: string; subService?: string; }
1189
+ export interface LogMetadata { flowName: string; variableId?: number; lineNumber?: number; functionName?: string; bubbleName?: string; variableName?: string; operationType?: 'bubble_instantiation' | 'bubble_execution' | 'variable_assignment' | 'condition' | 'loop_iteration' | 'script' | 'bubble_execution_complete' | 'function_call'; memoryUsage?: NodeJS.MemoryUsage; stackTrace?: string; additionalData?: Record<string, unknown>; serviceUsage?: LogServiceUsage; }
1190
+ export interface LoggerConfig { minLevel: LogLevel; enableTiming: boolean; enableMemoryTracking: boolean; enableStackTraces: boolean; maxLogEntries: number; bufferSize: number; flushInterval?: number; pricingTable: Record<string, { unit: string; unitCost: number; }>; userCredentialMapping?: Map<number, Set<CredentialType>>; }
1191
+ export declare class BubbleLogger { private flowName; private config; private logs; private startTime; private lastLogTime; private executionId; private lineTimings; private lineLogCounts; private peakMemoryUsage?; private buffer; private flushTimer?; cumulativeServiceUsageByService: Map<string, Map<number, { usage: number; service: CredentialType; subService?: string; unit: string; }>>; private bubbleStartTimes; private functionCallStartTimes; private userCredentialMapping?; constructor(flowName: string, config: Partial<Omit<LoggerConfig, 'pricingTable'>> & { pricingTable: Record<string, { unit: string; unitCost: number; }>; }); logLine(lineNumber: number, message: string, additionalData?: Record<string, unknown>): string; protected shouldLogLine(lineNumber: number): boolean; logBubbleInstantiation(variableId: number, bubbleName: string, variableName: string, parameters?: Record<string, unknown>): string; logBubbleExecution(variableId: number, bubbleName: string, variableName: string, parameters?: Record<string, unknown>): string; logBubbleExecutionComplete(variableId: number, bubbleName: string, variableName: string, result?: unknown): string; logVariableAssignment(lineNumber: number, variableName: string, value: unknown): void; logControlFlow(lineNumber: number, type: 'condition' | 'loop_iteration', condition: string, result?: boolean): void; protected getServiceUsageKey(service: LogServiceUsage, unitCost?: number): string; addServiceUsage(serviceUsage: LogServiceUsage, variableId?: number): void; logTokenUsage(serviceUsage: LogServiceUsage, message?: string, metadata?: Partial<LogMetadata>): string; logToolCallStart(toolCallId: string, toolName: string, toolInput: unknown, message?: string): string; logToolCallComplete(toolCallId: string, toolName: string, toolInput: unknown, toolOutput: unknown, duration: number, message?: string): string; logFunctionCallStart(variableId: number, functionName: string, functionInput: unknown, lineNumber?: number): string; logFunctionCallComplete(variableId: number, functionName: string, functionOutput: unknown, duration: number, lineNumber?: number): string; protected getFunctionCallExecutionTime(variableId: number): number; log(level: LogLevel, message: string, metadata?: Partial<LogMetadata>): void; trace(message: string, metadata?: Partial<LogMetadata>): void; debug(message: string, metadata?: Partial<LogMetadata>): void; info(message: string, metadata?: Partial<LogMetadata>): void; warn(message: string, metadata?: Partial<LogMetadata>): void; error(message: string, error?: BubbleError, metadata?: Partial<LogMetadata>): void; fatal(message: string, error?: BubbleError, metadata?: Partial<LogMetadata>): void; flush(): void; getExecutionSummary(): ExecutionSummary; getLogs(): LogEntry[]; getLogsByLevel(level: LogLevel): LogEntry[]; getLogsByLine(lineNumber: number): LogEntry[]; exportLogs(format: 'json' | 'csv' | 'table'): string; dispose(): void; private captureStackTrace; private formatAsTable; protected getBubbleExecutionTime(variableId: number): number; logBrowserSessionStart(_sessionId: string, _sessionUrl: string, _variableId?: number): void; logBrowserSessionEnd(_sessionId: string, _variableId?: number): void; }
1192
+ export interface IBubble<TResult extends BubbleOperationResult = BubbleOperationResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; previousResult: BubbleResult<BubbleOperationResult> | undefined; action: () => Promise<BubbleResult<TResult>>; saveResult: <R extends BubbleOperationResult>(result: BubbleResult<R>) => void; clearSavedResult: () => void; generateMockResult: () => BubbleResult<TResult>; generateMockResultWithSeed: (seed: number) => BubbleResult<TResult>; }
1193
+ export interface IServiceBubble<TParams extends Record<string, unknown> = Record<string, unknown>, TResult extends BubbleOperationResult = BubbleOperationResult> extends IBubble<TResult> { readonly type: 'service'; authType?: 'oauth' | 'apikey' | 'none' | 'connection-string'; testCredential: () => Promise<boolean>; setParam: <K extends keyof TParams>(paramName: K, paramValue: TParams[K]) => void; getCredentialMetadata: () => Promise<DatabaseMetadata | undefined>; }
1194
+ export interface IWorkflowBubble<TResult extends BubbleOperationResult = BubbleOperationResult> extends IBubble<TResult> { readonly type: 'workflow'; }
1195
+ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOperationResult> extends IBubble<TResult> { readonly type: 'tool'; }
1196
+ export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1197
+ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1198
+ export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
1160
1199
  export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const ConfluenceSpaceSchema: z.ZodObject<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>; export declare const ConfluencePageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; export declare const ConfluenceCommentSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; export declare const ConfluenceSearchResultSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; export declare const ConfluenceParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_spaces">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["global", "personal"]>>; status: z.ZodOptional<z.ZodEnum<["current", "archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_spaces"; limit: number; type?: "global" | "personal" | undefined; status?: "archived" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_spaces"; type?: "global" | "personal" | undefined; status?: "archived" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_space">; space_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_space"; space_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_space"; space_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pages">; space_id: z.ZodOptional<z.ZodString>; space_key: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["current", "trashed", "draft"]>>; 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, { operation: "list_pages"; limit: number; title?: string | undefined; status?: "draft" | "current" | "trashed" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; }, { operation: "list_pages"; title?: string | undefined; status?: "draft" | "current" | "trashed" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_page">; page_id: z.ZodString; include_body: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_page"; page_id: string; include_body: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_body?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_page">; space_id: z.ZodOptional<z.ZodString>; space_key: z.ZodOptional<z.ZodString>; title: z.ZodString; body: z.ZodOptional<z.ZodString>; parent_id: z.ZodOptional<z.ZodString>; status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["current", "draft"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; status: "draft" | "current"; operation: "create_page"; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; parent_id?: string | undefined; }, { title: string; operation: "create_page"; status?: "draft" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; parent_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; page_id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["current", "draft"]>>; version_message: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_page"; page_id: string; title?: string | undefined; status?: "draft" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; version_message?: string | undefined; }, { operation: "update_page"; page_id: string; title?: string | undefined; status?: "draft" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; version_message?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_page">; page_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; cql: z.ZodString; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; start: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { start: number; operation: "search"; limit: number; cql: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search"; cql: string; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: number | undefined; limit?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_comment">; page_id: z.ZodString; body: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_comment"; body: string; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_comment"; body: string; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_comments">; page_id: z.ZodString; 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, { operation: "get_comments"; limit: number; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "get_comments"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>]>; export declare const ConfluenceResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_spaces">; success: z.ZodBoolean; spaces: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>, "many">>; cursor: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_spaces"; cursor?: string | undefined; spaces?: z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "list_spaces"; cursor?: string | undefined; spaces?: z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_space">; success: z.ZodBoolean; space: z.ZodOptional<z.ZodObject<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_space"; space?: z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "get_space"; space?: z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pages">; success: z.ZodBoolean; pages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; cursor: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pages"; cursor?: string | undefined; pages?: z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "list_pages"; cursor?: string | undefined; pages?: z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_page">; success: z.ZodBoolean; page: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_page"; page?: z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "get_page"; page?: z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_page">; success: z.ZodBoolean; page: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; _links?: z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { title: string; id: string; status?: string | undefined; _links?: z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_page"; page?: { title: string; id: string; status?: string | undefined; _links?: z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_page"; page?: { title: string; id: string; status?: string | undefined; _links?: z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; success: z.ZodBoolean; page: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { title: string; id: string; version?: z.objectOutputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough"> | undefined; }, { title: string; id: string; version?: z.objectInputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_page"; page?: { title: string; id: string; version?: z.objectOutputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough"> | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_page"; page?: { title: string; id: string; version?: z.objectInputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough"> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_page">; success: z.ZodBoolean; page_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_page"; page_id?: string | undefined; }, { error: string; success: boolean; operation: "delete_page"; page_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; total: z.ZodOptional<z.ZodNumber>; start: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; start?: number | undefined; limit?: number | undefined; total?: number | undefined; results?: z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "search"; start?: number | undefined; limit?: number | undefined; total?: number | undefined; results?: z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_comment">; success: z.ZodBoolean; comment: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_comment"; comment?: z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "add_comment"; comment?: z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; cursor: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_comments"; cursor?: string | undefined; comments?: z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "get_comments"; cursor?: string | undefined; comments?: z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>]>; export type ConfluenceParams = z.output<typeof ConfluenceParamsSchema>; export
1161
1200
  type ConfluenceParamsInput = z.input<typeof ConfluenceParamsSchema>;;;;; export type ConfluenceResult = z.output<typeof ConfluenceResultSchema>; export type ConfluenceListSpacesParams = Extract<ConfluenceParams, { operation: 'list_spaces'; }>; export type ConfluenceGetSpaceParams = Extract<ConfluenceParams, { operation: 'get_space'; }>; export type ConfluenceListPagesParams = Extract<ConfluenceParams, { operation: 'list_pages'; }>; export type ConfluenceGetPageParams = Extract<ConfluenceParams, { operation: 'get_page'; }>; export type ConfluenceCreatePageParams = Extract<ConfluenceParams, { operation: 'create_page'; }>; export type ConfluenceUpdatePageParams = Extract<ConfluenceParams, { operation: 'update_page'; }>; export type ConfluenceDeletePageParams = Extract<ConfluenceParams, { operation: 'delete_page'; }>; export type ConfluenceSearchParams = Extract<ConfluenceParams, { operation: 'search'; }>; export type ConfluenceAddCommentParams = Extract<ConfluenceParams, { operation: 'add_comment'; }>; export type ConfluenceGetCommentsParams = Extract<ConfluenceParams, { operation: 'get_comments'; }>; export declare class ConfluenceBubble<T extends ConfluenceParamsInput = ConfluenceParamsInput> extends ServiceBubble<T, Extract<ConfluenceResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "confluence"; static readonly authType: "oauth"; static readonly bubbleName = "confluence"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_spaces">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodEnum<["global", "personal"]>>; status: import("zod").ZodOptional<import("zod").ZodEnum<["current", "archived"]>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_spaces"; limit: number; type?: "global" | "personal" | undefined; status?: "archived" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_spaces"; type?: "global" | "personal" | undefined; status?: "archived" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_space">; space_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_space"; space_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_space"; space_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pages">; space_id: import("zod").ZodOptional<import("zod").ZodString>; space_key: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["current", "trashed", "draft"]>>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_pages"; limit: number; title?: string | undefined; status?: "draft" | "current" | "trashed" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; }, { operation: "list_pages"; title?: string | undefined; status?: "draft" | "current" | "trashed" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_page">; page_id: import("zod").ZodString; include_body: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_page"; page_id: string; include_body: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_body?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_page">; space_id: import("zod").ZodOptional<import("zod").ZodString>; space_key: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodString; body: import("zod").ZodOptional<import("zod").ZodString>; parent_id: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["current", "draft"]>>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { title: string; status: "draft" | "current"; operation: "create_page"; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; parent_id?: string | undefined; }, { title: string; operation: "create_page"; status?: "draft" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; parent_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_page">; page_id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["current", "draft"]>>; version_message: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_page"; page_id: string; title?: string | undefined; status?: "draft" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; version_message?: string | undefined; }, { operation: "update_page"; page_id: string; title?: string | undefined; status?: "draft" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; version_message?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_page">; page_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; cql: import("zod").ZodString; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; start: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { start: number; operation: "search"; limit: number; cql: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search"; cql: string; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: number | undefined; limit?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_comment">; page_id: import("zod").ZodString; body: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "add_comment"; body: string; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_comment"; body: string; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_comments">; page_id: import("zod").ZodString; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_comments"; limit: number; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "get_comments"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_spaces">; success: import("zod").ZodBoolean; spaces: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, import("zod").ZodTypeAny, "passthrough">>, "many">>; cursor: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_spaces"; cursor?: string | undefined; spaces?: import("zod").objectOutputType<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, import("zod").ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "list_spaces"; cursor?: string | undefined; spaces?: import("zod").objectInputType<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, import("zod").ZodTypeAny, "passthrough">[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_space">; success: import("zod").ZodBoolean; space: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, import("zod").ZodTypeAny, "passthrough">>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_space"; space?: import("zod").objectOutputType<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "get_space"; space?: import("zod").objectInputType<{ id: import("zod").ZodString; key: import("zod").ZodString; name: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodUnknown>; homepageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pages">; success: import("zod").ZodBoolean; pages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">>, "many">>; cursor: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_pages"; cursor?: string | undefined; pages?: import("zod").objectOutputType<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "list_pages"; cursor?: string | undefined; pages?: import("zod").objectInputType<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_page">; success: import("zod").ZodBoolean; page: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_page"; page?: import("zod").objectOutputType<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "get_page"; page?: import("zod").objectInputType<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; spaceId: import("zod").ZodOptional<import("zod").ZodString>; parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; parentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>; authorId: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; message: import("zod").ZodOptional<import("zod").ZodString>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_page">; success: import("zod").ZodBoolean; page: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; _links?: import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }, { title: string; id: string; status?: string | undefined; _links?: import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_page"; page?: { title: string; id: string; status?: string | undefined; _links?: import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_page"; page?: { title: string; id: string; status?: string | undefined; _links?: import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_page">; success: import("zod").ZodBoolean; page: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; }, import("zod").ZodTypeAny, "passthrough">>>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; version?: import("zod").objectOutputType<{ number: import("zod").ZodNumber; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }, { title: string; id: string; version?: import("zod").objectInputType<{ number: import("zod").ZodNumber; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_page"; page?: { title: string; id: string; version?: import("zod").objectOutputType<{ number: import("zod").ZodNumber; }, import("zod").ZodTypeAny, "passthrough"> | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_page"; page?: { title: string; id: string; version?: import("zod").objectInputType<{ number: import("zod").ZodNumber; }, import("zod").ZodTypeAny, "passthrough"> | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_page">; success: import("zod").ZodBoolean; page_id: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_page"; page_id?: string | undefined; }, { error: string; success: boolean; operation: "delete_page"; page_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; excerpt: import("zod").ZodOptional<import("zod").ZodString>; url: import("zod").ZodOptional<import("zod").ZodString>; lastModified: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; content: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; excerpt: import("zod").ZodOptional<import("zod").ZodString>; url: import("zod").ZodOptional<import("zod").ZodString>; lastModified: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; content: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; excerpt: import("zod").ZodOptional<import("zod").ZodString>; url: import("zod").ZodOptional<import("zod").ZodString>; lastModified: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; content: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">>, "many">>; total: import("zod").ZodOptional<import("zod").ZodNumber>; start: import("zod").ZodOptional<import("zod").ZodNumber>; limit: import("zod").ZodOptional<import("zod").ZodNumber>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search"; start?: number | undefined; limit?: number | undefined; total?: number | undefined; results?: import("zod").objectOutputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; excerpt: import("zod").ZodOptional<import("zod").ZodString>; url: import("zod").ZodOptional<import("zod").ZodString>; lastModified: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; content: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "search"; start?: number | undefined; limit?: number | undefined; total?: number | undefined; results?: import("zod").objectInputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; excerpt: import("zod").ZodOptional<import("zod").ZodString>; url: import("zod").ZodOptional<import("zod").ZodString>; lastModified: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; content: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodString>; title: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; _links: import("zod").ZodOptional<import("zod").ZodObject<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ webui: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">>>; }, import("zod").ZodTypeAny, "passthrough">[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_comment">; success: import("zod").ZodBoolean; comment: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "add_comment"; comment?: import("zod").objectOutputType<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "add_comment"; comment?: import("zod").objectInputType<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough"> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_comments">; success: import("zod").ZodBoolean; comments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>, "many">>; cursor: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_comments"; cursor?: string | undefined; comments?: import("zod").objectOutputType<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "get_comments"; cursor?: string | undefined; comments?: import("zod").objectInputType<{ id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodObject<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ storage: import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; representation: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, import("zod").ZodTypeAny, "passthrough">>>; version: import("zod").ZodOptional<import("zod").ZodObject<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{ number: import("zod").ZodNumber; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; }, import("zod").ZodTypeAny, "passthrough">[] | undefined; }>]>; static readonly shortDescription = "Confluence integration for wiki pages and content management"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "confluence"; constructor(params: T, context?: BubbleContext); testCredential(): Promise<boolean>; private parseCredentials; private resolveSpaceKey; private getSpaceId; private makeConfluenceApiRequest; private makeConfluenceV1ApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<ConfluenceResult, { operation: T['operation']; }>>; private listSpaces; private getSpace; private listPages; private getPage; private createPage; private updatePage; private deletePage; private search; private addComment; private getComments; protected chooseCredential(): string | undefined; }
1162
1201
  export declare const ConfluenceSpaceSchema: z.ZodObject<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>; export declare const ConfluencePageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; export declare const ConfluenceCommentSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; export declare const ConfluenceSearchResultSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>; export declare const ConfluenceParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_spaces">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["global", "personal"]>>; status: z.ZodOptional<z.ZodEnum<["current", "archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_spaces"; limit: number; type?: "global" | "personal" | undefined; status?: "archived" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_spaces"; type?: "global" | "personal" | undefined; status?: "archived" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_space">; space_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_space"; space_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_space"; space_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pages">; space_id: z.ZodOptional<z.ZodString>; space_key: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["current", "trashed", "draft"]>>; 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, { operation: "list_pages"; limit: number; title?: string | undefined; status?: "draft" | "current" | "trashed" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; }, { operation: "list_pages"; title?: string | undefined; status?: "draft" | "current" | "trashed" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_page">; page_id: z.ZodString; include_body: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_page"; page_id: string; include_body: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_body?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_page">; space_id: z.ZodOptional<z.ZodString>; space_key: z.ZodOptional<z.ZodString>; title: z.ZodString; body: z.ZodOptional<z.ZodString>; parent_id: z.ZodOptional<z.ZodString>; status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["current", "draft"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; status: "draft" | "current"; operation: "create_page"; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; parent_id?: string | undefined; }, { title: string; operation: "create_page"; status?: "draft" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; space_id?: string | undefined; space_key?: string | undefined; parent_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; page_id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["current", "draft"]>>; version_message: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_page"; page_id: string; title?: string | undefined; status?: "draft" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; version_message?: string | undefined; }, { operation: "update_page"; page_id: string; title?: string | undefined; status?: "draft" | "current" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | undefined; version_message?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_page">; page_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; cql: z.ZodString; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; start: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { start: number; operation: "search"; limit: number; cql: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search"; cql: string; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: number | undefined; limit?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_comment">; page_id: z.ZodString; body: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_comment"; body: string; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_comment"; body: string; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_comments">; page_id: z.ZodString; 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, { operation: "get_comments"; limit: number; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "get_comments"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>]>; export declare const ConfluenceResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_spaces">; success: z.ZodBoolean; spaces: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>, "many">>; cursor: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_spaces"; cursor?: string | undefined; spaces?: z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "list_spaces"; cursor?: string | undefined; spaces?: z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_space">; success: z.ZodBoolean; space: z.ZodOptional<z.ZodObject<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_space"; space?: z.objectOutputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "get_space"; space?: z.objectInputType<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodUnknown>; homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pages">; success: z.ZodBoolean; pages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; cursor: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pages"; cursor?: string | undefined; pages?: z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "list_pages"; cursor?: string | undefined; pages?: z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_page">; success: z.ZodBoolean; page: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_page"; page?: z.objectOutputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "get_page"; page?: z.objectInputType<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; spaceId: z.ZodOptional<z.ZodString>; parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>; parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; authorId: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; message: z.ZodOptional<z.ZodString>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_page">; success: z.ZodBoolean; page: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; _links?: z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { title: string; id: string; status?: string | undefined; _links?: z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_page"; page?: { title: string; id: string; status?: string | undefined; _links?: z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_page"; page?: { title: string; id: string; status?: string | undefined; _links?: z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; success: z.ZodBoolean; page: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { title: string; id: string; version?: z.objectOutputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough"> | undefined; }, { title: string; id: string; version?: z.objectInputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough"> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_page"; page?: { title: string; id: string; version?: z.objectOutputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough"> | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_page"; page?: { title: string; id: string; version?: z.objectInputType<{ number: z.ZodNumber; }, z.ZodTypeAny, "passthrough"> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_page">; success: z.ZodBoolean; page_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_page"; page_id?: string | undefined; }, { error: string; success: boolean; operation: "delete_page"; page_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, "many">>; total: z.ZodOptional<z.ZodNumber>; start: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; start?: number | undefined; limit?: number | undefined; total?: number | undefined; results?: z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "search"; start?: number | undefined; limit?: number | undefined; total?: number | undefined; results?: z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; excerpt: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; lastModified: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; content: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; _links: z.ZodOptional<z.ZodObject<{ webui: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ webui: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_comment">; success: z.ZodBoolean; comment: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_comment"; comment?: z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "add_comment"; comment?: z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; cursor: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_comments"; cursor?: string | undefined; comments?: z.objectOutputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "get_comments"; cursor?: string | undefined; comments?: z.objectInputType<{ id: z.ZodString; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodObject<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ storage: z.ZodOptional<z.ZodObject<{ value: z.ZodString; representation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value: string; representation?: string | undefined; }, { value: string; representation?: string | undefined; }>>; }, z.ZodTypeAny, "passthrough">>>; version: z.ZodOptional<z.ZodObject<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ number: z.ZodNumber; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>]>; export type ConfluenceParams = z.output<typeof ConfluenceParamsSchema>; export type ConfluenceParamsInput = z.input<typeof ConfluenceParamsSchema>; export type ConfluenceResult = z.output<typeof ConfluenceResultSchema>; export type ConfluenceListSpacesParams = Extract<ConfluenceParams, { operation: 'list_spaces'; }>; export type ConfluenceGetSpaceParams = Extract<ConfluenceParams, { operation: 'get_space'; }>; export type ConfluenceListPagesParams = Extract<ConfluenceParams, { operation: 'list_pages'; }>; export type ConfluenceGetPageParams = Extract<ConfluenceParams, { operation: 'get_page'; }>; export type ConfluenceCreatePageParams = Extract<ConfluenceParams, { operation: 'create_page'; }>; export type ConfluenceUpdatePageParams = Extract<ConfluenceParams, { operation: 'update_page'; }>; export type ConfluenceDeletePageParams = Extract<ConfluenceParams, { operation: 'delete_page'; }>; export type ConfluenceSearchParams = Extract<ConfluenceParams, { operation: 'search'; }>; export type ConfluenceAddCommentParams = Extract<ConfluenceParams, { operation: 'add_comment'; }>; export type ConfluenceGetCommentsParams = Extract<ConfluenceParams, { operation: 'get_comments'; }>; export declare function markdownToConfluenceStorage(text: string): string; export declare function storageToText(storage: string | undefined | null): string; export declare function enhanceErrorMessage(errorText: string, statusCode: number, statusText: string): string; export interface TestResult { operation: string; success: boolean; details?: string; pageId?: string; error?: string; }
@@ -1942,7 +1981,7 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1942
1981
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1943
1982
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1944
1983
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
1945
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; declare const RedditPostSchema: z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }>; declare const RedditScrapeToolParamsSchema: z.ZodObject<{ subreddit: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>; limit: z.ZodDefault<z.ZodNumber>; sort: z.ZodDefault<z.ZodEnum<["hot", "new", "top", "rising"]>>; timeFilter: z.ZodOptional<z.ZodEnum<["hour", "day", "week", "month", "year", "all"]>>; filterToday: z.ZodDefault<z.ZodBoolean>; includeStickied: z.ZodDefault<z.ZodBoolean>; minScore: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { sort: "hot" | "new" | "top" | "rising"; limit: number; subreddit: string; filterToday: boolean; includeStickied: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined; minScore?: number | undefined; }, { subreddit: string; sort?: "hot" | "new" | "top" | "rising" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined; filterToday?: boolean | undefined; includeStickied?: boolean | undefined; minScore?: number | undefined; }>; declare const RedditScrapeToolResultSchema: z.ZodObject<{ posts: z.ZodArray<z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }>, "many">; metadata: z.ZodObject<{ subreddit: z.ZodString; requestedLimit: z.ZodNumber; actualCount: z.ZodNumber; filteredCount: z.ZodNumber; sort: z.ZodString; timeFilter: z.ZodOptional<z.ZodString>; scrapedAt: z.ZodString; apiEndpoint: z.ZodString; }, "strip", z.ZodTypeAny, { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }, { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }[]; }, { error: string; success: boolean; metadata: { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }[]; }>; type RedditScrapeToolParams = z.output<typeof RedditScrapeToolParamsSchema>; type RedditScrapeToolResult = z.output<typeof RedditScrapeToolResultSchema>; type RedditScrapeToolParamsInput = z.input<typeof RedditScrapeToolParamsSchema>;; type RedditPost = z.output<typeof RedditPostSchema>; export declare class RedditScrapeTool extends ToolBubble<RedditScrapeToolParams, RedditScrapeToolResult> { static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ subreddit: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>; limit: z.ZodDefault<z.ZodNumber>; sort: z.ZodDefault<z.ZodEnum<["hot", "new", "top", "rising"]>>; timeFilter: z.ZodOptional<z.ZodEnum<["hour", "day", "week", "month", "year", "all"]>>; filterToday: z.ZodDefault<z.ZodBoolean>; includeStickied: z.ZodDefault<z.ZodBoolean>; minScore: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { sort: "hot" | "new" | "top" | "rising"; limit: number; subreddit: string; filterToday: boolean; includeStickied: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined; minScore?: number | undefined; }, { subreddit: string; sort?: "hot" | "new" | "top" | "rising" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined; filterToday?: boolean | undefined; includeStickied?: boolean | undefined; minScore?: number | undefined; }>; static readonly resultSchema: z.ZodObject<{ posts: z.ZodArray<z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }>, "many">; metadata: z.ZodObject<{ subreddit: z.ZodString; requestedLimit: z.ZodNumber; actualCount: z.ZodNumber; filteredCount: z.ZodNumber; sort: z.ZodString; timeFilter: z.ZodOptional<z.ZodString>; scrapedAt: z.ZodString; apiEndpoint: z.ZodString; }, "strip", z.ZodTypeAny, { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }, { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }[]; }, { error: string; success: boolean; metadata: { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }[]; }>; static readonly shortDescription = "Scrapes posts from any Reddit subreddit with flexible filtering and sorting options"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "reddit"; static readonly type = "tool"; constructor(params?: RedditScrapeToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<RedditScrapeToolResult>; private buildRedditApiUrl; private fetchPostsWithPagination; private getRandomUserAgent; private fetchRedditData; private parseRedditResponse; private applyFilters; }
1984
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; declare const RedditPostSchema: z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }>; declare const RedditScrapeToolParamsSchema: z.ZodObject<{ subreddit: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>; limit: z.ZodDefault<z.ZodNumber>; sort: z.ZodDefault<z.ZodEnum<["hot", "new", "top", "rising"]>>; timeFilter: z.ZodOptional<z.ZodEnum<["hour", "day", "week", "month", "year", "all"]>>; filterToday: z.ZodDefault<z.ZodBoolean>; includeStickied: z.ZodDefault<z.ZodBoolean>; minScore: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { sort: "new" | "hot" | "top" | "rising"; limit: number; subreddit: string; filterToday: boolean; includeStickied: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined; minScore?: number | undefined; }, { subreddit: string; sort?: "new" | "hot" | "top" | "rising" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined; filterToday?: boolean | undefined; includeStickied?: boolean | undefined; minScore?: number | undefined; }>; declare const RedditScrapeToolResultSchema: z.ZodObject<{ posts: z.ZodArray<z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }>, "many">; metadata: z.ZodObject<{ subreddit: z.ZodString; requestedLimit: z.ZodNumber; actualCount: z.ZodNumber; filteredCount: z.ZodNumber; sort: z.ZodString; timeFilter: z.ZodOptional<z.ZodString>; scrapedAt: z.ZodString; apiEndpoint: z.ZodString; }, "strip", z.ZodTypeAny, { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }, { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }[]; }, { error: string; success: boolean; metadata: { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }[]; }>; type RedditScrapeToolParams = z.output<typeof RedditScrapeToolParamsSchema>; type RedditScrapeToolResult = z.output<typeof RedditScrapeToolResultSchema>; type RedditScrapeToolParamsInput = z.input<typeof RedditScrapeToolParamsSchema>;; type RedditPost = z.output<typeof RedditPostSchema>; export declare class RedditScrapeTool extends ToolBubble<RedditScrapeToolParams, RedditScrapeToolResult> { static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ subreddit: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>; limit: z.ZodDefault<z.ZodNumber>; sort: z.ZodDefault<z.ZodEnum<["hot", "new", "top", "rising"]>>; timeFilter: z.ZodOptional<z.ZodEnum<["hour", "day", "week", "month", "year", "all"]>>; filterToday: z.ZodDefault<z.ZodBoolean>; includeStickied: z.ZodDefault<z.ZodBoolean>; minScore: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { sort: "new" | "hot" | "top" | "rising"; limit: number; subreddit: string; filterToday: boolean; includeStickied: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined; minScore?: number | undefined; }, { subreddit: string; sort?: "new" | "hot" | "top" | "rising" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined; filterToday?: boolean | undefined; includeStickied?: boolean | undefined; minScore?: number | undefined; }>; static readonly resultSchema: z.ZodObject<{ posts: z.ZodArray<z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }>, "many">; metadata: z.ZodObject<{ subreddit: z.ZodString; requestedLimit: z.ZodNumber; actualCount: z.ZodNumber; filteredCount: z.ZodNumber; sort: z.ZodString; timeFilter: z.ZodOptional<z.ZodString>; scrapedAt: z.ZodString; apiEndpoint: z.ZodString; }, "strip", z.ZodTypeAny, { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }, { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }[]; }, { error: string; success: boolean; metadata: { sort: string; scrapedAt: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; thumbnail?: string | undefined; domain?: string | undefined; postHint?: string | null | undefined; flair?: string | undefined; }[]; }>; static readonly shortDescription = "Scrapes posts from any Reddit subreddit with flexible filtering and sorting options"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "reddit"; static readonly type = "tool"; constructor(params?: RedditScrapeToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<RedditScrapeToolResult>; private buildRedditApiUrl; private fetchPostsWithPagination; private getRandomUserAgent; private fetchRedditData; private parseRedditResponse; private applyFilters; }
1946
1985
  export type { RedditPost, RedditScrapeToolParams, RedditScrapeToolResult }; 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>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1947
1986
  export interface LangGraphTool { name: string; description: string; schema: z.ZodSchema; func<TResult extends BubbleOperationResult = BubbleOperationResult>(params: unknown): Promise<BubbleResult<TResult>>; }
1948
1987
  export declare abstract class ToolBubble<TParams extends ServiceBubbleParams = ServiceBubbleParams, TResult extends BubbleOperationResult = BubbleOperationResult> extends BaseBubble<TParams, TResult> implements IToolBubble<TResult> { readonly type: "tool"; constructor(params: unknown, context?: BubbleContext, instanceId?: string); static toolAgent(credentials?: Partial<Record<CredentialType, string>>, config?: Record<string, unknown>, context?: BubbleContext): LangGraphTool; }