@bubblelab/bubble-core 0.1.150 → 0.1.152

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 (61) hide show
  1. package/dist/bubble-bundle.d.ts +6 -6
  2. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +37 -0
  3. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts.map +1 -1
  4. package/dist/bubbles/service-bubble/browserbase/browserbase.js +80 -0
  5. package/dist/bubbles/service-bubble/browserbase/browserbase.js.map +1 -1
  6. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +33 -0
  7. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts.map +1 -1
  8. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js +30 -0
  9. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js.map +1 -1
  10. package/dist/bubbles/service-bubble/google-drive.d.ts +1 -1
  11. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  12. package/dist/bubbles/service-bubble/google-drive.js +37 -1
  13. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  14. package/dist/bubbles/service-bubble/slack/slack.utils.d.ts.map +1 -1
  15. package/dist/bubbles/service-bubble/slack/slack.utils.js +33 -4
  16. package/dist/bubbles/service-bubble/slack/slack.utils.js.map +1 -1
  17. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.d.ts +66 -0
  18. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.d.ts.map +1 -0
  19. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.js +484 -0
  20. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.js.map +1 -0
  21. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.d.ts +85 -0
  22. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.d.ts.map +1 -0
  23. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.js +2 -0
  24. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.js.map +1 -0
  25. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.d.ts +27 -0
  26. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.d.ts.map +1 -0
  27. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.js +77 -0
  28. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-fallback-step.js.map +1 -0
  29. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/index.d.ts +4 -0
  30. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/index.d.ts.map +1 -0
  31. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/index.js +3 -0
  32. package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/index.js.map +1 -0
  33. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts.map +1 -1
  34. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.js +254 -195
  35. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.js.map +1 -1
  36. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +2 -0
  37. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts.map +1 -1
  38. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.js +346 -229
  39. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.js.map +1 -1
  40. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +34 -33
  41. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts.map +1 -1
  42. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.js +212 -151
  43. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.js.map +1 -1
  44. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +33 -32
  45. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts.map +1 -1
  46. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.js +188 -127
  47. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.js.map +1 -1
  48. package/dist/bubbles.json +73 -2
  49. package/package.json +2 -2
  50. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts +0 -3
  51. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts.map +0 -1
  52. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js +0 -3
  53. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js.map +0 -1
  54. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +0 -160
  55. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts.map +0 -1
  56. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js +0 -706
  57. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js.map +0 -1
  58. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts +0 -93
  59. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts.map +0 -1
  60. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js +0 -50
  61. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js.map +0 -1
@@ -1157,10 +1157,10 @@ 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>; [key: string]: unknown; }
1160
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const CDPCookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>; export type CDPCookie = z.infer<typeof CDPCookieSchema>; export declare const BrowserSessionProxySchema: 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; }>>; export declare const BrowserSessionDataSchema: z.ZodObject<{ contextId: z.ZodString; cookies: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">; 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, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionData = z.infer<typeof BrowserSessionDataSchema>; export declare const ProxyGeolocationSchema: z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>; export type ProxyGeolocation = z.infer<typeof ProxyGeolocationSchema>; export declare const BrowserbaseProxySchema: z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>; export type BrowserbaseProxy = z.infer<typeof BrowserbaseProxySchema>; export declare const ExternalProxySchema: z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>; export type ExternalProxy = z.infer<typeof ExternalProxySchema>; export declare const ProxyConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>; export type ProxyConfig = z.infer<typeof ProxyConfigSchema>; export declare const StealthConfigSchema: z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>; export type StealthConfig = z.infer<typeof StealthConfigSchema>; export declare const BrowserBaseParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; context_id: z.ZodOptional<z.ZodString>; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; viewport_height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxies: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: z.ZodOptional<z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; session_id: z.ZodString; url: z.ZodString; wait_until: z.ZodDefault<z.ZodOptional<z.ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; session_id: z.ZodString; selector: z.ZodString; wait_for_navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; session_id: z.ZodString; selector: z.ZodString; text: z.ZodString; clear_first: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; delay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; session_id: z.ZodString; script: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["html", "text", "outer_html"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; content_type?: "text" | "html" | "outer_html" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; full_page: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>>; quality: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg" | "webp"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "jpeg" | "webp" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; session_id: z.ZodString; wait_type: z.ZodEnum<["selector", "timeout", "navigation"]>; selector: z.ZodOptional<z.ZodString>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; session_id: z.ZodString; domain_filter: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; session_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const BrowserBaseResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; success: z.ZodBoolean; session_id: z.ZodOptional<z.ZodString>; context_id: z.ZodOptional<z.ZodString>; debug_url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; success: z.ZodBoolean; url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; format: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; success: z.ZodBoolean; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; export type BrowserBaseParams = z.output<typeof BrowserBaseParamsSchema>; export
1160
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const CDPCookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>; export type CDPCookie = z.infer<typeof CDPCookieSchema>; export declare const BrowserSessionProxySchema: 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; }>>; export declare const BrowserSessionDataSchema: z.ZodObject<{ contextId: z.ZodString; cookies: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">; 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, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionData = z.infer<typeof BrowserSessionDataSchema>; export declare const ProxyGeolocationSchema: z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>; export type ProxyGeolocation = z.infer<typeof ProxyGeolocationSchema>; export declare const BrowserbaseProxySchema: z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>; export type BrowserbaseProxy = z.infer<typeof BrowserbaseProxySchema>; export declare const ExternalProxySchema: z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>; export type ExternalProxy = z.infer<typeof ExternalProxySchema>; export declare const ProxyConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>; export type ProxyConfig = z.infer<typeof ProxyConfigSchema>; export declare const StealthConfigSchema: z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>; export type StealthConfig = z.infer<typeof StealthConfigSchema>; export declare const BrowserBaseParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; context_id: z.ZodOptional<z.ZodString>; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; viewport_height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxies: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: z.ZodOptional<z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; session_id: z.ZodString; url: z.ZodString; wait_until: z.ZodDefault<z.ZodOptional<z.ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; session_id: z.ZodString; selector: z.ZodString; wait_for_navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; session_id: z.ZodString; selector: z.ZodString; text: z.ZodString; clear_first: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; delay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; session_id: z.ZodString; selector: z.ZodString; value: z.ZodString; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { value: string; timeout: number; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { value: string; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; session_id: z.ZodString; script: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["html", "text", "outer_html"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; content_type?: "text" | "html" | "outer_html" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; full_page: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>>; quality: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg" | "webp"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "jpeg" | "webp" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; session_id: z.ZodString; wait_type: z.ZodEnum<["selector", "timeout", "navigation"]>; selector: z.ZodOptional<z.ZodString>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; session_id: z.ZodString; domain_filter: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; session_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const BrowserBaseResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; success: z.ZodBoolean; session_id: z.ZodOptional<z.ZodString>; context_id: z.ZodOptional<z.ZodString>; debug_url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; success: z.ZodBoolean; url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "select"; }, { error: string; success: boolean; operation: "select"; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; format: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; success: z.ZodBoolean; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; export type BrowserBaseParams = z.output<typeof BrowserBaseParamsSchema>; export
1161
1161
  type BrowserBaseParamsInput = z.input<typeof BrowserBaseParamsSchema>;;; export type BrowserBaseResult = z.output<typeof BrowserBaseResultSchema>; interface ActiveSession { sessionId: string; contextId: string; browser: Browser; page: Page; connectUrl: string; startTime: number; }
1162
- export declare class BrowserBaseBubble<T extends BrowserBaseParamsInput = BrowserBaseParamsInput> extends ServiceBubble<T, Extract<BrowserBaseResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "browserbase"; static readonly authType: "apikey"; static readonly bubbleName = "browserbase"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"start_session">; context_id: import("zod").ZodOptional<import("zod").ZodString>; cookies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; domain: import("zod").ZodString; path: import("zod").ZodString; expires: import("zod").ZodNumber; httpOnly: import("zod").ZodBoolean; secure: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; viewport_height: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; proxies: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{ type: import("zod").ZodLiteral<"browserbase">; geolocation: import("zod").ZodOptional<import("zod").ZodObject<{ city: import("zod").ZodOptional<import("zod").ZodString>; state: import("zod").ZodOptional<import("zod").ZodString>; country: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, import("zod").ZodObject<{ type: import("zod").ZodLiteral<"external">; server: import("zod").ZodString; username: import("zod").ZodOptional<import("zod").ZodString>; password: import("zod").ZodOptional<import("zod").ZodString>; domainPattern: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: import("zod").ZodOptional<import("zod").ZodObject<{ advancedStealth: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; solveCaptchas: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; captchaImageSelector: import("zod").ZodOptional<import("zod").ZodString>; captchaInputSelector: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: import("zod").ZodOptional<import("zod").ZodNumber>; }, "strip", import("zod").ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"navigate">; session_id: import("zod").ZodString; url: import("zod").ZodString; wait_until: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: 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, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"click">; session_id: import("zod").ZodString; selector: import("zod").ZodString; wait_for_navigation: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; timeout: 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, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"type">; session_id: import("zod").ZodString; selector: import("zod").ZodString; text: import("zod").ZodString; clear_first: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; delay: 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, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"evaluate">; session_id: import("zod").ZodString; script: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_content">; session_id: import("zod").ZodString; selector: import("zod").ZodOptional<import("zod").ZodString>; content_type: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["html", "text", "outer_html"]>>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; content_type?: "text" | "html" | "outer_html" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"screenshot">; session_id: import("zod").ZodString; selector: import("zod").ZodOptional<import("zod").ZodString>; full_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; format: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["png", "jpeg", "webp"]>>>; quality: 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, { format: "png" | "jpeg" | "webp"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "jpeg" | "webp" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"wait">; session_id: import("zod").ZodString; wait_type: import("zod").ZodEnum<["selector", "timeout", "navigation"]>; selector: import("zod").ZodOptional<import("zod").ZodString>; timeout: 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, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_cookies">; session_id: import("zod").ZodString; domain_filter: 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_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"end_session">; session_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"start_session">; success: import("zod").ZodBoolean; session_id: import("zod").ZodOptional<import("zod").ZodString>; context_id: import("zod").ZodOptional<import("zod").ZodString>; debug_url: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"navigate">; success: import("zod").ZodBoolean; url: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"click">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"type">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"evaluate">; success: import("zod").ZodBoolean; result: import("zod").ZodOptional<import("zod").ZodUnknown>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_content">; success: import("zod").ZodBoolean; content: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"screenshot">; success: import("zod").ZodBoolean; data: import("zod").ZodOptional<import("zod").ZodString>; format: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"wait">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_cookies">; success: import("zod").ZodBoolean; cookies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; domain: import("zod").ZodString; path: import("zod").ZodString; expires: import("zod").ZodNumber; httpOnly: import("zod").ZodBoolean; secure: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"end_session">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; static readonly shortDescription = "Browser automation service using BrowserBase cloud browsers"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "browser"; private static activeSessions; constructor(params?: T, context?: BubbleContext, instanceId?: string); private getConfig; private browserbaseApi; private parseBrowserSessionCredential; private normalizeProxyServer; private buildProxyConfig; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<BrowserBaseResult, { operation: T['operation']; }>>; private startSession; private navigate; private click; private typeText; private evaluate; private getContent; private screenshot; private waitFor; private getCookies; private endSession; protected chooseCredential(): string | undefined; static getSession(sessionId: string): ActiveSession | undefined; static hasSession(sessionId: string): boolean; }
1163
- export {}; export declare const CDPCookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>; export type CDPCookie = z.infer<typeof CDPCookieSchema>; export declare const BrowserSessionProxySchema: 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; }>>; export declare const BrowserSessionDataSchema: z.ZodObject<{ contextId: z.ZodString; cookies: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">; 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, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionData = z.infer<typeof BrowserSessionDataSchema>; export declare const ProxyGeolocationSchema: z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>; export type ProxyGeolocation = z.infer<typeof ProxyGeolocationSchema>; export declare const BrowserbaseProxySchema: z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>; export type BrowserbaseProxy = z.infer<typeof BrowserbaseProxySchema>; export declare const ExternalProxySchema: z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>; export type ExternalProxy = z.infer<typeof ExternalProxySchema>; export declare const ProxyConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>; export type ProxyConfig = z.infer<typeof ProxyConfigSchema>; export declare const StealthConfigSchema: z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>; export type StealthConfig = z.infer<typeof StealthConfigSchema>; export declare const BrowserBaseParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; context_id: z.ZodOptional<z.ZodString>; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; viewport_height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxies: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: z.ZodOptional<z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; session_id: z.ZodString; url: z.ZodString; wait_until: z.ZodDefault<z.ZodOptional<z.ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; session_id: z.ZodString; selector: z.ZodString; wait_for_navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; session_id: z.ZodString; selector: z.ZodString; text: z.ZodString; clear_first: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; delay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; session_id: z.ZodString; script: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["html", "text", "outer_html"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; content_type?: "text" | "html" | "outer_html" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; full_page: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>>; quality: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg" | "webp"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "jpeg" | "webp" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; session_id: z.ZodString; wait_type: z.ZodEnum<["selector", "timeout", "navigation"]>; selector: z.ZodOptional<z.ZodString>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; session_id: z.ZodString; domain_filter: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; session_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const BrowserBaseResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; success: z.ZodBoolean; session_id: z.ZodOptional<z.ZodString>; context_id: z.ZodOptional<z.ZodString>; debug_url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; success: z.ZodBoolean; url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; format: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; success: z.ZodBoolean; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; export type BrowserBaseParams = z.output<typeof BrowserBaseParamsSchema>; export type BrowserBaseParamsInput = z.input<typeof BrowserBaseParamsSchema>; export type BrowserBaseResult = z.output<typeof BrowserBaseResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1162
+ export declare class BrowserBaseBubble<T extends BrowserBaseParamsInput = BrowserBaseParamsInput> extends ServiceBubble<T, Extract<BrowserBaseResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "browserbase"; static readonly authType: "apikey"; static readonly bubbleName = "browserbase"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"start_session">; context_id: import("zod").ZodOptional<import("zod").ZodString>; cookies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; domain: import("zod").ZodString; path: import("zod").ZodString; expires: import("zod").ZodNumber; httpOnly: import("zod").ZodBoolean; secure: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; viewport_height: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; proxies: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{ type: import("zod").ZodLiteral<"browserbase">; geolocation: import("zod").ZodOptional<import("zod").ZodObject<{ city: import("zod").ZodOptional<import("zod").ZodString>; state: import("zod").ZodOptional<import("zod").ZodString>; country: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, import("zod").ZodObject<{ type: import("zod").ZodLiteral<"external">; server: import("zod").ZodString; username: import("zod").ZodOptional<import("zod").ZodString>; password: import("zod").ZodOptional<import("zod").ZodString>; domainPattern: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: import("zod").ZodOptional<import("zod").ZodObject<{ advancedStealth: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; solveCaptchas: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; captchaImageSelector: import("zod").ZodOptional<import("zod").ZodString>; captchaInputSelector: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: import("zod").ZodOptional<import("zod").ZodNumber>; }, "strip", import("zod").ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"navigate">; session_id: import("zod").ZodString; url: import("zod").ZodString; wait_until: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: 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, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"click">; session_id: import("zod").ZodString; selector: import("zod").ZodString; wait_for_navigation: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; timeout: 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, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"type">; session_id: import("zod").ZodString; selector: import("zod").ZodString; text: import("zod").ZodString; clear_first: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; delay: 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, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"select">; session_id: import("zod").ZodString; selector: import("zod").ZodString; value: import("zod").ZodString; timeout: 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, { value: string; timeout: number; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { value: string; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"evaluate">; session_id: import("zod").ZodString; script: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_content">; session_id: import("zod").ZodString; selector: import("zod").ZodOptional<import("zod").ZodString>; content_type: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["html", "text", "outer_html"]>>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; content_type?: "text" | "html" | "outer_html" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"screenshot">; session_id: import("zod").ZodString; selector: import("zod").ZodOptional<import("zod").ZodString>; full_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; format: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["png", "jpeg", "webp"]>>>; quality: 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, { format: "png" | "jpeg" | "webp"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "jpeg" | "webp" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"wait">; session_id: import("zod").ZodString; wait_type: import("zod").ZodEnum<["selector", "timeout", "navigation"]>; selector: import("zod").ZodOptional<import("zod").ZodString>; timeout: 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, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_cookies">; session_id: import("zod").ZodString; domain_filter: 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_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"end_session">; session_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"start_session">; success: import("zod").ZodBoolean; session_id: import("zod").ZodOptional<import("zod").ZodString>; context_id: import("zod").ZodOptional<import("zod").ZodString>; debug_url: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"navigate">; success: import("zod").ZodBoolean; url: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"click">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"type">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"select">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "select"; }, { error: string; success: boolean; operation: "select"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"evaluate">; success: import("zod").ZodBoolean; result: import("zod").ZodOptional<import("zod").ZodUnknown>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_content">; success: import("zod").ZodBoolean; content: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"screenshot">; success: import("zod").ZodBoolean; data: import("zod").ZodOptional<import("zod").ZodString>; format: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"wait">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_cookies">; success: import("zod").ZodBoolean; cookies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; domain: import("zod").ZodString; path: import("zod").ZodString; expires: import("zod").ZodNumber; httpOnly: import("zod").ZodBoolean; secure: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"end_session">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; static readonly shortDescription = "Browser automation service using BrowserBase cloud browsers"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "browser"; private static activeSessions; constructor(params?: T, context?: BubbleContext, instanceId?: string); private getConfig; private browserbaseApi; private parseBrowserSessionCredential; private normalizeProxyServer; private buildProxyConfig; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<BrowserBaseResult, { operation: T['operation']; }>>; private startSession; private navigate; private click; private typeText; private selectOption; private evaluate; private getContent; private screenshot; private waitFor; private getCookies; private endSession; protected chooseCredential(): string | undefined; static getSession(sessionId: string): ActiveSession | undefined; static hasSession(sessionId: string): boolean; }
1163
+ export {}; export declare const CDPCookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>; export type CDPCookie = z.infer<typeof CDPCookieSchema>; export declare const BrowserSessionProxySchema: 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; }>>; export declare const BrowserSessionDataSchema: z.ZodObject<{ contextId: z.ZodString; cookies: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">; 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, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionData = z.infer<typeof BrowserSessionDataSchema>; export declare const ProxyGeolocationSchema: z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>; export type ProxyGeolocation = z.infer<typeof ProxyGeolocationSchema>; export declare const BrowserbaseProxySchema: z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>; export type BrowserbaseProxy = z.infer<typeof BrowserbaseProxySchema>; export declare const ExternalProxySchema: z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>; export type ExternalProxy = z.infer<typeof ExternalProxySchema>; export declare const ProxyConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>; export type ProxyConfig = z.infer<typeof ProxyConfigSchema>; export declare const StealthConfigSchema: z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>; export type StealthConfig = z.infer<typeof StealthConfigSchema>; export declare const BrowserBaseParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; context_id: z.ZodOptional<z.ZodString>; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; viewport_height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxies: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: z.ZodOptional<z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; session_id: z.ZodString; url: z.ZodString; wait_until: z.ZodDefault<z.ZodOptional<z.ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; session_id: z.ZodString; selector: z.ZodString; wait_for_navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; session_id: z.ZodString; selector: z.ZodString; text: z.ZodString; clear_first: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; delay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; session_id: z.ZodString; selector: z.ZodString; value: z.ZodString; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { value: string; timeout: number; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { value: string; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; session_id: z.ZodString; script: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["html", "text", "outer_html"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; content_type?: "text" | "html" | "outer_html" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; full_page: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>>; quality: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg" | "webp"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "jpeg" | "webp" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; session_id: z.ZodString; wait_type: z.ZodEnum<["selector", "timeout", "navigation"]>; selector: z.ZodOptional<z.ZodString>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; session_id: z.ZodString; domain_filter: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; session_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const BrowserBaseResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; success: z.ZodBoolean; session_id: z.ZodOptional<z.ZodString>; context_id: z.ZodOptional<z.ZodString>; debug_url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; success: z.ZodBoolean; url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "select"; }, { error: string; success: boolean; operation: "select"; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; format: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; success: z.ZodBoolean; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; export type BrowserBaseParams = z.output<typeof BrowserBaseParamsSchema>; export type BrowserBaseParamsInput = z.input<typeof BrowserBaseParamsSchema>; export type BrowserBaseResult = z.output<typeof BrowserBaseResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1164
1164
  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; }
1165
1165
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1166
1166
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -1801,7 +1801,7 @@ export interface IUIBubble extends IBubble { readonly type: 'ui'; template: stri
1801
1801
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1802
1802
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
1803
1803
  export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const ProfileInfoSchema: z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; profile_url: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }>; export type ProfileInfo = z.infer<typeof ProfileInfoSchema>; export declare const LinkedInConnectionToolParamsSchema: z.ZodObject<{ operation: z.ZodEnum<["send_connection"]>; profile_url: z.ZodString; message: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ type: z.ZodEnum<["none"]>; }, "strip", z.ZodTypeAny, { type: "none"; }, { type: "none"; }>, z.ZodObject<{ type: z.ZodEnum<["browserbase"]>; }, "strip", z.ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, z.ZodObject<{ type: z.ZodEnum<["custom"]>; proxy: z.ZodObject<{ id: z.ZodString; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", z.ZodTypeAny, { operation: "send_connection"; profile_url: string; message?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "send_connection"; profile_url: string; message?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; export declare const LinkedInConnectionToolResultSchema: z.ZodObject<{ operation: z.ZodEnum<["send_connection"]>; success: z.ZodBoolean; message: z.ZodOptional<z.ZodString>; profile: z.ZodOptional<z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; profile_url: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_connection"; message?: string | undefined; profile?: { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_connection"; message?: string | undefined; profile?: { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; } | undefined; }>; export type LinkedInConnectionToolParams = z.output<typeof LinkedInConnectionToolParamsSchema>; export
1804
- type LinkedInConnectionToolParamsInput = z.input<typeof LinkedInConnectionToolParamsSchema>;;; export type LinkedInConnectionToolResult = z.output<typeof LinkedInConnectionToolResultSchema>; export declare class LinkedInConnectionTool<T extends LinkedInConnectionToolParamsInput = LinkedInConnectionToolParamsInput> extends ToolBubble<T, LinkedInConnectionToolResult> { static readonly bubbleName: "linkedin-connection-tool"; static readonly schema: import("zod").ZodObject<{ operation: import("zod").ZodEnum<["send_connection"]>; profile_url: import("zod").ZodString; message: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; proxy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{ type: import("zod").ZodEnum<["none"]>; }, "strip", import("zod").ZodTypeAny, { type: "none"; }, { type: "none"; }>, import("zod").ZodObject<{ type: import("zod").ZodEnum<["browserbase"]>; }, "strip", import("zod").ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, import("zod").ZodObject<{ type: import("zod").ZodEnum<["custom"]>; proxy: import("zod").ZodObject<{ id: import("zod").ZodString; server: import("zod").ZodString; username: import("zod").ZodOptional<import("zod").ZodString>; password: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", import("zod").ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", import("zod").ZodTypeAny, { operation: "send_connection"; profile_url: string; message?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "send_connection"; profile_url: string; message?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; static readonly resultSchema: import("zod").ZodObject<{ operation: import("zod").ZodEnum<["send_connection"]>; success: import("zod").ZodBoolean; message: import("zod").ZodOptional<import("zod").ZodString>; profile: import("zod").ZodOptional<import("zod").ZodObject<{ name: import("zod").ZodString; headline: import("zod").ZodOptional<import("zod").ZodString>; location: import("zod").ZodOptional<import("zod").ZodString>; profile_url: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "send_connection"; message?: string | undefined; profile?: { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_connection"; message?: string | undefined; profile?: { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; } | undefined; }>; static readonly shortDescription = "LinkedIn connection automation with step recording"; static readonly longDescription = "\n Recordable LinkedIn Connection Tool for automating connection requests.\n Records each step with screenshots and timing information for debugging.\n "; static readonly alias = "linkedin-recordable"; static readonly type = "tool"; private sessionId; private contextId; private cookies; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; private parseBrowserSessionData; private stepStartBrowserSession; private stepNavigateToProfile; private stepWaitForProfilePage; private stepExtractProfileInfo; private stepClickConnect; private stepWaitForModal; private stepAddNote; private stepSendRequest; private stepEndBrowserSession; private evaluate; private detectIPAddress; performAction(): Promise<LinkedInConnectionToolResult>; }
1804
+ type LinkedInConnectionToolParamsInput = z.input<typeof LinkedInConnectionToolParamsSchema>;;; export type LinkedInConnectionToolResult = z.output<typeof LinkedInConnectionToolResultSchema>; export declare class LinkedInConnectionTool<T extends LinkedInConnectionToolParamsInput = LinkedInConnectionToolParamsInput> extends ToolBubble<T, LinkedInConnectionToolResult> { static readonly bubbleName: "linkedin-connection-tool"; static readonly schema: import("zod").ZodObject<{ operation: import("zod").ZodEnum<["send_connection"]>; profile_url: import("zod").ZodString; message: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; proxy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{ type: import("zod").ZodEnum<["none"]>; }, "strip", import("zod").ZodTypeAny, { type: "none"; }, { type: "none"; }>, import("zod").ZodObject<{ type: import("zod").ZodEnum<["browserbase"]>; }, "strip", import("zod").ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, import("zod").ZodObject<{ type: import("zod").ZodEnum<["custom"]>; proxy: import("zod").ZodObject<{ id: import("zod").ZodString; server: import("zod").ZodString; username: import("zod").ZodOptional<import("zod").ZodString>; password: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", import("zod").ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", import("zod").ZodTypeAny, { operation: "send_connection"; profile_url: string; message?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "send_connection"; profile_url: string; message?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; static readonly resultSchema: import("zod").ZodObject<{ operation: import("zod").ZodEnum<["send_connection"]>; success: import("zod").ZodBoolean; message: import("zod").ZodOptional<import("zod").ZodString>; profile: import("zod").ZodOptional<import("zod").ZodObject<{ name: import("zod").ZodString; headline: import("zod").ZodOptional<import("zod").ZodString>; location: import("zod").ZodOptional<import("zod").ZodString>; profile_url: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "send_connection"; message?: string | undefined; profile?: { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_connection"; message?: string | undefined; profile?: { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; } | undefined; }>; static readonly shortDescription = "LinkedIn connection automation with step recording"; static readonly longDescription = "\n Recordable LinkedIn Connection Tool for automating connection requests.\n Records each step with screenshots and timing information for debugging.\n "; static readonly alias = "linkedin-recordable"; static readonly type = "tool"; private static readonly CROSS_DOM_QUERY; private sessionId; private contextId; private cookies; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; private parseBrowserSessionData; private stepStartBrowserSession; private stepNavigateToProfile; private stepWaitForProfilePage; private stepExtractProfileInfo; private stepClickConnect; private stepWaitForModal; private stepAddNote; private stepSendRequest; private stepEndBrowserSession; private evaluate; private detectIPAddress; performAction(): Promise<LinkedInConnectionToolResult>; }
1805
1805
  export declare const ProfileInfoSchema: z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; profile_url: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }>; export type ProfileInfo = z.infer<typeof ProfileInfoSchema>; export declare const LinkedInConnectionToolParamsSchema: z.ZodObject<{ operation: z.ZodEnum<["send_connection"]>; profile_url: z.ZodString; message: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ type: z.ZodEnum<["none"]>; }, "strip", z.ZodTypeAny, { type: "none"; }, { type: "none"; }>, z.ZodObject<{ type: z.ZodEnum<["browserbase"]>; }, "strip", z.ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, z.ZodObject<{ type: z.ZodEnum<["custom"]>; proxy: z.ZodObject<{ id: z.ZodString; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", z.ZodTypeAny, { operation: "send_connection"; profile_url: string; message?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "send_connection"; profile_url: string; message?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; export declare const LinkedInConnectionToolResultSchema: z.ZodObject<{ operation: z.ZodEnum<["send_connection"]>; success: z.ZodBoolean; message: z.ZodOptional<z.ZodString>; profile: z.ZodOptional<z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; profile_url: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }, { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "send_connection"; message?: string | undefined; profile?: { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "send_connection"; message?: string | undefined; profile?: { name: string; profile_url: string; location?: string | undefined; headline?: string | undefined; } | undefined; }>; export type LinkedInConnectionToolParams = z.output<typeof LinkedInConnectionToolParamsSchema>; export type LinkedInConnectionToolParamsInput = z.input<typeof LinkedInConnectionToolParamsSchema>; export type LinkedInConnectionToolResult = z.output<typeof LinkedInConnectionToolResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1806
1806
  export interface LangGraphTool { name: string; description: string; schema: z.ZodSchema; func<TResult extends BubbleOperationResult = BubbleOperationResult>(params: unknown): Promise<BubbleResult<TResult>>; }
1807
1807
  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; }
@@ -1822,7 +1822,7 @@ export interface IUIBubble extends IBubble { readonly type: 'ui'; template: stri
1822
1822
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1823
1823
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
1824
1824
  export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const SentInvitationInfoSchema: z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; sent_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }>; export type SentInvitationInfo = z.infer<typeof SentInvitationInfoSchema>; export declare const LinkedInSentInvitationsToolParamsSchema: z.ZodObject<{ operation: z.ZodEnum<["get_sent_invitations"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ type: z.ZodEnum<["none"]>; }, "strip", z.ZodTypeAny, { type: "none"; }, { type: "none"; }>, z.ZodObject<{ type: z.ZodEnum<["browserbase"]>; }, "strip", z.ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, z.ZodObject<{ type: z.ZodEnum<["custom"]>; proxy: z.ZodObject<{ id: z.ZodString; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", z.ZodTypeAny, { operation: "get_sent_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "get_sent_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; export declare const LinkedInSentInvitationsToolResultSchema: z.ZodObject<{ operation: z.ZodEnum<["get_sent_invitations"]>; success: z.ZodBoolean; invitations: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; sent_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; message: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_sent_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_sent_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }[] | undefined; }>; export
1825
- type LinkedInSentInvitationsToolParamsInput = z.input<typeof LinkedInSentInvitationsToolParamsSchema>;;; export type LinkedInSentInvitationsToolResult = z.output<typeof LinkedInSentInvitationsToolResultSchema>; export declare class LinkedInSentInvitationsTool<T extends LinkedInSentInvitationsToolParamsInput = LinkedInSentInvitationsToolParamsInput> extends ToolBubble<T, LinkedInSentInvitationsToolResult> { static readonly bubbleName: "linkedin-sent-invitations-tool"; static readonly schema: import("zod").ZodObject<{ operation: import("zod").ZodEnum<["get_sent_invitations"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; proxy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{ type: import("zod").ZodEnum<["none"]>; }, "strip", import("zod").ZodTypeAny, { type: "none"; }, { type: "none"; }>, import("zod").ZodObject<{ type: import("zod").ZodEnum<["browserbase"]>; }, "strip", import("zod").ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, import("zod").ZodObject<{ type: import("zod").ZodEnum<["custom"]>; proxy: import("zod").ZodObject<{ id: import("zod").ZodString; server: import("zod").ZodString; username: import("zod").ZodOptional<import("zod").ZodString>; password: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", import("zod").ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_sent_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "get_sent_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; static readonly resultSchema: import("zod").ZodObject<{ operation: import("zod").ZodEnum<["get_sent_invitations"]>; success: import("zod").ZodBoolean; invitations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; headline: import("zod").ZodOptional<import("zod").ZodString>; sent_date: import("zod").ZodString; profile_url: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }>, "many">>; total_count: import("zod").ZodOptional<import("zod").ZodNumber>; message: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_sent_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_sent_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }[] | undefined; }>; static readonly shortDescription = "Extract sent LinkedIn connection invitations"; static readonly longDescription = "Recordable LinkedIn Sent Invitations Tool for extracting pending sent connection requests."; static readonly alias = "linkedin-sent-invitations"; static readonly type = "tool"; private sessionId; private contextId; private cookies; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; private stepStartBrowserSession; private stepNavigateToSentInvitations; private stepWaitForInvitationsPage; private stepExtractInvitations; private stepEndBrowserSession; private evaluate; private detectIPAddress; performAction(): Promise<LinkedInSentInvitationsToolResult>; }
1825
+ type LinkedInSentInvitationsToolParamsInput = z.input<typeof LinkedInSentInvitationsToolParamsSchema>;;; export type LinkedInSentInvitationsToolResult = z.output<typeof LinkedInSentInvitationsToolResultSchema>; export declare class LinkedInSentInvitationsTool<T extends LinkedInSentInvitationsToolParamsInput = LinkedInSentInvitationsToolParamsInput> extends ToolBubble<T, LinkedInSentInvitationsToolResult> { static readonly bubbleName: "linkedin-sent-invitations-tool"; static readonly schema: z.ZodObject<{ operation: z.ZodEnum<["get_sent_invitations"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ type: z.ZodEnum<["none"]>; }, "strip", z.ZodTypeAny, { type: "none"; }, { type: "none"; }>, z.ZodObject<{ type: z.ZodEnum<["browserbase"]>; }, "strip", z.ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, z.ZodObject<{ type: z.ZodEnum<["custom"]>; proxy: z.ZodObject<{ id: z.ZodString; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", z.ZodTypeAny, { operation: "get_sent_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "get_sent_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; static readonly resultSchema: z.ZodObject<{ operation: z.ZodEnum<["get_sent_invitations"]>; success: z.ZodBoolean; invitations: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; sent_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; message: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_sent_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_sent_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }[] | undefined; }>; static readonly shortDescription = "Extract sent LinkedIn connection invitations"; static readonly longDescription = "Recordable LinkedIn Sent Invitations Tool for extracting pending sent connection requests."; static readonly alias = "linkedin-sent-invitations"; static readonly type = "tool"; private sessionId; private contextId; private cookies; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; private stepStartBrowserSession; private stepNavigateToSentInvitations; private stepWaitForInvitationsPage; private stepExtractInvitations; private stepEndBrowserSession; private evaluate; private detectIPAddress; performAction(): Promise<LinkedInSentInvitationsToolResult>; }
1826
1826
  export declare const SentInvitationInfoSchema: z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; sent_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }>; export type SentInvitationInfo = z.infer<typeof SentInvitationInfoSchema>; export declare const LinkedInSentInvitationsToolParamsSchema: z.ZodObject<{ operation: z.ZodEnum<["get_sent_invitations"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ type: z.ZodEnum<["none"]>; }, "strip", z.ZodTypeAny, { type: "none"; }, { type: "none"; }>, z.ZodObject<{ type: z.ZodEnum<["browserbase"]>; }, "strip", z.ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, z.ZodObject<{ type: z.ZodEnum<["custom"]>; proxy: z.ZodObject<{ id: z.ZodString; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", z.ZodTypeAny, { operation: "get_sent_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "get_sent_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; export declare const LinkedInSentInvitationsToolResultSchema: z.ZodObject<{ operation: z.ZodEnum<["get_sent_invitations"]>; success: z.ZodBoolean; invitations: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; sent_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }, { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; message: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_sent_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_sent_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; sent_date: string; headline?: string | undefined; profile_url?: string | undefined; }[] | undefined; }>; export type LinkedInSentInvitationsToolParamsInput = z.input<typeof LinkedInSentInvitationsToolParamsSchema>; export type LinkedInSentInvitationsToolResult = z.output<typeof LinkedInSentInvitationsToolResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1827
1827
  export interface LangGraphTool { name: string; description: string; schema: z.ZodSchema; func<TResult extends BubbleOperationResult = BubbleOperationResult>(params: unknown): Promise<BubbleResult<TResult>>; }
1828
1828
  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; }
@@ -1843,7 +1843,7 @@ export interface IUIBubble extends IBubble { readonly type: 'ui'; template: stri
1843
1843
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1844
1844
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
1845
1845
  export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const ReceivedInvitationInfoSchema: z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; mutual_connections: z.ZodOptional<z.ZodString>; received_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }>; export type ReceivedInvitationInfo = z.infer<typeof ReceivedInvitationInfoSchema>; export declare const LinkedInReceivedInvitationsToolParamsSchema: z.ZodObject<{ operation: z.ZodEnum<["get_received_invitations"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ type: z.ZodEnum<["none"]>; }, "strip", z.ZodTypeAny, { type: "none"; }, { type: "none"; }>, z.ZodObject<{ type: z.ZodEnum<["browserbase"]>; }, "strip", z.ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, z.ZodObject<{ type: z.ZodEnum<["custom"]>; proxy: z.ZodObject<{ id: z.ZodString; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", z.ZodTypeAny, { operation: "get_received_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "get_received_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; export declare const LinkedInReceivedInvitationsToolResultSchema: z.ZodObject<{ operation: z.ZodEnum<["get_received_invitations"]>; success: z.ZodBoolean; invitations: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; mutual_connections: z.ZodOptional<z.ZodString>; received_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; message: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_received_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_received_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }[] | undefined; }>; export
1846
- type LinkedInReceivedInvitationsToolParamsInput = z.input<typeof LinkedInReceivedInvitationsToolParamsSchema>;;; export type LinkedInReceivedInvitationsToolResult = z.output<typeof LinkedInReceivedInvitationsToolResultSchema>; export declare class LinkedInReceivedInvitationsTool<T extends LinkedInReceivedInvitationsToolParamsInput = LinkedInReceivedInvitationsToolParamsInput> extends ToolBubble<T, LinkedInReceivedInvitationsToolResult> { static readonly bubbleName: "linkedin-received-invitations-tool"; static readonly schema: import("zod").ZodObject<{ operation: import("zod").ZodEnum<["get_received_invitations"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; proxy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{ type: import("zod").ZodEnum<["none"]>; }, "strip", import("zod").ZodTypeAny, { type: "none"; }, { type: "none"; }>, import("zod").ZodObject<{ type: import("zod").ZodEnum<["browserbase"]>; }, "strip", import("zod").ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, import("zod").ZodObject<{ type: import("zod").ZodEnum<["custom"]>; proxy: import("zod").ZodObject<{ id: import("zod").ZodString; server: import("zod").ZodString; username: import("zod").ZodOptional<import("zod").ZodString>; password: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", import("zod").ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_received_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "get_received_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; static readonly resultSchema: import("zod").ZodObject<{ operation: import("zod").ZodEnum<["get_received_invitations"]>; success: import("zod").ZodBoolean; invitations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; headline: import("zod").ZodOptional<import("zod").ZodString>; mutual_connections: import("zod").ZodOptional<import("zod").ZodString>; received_date: import("zod").ZodString; profile_url: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }>, "many">>; total_count: import("zod").ZodOptional<import("zod").ZodNumber>; message: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_received_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_received_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }[] | undefined; }>; static readonly shortDescription = "Extract received LinkedIn connection invitations"; static readonly longDescription = "Recordable LinkedIn Received Invitations Tool. Supports pagination via scrolling and \"View more\" / \"Load more\" button clicks."; static readonly alias = "linkedin-received-invitations"; static readonly type = "tool"; private sessionId; private contextId; private cookies; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; private stepStartBrowserSession; private stepNavigateToReceivedInvitations; private stepWaitForInvitationsPage; private stepExtractAllInvitations; private stepEndBrowserSession; private evaluate; private detectIPAddress; performAction(): Promise<LinkedInReceivedInvitationsToolResult>; }
1846
+ type LinkedInReceivedInvitationsToolParamsInput = z.input<typeof LinkedInReceivedInvitationsToolParamsSchema>;;; export type LinkedInReceivedInvitationsToolResult = z.output<typeof LinkedInReceivedInvitationsToolResultSchema>; export declare class LinkedInReceivedInvitationsTool<T extends LinkedInReceivedInvitationsToolParamsInput = LinkedInReceivedInvitationsToolParamsInput> extends ToolBubble<T, LinkedInReceivedInvitationsToolResult> { static readonly bubbleName: "linkedin-received-invitations-tool"; static readonly schema: z.ZodObject<{ operation: z.ZodEnum<["get_received_invitations"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ type: z.ZodEnum<["none"]>; }, "strip", z.ZodTypeAny, { type: "none"; }, { type: "none"; }>, z.ZodObject<{ type: z.ZodEnum<["browserbase"]>; }, "strip", z.ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, z.ZodObject<{ type: z.ZodEnum<["custom"]>; proxy: z.ZodObject<{ id: z.ZodString; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", z.ZodTypeAny, { operation: "get_received_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "get_received_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; static readonly resultSchema: z.ZodObject<{ operation: z.ZodEnum<["get_received_invitations"]>; success: z.ZodBoolean; invitations: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; mutual_connections: z.ZodOptional<z.ZodString>; received_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; message: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_received_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_received_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }[] | undefined; }>; static readonly shortDescription = "Extract received LinkedIn connection invitations"; static readonly longDescription = "Recordable LinkedIn Received Invitations Tool. Supports pagination via scrolling and \"View more\" / \"Load more\" button clicks."; static readonly alias = "linkedin-received-invitations"; static readonly type = "tool"; private sessionId; private contextId; private cookies; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; private stepStartBrowserSession; private stepNavigateToReceivedInvitations; private stepWaitForInvitationsPage; private stepExtractAllInvitations; private stepEndBrowserSession; private evaluate; private detectIPAddress; performAction(): Promise<LinkedInReceivedInvitationsToolResult>; }
1847
1847
  export declare const ReceivedInvitationInfoSchema: z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; mutual_connections: z.ZodOptional<z.ZodString>; received_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }>; export type ReceivedInvitationInfo = z.infer<typeof ReceivedInvitationInfoSchema>; export declare const LinkedInReceivedInvitationsToolParamsSchema: z.ZodObject<{ operation: z.ZodEnum<["get_received_invitations"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ type: z.ZodEnum<["none"]>; }, "strip", z.ZodTypeAny, { type: "none"; }, { type: "none"; }>, z.ZodObject<{ type: z.ZodEnum<["browserbase"]>; }, "strip", z.ZodTypeAny, { type: "browserbase"; }, { type: "browserbase"; }>, z.ZodObject<{ type: z.ZodEnum<["custom"]>; proxy: z.ZodObject<{ id: z.ZodString; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; server: string; password?: string | undefined; username?: string | undefined; }, { id: string; server: string; password?: string | undefined; username?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }, { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; }>]>>; }, "strip", z.ZodTypeAny, { operation: "get_received_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }, { operation: "get_received_invitations"; credentials?: Partial<Record<CredentialType, string>> | undefined; proxy?: { type: "none"; } | { type: "browserbase"; } | { type: "custom"; proxy: { id: string; server: string; password?: string | undefined; username?: string | undefined; }; } | undefined; }>; export declare const LinkedInReceivedInvitationsToolResultSchema: z.ZodObject<{ operation: z.ZodEnum<["get_received_invitations"]>; success: z.ZodBoolean; invitations: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; headline: z.ZodOptional<z.ZodString>; mutual_connections: z.ZodOptional<z.ZodString>; received_date: z.ZodString; profile_url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }, { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; message: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_received_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_received_invitations"; message?: string | undefined; total_count?: number | undefined; invitations?: { name: string; received_date: string; headline?: string | undefined; profile_url?: string | undefined; mutual_connections?: string | undefined; }[] | undefined; }>; export type LinkedInReceivedInvitationsToolParamsInput = z.input<typeof LinkedInReceivedInvitationsToolParamsSchema>; export type LinkedInReceivedInvitationsToolResult = z.output<typeof LinkedInReceivedInvitationsToolResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1848
1848
  export interface LangGraphTool { name: string; description: string; schema: z.ZodSchema; func<TResult extends BubbleOperationResult = BubbleOperationResult>(params: unknown): Promise<BubbleResult<TResult>>; }
1849
1849
  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; }
@@ -298,6 +298,27 @@ export declare class BrowserBaseBubble<T extends BrowserBaseParamsInput = Browse
298
298
  credentials?: Partial<Record<CredentialType, string>> | undefined;
299
299
  delay?: number | undefined;
300
300
  clear_first?: boolean | undefined;
301
+ }>, import("zod").ZodObject<{
302
+ operation: import("zod").ZodLiteral<"select">;
303
+ session_id: import("zod").ZodString;
304
+ selector: import("zod").ZodString;
305
+ value: import("zod").ZodString;
306
+ timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
307
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
308
+ }, "strip", import("zod").ZodTypeAny, {
309
+ value: string;
310
+ timeout: number;
311
+ operation: "select";
312
+ session_id: string;
313
+ selector: string;
314
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
315
+ }, {
316
+ value: string;
317
+ operation: "select";
318
+ session_id: string;
319
+ selector: string;
320
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
321
+ timeout?: number | undefined;
301
322
  }>, import("zod").ZodObject<{
302
323
  operation: import("zod").ZodLiteral<"evaluate">;
303
324
  session_id: import("zod").ZodString;
@@ -464,6 +485,18 @@ export declare class BrowserBaseBubble<T extends BrowserBaseParamsInput = Browse
464
485
  error: string;
465
486
  success: boolean;
466
487
  operation: "type";
488
+ }>, import("zod").ZodObject<{
489
+ operation: import("zod").ZodLiteral<"select">;
490
+ success: import("zod").ZodBoolean;
491
+ error: import("zod").ZodString;
492
+ }, "strip", import("zod").ZodTypeAny, {
493
+ error: string;
494
+ success: boolean;
495
+ operation: "select";
496
+ }, {
497
+ error: string;
498
+ success: boolean;
499
+ operation: "select";
467
500
  }>, import("zod").ZodObject<{
468
501
  operation: import("zod").ZodLiteral<"evaluate">;
469
502
  success: import("zod").ZodBoolean;
@@ -639,6 +672,10 @@ export declare class BrowserBaseBubble<T extends BrowserBaseParamsInput = Browse
639
672
  * Type text into an element
640
673
  */
641
674
  private typeText;
675
+ /**
676
+ * Select an option in a <select> element using Puppeteer's page.select()
677
+ */
678
+ private selectOption;
642
679
  /**
643
680
  * Execute JavaScript in page context
644
681
  */