@bubblelab/bubble-core 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bubble-bundle.d.ts +28 -28
- package/dist/bubbles/service-bubble/ai-agent.d.ts +24 -24
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +16 -2
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/gmail.d.ts +4 -4
- package/dist/bubbles/service-bubble/google-calendar.d.ts +6 -6
- package/dist/bubbles/service-bubble/google-drive.d.ts +4 -4
- package/dist/bubbles/service-bubble/google-sheets.d.ts +20 -20
- package/dist/bubbles/service-bubble/http.d.ts +2 -2
- package/dist/bubbles/service-bubble/postgresql.d.ts +4 -4
- package/dist/bubbles/service-bubble/slack.d.ts +58 -58
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +10 -10
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +66 -66
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +50 -50
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +92 -92
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +36 -36
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +46 -46
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +60 -60
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +14 -14
- package/dist/logging/BubbleLogger.d.ts.map +1 -1
- package/dist/logging/BubbleLogger.js +16 -4
- package/dist/logging/BubbleLogger.js.map +1 -1
- package/dist/types/ai-models.d.ts +1 -1
- package/dist/types/ai-models.d.ts.map +1 -1
- package/dist/types/ai-models.js +2 -0
- package/dist/types/ai-models.js.map +1 -1
- package/dist/types/base-bubble-class.d.ts.map +1 -1
- package/dist/types/base-bubble-class.js +7 -1
- package/dist/types/base-bubble-class.js.map +1 -1
- package/package.json +4 -3
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts +0 -8
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts.map +0 -1
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.js +0 -65
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.js.map +0 -1
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts +0 -125
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts.map +0 -1
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js +0 -169
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js.map +0 -1
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts +0 -97
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts.map +0 -1
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js +0 -327
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js.map +0 -1
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts +0 -157
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts.map +0 -1
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js +0 -310
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js.map +0 -1
- package/dist/bubbles/workflow-bubble/workflow-template.d.ts +0 -144
- package/dist/bubbles/workflow-bubble/workflow-template.d.ts.map +0 -1
- package/dist/bubbles/workflow-bubble/workflow-template.js +0 -124
- package/dist/bubbles/workflow-bubble/workflow-template.js.map +0 -1
- package/dist/types/streaming-events.d.ts +0 -18
- package/dist/types/streaming-events.d.ts.map +0 -1
- package/dist/types/streaming-events.js +0 -5
- package/dist/types/streaming-events.js.map +0 -1
- package/dist/utils/mock-data-generator.d.ts +0 -43
- package/dist/utils/mock-data-generator.d.ts.map +0 -1
- package/dist/utils/mock-data-generator.js +0 -312
- package/dist/utils/mock-data-generator.js.map +0 -1
package/dist/bubble-bundle.d.ts
CHANGED
|
@@ -361,7 +361,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
361
361
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
362
362
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
363
363
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
364
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; export type StreamingEvent = { type: 'start'; data: { message: string; maxIterations: number; timestamp: string; }; } | { type: 'llm_start'; data: { model: string; temperature: number; }; } | { type: 'token'; data: { content: string; messageId: string; }; } | { type: 'llm_complete'; data: { messageId: string; totalTokens?: number; }; } | { type: 'tool_start'; data: { tool: string; input: unknown; callId: string; }; } | { type: 'tool_complete'; data: { callId: string; output: unknown; duration: number; }; } | { type: 'iteration_start'; data: { iteration: number; }; } | { type: 'iteration_complete'; data: { iteration: number; hasToolCalls: boolean; }; } | { type: 'error'; data: { error: string; recoverable: boolean; }; } | { type: 'complete'; data: { result: AIAgentResult; totalDuration: number; }; }; export type StreamingCallback = (event: StreamingEvent) => Promise<void> | void; declare const AIAgentParamsSchema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { message: string; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; tools: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; streaming: boolean; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { message: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; images?: ({ data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; systemPrompt?: string | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; tools?: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; streaming?: boolean | undefined; }>; declare const AIAgentResultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }, { success: boolean; error: string; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }>; type AIAgentParams = z.input<typeof AIAgentParamsSchema>;;; type AIAgentParamsParsed = z.output<typeof AIAgentParamsSchema>; type AIAgentResult = z.output<typeof AIAgentResultSchema>; export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AIAgentResult> { static readonly type: "service"; static readonly service = "ai-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { message: string; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; tools: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; streaming: boolean; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { message: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; images?: ({ data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; systemPrompt?: string | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; tools?: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; streaming?: boolean | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }, { success: boolean; error: string; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }>; static readonly shortDescription = "AI agent with LangGraph for tool-enabled conversations, multimodal support, and JSON mode"; static readonly longDescription = "\n An AI agent powered by LangGraph that can use any tool bubble to answer questions.\n Use cases:\n - Add tools to enhance the AI agent's capabilities (web-search-tool, web-scrape-tool)\n - Multi-step reasoning with tool assistance\n - Tool-augmented conversations with any registered tool\n - JSON mode for structured output (strips markdown formatting)\n "; static readonly alias = "agent"; private factory; constructor(params?: AIAgentParams, context?: BubbleContext); testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<AIAgentResult>; actionWithStreaming(streamingCallback: StreamingCallback, context?: BubbleContext): Promise<AIAgentResult>; protected chooseCredential(): string | undefined; private formatFinalResponse; private formatGeminiImageResponse; private initializeModel; private initializeTools; private createAgentGraph; private executeAgent; private executeAgentWithStreaming; }
|
|
364
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; export type StreamingEvent = { type: 'start'; data: { message: string; maxIterations: number; timestamp: string; }; } | { type: 'llm_start'; data: { model: string; temperature: number; }; } | { type: 'token'; data: { content: string; messageId: string; }; } | { type: 'llm_complete'; data: { messageId: string; totalTokens?: number; }; } | { type: 'tool_start'; data: { tool: string; input: unknown; callId: string; }; } | { type: 'tool_complete'; data: { callId: string; output: unknown; duration: number; }; } | { type: 'iteration_start'; data: { iteration: number; }; } | { type: 'iteration_complete'; data: { iteration: number; hasToolCalls: boolean; }; } | { type: 'error'; data: { error: string; recoverable: boolean; }; } | { type: 'complete'; data: { result: AIAgentResult; totalDuration: number; }; }; export type StreamingCallback = (event: StreamingEvent) => Promise<void> | void; declare const AIAgentParamsSchema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; mimeType?: string | undefined; description?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { message: string; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; tools: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; streaming: boolean; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { message: string; name?: string | undefined; images?: ({ data: string; type?: "base64" | undefined; mimeType?: string | undefined; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; systemPrompt?: string | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tools?: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; streaming?: boolean | undefined; }>; declare const AIAgentResultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; error: string; success: boolean; }, { response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; error: string; success: boolean; }>; type AIAgentParams = z.input<typeof AIAgentParamsSchema>;;; type AIAgentParamsParsed = z.output<typeof AIAgentParamsSchema>; type AIAgentResult = z.output<typeof AIAgentResultSchema>; export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AIAgentResult> { static readonly type: "service"; static readonly service = "ai-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; mimeType?: string | undefined; description?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { message: string; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; tools: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; streaming: boolean; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { message: string; name?: string | undefined; images?: ({ data: string; type?: "base64" | undefined; mimeType?: string | undefined; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; systemPrompt?: string | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tools?: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; streaming?: boolean | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; error: string; success: boolean; }, { response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; error: string; success: boolean; }>; static readonly shortDescription = "AI agent with LangGraph for tool-enabled conversations, multimodal support, and JSON mode"; static readonly longDescription = "\n An AI agent powered by LangGraph that can use any tool bubble to answer questions.\n Use cases:\n - Add tools to enhance the AI agent's capabilities (web-search-tool, web-scrape-tool)\n - Multi-step reasoning with tool assistance\n - Tool-augmented conversations with any registered tool\n - JSON mode for structured output (strips markdown formatting)\n "; static readonly alias = "agent"; private factory; constructor(params?: AIAgentParams, context?: BubbleContext); testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<AIAgentResult>; actionWithStreaming(streamingCallback: StreamingCallback, context?: BubbleContext): Promise<AIAgentResult>; protected chooseCredential(): string | undefined; private formatFinalResponse; private formatGeminiImageResponse; private initializeModel; private initializeTools; private createAgentGraph; private executeAgent; private executeAgentWithStreaming; }
|
|
365
365
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
366
366
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
367
367
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -415,7 +415,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
415
415
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
416
416
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
417
417
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
418
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; export declare const SqlOperations: z.ZodEnum<["SELECT", "INSERT", "UPDATE", "DELETE", "WITH", "EXPLAIN", "ANALYZE", "SHOW", "DESCRIBE", "DESC", "CREATE"]>; declare const PostgreSQLParamsSchema: z.ZodObject<{ ignoreSSL: z.ZodDefault<z.ZodBoolean>; query: z.ZodEffects<z.ZodString, string, string>; allowedOperations: z.ZodDefault<z.ZodArray<z.ZodEnum<["SELECT", "INSERT", "UPDATE", "DELETE", "WITH", "EXPLAIN", "ANALYZE", "SHOW", "DESCRIBE", "DESC", "CREATE"]>, "many">>; parameters: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>; timeout: z.ZodDefault<z.ZodNumber>; maxRows: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, {
|
|
418
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; export declare const SqlOperations: z.ZodEnum<["SELECT", "INSERT", "UPDATE", "DELETE", "WITH", "EXPLAIN", "ANALYZE", "SHOW", "DESCRIBE", "DESC", "CREATE"]>; declare const PostgreSQLParamsSchema: z.ZodObject<{ ignoreSSL: z.ZodDefault<z.ZodBoolean>; query: z.ZodEffects<z.ZodString, string, string>; allowedOperations: z.ZodDefault<z.ZodArray<z.ZodEnum<["SELECT", "INSERT", "UPDATE", "DELETE", "WITH", "EXPLAIN", "ANALYZE", "SHOW", "DESCRIBE", "DESC", "CREATE"]>, "many">>; parameters: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>; timeout: z.ZodDefault<z.ZodNumber>; maxRows: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parameters: unknown[]; timeout: number; ignoreSSL: boolean; query: string; allowedOperations: ("SELECT" | "INSERT" | "UPDATE" | "DELETE" | "WITH" | "EXPLAIN" | "ANALYZE" | "SHOW" | "DESCRIBE" | "DESC" | "CREATE")[]; maxRows: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; parameters?: unknown[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; ignoreSSL?: boolean | undefined; allowedOperations?: ("SELECT" | "INSERT" | "UPDATE" | "DELETE" | "WITH" | "EXPLAIN" | "ANALYZE" | "SHOW" | "DESCRIBE" | "DESC" | "CREATE")[] | undefined; maxRows?: number | undefined; }>; type PostgreSQLParamsInput = z.input<typeof PostgreSQLParamsSchema>;; type PostgreSQLParams = z.output<typeof PostgreSQLParamsSchema>; declare const PostgreSQLResultSchema: z.ZodObject<{ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">; rowCount: z.ZodNullable<z.ZodNumber>; command: z.ZodString; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; dataTypeID: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; dataTypeID: number; }, { name: string; dataTypeID: number; }>, "many">>; executionTime: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; cleanedJSONString: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; rows: Record<string, unknown>[]; rowCount: number | null; command: string; executionTime: number; cleanedJSONString: string; fields?: { name: string; dataTypeID: number; }[] | undefined; }, { success: boolean; error: string; rows: Record<string, unknown>[]; rowCount: number | null; command: string; executionTime: number; cleanedJSONString: string; fields?: { name: string; dataTypeID: number; }[] | undefined; }>; type PostgreSQLResult = z.output<typeof PostgreSQLResultSchema>; export declare class PostgreSQLBubble extends ServiceBubble<PostgreSQLParams, PostgreSQLResult> { testCredential(): Promise<boolean>; static readonly type: "service"; static readonly service = "postgresql"; static readonly authType: "connection-string"; static readonly bubbleName = "postgresql"; static readonly schema: z.ZodObject<{ ignoreSSL: z.ZodDefault<z.ZodBoolean>; query: z.ZodEffects<z.ZodString, string, string>; allowedOperations: z.ZodDefault<z.ZodArray<z.ZodEnum<["SELECT", "INSERT", "UPDATE", "DELETE", "WITH", "EXPLAIN", "ANALYZE", "SHOW", "DESCRIBE", "DESC", "CREATE"]>, "many">>; parameters: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>; timeout: z.ZodDefault<z.ZodNumber>; maxRows: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parameters: unknown[]; timeout: number; ignoreSSL: boolean; query: string; allowedOperations: ("SELECT" | "INSERT" | "UPDATE" | "DELETE" | "WITH" | "EXPLAIN" | "ANALYZE" | "SHOW" | "DESCRIBE" | "DESC" | "CREATE")[]; maxRows: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; parameters?: unknown[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; ignoreSSL?: boolean | undefined; allowedOperations?: ("SELECT" | "INSERT" | "UPDATE" | "DELETE" | "WITH" | "EXPLAIN" | "ANALYZE" | "SHOW" | "DESCRIBE" | "DESC" | "CREATE")[] | undefined; maxRows?: number | undefined; }>; static readonly resultSchema: z.ZodObject<{ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">; rowCount: z.ZodNullable<z.ZodNumber>; command: z.ZodString; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; dataTypeID: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; dataTypeID: number; }, { name: string; dataTypeID: number; }>, "many">>; executionTime: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; cleanedJSONString: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; rows: Record<string, unknown>[]; rowCount: number | null; command: string; executionTime: number; cleanedJSONString: string; fields?: { name: string; dataTypeID: number; }[] | undefined; }, { success: boolean; error: string; rows: Record<string, unknown>[]; rowCount: number | null; command: string; executionTime: number; cleanedJSONString: string; fields?: { name: string; dataTypeID: number; }[] | undefined; }>; static readonly shortDescription = "Execute PostgreSQL queries with operation validation"; static readonly longDescription = "\n Execute SQL queries against PostgreSQL databases with proper validation and security controls.\n Use cases:\n - Data retrieval with SELECT queries\n - Data manipulation with INSERT, UPDATE, DELETE (when explicitly allowed)\n - Database reporting and analytics\n - Data migration and synchronization tasks\n - JSON string output for integration with other systems\n \n Security Features:\n - Operation whitelist (defaults to SELECT only)\n - Parameterized queries to prevent SQL injection\n - Connection timeout controls\n - Result sanitization for JSON output\n "; static readonly alias = "pg"; constructor(params?: PostgreSQLParamsInput, context?: BubbleContext); protected performAction(context?: BubbleContext): Promise<PostgreSQLResult>; getCredentialMetadata(): Promise<DatabaseMetadata | undefined>; private validateSqlOperation; private validateParameterUsage; private validateParenthesesBalance; private cleanJSONString; private cleanObject; protected chooseCredential(): string | undefined; }
|
|
419
419
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
420
420
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
421
421
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -469,7 +469,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
469
469
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
470
470
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
471
471
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
472
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; channel: z.ZodString; text: z.ZodString; username: z.ZodOptional<z.ZodString>; icon_emoji: z.ZodOptional<z.ZodString>; icon_url: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; thread_ts: z.ZodOptional<z.ZodString>; reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; channel: string; reply_broadcast: boolean; unfurl_links: boolean; unfurl_media: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "send_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; reply_broadcast?: boolean | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>; exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_channels"; types: ("public_channel" | "private_channel" | "mpim" | "im")[]; exclude_archived: boolean; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_channels"; credentials?: Partial<Record<CredentialType, string>> | undefined; types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined; exclude_archived?: boolean | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; channel: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_channel_info"; channel: string; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_channel_info"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; user: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { user: string; operation: "get_user_info"; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { user: string; operation: "get_user_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; limit: number; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; channel: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_conversation_history"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_conversation_history"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; channel: z.ZodString; ts: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_thread_replies"; channel: string; ts: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_thread_replies"; channel: string; ts: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; channel: z.ZodString; ts: z.ZodString; text: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_message"; channel: string; ts: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { operation: "update_message"; channel: string; ts: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; channel: z.ZodString; ts: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_message"; channel: string; ts: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_message"; channel: string; ts: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; channel: z.ZodString; file_path: z.ZodString; filename: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; initial_comment: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "upload_file"; channel: string; file_path: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; thread_ts?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }, { operation: "upload_file"; channel: string; file_path: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; thread_ts?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }>]>; declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; channel?: string | undefined; ts?: string | undefined; }, { success: boolean; error: string; operation: "send_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; channel?: string | undefined; ts?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; ok: z.ZodBoolean; channels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; ok: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; ok: z.ZodBoolean; members: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_conversation_history"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }, { success: boolean; error: string; operation: "get_conversation_history"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_thread_replies"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }, { success: boolean; error: string; operation: "get_thread_replies"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; text?: string | undefined; channel?: string | undefined; ts?: string | undefined; }, { success: boolean; error: string; operation: "update_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; text?: string | undefined; channel?: string | undefined; ts?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_message"; ok: boolean; channel?: string | undefined; ts?: string | undefined; }, { success: boolean; error: string; operation: "delete_message"; ok: boolean; channel?: string | undefined; ts?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "add_reaction"; ok: boolean; }, { success: boolean; error: string; operation: "add_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "remove_reaction"; ok: boolean; }, { success: boolean; error: string; operation: "remove_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; created: z.ZodNumber; timestamp: z.ZodNumber; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; pretty_type: z.ZodString; user: z.ZodString; editable: z.ZodBoolean; size: z.ZodNumber; mode: z.ZodString; is_external: z.ZodBoolean; external_type: z.ZodString; is_public: z.ZodBoolean; public_url_shared: z.ZodBoolean; display_as_bot: z.ZodBoolean; username: z.ZodString; url_private: z.ZodString; url_private_download: z.ZodString; permalink: z.ZodString; permalink_public: z.ZodOptional<z.ZodString>; shares: z.ZodOptional<z.ZodObject<{ public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }>, "many">>>; private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; }, { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; }>>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; has_rich_preview: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }, { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "upload_file"; ok: boolean; file?: { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }, { success: boolean; error: string; operation: "upload_file"; ok: boolean; file?: { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }>]>; type SlackResult = z.output<typeof SlackResultSchema>; type SlackParams = z.input<typeof SlackParamsSchema>;; export type SlackOperationResult<T extends SlackParams['operation']> = Extract<SlackResult, { operation: T; }>; export declare class SlackBubble<T extends SlackParams = SlackParams> extends ServiceBubble<T, Extract<SlackResult, { operation: T['operation']; }>> { testCredential(): Promise<boolean>; static readonly type: "service"; static readonly service = "slack"; static readonly authType: "apikey"; static readonly bubbleName = "slack"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; channel: z.ZodString; text: z.ZodString; username: z.ZodOptional<z.ZodString>; icon_emoji: z.ZodOptional<z.ZodString>; icon_url: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; thread_ts: z.ZodOptional<z.ZodString>; reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; channel: string; reply_broadcast: boolean; unfurl_links: boolean; unfurl_media: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "send_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; reply_broadcast?: boolean | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>; exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_channels"; types: ("public_channel" | "private_channel" | "mpim" | "im")[]; exclude_archived: boolean; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_channels"; credentials?: Partial<Record<CredentialType, string>> | undefined; types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined; exclude_archived?: boolean | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; channel: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_channel_info"; channel: string; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_channel_info"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; user: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { user: string; operation: "get_user_info"; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { user: string; operation: "get_user_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; limit: number; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; channel: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_conversation_history"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_conversation_history"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; channel: z.ZodString; ts: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_thread_replies"; channel: string; ts: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_thread_replies"; channel: string; ts: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; channel: z.ZodString; ts: z.ZodString; text: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_message"; channel: string; ts: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { operation: "update_message"; channel: string; ts: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; channel: z.ZodString; ts: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_message"; channel: string; ts: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_message"; channel: string; ts: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; channel: z.ZodString; file_path: z.ZodString; filename: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; initial_comment: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "upload_file"; channel: string; file_path: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; thread_ts?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }, { operation: "upload_file"; channel: string; file_path: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; thread_ts?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; channel?: string | undefined; ts?: string | undefined; }, { success: boolean; error: string; operation: "send_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; channel?: string | undefined; ts?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; ok: z.ZodBoolean; channels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; ok: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; ok: z.ZodBoolean; members: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_conversation_history"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }, { success: boolean; error: string; operation: "get_conversation_history"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_thread_replies"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }, { success: boolean; error: string; operation: "get_thread_replies"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; text?: string | undefined; channel?: string | undefined; ts?: string | undefined; }, { success: boolean; error: string; operation: "update_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; text?: string | undefined; channel?: string | undefined; ts?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_message"; ok: boolean; channel?: string | undefined; ts?: string | undefined; }, { success: boolean; error: string; operation: "delete_message"; ok: boolean; channel?: string | undefined; ts?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "add_reaction"; ok: boolean; }, { success: boolean; error: string; operation: "add_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "remove_reaction"; ok: boolean; }, { success: boolean; error: string; operation: "remove_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; created: z.ZodNumber; timestamp: z.ZodNumber; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; pretty_type: z.ZodString; user: z.ZodString; editable: z.ZodBoolean; size: z.ZodNumber; mode: z.ZodString; is_external: z.ZodBoolean; external_type: z.ZodString; is_public: z.ZodBoolean; public_url_shared: z.ZodBoolean; display_as_bot: z.ZodBoolean; username: z.ZodString; url_private: z.ZodString; url_private_download: z.ZodString; permalink: z.ZodString; permalink_public: z.ZodOptional<z.ZodString>; shares: z.ZodOptional<z.ZodObject<{ public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }>, "many">>>; private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; }, { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; }>>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; has_rich_preview: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }, { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "upload_file"; ok: boolean; file?: { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }, { success: boolean; error: string; operation: "upload_file"; ok: boolean; file?: { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; reply_count: number; reply_users_count: number; reply_users: string[]; team_id: string; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }>]>; static readonly shortDescription = "Slack integration for messaging and workspace management"; static readonly longDescription = "\n Comprehensive Slack integration bubble for managing messages, channels, and users.\n Use cases:\n - Send messages to channels or direct messages\n - Retrieve channel information and list channels\n - Get user information and list workspace members\n - Manage conversation history and message operations\n - Add/remove reactions and manage message interactions\n \n Security Features:\n - Token-based authentication\n - Parameter validation and sanitization\n - Rate limiting awareness\n - Comprehensive error handling\n "; static readonly alias = "slack"; constructor(params?: T, context?: BubbleContext); protected performAction(context?: BubbleContext): Promise<Extract<SlackResult, { operation: T['operation']; }>>; private resolveChannelId; private sendMessage; private listChannels; private getChannelInfo; private getUserInfo; private listUsers; private getConversationHistory; private getThreadReplies; private updateMessage; private deleteMessage; private addReaction; private removeReaction; private uploadFile; protected chooseCredential(): string | undefined; private makeSlackApiCall; }
|
|
472
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; channel: z.ZodString; text: z.ZodString; username: z.ZodOptional<z.ZodString>; icon_emoji: z.ZodOptional<z.ZodString>; icon_url: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; thread_ts: z.ZodOptional<z.ZodString>; reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; channel: string; reply_broadcast: boolean; unfurl_links: boolean; unfurl_media: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "send_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; reply_broadcast?: boolean | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>; exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { types: ("public_channel" | "private_channel" | "mpim" | "im")[]; operation: "list_channels"; exclude_archived: boolean; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_channels"; credentials?: Partial<Record<CredentialType, string>> | undefined; types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined; exclude_archived?: boolean | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; channel: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_channel_info"; channel: string; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_channel_info"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; user: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { user: string; operation: "get_user_info"; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { user: string; operation: "get_user_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; limit: number; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; channel: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_conversation_history"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_conversation_history"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; channel: z.ZodString; ts: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; ts: string; operation: "get_thread_replies"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { ts: string; operation: "get_thread_replies"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; channel: z.ZodString; ts: z.ZodString; text: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; channel: z.ZodString; ts: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; channel: z.ZodString; file_path: z.ZodString; filename: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; initial_comment: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "upload_file"; channel: string; file_path: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; thread_ts?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }, { operation: "upload_file"; channel: string; file_path: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; thread_ts?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }>]>; declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }, { success: boolean; error: string; operation: "send_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; ok: z.ZodBoolean; channels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; ok: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; ok: z.ZodBoolean; members: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_conversation_history"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }, { success: boolean; error: string; operation: "get_conversation_history"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_thread_replies"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }, { success: boolean; error: string; operation: "get_thread_replies"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }, { success: boolean; error: string; operation: "update_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }, { success: boolean; error: string; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "add_reaction"; ok: boolean; }, { success: boolean; error: string; operation: "add_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "remove_reaction"; ok: boolean; }, { success: boolean; error: string; operation: "remove_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; created: z.ZodNumber; timestamp: z.ZodNumber; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; pretty_type: z.ZodString; user: z.ZodString; editable: z.ZodBoolean; size: z.ZodNumber; mode: z.ZodString; is_external: z.ZodBoolean; external_type: z.ZodString; is_public: z.ZodBoolean; public_url_shared: z.ZodBoolean; display_as_bot: z.ZodBoolean; username: z.ZodString; url_private: z.ZodString; url_private_download: z.ZodString; permalink: z.ZodString; permalink_public: z.ZodOptional<z.ZodString>; shares: z.ZodOptional<z.ZodObject<{ public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }>>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; has_rich_preview: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }, { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "upload_file"; ok: boolean; file?: { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }, { success: boolean; error: string; operation: "upload_file"; ok: boolean; file?: { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }>]>; type SlackResult = z.output<typeof SlackResultSchema>; type SlackParams = z.input<typeof SlackParamsSchema>;; export type SlackOperationResult<T extends SlackParams['operation']> = Extract<SlackResult, { operation: T; }>; export declare class SlackBubble<T extends SlackParams = SlackParams> extends ServiceBubble<T, Extract<SlackResult, { operation: T['operation']; }>> { testCredential(): Promise<boolean>; static readonly type: "service"; static readonly service = "slack"; static readonly authType: "apikey"; static readonly bubbleName = "slack"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; channel: z.ZodString; text: z.ZodString; username: z.ZodOptional<z.ZodString>; icon_emoji: z.ZodOptional<z.ZodString>; icon_url: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; thread_ts: z.ZodOptional<z.ZodString>; reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { text: string; operation: "send_message"; channel: string; reply_broadcast: boolean; unfurl_links: boolean; unfurl_media: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; }, { text: string; operation: "send_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; username?: string | undefined; icon_emoji?: string | undefined; icon_url?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; thread_ts?: string | undefined; reply_broadcast?: boolean | undefined; unfurl_links?: boolean | undefined; unfurl_media?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>; exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { types: ("public_channel" | "private_channel" | "mpim" | "im")[]; operation: "list_channels"; exclude_archived: boolean; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_channels"; credentials?: Partial<Record<CredentialType, string>> | undefined; types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined; exclude_archived?: boolean | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; channel: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_channel_info"; channel: string; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_channel_info"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; user: z.ZodString; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { user: string; operation: "get_user_info"; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { user: string; operation: "get_user_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; limit: number; include_locale: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; include_locale?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; channel: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; operation: "get_conversation_history"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { operation: "get_conversation_history"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; channel: z.ZodString; ts: z.ZodString; latest: z.ZodOptional<z.ZodString>; oldest: z.ZodOptional<z.ZodString>; inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { inclusive: boolean; ts: string; operation: "get_thread_replies"; channel: string; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }, { ts: string; operation: "get_thread_replies"; channel: string; inclusive?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; latest?: string | undefined; oldest?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; channel: z.ZodString; ts: z.ZodString; text: z.ZodOptional<z.ZodString>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; pretext: z.ZodOptional<z.ZodString>; author_name: z.ZodOptional<z.ZodString>; author_link: z.ZodOptional<z.ZodString>; author_icon: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; title_link: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ title: z.ZodString; value: z.ZodString; short: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; title: string; short?: boolean | undefined; }, { value: string; title: string; short?: boolean | undefined; }>, "many">>; image_url: z.ZodOptional<z.ZodString>; thumb_url: z.ZodOptional<z.ZodString>; footer: z.ZodOptional<z.ZodString>; footer_icon: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }, { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }>, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectOutputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { ts: string; operation: "update_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; text?: string | undefined; attachments?: { title?: string | undefined; text?: string | undefined; image_url?: string | undefined; fields?: { value: string; title: string; short?: boolean | undefined; }[] | undefined; color?: string | undefined; pretext?: string | undefined; author_name?: string | undefined; author_link?: string | undefined; author_icon?: string | undefined; title_link?: string | undefined; thumb_url?: string | undefined; footer?: string | undefined; footer_icon?: string | undefined; ts?: number | undefined; }[] | undefined; blocks?: z.objectInputType<{ type: z.ZodString; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>; text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; alt_text: z.ZodOptional<z.ZodString>; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }, { type: "image" | "plain_text" | "mrkdwn"; emoji?: boolean | undefined; text?: string | undefined; image_url?: string | undefined; verbatim?: boolean | undefined; alt_text?: string | undefined; }>, "many">>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; channel: z.ZodString; ts: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { ts: string; operation: "delete_message"; channel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "add_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; name: z.ZodString; channel: z.ZodString; timestamp: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { name: string; operation: "remove_reaction"; channel: string; timestamp: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; channel: z.ZodString; file_path: z.ZodString; filename: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; initial_comment: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "upload_file"; channel: string; file_path: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; thread_ts?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }, { operation: "upload_file"; channel: string; file_path: string; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; thread_ts?: string | undefined; filename?: string | undefined; initial_comment?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }, { success: boolean; error: string; operation: "send_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_channels">; ok: z.ZodBoolean; channels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_channels"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; channels?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_channel_info">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; is_channel: z.ZodOptional<z.ZodBoolean>; is_group: z.ZodOptional<z.ZodBoolean>; is_im: z.ZodOptional<z.ZodBoolean>; is_mpim: z.ZodOptional<z.ZodBoolean>; is_private: z.ZodOptional<z.ZodBoolean>; created: z.ZodNumber; is_archived: z.ZodBoolean; is_general: z.ZodOptional<z.ZodBoolean>; unlinked: z.ZodOptional<z.ZodNumber>; name_normalized: z.ZodOptional<z.ZodString>; is_shared: z.ZodOptional<z.ZodBoolean>; is_ext_shared: z.ZodOptional<z.ZodBoolean>; is_org_shared: z.ZodOptional<z.ZodBoolean>; shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>; is_member: z.ZodOptional<z.ZodBoolean>; is_open: z.ZodOptional<z.ZodBoolean>; topic: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; purpose: z.ZodOptional<z.ZodObject<{ value: z.ZodString; creator: z.ZodString; last_set: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; creator: string; last_set: number; }, { value: string; creator: string; last_set: number; }>>; num_members: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }, { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_channel_info"; ok: boolean; channel?: { name: string; id: string; created: number; is_archived: boolean; is_channel?: boolean | undefined; is_group?: boolean | undefined; is_im?: boolean | undefined; is_mpim?: boolean | undefined; is_private?: boolean | undefined; is_general?: boolean | undefined; unlinked?: number | undefined; name_normalized?: string | undefined; is_shared?: boolean | undefined; is_ext_shared?: boolean | undefined; is_org_shared?: boolean | undefined; shared_team_ids?: string[] | undefined; pending_shared?: string[] | undefined; pending_connected_team_ids?: string[] | undefined; is_pending_ext_shared?: boolean | undefined; is_member?: boolean | undefined; is_open?: boolean | undefined; topic?: { value: string; creator: string; last_set: number; } | undefined; purpose?: { value: string; creator: string; last_set: number; } | undefined; num_members?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user_info">; ok: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_user_info"; ok: boolean; user?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; ok: z.ZodBoolean; members: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; team_id: z.ZodOptional<z.ZodString>; name: z.ZodString; deleted: z.ZodOptional<z.ZodBoolean>; color: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; tz: z.ZodOptional<z.ZodString>; tz_label: z.ZodOptional<z.ZodString>; tz_offset: z.ZodOptional<z.ZodNumber>; profile: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; phone: z.ZodOptional<z.ZodString>; skype: z.ZodOptional<z.ZodString>; real_name: z.ZodOptional<z.ZodString>; real_name_normalized: z.ZodOptional<z.ZodString>; display_name: z.ZodOptional<z.ZodString>; display_name_normalized: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; status_text: z.ZodOptional<z.ZodString>; status_emoji: z.ZodOptional<z.ZodString>; status_expiration: z.ZodOptional<z.ZodNumber>; avatar_hash: z.ZodOptional<z.ZodString>; image_original: z.ZodOptional<z.ZodString>; is_custom_image: z.ZodOptional<z.ZodBoolean>; email: z.ZodOptional<z.ZodString>; first_name: z.ZodOptional<z.ZodString>; last_name: z.ZodOptional<z.ZodString>; image_24: z.ZodOptional<z.ZodString>; image_32: z.ZodOptional<z.ZodString>; image_48: z.ZodOptional<z.ZodString>; image_72: z.ZodOptional<z.ZodString>; image_192: z.ZodOptional<z.ZodString>; image_512: z.ZodOptional<z.ZodString>; image_1024: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }, { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; }>>; is_admin: z.ZodOptional<z.ZodBoolean>; is_owner: z.ZodOptional<z.ZodBoolean>; is_primary_owner: z.ZodOptional<z.ZodBoolean>; is_restricted: z.ZodOptional<z.ZodBoolean>; is_ultra_restricted: z.ZodOptional<z.ZodBoolean>; is_bot: z.ZodOptional<z.ZodBoolean>; is_app_user: z.ZodOptional<z.ZodBoolean>; updated: z.ZodOptional<z.ZodNumber>; has_2fa: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }, { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }>, "many">>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_users"; ok: boolean; response_metadata?: { next_cursor: string; } | undefined; members?: { name: string; id: string; color?: string | undefined; team_id?: string | undefined; deleted?: boolean | undefined; real_name?: string | undefined; tz?: string | undefined; tz_label?: string | undefined; tz_offset?: number | undefined; profile?: { title?: string | undefined; email?: string | undefined; fields?: Record<string, unknown> | undefined; real_name?: string | undefined; phone?: string | undefined; skype?: string | undefined; real_name_normalized?: string | undefined; display_name?: string | undefined; display_name_normalized?: string | undefined; status_text?: string | undefined; status_emoji?: string | undefined; status_expiration?: number | undefined; avatar_hash?: string | undefined; image_original?: string | undefined; is_custom_image?: boolean | undefined; first_name?: string | undefined; last_name?: string | undefined; image_24?: string | undefined; image_32?: string | undefined; image_48?: string | undefined; image_72?: string | undefined; image_192?: string | undefined; image_512?: string | undefined; image_1024?: string | undefined; } | undefined; is_admin?: boolean | undefined; is_owner?: boolean | undefined; is_primary_owner?: boolean | undefined; is_restricted?: boolean | undefined; is_ultra_restricted?: boolean | undefined; is_bot?: boolean | undefined; is_app_user?: boolean | undefined; updated?: number | undefined; has_2fa?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation_history">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_conversation_history"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }, { success: boolean; error: string; operation: "get_conversation_history"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_thread_replies">; ok: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>, "many">>; has_more: z.ZodOptional<z.ZodBoolean>; response_metadata: z.ZodOptional<z.ZodObject<{ next_cursor: z.ZodString; }, "strip", z.ZodTypeAny, { next_cursor: string; }, { next_cursor: string; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_thread_replies"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }, { success: boolean; error: string; operation: "get_thread_replies"; ok: boolean; messages?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }[] | undefined; response_metadata?: { next_cursor: string; } | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodObject<{ type: z.ZodString; ts: z.ZodString; user: z.ZodOptional<z.ZodString>; bot_id: z.ZodOptional<z.ZodString>; bot_profile: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; username: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; thread_ts: z.ZodOptional<z.ZodString>; parent_user_id: z.ZodOptional<z.ZodString>; reply_count: z.ZodOptional<z.ZodNumber>; reply_users_count: z.ZodOptional<z.ZodNumber>; latest_reply: z.ZodOptional<z.ZodString>; reply_users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; is_locked: z.ZodOptional<z.ZodBoolean>; subscribed: z.ZodOptional<z.ZodBoolean>; attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; users: z.ZodArray<z.ZodString, "many">; count: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; users: string[]; count: number; }, { name: string; users: string[]; count: number; }>, "many">>; }, "strip", z.ZodTypeAny, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }, { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }, { success: boolean; error: string; operation: "update_message"; ok: boolean; message?: { type: string; ts: string; user?: string | undefined; text?: string | undefined; username?: string | undefined; attachments?: unknown[] | undefined; blocks?: unknown[] | undefined; thread_ts?: string | undefined; bot_id?: string | undefined; bot_profile?: { name?: string | undefined; } | undefined; parent_user_id?: string | undefined; reply_count?: number | undefined; reply_users_count?: number | undefined; latest_reply?: string | undefined; reply_users?: string[] | undefined; is_locked?: boolean | undefined; subscribed?: boolean | undefined; reactions?: { name: string; users: string[]; count: number; }[] | undefined; } | undefined; text?: string | undefined; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_message">; ok: z.ZodBoolean; channel: z.ZodOptional<z.ZodString>; ts: z.ZodOptional<z.ZodString>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }, { success: boolean; error: string; operation: "delete_message"; ok: boolean; ts?: string | undefined; channel?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "add_reaction"; ok: boolean; }, { success: boolean; error: string; operation: "add_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_reaction">; ok: z.ZodBoolean; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "remove_reaction"; ok: boolean; }, { success: boolean; error: string; operation: "remove_reaction"; ok: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; ok: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; created: z.ZodNumber; timestamp: z.ZodNumber; name: z.ZodString; title: z.ZodOptional<z.ZodString>; mimetype: z.ZodString; filetype: z.ZodString; pretty_type: z.ZodString; user: z.ZodString; editable: z.ZodBoolean; size: z.ZodNumber; mode: z.ZodString; is_external: z.ZodBoolean; external_type: z.ZodString; is_public: z.ZodBoolean; public_url_shared: z.ZodBoolean; display_as_bot: z.ZodBoolean; username: z.ZodString; url_private: z.ZodString; url_private_download: z.ZodString; permalink: z.ZodString; permalink_public: z.ZodOptional<z.ZodString>; shares: z.ZodOptional<z.ZodObject<{ public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{ reply_users: z.ZodArray<z.ZodString, "many">; reply_users_count: z.ZodNumber; reply_count: z.ZodNumber; ts: z.ZodString; channel_name: z.ZodString; team_id: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }, { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; }>>; channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; has_rich_preview: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }, { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; }>>; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "upload_file"; ok: boolean; file?: { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }, { success: boolean; error: string; operation: "upload_file"; ok: boolean; file?: { name: string; user: string; size: number; id: string; username: string; timestamp: number; created: number; mimetype: string; filetype: string; pretty_type: string; editable: boolean; mode: string; is_external: boolean; external_type: string; is_public: boolean; public_url_shared: boolean; display_as_bot: boolean; url_private: string; url_private_download: string; permalink: string; title?: string | undefined; channels?: string[] | undefined; permalink_public?: string | undefined; shares?: { public?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; private?: Record<string, { ts: string; team_id: string; reply_count: number; reply_users_count: number; reply_users: string[]; channel_name: string; }[]> | undefined; } | undefined; groups?: string[] | undefined; ims?: string[] | undefined; has_rich_preview?: boolean | undefined; } | undefined; }>]>; static readonly shortDescription = "Slack integration for messaging and workspace management"; static readonly longDescription = "\n Comprehensive Slack integration bubble for managing messages, channels, and users.\n Use cases:\n - Send messages to channels or direct messages\n - Retrieve channel information and list channels\n - Get user information and list workspace members\n - Manage conversation history and message operations\n - Add/remove reactions and manage message interactions\n \n Security Features:\n - Token-based authentication\n - Parameter validation and sanitization\n - Rate limiting awareness\n - Comprehensive error handling\n "; static readonly alias = "slack"; constructor(params?: T, context?: BubbleContext); protected performAction(context?: BubbleContext): Promise<Extract<SlackResult, { operation: T['operation']; }>>; private resolveChannelId; private sendMessage; private listChannels; private getChannelInfo; private getUserInfo; private listUsers; private getConversationHistory; private getThreadReplies; private updateMessage; private deleteMessage; private addReaction; private removeReaction; private uploadFile; protected chooseCredential(): string | undefined; private makeSlackApiCall; }
|
|
473
473
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
474
474
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
475
475
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -577,7 +577,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
577
577
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
578
578
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
579
579
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
580
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const HttpParamsSchema: z.ZodObject<{ url: z.ZodString; method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>>; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; body: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>; timeout: z.ZodDefault<z.ZodNumber>; followRedirects: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; timeout: number; method: "DELETE" | "GET" | "POST" | "PUT" | "PATCH" | "HEAD" | "OPTIONS"; followRedirects: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | Record<string, unknown> | undefined; headers?: Record<string, string> | undefined; }, { url: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; method?: "DELETE" | "GET" | "POST" | "PUT" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
580
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const HttpParamsSchema: z.ZodObject<{ url: z.ZodString; method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>>; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; body: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>; timeout: z.ZodDefault<z.ZodNumber>; followRedirects: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; timeout: number; method: "DELETE" | "GET" | "POST" | "PUT" | "PATCH" | "HEAD" | "OPTIONS"; followRedirects: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | Record<string, unknown> | undefined; headers?: Record<string, string> | undefined; }, { url: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; body?: string | Record<string, unknown> | undefined; method?: "DELETE" | "GET" | "POST" | "PUT" | "PATCH" | "HEAD" | "OPTIONS" | undefined; headers?: Record<string, string> | undefined; followRedirects?: boolean | undefined; }>; type HttpParamsInput = z.input<typeof HttpParamsSchema>;; type HttpParams = z.output<typeof HttpParamsSchema>; declare const HttpResultSchema: z.ZodObject<{ status: z.ZodNumber; statusText: z.ZodString; headers: z.ZodRecord<z.ZodString, z.ZodString>; body: z.ZodString; json: z.ZodOptional<z.ZodUnknown>; success: z.ZodBoolean; error: z.ZodString; responseTime: z.ZodNumber; size: z.ZodNumber; }, "strip", z.ZodTypeAny, { status: number; success: boolean; error: string; size: number; body: string; headers: Record<string, string>; statusText: string; responseTime: number; json?: unknown; }, { status: number; success: boolean; error: string; size: number; body: string; headers: Record<string, string>; statusText: string; responseTime: number; json?: unknown; }>; type HttpResult = z.output<typeof HttpResultSchema>; export declare class HttpBubble extends ServiceBubble<HttpParams, HttpResult> { static readonly service = "nodex-core"; static readonly authType: "none"; static readonly bubbleName: BubbleName; static readonly type: "service"; static readonly schema: z.ZodObject<{ url: z.ZodString; method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>>; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; body: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>; timeout: z.ZodDefault<z.ZodNumber>; followRedirects: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; timeout: number; method: "DELETE" | "GET" | "POST" | "PUT" | "PATCH" | "HEAD" | "OPTIONS"; followRedirects: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; body?: string | Record<string, unknown> | undefined; headers?: Record<string, string> | undefined; }, { url: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; body?: string | Record<string, unknown> | undefined; method?: "DELETE" | "GET" | "POST" | "PUT" | "PATCH" | "HEAD" | "OPTIONS" | undefined; headers?: Record<string, string> | undefined; followRedirects?: boolean | undefined; }>; static readonly resultSchema: z.ZodObject<{ status: z.ZodNumber; statusText: z.ZodString; headers: z.ZodRecord<z.ZodString, z.ZodString>; body: z.ZodString; json: z.ZodOptional<z.ZodUnknown>; success: z.ZodBoolean; error: z.ZodString; responseTime: z.ZodNumber; size: z.ZodNumber; }, "strip", z.ZodTypeAny, { status: number; success: boolean; error: string; size: number; body: string; headers: Record<string, string>; statusText: string; responseTime: number; json?: unknown; }, { status: number; success: boolean; error: string; size: number; body: string; headers: Record<string, string>; statusText: string; responseTime: number; json?: unknown; }>; static readonly shortDescription = "Makes HTTP requests to external APIs and services"; static readonly longDescription = "\n A basic HTTP client bubble for making requests to external APIs and web services.\n \n Features:\n - Support for all major HTTP methods (GET, POST, PUT, PATCH, DELETE, etc.)\n - Custom headers and request body support\n - Configurable timeouts and redirect handling\n - JSON parsing for API responses\n - Detailed response metadata (status, headers, timing, size)\n - Error handling with meaningful messages\n \n Use cases:\n - Calling external REST APIs\n - Webhook requests\n - Data fetching from web services\n - Integration with third-party services\n - Simple web scraping (for public APIs)\n - Health checks and monitoring\n "; static readonly alias = "fetch"; constructor(params?: HttpParamsInput, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<HttpResult>; }
|
|
581
581
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
582
582
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
583
583
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -631,7 +631,7 @@ export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T
|
|
|
631
631
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
632
632
|
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; 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; constructor(params: unknown, context?: BubbleContext); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
633
633
|
export declare abstract class WorkflowBubble<TParams extends ServiceBubbleParams = ServiceBubbleParams, TResult extends BubbleOperationResult = BubbleOperationResult> extends BaseBubble<TParams, TResult> implements IWorkflowBubble<TResult> { readonly type: "workflow"; constructor(params: unknown, context?: BubbleContext); get currentParams(): TParams; get currentContext(): BubbleContext | undefined; }
|
|
634
|
-
declare const SlackFormatterAgentParamsSchema: z.ZodObject<{ message: z.ZodString; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeBlockKit: z.ZodDefault<z.ZodBoolean>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; }; tools: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; verbosity: "1" | "2" | "3" | "4" | "5"; technicality: "1" | "2" | "3" | "4" | "5"; includeBlockKit: boolean; includeQuery: boolean; includeExplanation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; }, { message: string; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; tools?: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeBlockKit?: boolean | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; }>; declare const SlackFormatterAgentResultSchema: z.ZodObject<{ response: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["section", "header", "divider", "context", "actions", "input", "file", "image"]>; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; block_id: z.ZodOptional<z.ZodString>; accessory: z.ZodOptional<z.ZodUnknown>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; element: z.ZodOptional<z.ZodUnknown>; label: z.ZodOptional<z.ZodUnknown>; hint: z.ZodOptional<z.ZodUnknown>; optional: z.ZodOptional<z.ZodBoolean>; alt_text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text"; text: string; emoji?: boolean | undefined; }, { type: "plain_text"; text: string; emoji?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; element?: unknown; block_id?: string | undefined; accessory?: unknown; label?: unknown; hint?: unknown; }, { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; element?: unknown; block_id?: string | undefined; accessory?: unknown; label?: unknown; hint?: unknown; }>, "many">>; metadata: z.ZodObject<{ verbosityLevel: z.ZodString; technicalityLevel: z.ZodString; wordCount: z.ZodNumber; blockCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }>; toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">>; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; response: string; iterations: number; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; element?: unknown; block_id?: string | undefined; accessory?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }, { success: boolean; error: string; response: string; iterations: number; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; element?: unknown; block_id?: string | undefined; accessory?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }>; type SlackFormatterAgentParams = z.input<typeof SlackFormatterAgentParamsSchema>;; type SlackFormatterAgentParamsParsed = z.output<typeof SlackFormatterAgentParamsSchema>; type SlackFormatterAgentResult = z.output<typeof SlackFormatterAgentResultSchema>; export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackFormatterAgentParamsParsed, SlackFormatterAgentResult> { static readonly type: "service"; static readonly service = "slack-formatter-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeBlockKit: z.ZodDefault<z.ZodBoolean>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; }; tools: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; verbosity: "1" | "2" | "3" | "4" | "5"; technicality: "1" | "2" | "3" | "4" | "5"; includeBlockKit: boolean; includeQuery: boolean; includeExplanation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; }, { message: string; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; tools?: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeBlockKit?: boolean | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["section", "header", "divider", "context", "actions", "input", "file", "image"]>; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; block_id: z.ZodOptional<z.ZodString>; accessory: z.ZodOptional<z.ZodUnknown>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; element: z.ZodOptional<z.ZodUnknown>; label: z.ZodOptional<z.ZodUnknown>; hint: z.ZodOptional<z.ZodUnknown>; optional: z.ZodOptional<z.ZodBoolean>; alt_text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text"; text: string; emoji?: boolean | undefined; }, { type: "plain_text"; text: string; emoji?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; element?: unknown; block_id?: string | undefined; accessory?: unknown; label?: unknown; hint?: unknown; }, { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; element?: unknown; block_id?: string | undefined; accessory?: unknown; label?: unknown; hint?: unknown; }>, "many">>; metadata: z.ZodObject<{ verbosityLevel: z.ZodString; technicalityLevel: z.ZodString; wordCount: z.ZodNumber; blockCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }>; toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">>; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; response: string; iterations: number; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; element?: unknown; block_id?: string | undefined; accessory?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }, { success: boolean; error: string; response: string; iterations: number; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; element?: unknown; block_id?: string | undefined; accessory?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }>; static readonly shortDescription = "AI agent for creating well-formatted Slack messages with adjustable verbosity and technicality"; static readonly longDescription = "\n An AI agent that specializes in generating properly formatted Slack messages with:\n - Adjustable verbosity levels (1-5): from concise bullet points to comprehensive explanations\n - Adjustable technicality levels (1-5): from plain English to expert terminology\n - Native Slack markdown formatting (bold, italic, code blocks, lists)\n - Optional Slack Block Kit JSON for rich interactive messages\n - Tool integration for dynamic content generation\n \n Perfect for:\n - Creating consistent Slack notifications with appropriate detail level\n - Adapting any content for different audiences\n - Generating interactive Slack messages with Block Kit\n - Formatting summaries, reports, and updates for Slack channels\n - Building engaging team communications with proper structure\n - Converting any information into Slack-friendly format\n "; static readonly alias = "slack-format"; private factory; constructor(params?: SlackFormatterAgentParams, context?: BubbleContext); testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<SlackFormatterAgentResult>; protected chooseCredential(): string | undefined; private createSlackFormatterPrompt; private initializeModel; private initializeTools; private createAgentGraph; private executeAgent; private extractSlackBlocks; private validateAndFixSlackBlocks; }
|
|
634
|
+
declare const SlackFormatterAgentParamsSchema: z.ZodObject<{ message: z.ZodString; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeBlockKit: z.ZodDefault<z.ZodBoolean>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; }; tools: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; verbosity: "1" | "2" | "3" | "4" | "5"; technicality: "1" | "2" | "3" | "4" | "5"; includeBlockKit: boolean; includeQuery: boolean; includeExplanation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; }, { message: string; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tools?: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeBlockKit?: boolean | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; }>; declare const SlackFormatterAgentResultSchema: z.ZodObject<{ response: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["section", "header", "divider", "context", "actions", "input", "file", "image"]>; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; block_id: z.ZodOptional<z.ZodString>; accessory: z.ZodOptional<z.ZodUnknown>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; element: z.ZodOptional<z.ZodUnknown>; label: z.ZodOptional<z.ZodUnknown>; hint: z.ZodOptional<z.ZodUnknown>; optional: z.ZodOptional<z.ZodBoolean>; alt_text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text"; text: string; emoji?: boolean | undefined; }, { type: "plain_text"; text: string; emoji?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; label?: unknown; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; hint?: unknown; }, { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; label?: unknown; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; hint?: unknown; }>, "many">>; metadata: z.ZodObject<{ verbosityLevel: z.ZodString; technicalityLevel: z.ZodString; wordCount: z.ZodNumber; blockCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }>; toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">>; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { response: string; iterations: number; error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; label?: unknown; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; hint?: unknown; }[] | undefined; }, { response: string; iterations: number; error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; label?: unknown; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; hint?: unknown; }[] | undefined; }>; type SlackFormatterAgentParams = z.input<typeof SlackFormatterAgentParamsSchema>;; type SlackFormatterAgentParamsParsed = z.output<typeof SlackFormatterAgentParamsSchema>; type SlackFormatterAgentResult = z.output<typeof SlackFormatterAgentResultSchema>; export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackFormatterAgentParamsParsed, SlackFormatterAgentResult> { static readonly type: "service"; static readonly service = "slack-formatter-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeBlockKit: z.ZodDefault<z.ZodBoolean>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; }; tools: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; verbosity: "1" | "2" | "3" | "4" | "5"; technicality: "1" | "2" | "3" | "4" | "5"; includeBlockKit: boolean; includeQuery: boolean; includeExplanation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; }, { message: string; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tools?: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeBlockKit?: boolean | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["section", "header", "divider", "context", "actions", "input", "file", "image"]>; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; block_id: z.ZodOptional<z.ZodString>; accessory: z.ZodOptional<z.ZodUnknown>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; element: z.ZodOptional<z.ZodUnknown>; label: z.ZodOptional<z.ZodUnknown>; hint: z.ZodOptional<z.ZodUnknown>; optional: z.ZodOptional<z.ZodBoolean>; alt_text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text"; text: string; emoji?: boolean | undefined; }, { type: "plain_text"; text: string; emoji?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; label?: unknown; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; hint?: unknown; }, { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; label?: unknown; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; hint?: unknown; }>, "many">>; metadata: z.ZodObject<{ verbosityLevel: z.ZodString; technicalityLevel: z.ZodString; wordCount: z.ZodNumber; blockCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }>; toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">>; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { response: string; iterations: number; error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; label?: unknown; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; hint?: unknown; }[] | undefined; }, { response: string; iterations: number; error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "input" | "image" | "file" | "section" | "header" | "divider" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; optional?: boolean | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; label?: unknown; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; hint?: unknown; }[] | undefined; }>; static readonly shortDescription = "AI agent for creating well-formatted Slack messages with adjustable verbosity and technicality"; static readonly longDescription = "\n An AI agent that specializes in generating properly formatted Slack messages with:\n - Adjustable verbosity levels (1-5): from concise bullet points to comprehensive explanations\n - Adjustable technicality levels (1-5): from plain English to expert terminology\n - Native Slack markdown formatting (bold, italic, code blocks, lists)\n - Optional Slack Block Kit JSON for rich interactive messages\n - Tool integration for dynamic content generation\n \n Perfect for:\n - Creating consistent Slack notifications with appropriate detail level\n - Adapting any content for different audiences\n - Generating interactive Slack messages with Block Kit\n - Formatting summaries, reports, and updates for Slack channels\n - Building engaging team communications with proper structure\n - Converting any information into Slack-friendly format\n "; static readonly alias = "slack-format"; private factory; constructor(params?: SlackFormatterAgentParams, context?: BubbleContext); testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<SlackFormatterAgentResult>; protected chooseCredential(): string | undefined; private createSlackFormatterPrompt; private initializeModel; private initializeTools; private createAgentGraph; private executeAgent; private extractSlackBlocks; private validateAndFixSlackBlocks; }
|
|
635
635
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
636
636
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
637
637
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -739,8 +739,8 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
739
739
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
740
740
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
741
741
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
742
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; name: z.ZodString; content: z.ZodString; mimeType: z.ZodOptional<z.ZodString>; parent_folder_id: z.ZodOptional<z.ZodString>; convert_to_google_docs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; content: string; operation: "upload_file"; convert_to_google_docs: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; }, { name: string; content: string; operation: "upload_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; convert_to_google_docs?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_id: z.ZodString; export_format: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; export_format?: string | undefined; }, { operation: "download_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; export_format?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; folder_id: z.ZodOptional<z.ZodString>; query: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; include_folders: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; order_by: z.ZodDefault<z.ZodOptional<z.ZodString>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_files"; max_results: number; include_folders: boolean; order_by: string; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; folder_id?: string | undefined; }, { operation: "list_files"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; folder_id?: string | undefined; max_results?: number | undefined; include_folders?: boolean | undefined; order_by?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; name: z.ZodString; parent_folder_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_folder"; credentials?: Partial<Record<CredentialType, string>> | undefined; parent_folder_id?: string | undefined; }, { name: string; operation: "create_folder"; credentials?: Partial<Record<CredentialType, string>> | undefined; parent_folder_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; file_id: z.ZodString; permanent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_file"; file_id: string; permanent: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; permanent?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; include_permissions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; include_permissions: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_permissions?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; file_id: z.ZodString; email_address: z.ZodOptional<z.ZodString>; role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["reader", "writer", "commenter", "owner"]>>>; type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["user", "group", "domain", "anyone"]>>>; send_notification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "user" | "group" | "domain" | "anyone"; operation: "share_file"; file_id: string; role: "writer" | "reader" | "commenter" | "owner"; send_notification: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; email_address?: string | undefined; }, { operation: "share_file"; file_id: string; type?: "user" | "group" | "domain" | "anyone" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email_address?: string | undefined; role?: "writer" | "reader" | "commenter" | "owner" | undefined; send_notification?: boolean | undefined; }>]>; declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }, { success: boolean; error: string; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; mimeType: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "download_file"; mimeType?: string | undefined; content?: string | undefined; filename?: string | undefined; }, { success: boolean; error: string; operation: "download_file"; mimeType?: string | undefined; content?: string | undefined; filename?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; success: z.ZodBoolean; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }, { success: boolean; error: string; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; success: z.ZodBoolean; folder: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; webViewLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }, { success: boolean; error: string; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; success: z.ZodBoolean; deleted_file_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_file"; deleted_file_id?: string | undefined; }, { success: boolean; error: string; operation: "delete_file"; deleted_file_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; type: z.ZodString; role: z.ZodString; emailAddress: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; success: z.ZodBoolean; permission_id: z.ZodOptional<z.ZodString>; share_link: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }, { success: boolean; error: string; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }>]>; type GoogleDriveResult = z.output<typeof GoogleDriveResultSchema>; type GoogleDriveParams = z.input<typeof GoogleDriveParamsSchema>;; export type GoogleDriveOperationResult<T extends GoogleDriveParams['operation']> = Extract<GoogleDriveResult, { operation: T; }>; export
|
|
743
|
-
type GoogleDriveParamsInput = z.input<typeof GoogleDriveParamsSchema>;; export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDriveParams> extends ServiceBubble<T, Extract<GoogleDriveResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "google-drive"; static readonly authType: "oauth"; static readonly bubbleName = "google-drive"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; name: z.ZodString; content: z.ZodString; mimeType: z.ZodOptional<z.ZodString>; parent_folder_id: z.ZodOptional<z.ZodString>; convert_to_google_docs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; content: string; operation: "upload_file"; convert_to_google_docs: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; }, { name: string; content: string; operation: "upload_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; convert_to_google_docs?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_id: z.ZodString; export_format: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; export_format?: string | undefined; }, { operation: "download_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; export_format?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; folder_id: z.ZodOptional<z.ZodString>; query: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; include_folders: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; order_by: z.ZodDefault<z.ZodOptional<z.ZodString>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_files"; max_results: number; include_folders: boolean; order_by: string; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; folder_id?: string | undefined; }, { operation: "list_files"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; folder_id?: string | undefined; max_results?: number | undefined; include_folders?: boolean | undefined; order_by?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; name: z.ZodString; parent_folder_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_folder"; credentials?: Partial<Record<CredentialType, string>> | undefined; parent_folder_id?: string | undefined; }, { name: string; operation: "create_folder"; credentials?: Partial<Record<CredentialType, string>> | undefined; parent_folder_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; file_id: z.ZodString; permanent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_file"; file_id: string; permanent: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; permanent?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; include_permissions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; include_permissions: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_permissions?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; file_id: z.ZodString; email_address: z.ZodOptional<z.ZodString>; role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["reader", "writer", "commenter", "owner"]>>>; type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["user", "group", "domain", "anyone"]>>>; send_notification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "user" | "group" | "domain" | "anyone"; operation: "share_file"; file_id: string; role: "writer" | "reader" | "commenter" | "owner"; send_notification: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; email_address?: string | undefined; }, { operation: "share_file"; file_id: string; type?: "user" | "group" | "domain" | "anyone" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email_address?: string | undefined; role?: "writer" | "reader" | "commenter" | "owner" | undefined; send_notification?: boolean | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }, { success: boolean; error: string; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; mimeType: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "download_file"; mimeType?: string | undefined; content?: string | undefined; filename?: string | undefined; }, { success: boolean; error: string; operation: "download_file"; mimeType?: string | undefined; content?: string | undefined; filename?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; success: z.ZodBoolean; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }, { success: boolean; error: string; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; success: z.ZodBoolean; folder: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; webViewLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }, { success: boolean; error: string; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; success: z.ZodBoolean; deleted_file_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_file"; deleted_file_id?: string | undefined; }, { success: boolean; error: string; operation: "delete_file"; deleted_file_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; type: z.ZodString; role: z.ZodString; emailAddress: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; success: z.ZodBoolean; permission_id: z.ZodOptional<z.ZodString>; share_link: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }, { success: boolean; error: string; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }>]>; static readonly shortDescription = "Google Drive integration for file management"; static readonly longDescription = "\n Google Drive service integration for comprehensive file and folder management.\n Use cases:\n - Upload files and documents to Google Drive\n - Download files with format conversion support\n - List and search files with advanced filtering\n - Create and organize folders\n - Share files and manage permissions\n - Get detailed file metadata and information\n \n Security Features:\n - OAuth 2.0 authentication with Google\n - Scoped access permissions\n - Secure file handling and validation\n - User-controlled sharing and permissions\n "; static readonly alias = "gdrive"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private makeGoogleApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<GoogleDriveResult, { operation: T['operation']; }>>; private uploadFile; private downloadFile; private listFiles; private createFolder; private deleteFile; private getFileInfo; private shareFile; private isBase64; private extractBase64Content; private findAndExtractBase64; private findBase64InObject; private detectMimeTypeFromBase64; protected chooseCredential(): string | undefined; }
|
|
742
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; name: z.ZodString; content: z.ZodString; mimeType: z.ZodOptional<z.ZodString>; parent_folder_id: z.ZodOptional<z.ZodString>; convert_to_google_docs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; content: string; operation: "upload_file"; convert_to_google_docs: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; }, { name: string; content: string; operation: "upload_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; convert_to_google_docs?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_id: z.ZodString; export_format: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; export_format?: string | undefined; }, { operation: "download_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; export_format?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; folder_id: z.ZodOptional<z.ZodString>; query: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; include_folders: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; order_by: z.ZodDefault<z.ZodOptional<z.ZodString>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_files"; max_results: number; include_folders: boolean; order_by: string; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; folder_id?: string | undefined; }, { operation: "list_files"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; folder_id?: string | undefined; max_results?: number | undefined; include_folders?: boolean | undefined; order_by?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; name: z.ZodString; parent_folder_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_folder"; credentials?: Partial<Record<CredentialType, string>> | undefined; parent_folder_id?: string | undefined; }, { name: string; operation: "create_folder"; credentials?: Partial<Record<CredentialType, string>> | undefined; parent_folder_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; file_id: z.ZodString; permanent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_file"; file_id: string; permanent: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; permanent?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; include_permissions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; include_permissions: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_permissions?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; file_id: z.ZodString; email_address: z.ZodOptional<z.ZodString>; role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["reader", "writer", "commenter", "owner"]>>>; type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["user", "group", "domain", "anyone"]>>>; send_notification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "user" | "group" | "domain" | "anyone"; operation: "share_file"; file_id: string; role: "writer" | "reader" | "commenter" | "owner"; send_notification: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; email_address?: string | undefined; }, { operation: "share_file"; file_id: string; type?: "user" | "group" | "domain" | "anyone" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email_address?: string | undefined; role?: "writer" | "reader" | "commenter" | "owner" | undefined; send_notification?: boolean | undefined; }>]>; declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }, { success: boolean; error: string; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; mimeType: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "download_file"; content?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; }, { success: boolean; error: string; operation: "download_file"; content?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; success: z.ZodBoolean; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }, { success: boolean; error: string; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; success: z.ZodBoolean; folder: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; webViewLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }, { success: boolean; error: string; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; success: z.ZodBoolean; deleted_file_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_file"; deleted_file_id?: string | undefined; }, { success: boolean; error: string; operation: "delete_file"; deleted_file_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; type: z.ZodString; role: z.ZodString; emailAddress: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; success: z.ZodBoolean; permission_id: z.ZodOptional<z.ZodString>; share_link: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }, { success: boolean; error: string; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }>]>; type GoogleDriveResult = z.output<typeof GoogleDriveResultSchema>; type GoogleDriveParams = z.input<typeof GoogleDriveParamsSchema>;; export type GoogleDriveOperationResult<T extends GoogleDriveParams['operation']> = Extract<GoogleDriveResult, { operation: T; }>; export
|
|
743
|
+
type GoogleDriveParamsInput = z.input<typeof GoogleDriveParamsSchema>;; export declare class GoogleDriveBubble<T extends GoogleDriveParams = GoogleDriveParams> extends ServiceBubble<T, Extract<GoogleDriveResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "google-drive"; static readonly authType: "oauth"; static readonly bubbleName = "google-drive"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; name: z.ZodString; content: z.ZodString; mimeType: z.ZodOptional<z.ZodString>; parent_folder_id: z.ZodOptional<z.ZodString>; convert_to_google_docs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; content: string; operation: "upload_file"; convert_to_google_docs: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; }, { name: string; content: string; operation: "upload_file"; credentials?: Partial<Record<CredentialType, string>> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; convert_to_google_docs?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_id: z.ZodString; export_format: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; export_format?: string | undefined; }, { operation: "download_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; export_format?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; folder_id: z.ZodOptional<z.ZodString>; query: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; include_folders: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; order_by: z.ZodDefault<z.ZodOptional<z.ZodString>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_files"; max_results: number; include_folders: boolean; order_by: string; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; folder_id?: string | undefined; }, { operation: "list_files"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; folder_id?: string | undefined; max_results?: number | undefined; include_folders?: boolean | undefined; order_by?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; name: z.ZodString; parent_folder_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_folder"; credentials?: Partial<Record<CredentialType, string>> | undefined; parent_folder_id?: string | undefined; }, { name: string; operation: "create_folder"; credentials?: Partial<Record<CredentialType, string>> | undefined; parent_folder_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; file_id: z.ZodString; permanent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_file"; file_id: string; permanent: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_file"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; permanent?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; include_permissions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; include_permissions: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_permissions?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; file_id: z.ZodString; email_address: z.ZodOptional<z.ZodString>; role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["reader", "writer", "commenter", "owner"]>>>; type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["user", "group", "domain", "anyone"]>>>; send_notification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "user" | "group" | "domain" | "anyone"; operation: "share_file"; file_id: string; role: "writer" | "reader" | "commenter" | "owner"; send_notification: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; email_address?: string | undefined; }, { operation: "share_file"; file_id: string; type?: "user" | "group" | "domain" | "anyone" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email_address?: string | undefined; role?: "writer" | "reader" | "commenter" | "owner" | undefined; send_notification?: boolean | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }, { success: boolean; error: string; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; filename: z.ZodOptional<z.ZodString>; mimeType: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "download_file"; content?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; }, { success: boolean; error: string; operation: "download_file"; content?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; success: z.ZodBoolean; files: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, "many">>; total_count: z.ZodOptional<z.ZodNumber>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }, { success: boolean; error: string; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; success: z.ZodBoolean; folder: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; webViewLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }, { success: boolean; error: string; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; success: z.ZodBoolean; deleted_file_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_file"; deleted_file_id?: string | undefined; }, { success: boolean; error: string; operation: "delete_file"; deleted_file_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodString>; createdTime: z.ZodOptional<z.ZodString>; modifiedTime: z.ZodOptional<z.ZodString>; webViewLink: z.ZodOptional<z.ZodString>; webContentLink: z.ZodOptional<z.ZodString>; parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; shared: z.ZodOptional<z.ZodBoolean>; owners: z.ZodOptional<z.ZodArray<z.ZodObject<{ displayName: z.ZodOptional<z.ZodString>; emailAddress: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; type: z.ZodString; role: z.ZodString; emailAddress: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; success: z.ZodBoolean; permission_id: z.ZodOptional<z.ZodString>; share_link: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }, { success: boolean; error: string; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }>]>; static readonly shortDescription = "Google Drive integration for file management"; static readonly longDescription = "\n Google Drive service integration for comprehensive file and folder management.\n Use cases:\n - Upload files and documents to Google Drive\n - Download files with format conversion support\n - List and search files with advanced filtering\n - Create and organize folders\n - Share files and manage permissions\n - Get detailed file metadata and information\n \n Security Features:\n - OAuth 2.0 authentication with Google\n - Scoped access permissions\n - Secure file handling and validation\n - User-controlled sharing and permissions\n "; static readonly alias = "gdrive"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private makeGoogleApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<GoogleDriveResult, { operation: T['operation']; }>>; private uploadFile; private downloadFile; private listFiles; private createFolder; private deleteFile; private getFileInfo; private shareFile; private isBase64; private extractBase64Content; private findAndExtractBase64; private findBase64InObject; private detectMimeTypeFromBase64; protected chooseCredential(): string | undefined; }
|
|
744
744
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
745
745
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
746
746
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -794,8 +794,8 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
794
794
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
795
795
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
796
796
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
797
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; to: z.ZodArray<z.ZodString, "many">; cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subject: z.ZodString; body_text: z.ZodOptional<z.ZodString>; body_html: z.ZodOptional<z.ZodString>; reply_to: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; query: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; label_ids?: string[] | undefined; page_token?: string | undefined; }, { operation: "list_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; message_id: z.ZodString; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["minimal", "full", "raw", "metadata"]>>>; metadata_headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "metadata" | "minimal" | "full" | "raw"; operation: "get_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; metadata_headers?: string[] | undefined; }, { operation: "get_email"; message_id: string; format?: "metadata" | "minimal" | "full" | "raw" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; metadata_headers?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; query: z.ZodString; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "search_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; message_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; message_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; to: z.ZodArray<z.ZodString, "many">; cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subject: z.ZodString; body_text: z.ZodOptional<z.ZodString>; body_html: z.ZodOptional<z.ZodString>; reply_to: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; draft_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_draft"; draft_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "send_draft"; draft_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; query: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_drafts"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_token?: string | undefined; }, { operation: "list_drafts"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; message_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; message_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "trash_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "trash_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; query: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_threads"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; label_ids?: string[] | undefined; page_token?: string | undefined; }, { operation: "list_threads"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>]>; declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_email"; thread_id?: string | undefined; message_id?: string | undefined; }, { success: boolean; error: string; operation: "send_email"; thread_id?: string | undefined; message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; success: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { success: boolean; error: string; operation: "list_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; success: z.ZodBoolean; message: z.ZodOptional<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_email"; message?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_email"; message?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; success: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "search_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { success: boolean; error: string; operation: "search_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; success: z.ZodBoolean; modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { success: boolean; error: string; operation: "mark_as_read"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; success: z.ZodBoolean; modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { success: boolean; error: string; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; success: z.ZodBoolean; draft: z.ZodOptional<z.ZodObject<{ id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_draft"; draft?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }, { success: boolean; error: string; operation: "create_draft"; draft?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_draft"; thread_id?: string | undefined; message_id?: string | undefined; }, { success: boolean; error: string; operation: "send_draft"; thread_id?: string | undefined; message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; success: z.ZodBoolean; drafts: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }, { success: boolean; error: string; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; success: z.ZodBoolean; deleted_message_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_email"; deleted_message_id?: string | undefined; }, { success: boolean; error: string; operation: "delete_email"; deleted_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; success: z.ZodBoolean; trashed_message_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "trash_email"; trashed_message_id?: string | undefined; }, { success: boolean; error: string; operation: "trash_email"; trashed_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; success: z.ZodBoolean; threads: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; historyId: z.ZodOptional<z.ZodString>; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>]>; type GmailResult = z.output<typeof GmailResultSchema>; type GmailParams = z.input<typeof GmailParamsSchema>;; export type GmailOperationResult<T extends GmailParams['operation']> = Extract<GmailResult, { operation: T; }>; export
|
|
798
|
-
type GmailParamsInput = z.input<typeof GmailParamsSchema>;; export declare class GmailBubble<T extends GmailParams = GmailParams> extends ServiceBubble<T, Extract<GmailResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "gmail"; static readonly authType: "oauth"; static readonly bubbleName = "gmail"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; to: z.ZodArray<z.ZodString, "many">; cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subject: z.ZodString; body_text: z.ZodOptional<z.ZodString>; body_html: z.ZodOptional<z.ZodString>; reply_to: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; query: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; label_ids?: string[] | undefined; page_token?: string | undefined; }, { operation: "list_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; message_id: z.ZodString; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["minimal", "full", "raw", "metadata"]>>>; metadata_headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "metadata" | "minimal" | "full" | "raw"; operation: "get_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; metadata_headers?: string[] | undefined; }, { operation: "get_email"; message_id: string; format?: "metadata" | "minimal" | "full" | "raw" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; metadata_headers?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; query: z.ZodString; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "search_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; message_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; message_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; to: z.ZodArray<z.ZodString, "many">; cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subject: z.ZodString; body_text: z.ZodOptional<z.ZodString>; body_html: z.ZodOptional<z.ZodString>; reply_to: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; draft_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_draft"; draft_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "send_draft"; draft_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; query: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_drafts"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_token?: string | undefined; }, { operation: "list_drafts"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; message_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; message_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "trash_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "trash_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; query: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_threads"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; label_ids?: string[] | undefined; page_token?: string | undefined; }, { operation: "list_threads"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_email"; thread_id?: string | undefined; message_id?: string | undefined; }, { success: boolean; error: string; operation: "send_email"; thread_id?: string | undefined; message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; success: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { success: boolean; error: string; operation: "list_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; success: z.ZodBoolean; message: z.ZodOptional<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_email"; message?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_email"; message?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; success: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "search_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { success: boolean; error: string; operation: "search_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; success: z.ZodBoolean; modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { success: boolean; error: string; operation: "mark_as_read"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; success: z.ZodBoolean; modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { success: boolean; error: string; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; success: z.ZodBoolean; draft: z.ZodOptional<z.ZodObject<{ id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_draft"; draft?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }, { success: boolean; error: string; operation: "create_draft"; draft?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_draft"; thread_id?: string | undefined; message_id?: string | undefined; }, { success: boolean; error: string; operation: "send_draft"; thread_id?: string | undefined; message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; success: z.ZodBoolean; drafts: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }, { success: boolean; error: string; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; success: z.ZodBoolean; deleted_message_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_email"; deleted_message_id?: string | undefined; }, { success: boolean; error: string; operation: "delete_email"; deleted_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; success: z.ZodBoolean; trashed_message_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "trash_email"; trashed_message_id?: string | undefined; }, { success: boolean; error: string; operation: "trash_email"; trashed_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; success: z.ZodBoolean; threads: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; historyId: z.ZodOptional<z.ZodString>; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>]>; static readonly shortDescription = "Gmail integration for email management"; static readonly longDescription = "\n Gmail service integration for comprehensive email management and automation.\n Use cases:\n - Send and receive emails with rich formatting\n - Search and filter emails with advanced queries\n - Manage drafts and email threads\n - Mark messages as read/unread\n - Organize emails with labels and folders\n - Handle email attachments and metadata\n "; static readonly alias = "gmail"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private makeGmailApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<GmailResult, { operation: T['operation']; }>>; private createEmailMessage; private sendEmail; private listEmails; private getEmail; private searchEmails; private markAsRead; private markAsUnread; private createDraft; private sendDraft; private listDrafts; private deleteEmail; private trashEmail; private listThreads; protected chooseCredential(): string | undefined; }
|
|
797
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GmailParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; to: z.ZodArray<z.ZodString, "many">; cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subject: z.ZodString; body_text: z.ZodOptional<z.ZodString>; body_html: z.ZodOptional<z.ZodString>; reply_to: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; query: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; label_ids?: string[] | undefined; page_token?: string | undefined; }, { operation: "list_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; message_id: z.ZodString; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["minimal", "full", "raw", "metadata"]>>>; metadata_headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "metadata" | "raw" | "minimal" | "full"; operation: "get_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; metadata_headers?: string[] | undefined; }, { operation: "get_email"; message_id: string; format?: "metadata" | "raw" | "minimal" | "full" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; metadata_headers?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; query: z.ZodString; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "search_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; message_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; message_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; to: z.ZodArray<z.ZodString, "many">; cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subject: z.ZodString; body_text: z.ZodOptional<z.ZodString>; body_html: z.ZodOptional<z.ZodString>; reply_to: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; draft_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_draft"; draft_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "send_draft"; draft_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; query: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_drafts"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_token?: string | undefined; }, { operation: "list_drafts"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; message_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; message_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "trash_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "trash_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; query: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_threads"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; label_ids?: string[] | undefined; page_token?: string | undefined; }, { operation: "list_threads"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>]>; declare const GmailResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_email"; thread_id?: string | undefined; message_id?: string | undefined; }, { success: boolean; error: string; operation: "send_email"; thread_id?: string | undefined; message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; success: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { success: boolean; error: string; operation: "list_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; success: z.ZodBoolean; message: z.ZodOptional<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_email"; message?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_email"; message?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; success: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "search_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { success: boolean; error: string; operation: "search_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; success: z.ZodBoolean; modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { success: boolean; error: string; operation: "mark_as_read"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; success: z.ZodBoolean; modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { success: boolean; error: string; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; success: z.ZodBoolean; draft: z.ZodOptional<z.ZodObject<{ id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_draft"; draft?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }, { success: boolean; error: string; operation: "create_draft"; draft?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_draft"; thread_id?: string | undefined; message_id?: string | undefined; }, { success: boolean; error: string; operation: "send_draft"; thread_id?: string | undefined; message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; success: z.ZodBoolean; drafts: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }, { success: boolean; error: string; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; success: z.ZodBoolean; deleted_message_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_email"; deleted_message_id?: string | undefined; }, { success: boolean; error: string; operation: "delete_email"; deleted_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; success: z.ZodBoolean; trashed_message_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "trash_email"; trashed_message_id?: string | undefined; }, { success: boolean; error: string; operation: "trash_email"; trashed_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; success: z.ZodBoolean; threads: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; historyId: z.ZodOptional<z.ZodString>; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>]>; type GmailResult = z.output<typeof GmailResultSchema>; type GmailParams = z.input<typeof GmailParamsSchema>;; export type GmailOperationResult<T extends GmailParams['operation']> = Extract<GmailResult, { operation: T; }>; export
|
|
798
|
+
type GmailParamsInput = z.input<typeof GmailParamsSchema>;; export declare class GmailBubble<T extends GmailParams = GmailParams> extends ServiceBubble<T, Extract<GmailResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "gmail"; static readonly authType: "oauth"; static readonly bubbleName = "gmail"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; to: z.ZodArray<z.ZodString, "many">; cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subject: z.ZodString; body_text: z.ZodOptional<z.ZodString>; body_html: z.ZodOptional<z.ZodString>; reply_to: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "send_email"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; query: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; label_ids?: string[] | undefined; page_token?: string | undefined; }, { operation: "list_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; message_id: z.ZodString; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["minimal", "full", "raw", "metadata"]>>>; metadata_headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "metadata" | "raw" | "minimal" | "full"; operation: "get_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; metadata_headers?: string[] | undefined; }, { operation: "get_email"; message_id: string; format?: "metadata" | "raw" | "minimal" | "full" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; metadata_headers?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; query: z.ZodString; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_emails"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "search_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; message_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "mark_as_read"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; message_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "mark_as_unread"; message_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; to: z.ZodArray<z.ZodString, "many">; cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; subject: z.ZodString; body_text: z.ZodOptional<z.ZodString>; body_html: z.ZodOptional<z.ZodString>; reply_to: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }, { operation: "create_draft"; to: string[]; subject: string; credentials?: Partial<Record<CredentialType, string>> | undefined; cc?: string[] | undefined; bcc?: string[] | undefined; reply_to?: string | undefined; body_text?: string | undefined; body_html?: string | undefined; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; draft_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "send_draft"; draft_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "send_draft"; draft_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; query: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_drafts"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_token?: string | undefined; }, { operation: "list_drafts"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; message_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; message_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "trash_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "trash_email"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; query: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; include_spam_trash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_threads"; max_results: number; include_spam_trash: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; label_ids?: string[] | undefined; page_token?: string | undefined; }, { operation: "list_threads"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; page_token?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"send_email">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_email"; thread_id?: string | undefined; message_id?: string | undefined; }, { success: boolean; error: string; operation: "send_email"; thread_id?: string | undefined; message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_emails">; success: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { success: boolean; error: string; operation: "list_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_email">; success: z.ZodBoolean; message: z.ZodOptional<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_email"; message?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_email"; message?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_emails">; success: z.ZodBoolean; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "search_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { success: boolean; error: string; operation: "search_emails"; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_read">; success: z.ZodBoolean; modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { success: boolean; error: string; operation: "mark_as_read"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"mark_as_unread">; success: z.ZodBoolean; modified_messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { success: boolean; error: string; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_draft">; success: z.ZodBoolean; draft: z.ZodOptional<z.ZodObject<{ id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_draft"; draft?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }, { success: boolean; error: string; operation: "create_draft"; draft?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"send_draft">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "send_draft"; thread_id?: string | undefined; message_id?: string | undefined; }, { success: boolean; error: string; operation: "send_draft"; thread_id?: string | undefined; message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_drafts">; success: z.ZodBoolean; drafts: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }, { success: boolean; error: string; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_email">; success: z.ZodBoolean; deleted_message_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_email"; deleted_message_id?: string | undefined; }, { success: boolean; error: string; operation: "delete_email"; deleted_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trash_email">; success: z.ZodBoolean; trashed_message_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "trash_email"; trashed_message_id?: string | undefined; }, { success: boolean; error: string; operation: "trash_email"; trashed_message_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_threads">; success: z.ZodBoolean; threads: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; historyId: z.ZodOptional<z.ZodString>; messages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; threadId: z.ZodString; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; historyId: z.ZodOptional<z.ZodString>; internalDate: z.ZodOptional<z.ZodString>; sizeEstimate: z.ZodOptional<z.ZodNumber>; raw: z.ZodOptional<z.ZodString>; payload: z.ZodOptional<z.ZodObject<{ mimeType: z.ZodOptional<z.ZodString>; headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; body: z.ZodOptional<z.ZodObject<{ data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; attachmentId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }, { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; }>>; parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; threadId: string; raw?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; headers?: { value: string; name: string; }[] | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>]>; static readonly shortDescription = "Gmail integration for email management"; static readonly longDescription = "\n Gmail service integration for comprehensive email management and automation.\n Use cases:\n - Send and receive emails with rich formatting\n - Search and filter emails with advanced queries\n - Manage drafts and email threads\n - Mark messages as read/unread\n - Organize emails with labels and folders\n - Handle email attachments and metadata\n "; static readonly alias = "gmail"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private makeGmailApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<GmailResult, { operation: T['operation']; }>>; private createEmailMessage; private sendEmail; private listEmails; private getEmail; private searchEmails; private markAsRead; private markAsUnread; private createDraft; private sendDraft; private listDrafts; private deleteEmail; private trashEmail; private listThreads; protected chooseCredential(): string | undefined; }
|
|
799
799
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
800
800
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
801
801
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -849,8 +849,8 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
849
849
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
850
850
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
851
851
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
852
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GoogleSheetsParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"read_values">; spreadsheet_id: z.ZodString; range: z.ZodString; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>; date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "read_values"; spreadsheet_id: string; range: string; major_dimension: "ROWS" | "COLUMNS"; value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA"; date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "read_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined; date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"write_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; operation: "write_values"; spreadsheet_id: string; range: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; operation: "write_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; operation: "update_values"; spreadsheet_id: string; range: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; operation: "update_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; insert_data_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["OVERWRITE", "INSERT_ROWS"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; operation: "append_values"; spreadsheet_id: string; range: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; insert_data_option: "OVERWRITE" | "INSERT_ROWS"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; operation: "append_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; insert_data_option?: "OVERWRITE" | "INSERT_ROWS" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"clear_values">; spreadsheet_id: z.ZodString; range: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "clear_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "clear_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_read_values">; spreadsheet_id: z.ZodString; ranges: z.ZodArray<z.ZodString, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>; date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_read_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA"; date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING"; ranges: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_read_values"; spreadsheet_id: string; ranges: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined; date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_values">; spreadsheet_id: z.ZodString; value_ranges: z.ZodArray<z.ZodObject<{ range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; major_dimension: "ROWS" | "COLUMNS"; }, { values: (string | number | boolean)[][]; range: string; major_dimension?: "ROWS" | "COLUMNS" | undefined; }>, "many">; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_values"; spreadsheet_id: string; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; value_ranges: { values: (string | number | boolean)[][]; range: string; major_dimension: "ROWS" | "COLUMNS"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_values"; spreadsheet_id: string; value_ranges: { values: (string | number | boolean)[][]; range: string; major_dimension?: "ROWS" | "COLUMNS" | undefined; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_spreadsheet_info">; spreadsheet_id: z.ZodString; include_grid_data: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_spreadsheet_info"; spreadsheet_id: string; include_grid_data: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_spreadsheet_info"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_grid_data?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_spreadsheet">; title: z.ZodString; sheet_titles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_spreadsheet"; sheet_titles: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_spreadsheet"; credentials?: Partial<Record<CredentialType, string>> | undefined; sheet_titles?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_sheet">; spreadsheet_id: z.ZodString; sheet_title: z.ZodString; row_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; column_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_sheet"; spreadsheet_id: string; sheet_title: string; row_count: number; column_count: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_sheet"; spreadsheet_id: string; sheet_title: string; credentials?: Partial<Record<CredentialType, string>> | undefined; row_count?: number | undefined; column_count?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_sheet">; spreadsheet_id: z.ZodString; sheet_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_sheet"; spreadsheet_id: string; sheet_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_sheet"; spreadsheet_id: string; sheet_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; declare const GoogleSheetsResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"read_values">; success: z.ZodBoolean; range: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">>; major_dimension: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "read_values"; values?: (string | number | boolean)[][] | undefined; range?: string | undefined; major_dimension?: string | undefined; }, { success: boolean; error: string; operation: "read_values"; values?: (string | number | boolean)[][] | undefined; range?: string | undefined; major_dimension?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"write_values">; success: z.ZodBoolean; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; updated_data: z.ZodOptional<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "write_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }, { success: boolean; error: string; operation: "write_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_values">; success: z.ZodBoolean; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; updated_data: z.ZodOptional<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }, { success: boolean; error: string; operation: "update_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_values">; success: z.ZodBoolean; table_range: z.ZodOptional<z.ZodString>; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "append_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; table_range?: string | undefined; }, { success: boolean; error: string; operation: "append_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; table_range?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"clear_values">; success: z.ZodBoolean; cleared_range: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "clear_values"; cleared_range?: string | undefined; }, { success: boolean; error: string; operation: "clear_values"; cleared_range?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_read_values">; success: z.ZodBoolean; value_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "batch_read_values"; value_ranges?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "batch_read_values"; value_ranges?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_values">; success: z.ZodBoolean; total_updated_rows: z.ZodOptional<z.ZodNumber>; total_updated_columns: z.ZodOptional<z.ZodNumber>; total_updated_cells: z.ZodOptional<z.ZodNumber>; total_updated_sheets: z.ZodOptional<z.ZodNumber>; responses: z.ZodOptional<z.ZodArray<z.ZodObject<{ updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }, { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "batch_update_values"; total_updated_rows?: number | undefined; total_updated_columns?: number | undefined; total_updated_cells?: number | undefined; total_updated_sheets?: number | undefined; responses?: { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "batch_update_values"; total_updated_rows?: number | undefined; total_updated_columns?: number | undefined; total_updated_cells?: number | undefined; total_updated_sheets?: number | undefined; responses?: { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_spreadsheet_info">; success: z.ZodBoolean; spreadsheet: z.ZodOptional<z.ZodObject<{ spreadsheetId: z.ZodString; properties: z.ZodOptional<z.ZodObject<{ title: z.ZodString; locale: z.ZodOptional<z.ZodString>; autoRecalc: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }>>; sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{ properties: z.ZodObject<{ sheetId: z.ZodNumber; title: z.ZodString; index: z.ZodNumber; sheetType: z.ZodOptional<z.ZodString>; gridProperties: z.ZodOptional<z.ZodObject<{ rowCount: z.ZodOptional<z.ZodNumber>; columnCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { rowCount?: number | undefined; columnCount?: number | undefined; }, { rowCount?: number | undefined; columnCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }>, "many">>; spreadsheetUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_spreadsheet_info"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_spreadsheet_info"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_spreadsheet">; success: z.ZodBoolean; spreadsheet: z.ZodOptional<z.ZodObject<{ spreadsheetId: z.ZodString; properties: z.ZodOptional<z.ZodObject<{ title: z.ZodString; locale: z.ZodOptional<z.ZodString>; autoRecalc: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }>>; sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{ properties: z.ZodObject<{ sheetId: z.ZodNumber; title: z.ZodString; index: z.ZodNumber; sheetType: z.ZodOptional<z.ZodString>; gridProperties: z.ZodOptional<z.ZodObject<{ rowCount: z.ZodOptional<z.ZodNumber>; columnCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { rowCount?: number | undefined; columnCount?: number | undefined; }, { rowCount?: number | undefined; columnCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }>, "many">>; spreadsheetUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_spreadsheet"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }, { success: boolean; error: string; operation: "create_spreadsheet"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_sheet">; success: z.ZodBoolean; sheet_id: z.ZodOptional<z.ZodNumber>; sheet_title: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "add_sheet"; sheet_title?: string | undefined; sheet_id?: number | undefined; }, { success: boolean; error: string; operation: "add_sheet"; sheet_title?: string | undefined; sheet_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_sheet">; success: z.ZodBoolean; deleted_sheet_id: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_sheet"; deleted_sheet_id?: number | undefined; }, { success: boolean; error: string; operation: "delete_sheet"; deleted_sheet_id?: number | undefined; }>]>; type GoogleSheetsResult = z.output<typeof GoogleSheetsResultSchema>; type GoogleSheetsParams = z.input<typeof GoogleSheetsParamsSchema>;; export type GoogleSheetsOperationResult<T extends GoogleSheetsParams['operation']> = Extract<GoogleSheetsResult, { operation: T; }>; export
|
|
853
|
-
type GoogleSheetsParamsInput = z.input<typeof GoogleSheetsParamsSchema>;; export declare class GoogleSheetsBubble<T extends GoogleSheetsParams = GoogleSheetsParams> extends ServiceBubble<T, Extract<GoogleSheetsResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "google-sheets"; static readonly authType: "oauth"; static readonly bubbleName = "google-sheets"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"read_values">; spreadsheet_id: z.ZodString; range: z.ZodString; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>; date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "read_values"; spreadsheet_id: string; range: string; major_dimension: "ROWS" | "COLUMNS"; value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA"; date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "read_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined; date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"write_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; operation: "write_values"; spreadsheet_id: string; range: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; operation: "write_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; operation: "update_values"; spreadsheet_id: string; range: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; operation: "update_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; insert_data_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["OVERWRITE", "INSERT_ROWS"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; operation: "append_values"; spreadsheet_id: string; range: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; insert_data_option: "OVERWRITE" | "INSERT_ROWS"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; operation: "append_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; insert_data_option?: "OVERWRITE" | "INSERT_ROWS" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"clear_values">; spreadsheet_id: z.ZodString; range: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "clear_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "clear_values"; spreadsheet_id: string; range: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_read_values">; spreadsheet_id: z.ZodString; ranges: z.ZodArray<z.ZodString, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>; date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_read_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA"; date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING"; ranges: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_read_values"; spreadsheet_id: string; ranges: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined; date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_values">; spreadsheet_id: z.ZodString; value_ranges: z.ZodArray<z.ZodObject<{ range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; major_dimension: "ROWS" | "COLUMNS"; }, { values: (string | number | boolean)[][]; range: string; major_dimension?: "ROWS" | "COLUMNS" | undefined; }>, "many">; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_values"; spreadsheet_id: string; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; value_ranges: { values: (string | number | boolean)[][]; range: string; major_dimension: "ROWS" | "COLUMNS"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_values"; spreadsheet_id: string; value_ranges: { values: (string | number | boolean)[][]; range: string; major_dimension?: "ROWS" | "COLUMNS" | undefined; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_spreadsheet_info">; spreadsheet_id: z.ZodString; include_grid_data: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_spreadsheet_info"; spreadsheet_id: string; include_grid_data: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_spreadsheet_info"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_grid_data?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_spreadsheet">; title: z.ZodString; sheet_titles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_spreadsheet"; sheet_titles: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_spreadsheet"; credentials?: Partial<Record<CredentialType, string>> | undefined; sheet_titles?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_sheet">; spreadsheet_id: z.ZodString; sheet_title: z.ZodString; row_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; column_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_sheet"; spreadsheet_id: string; sheet_title: string; row_count: number; column_count: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_sheet"; spreadsheet_id: string; sheet_title: string; credentials?: Partial<Record<CredentialType, string>> | undefined; row_count?: number | undefined; column_count?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_sheet">; spreadsheet_id: z.ZodString; sheet_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_sheet"; spreadsheet_id: string; sheet_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_sheet"; spreadsheet_id: string; sheet_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"read_values">; success: z.ZodBoolean; range: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">>; major_dimension: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "read_values"; values?: (string | number | boolean)[][] | undefined; range?: string | undefined; major_dimension?: string | undefined; }, { success: boolean; error: string; operation: "read_values"; values?: (string | number | boolean)[][] | undefined; range?: string | undefined; major_dimension?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"write_values">; success: z.ZodBoolean; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; updated_data: z.ZodOptional<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "write_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }, { success: boolean; error: string; operation: "write_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_values">; success: z.ZodBoolean; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; updated_data: z.ZodOptional<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }, { success: boolean; error: string; operation: "update_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_values">; success: z.ZodBoolean; table_range: z.ZodOptional<z.ZodString>; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "append_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; table_range?: string | undefined; }, { success: boolean; error: string; operation: "append_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; table_range?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"clear_values">; success: z.ZodBoolean; cleared_range: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "clear_values"; cleared_range?: string | undefined; }, { success: boolean; error: string; operation: "clear_values"; cleared_range?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_read_values">; success: z.ZodBoolean; value_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "batch_read_values"; value_ranges?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "batch_read_values"; value_ranges?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_values">; success: z.ZodBoolean; total_updated_rows: z.ZodOptional<z.ZodNumber>; total_updated_columns: z.ZodOptional<z.ZodNumber>; total_updated_cells: z.ZodOptional<z.ZodNumber>; total_updated_sheets: z.ZodOptional<z.ZodNumber>; responses: z.ZodOptional<z.ZodArray<z.ZodObject<{ updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }, { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "batch_update_values"; total_updated_rows?: number | undefined; total_updated_columns?: number | undefined; total_updated_cells?: number | undefined; total_updated_sheets?: number | undefined; responses?: { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "batch_update_values"; total_updated_rows?: number | undefined; total_updated_columns?: number | undefined; total_updated_cells?: number | undefined; total_updated_sheets?: number | undefined; responses?: { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_spreadsheet_info">; success: z.ZodBoolean; spreadsheet: z.ZodOptional<z.ZodObject<{ spreadsheetId: z.ZodString; properties: z.ZodOptional<z.ZodObject<{ title: z.ZodString; locale: z.ZodOptional<z.ZodString>; autoRecalc: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }>>; sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{ properties: z.ZodObject<{ sheetId: z.ZodNumber; title: z.ZodString; index: z.ZodNumber; sheetType: z.ZodOptional<z.ZodString>; gridProperties: z.ZodOptional<z.ZodObject<{ rowCount: z.ZodOptional<z.ZodNumber>; columnCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { rowCount?: number | undefined; columnCount?: number | undefined; }, { rowCount?: number | undefined; columnCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }>, "many">>; spreadsheetUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_spreadsheet_info"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_spreadsheet_info"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_spreadsheet">; success: z.ZodBoolean; spreadsheet: z.ZodOptional<z.ZodObject<{ spreadsheetId: z.ZodString; properties: z.ZodOptional<z.ZodObject<{ title: z.ZodString; locale: z.ZodOptional<z.ZodString>; autoRecalc: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }>>; sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{ properties: z.ZodObject<{ sheetId: z.ZodNumber; title: z.ZodString; index: z.ZodNumber; sheetType: z.ZodOptional<z.ZodString>; gridProperties: z.ZodOptional<z.ZodObject<{ rowCount: z.ZodOptional<z.ZodNumber>; columnCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { rowCount?: number | undefined; columnCount?: number | undefined; }, { rowCount?: number | undefined; columnCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }>, "many">>; spreadsheetUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_spreadsheet"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }, { success: boolean; error: string; operation: "create_spreadsheet"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_sheet">; success: z.ZodBoolean; sheet_id: z.ZodOptional<z.ZodNumber>; sheet_title: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "add_sheet"; sheet_title?: string | undefined; sheet_id?: number | undefined; }, { success: boolean; error: string; operation: "add_sheet"; sheet_title?: string | undefined; sheet_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_sheet">; success: z.ZodBoolean; deleted_sheet_id: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_sheet"; deleted_sheet_id?: number | undefined; }, { success: boolean; error: string; operation: "delete_sheet"; deleted_sheet_id?: number | undefined; }>]>; static readonly shortDescription = "Google Sheets integration for spreadsheet operations"; static readonly longDescription = "\n Google Sheets service integration for comprehensive spreadsheet data management.\n Use cases:\n - Read and write spreadsheet data with flexible ranges\n - Batch operations for efficient data processing\n - Create and manage spreadsheets and sheets\n - Clear and append data with various formatting options\n - Handle formulas, formatted values, and raw data\n \n Security Features:\n - OAuth 2.0 authentication with Google\n - Scoped access permissions for Google Sheets\n - Secure data validation and sanitization\n - User-controlled access to spreadsheet data\n "; static readonly alias = "sheets"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private makeSheetsApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<GoogleSheetsResult, { operation: T['operation']; }>>; private readValues; private writeValues; private updateValues; private appendValues; private clearValues; private batchReadValues; private batchUpdateValues; private getSpreadsheetInfo; private createSpreadsheet; private addSheet; private deleteSheet; protected chooseCredential(): string | undefined; }
|
|
852
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GoogleSheetsParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"read_values">; spreadsheet_id: z.ZodString; range: z.ZodString; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>; date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { range: string; operation: "read_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA"; date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { range: string; operation: "read_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined; date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"write_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; operation: "write_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; range: string; operation: "write_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; operation: "update_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; range: string; operation: "update_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; insert_data_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["OVERWRITE", "INSERT_ROWS"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; operation: "append_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; insert_data_option: "OVERWRITE" | "INSERT_ROWS"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; range: string; operation: "append_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; insert_data_option?: "OVERWRITE" | "INSERT_ROWS" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"clear_values">; spreadsheet_id: z.ZodString; range: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { range: string; operation: "clear_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { range: string; operation: "clear_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_read_values">; spreadsheet_id: z.ZodString; ranges: z.ZodArray<z.ZodString, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>; date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_read_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA"; date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING"; ranges: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_read_values"; spreadsheet_id: string; ranges: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined; date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_values">; spreadsheet_id: z.ZodString; value_ranges: z.ZodArray<z.ZodObject<{ range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; major_dimension: "ROWS" | "COLUMNS"; }, { values: (string | number | boolean)[][]; range: string; major_dimension?: "ROWS" | "COLUMNS" | undefined; }>, "many">; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_values"; spreadsheet_id: string; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; value_ranges: { values: (string | number | boolean)[][]; range: string; major_dimension: "ROWS" | "COLUMNS"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_values"; spreadsheet_id: string; value_ranges: { values: (string | number | boolean)[][]; range: string; major_dimension?: "ROWS" | "COLUMNS" | undefined; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_spreadsheet_info">; spreadsheet_id: z.ZodString; include_grid_data: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_spreadsheet_info"; spreadsheet_id: string; include_grid_data: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_spreadsheet_info"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_grid_data?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_spreadsheet">; title: z.ZodString; sheet_titles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_spreadsheet"; sheet_titles: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_spreadsheet"; credentials?: Partial<Record<CredentialType, string>> | undefined; sheet_titles?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_sheet">; spreadsheet_id: z.ZodString; sheet_title: z.ZodString; row_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; column_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_sheet"; spreadsheet_id: string; sheet_title: string; row_count: number; column_count: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_sheet"; spreadsheet_id: string; sheet_title: string; credentials?: Partial<Record<CredentialType, string>> | undefined; row_count?: number | undefined; column_count?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_sheet">; spreadsheet_id: z.ZodString; sheet_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_sheet"; spreadsheet_id: string; sheet_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_sheet"; spreadsheet_id: string; sheet_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; declare const GoogleSheetsResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"read_values">; success: z.ZodBoolean; range: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">>; major_dimension: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "read_values"; values?: (string | number | boolean)[][] | undefined; range?: string | undefined; major_dimension?: string | undefined; }, { success: boolean; error: string; operation: "read_values"; values?: (string | number | boolean)[][] | undefined; range?: string | undefined; major_dimension?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"write_values">; success: z.ZodBoolean; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; updated_data: z.ZodOptional<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "write_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }, { success: boolean; error: string; operation: "write_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_values">; success: z.ZodBoolean; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; updated_data: z.ZodOptional<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }, { success: boolean; error: string; operation: "update_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_values">; success: z.ZodBoolean; table_range: z.ZodOptional<z.ZodString>; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "append_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; table_range?: string | undefined; }, { success: boolean; error: string; operation: "append_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; table_range?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"clear_values">; success: z.ZodBoolean; cleared_range: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "clear_values"; cleared_range?: string | undefined; }, { success: boolean; error: string; operation: "clear_values"; cleared_range?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_read_values">; success: z.ZodBoolean; value_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "batch_read_values"; value_ranges?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "batch_read_values"; value_ranges?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_values">; success: z.ZodBoolean; total_updated_rows: z.ZodOptional<z.ZodNumber>; total_updated_columns: z.ZodOptional<z.ZodNumber>; total_updated_cells: z.ZodOptional<z.ZodNumber>; total_updated_sheets: z.ZodOptional<z.ZodNumber>; responses: z.ZodOptional<z.ZodArray<z.ZodObject<{ updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }, { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "batch_update_values"; total_updated_rows?: number | undefined; total_updated_columns?: number | undefined; total_updated_cells?: number | undefined; total_updated_sheets?: number | undefined; responses?: { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "batch_update_values"; total_updated_rows?: number | undefined; total_updated_columns?: number | undefined; total_updated_cells?: number | undefined; total_updated_sheets?: number | undefined; responses?: { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_spreadsheet_info">; success: z.ZodBoolean; spreadsheet: z.ZodOptional<z.ZodObject<{ spreadsheetId: z.ZodString; properties: z.ZodOptional<z.ZodObject<{ title: z.ZodString; locale: z.ZodOptional<z.ZodString>; autoRecalc: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }>>; sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{ properties: z.ZodObject<{ sheetId: z.ZodNumber; title: z.ZodString; index: z.ZodNumber; sheetType: z.ZodOptional<z.ZodString>; gridProperties: z.ZodOptional<z.ZodObject<{ rowCount: z.ZodOptional<z.ZodNumber>; columnCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { rowCount?: number | undefined; columnCount?: number | undefined; }, { rowCount?: number | undefined; columnCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }>, "many">>; spreadsheetUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_spreadsheet_info"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_spreadsheet_info"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_spreadsheet">; success: z.ZodBoolean; spreadsheet: z.ZodOptional<z.ZodObject<{ spreadsheetId: z.ZodString; properties: z.ZodOptional<z.ZodObject<{ title: z.ZodString; locale: z.ZodOptional<z.ZodString>; autoRecalc: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }>>; sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{ properties: z.ZodObject<{ sheetId: z.ZodNumber; title: z.ZodString; index: z.ZodNumber; sheetType: z.ZodOptional<z.ZodString>; gridProperties: z.ZodOptional<z.ZodObject<{ rowCount: z.ZodOptional<z.ZodNumber>; columnCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { rowCount?: number | undefined; columnCount?: number | undefined; }, { rowCount?: number | undefined; columnCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }>, "many">>; spreadsheetUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_spreadsheet"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }, { success: boolean; error: string; operation: "create_spreadsheet"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_sheet">; success: z.ZodBoolean; sheet_id: z.ZodOptional<z.ZodNumber>; sheet_title: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "add_sheet"; sheet_title?: string | undefined; sheet_id?: number | undefined; }, { success: boolean; error: string; operation: "add_sheet"; sheet_title?: string | undefined; sheet_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_sheet">; success: z.ZodBoolean; deleted_sheet_id: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_sheet"; deleted_sheet_id?: number | undefined; }, { success: boolean; error: string; operation: "delete_sheet"; deleted_sheet_id?: number | undefined; }>]>; type GoogleSheetsResult = z.output<typeof GoogleSheetsResultSchema>; type GoogleSheetsParams = z.input<typeof GoogleSheetsParamsSchema>;; export type GoogleSheetsOperationResult<T extends GoogleSheetsParams['operation']> = Extract<GoogleSheetsResult, { operation: T; }>; export
|
|
853
|
+
type GoogleSheetsParamsInput = z.input<typeof GoogleSheetsParamsSchema>;; export declare class GoogleSheetsBubble<T extends GoogleSheetsParams = GoogleSheetsParams> extends ServiceBubble<T, Extract<GoogleSheetsResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "google-sheets"; static readonly authType: "oauth"; static readonly bubbleName = "google-sheets"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"read_values">; spreadsheet_id: z.ZodString; range: z.ZodString; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>; date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { range: string; operation: "read_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA"; date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { range: string; operation: "read_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined; date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"write_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; operation: "write_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; range: string; operation: "write_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; operation: "update_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; range: string; operation: "update_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_values">; spreadsheet_id: z.ZodString; range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; insert_data_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["OVERWRITE", "INSERT_ROWS"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; operation: "append_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; insert_data_option: "OVERWRITE" | "INSERT_ROWS"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { values: (string | number | boolean)[][]; range: string; operation: "append_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; insert_data_option?: "OVERWRITE" | "INSERT_ROWS" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"clear_values">; spreadsheet_id: z.ZodString; range: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { range: string; operation: "clear_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { range: string; operation: "clear_values"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_read_values">; spreadsheet_id: z.ZodString; ranges: z.ZodArray<z.ZodString, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>; date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_read_values"; spreadsheet_id: string; major_dimension: "ROWS" | "COLUMNS"; value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA"; date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING"; ranges: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_read_values"; spreadsheet_id: string; ranges: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; major_dimension?: "ROWS" | "COLUMNS" | undefined; value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined; date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_values">; spreadsheet_id: z.ZodString; value_ranges: z.ZodArray<z.ZodObject<{ range: z.ZodString; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; major_dimension: "ROWS" | "COLUMNS"; }, { values: (string | number | boolean)[][]; range: string; major_dimension?: "ROWS" | "COLUMNS" | undefined; }>, "many">; value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>; include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_values"; spreadsheet_id: string; value_input_option: "RAW" | "USER_ENTERED"; include_values_in_response: boolean; value_ranges: { values: (string | number | boolean)[][]; range: string; major_dimension: "ROWS" | "COLUMNS"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_values"; spreadsheet_id: string; value_ranges: { values: (string | number | boolean)[][]; range: string; major_dimension?: "ROWS" | "COLUMNS" | undefined; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; value_input_option?: "RAW" | "USER_ENTERED" | undefined; include_values_in_response?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_spreadsheet_info">; spreadsheet_id: z.ZodString; include_grid_data: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_spreadsheet_info"; spreadsheet_id: string; include_grid_data: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_spreadsheet_info"; spreadsheet_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; include_grid_data?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_spreadsheet">; title: z.ZodString; sheet_titles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_spreadsheet"; sheet_titles: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_spreadsheet"; credentials?: Partial<Record<CredentialType, string>> | undefined; sheet_titles?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_sheet">; spreadsheet_id: z.ZodString; sheet_title: z.ZodString; row_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; column_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_sheet"; spreadsheet_id: string; sheet_title: string; row_count: number; column_count: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_sheet"; spreadsheet_id: string; sheet_title: string; credentials?: Partial<Record<CredentialType, string>> | undefined; row_count?: number | undefined; column_count?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_sheet">; spreadsheet_id: z.ZodString; sheet_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_sheet"; spreadsheet_id: string; sheet_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_sheet"; spreadsheet_id: string; sheet_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"read_values">; success: z.ZodBoolean; range: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">>; major_dimension: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "read_values"; values?: (string | number | boolean)[][] | undefined; range?: string | undefined; major_dimension?: string | undefined; }, { success: boolean; error: string; operation: "read_values"; values?: (string | number | boolean)[][] | undefined; range?: string | undefined; major_dimension?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"write_values">; success: z.ZodBoolean; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; updated_data: z.ZodOptional<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "write_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }, { success: boolean; error: string; operation: "write_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_values">; success: z.ZodBoolean; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; updated_data: z.ZodOptional<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }, { success: boolean; error: string; operation: "update_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; updated_data?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_values">; success: z.ZodBoolean; table_range: z.ZodOptional<z.ZodString>; updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "append_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; table_range?: string | undefined; }, { success: boolean; error: string; operation: "append_values"; updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; table_range?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"clear_values">; success: z.ZodBoolean; cleared_range: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "clear_values"; cleared_range?: string | undefined; }, { success: boolean; error: string; operation: "clear_values"; cleared_range?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_read_values">; success: z.ZodBoolean; value_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{ range: z.ZodString; majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>; values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">; }, "strip", z.ZodTypeAny, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }, { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "batch_read_values"; value_ranges?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "batch_read_values"; value_ranges?: { values: (string | number | boolean)[][]; range: string; majorDimension?: "ROWS" | "COLUMNS" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_values">; success: z.ZodBoolean; total_updated_rows: z.ZodOptional<z.ZodNumber>; total_updated_columns: z.ZodOptional<z.ZodNumber>; total_updated_cells: z.ZodOptional<z.ZodNumber>; total_updated_sheets: z.ZodOptional<z.ZodNumber>; responses: z.ZodOptional<z.ZodArray<z.ZodObject<{ updated_range: z.ZodOptional<z.ZodString>; updated_rows: z.ZodOptional<z.ZodNumber>; updated_columns: z.ZodOptional<z.ZodNumber>; updated_cells: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }, { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "batch_update_values"; total_updated_rows?: number | undefined; total_updated_columns?: number | undefined; total_updated_cells?: number | undefined; total_updated_sheets?: number | undefined; responses?: { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }[] | undefined; }, { success: boolean; error: string; operation: "batch_update_values"; total_updated_rows?: number | undefined; total_updated_columns?: number | undefined; total_updated_cells?: number | undefined; total_updated_sheets?: number | undefined; responses?: { updated_range?: string | undefined; updated_rows?: number | undefined; updated_columns?: number | undefined; updated_cells?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_spreadsheet_info">; success: z.ZodBoolean; spreadsheet: z.ZodOptional<z.ZodObject<{ spreadsheetId: z.ZodString; properties: z.ZodOptional<z.ZodObject<{ title: z.ZodString; locale: z.ZodOptional<z.ZodString>; autoRecalc: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }>>; sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{ properties: z.ZodObject<{ sheetId: z.ZodNumber; title: z.ZodString; index: z.ZodNumber; sheetType: z.ZodOptional<z.ZodString>; gridProperties: z.ZodOptional<z.ZodObject<{ rowCount: z.ZodOptional<z.ZodNumber>; columnCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { rowCount?: number | undefined; columnCount?: number | undefined; }, { rowCount?: number | undefined; columnCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }>, "many">>; spreadsheetUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_spreadsheet_info"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }, { success: boolean; error: string; operation: "get_spreadsheet_info"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_spreadsheet">; success: z.ZodBoolean; spreadsheet: z.ZodOptional<z.ZodObject<{ spreadsheetId: z.ZodString; properties: z.ZodOptional<z.ZodObject<{ title: z.ZodString; locale: z.ZodOptional<z.ZodString>; autoRecalc: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }, { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; }>>; sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{ properties: z.ZodObject<{ sheetId: z.ZodNumber; title: z.ZodString; index: z.ZodNumber; sheetType: z.ZodOptional<z.ZodString>; gridProperties: z.ZodOptional<z.ZodObject<{ rowCount: z.ZodOptional<z.ZodNumber>; columnCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { rowCount?: number | undefined; columnCount?: number | undefined; }, { rowCount?: number | undefined; columnCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }, { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }, { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }>, "many">>; spreadsheetUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }, { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_spreadsheet"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }, { success: boolean; error: string; operation: "create_spreadsheet"; spreadsheet?: { spreadsheetId: string; properties?: { title: string; locale?: string | undefined; autoRecalc?: string | undefined; timeZone?: string | undefined; } | undefined; sheets?: { properties: { title: string; index: number; sheetId: number; sheetType?: string | undefined; gridProperties?: { rowCount?: number | undefined; columnCount?: number | undefined; } | undefined; }; }[] | undefined; spreadsheetUrl?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_sheet">; success: z.ZodBoolean; sheet_id: z.ZodOptional<z.ZodNumber>; sheet_title: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "add_sheet"; sheet_title?: string | undefined; sheet_id?: number | undefined; }, { success: boolean; error: string; operation: "add_sheet"; sheet_title?: string | undefined; sheet_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_sheet">; success: z.ZodBoolean; deleted_sheet_id: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_sheet"; deleted_sheet_id?: number | undefined; }, { success: boolean; error: string; operation: "delete_sheet"; deleted_sheet_id?: number | undefined; }>]>; static readonly shortDescription = "Google Sheets integration for spreadsheet operations"; static readonly longDescription = "\n Google Sheets service integration for comprehensive spreadsheet data management.\n Use cases:\n - Read and write spreadsheet data with flexible ranges\n - Batch operations for efficient data processing\n - Create and manage spreadsheets and sheets\n - Clear and append data with various formatting options\n - Handle formulas, formatted values, and raw data\n \n Security Features:\n - OAuth 2.0 authentication with Google\n - Scoped access permissions for Google Sheets\n - Secure data validation and sanitization\n - User-controlled access to spreadsheet data\n "; static readonly alias = "sheets"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private makeSheetsApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<GoogleSheetsResult, { operation: T['operation']; }>>; private readValues; private writeValues; private updateValues; private appendValues; private clearValues; private batchReadValues; private batchUpdateValues; private getSpreadsheetInfo; private createSpreadsheet; private addSheet; private deleteSheet; protected chooseCredential(): string | undefined; }
|
|
854
854
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
855
855
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
856
856
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -904,8 +904,8 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
904
904
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
905
905
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
906
906
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
907
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GoogleCalendarParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_calendars">; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_calendars"; max_results: number; credentials?: Partial<Record<CredentialType, string>> | undefined; page_token?: string | undefined; }, { operation: "list_calendars"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; time_min: z.ZodOptional<z.ZodString>; time_max: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; single_events: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; order_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["startTime", "updated"]>>>; page_token: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; max_results: number; order_by: "updated" | "startTime"; calendar_id: string; single_events: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; q?: string | undefined; page_token?: string | undefined; time_min?: string | undefined; time_max?: string | undefined; }, { operation: "list_events"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; order_by?: "updated" | "startTime" | undefined; q?: string | undefined; page_token?: string | undefined; calendar_id?: string | undefined; time_min?: string | undefined; time_max?: string | undefined; single_events?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_event"; calendar_id: string; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_event"; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; summary: z.ZodString; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>; end: z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; conference: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { start: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; summary: string; operation: "create_event"; calendar_id: string; end: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; conference: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; location?: string | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }, { start: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; summary: string; operation: "create_event"; end: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; location?: string | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; conference?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_event"; calendar_id: string; event_id: string; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; summary?: string | undefined; location?: string | undefined; end?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }, { operation: "update_event"; event_id: string; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; summary?: string | undefined; calendar_id?: string | undefined; location?: string | undefined; end?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; send_updates: z.ZodDefault<z.ZodOptional<z.ZodEnum<["all", "externalOnly", "none"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_event"; calendar_id: string; event_id: string; send_updates: "none" | "all" | "externalOnly"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_event"; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; send_updates?: "none" | "all" | "externalOnly" | undefined; }>]>; declare const GoogleCalendarResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_calendars">; success: z.ZodBoolean; calendars: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_calendars"; next_page_token?: string | undefined; calendars?: z.objectOutputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { success: boolean; error: string; operation: "list_calendars"; next_page_token?: string | undefined; calendars?: z.objectInputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_events"; next_page_token?: string | undefined; events?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { success: boolean; error: string; operation: "list_events"; next_page_token?: string | undefined; events?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "get_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "create_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "update_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_event">; success: z.ZodBoolean; deleted: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_event"; deleted?: boolean | undefined; }, { success: boolean; error: string; operation: "delete_event"; deleted?: boolean | undefined; }>]>; type GoogleCalendarResult = z.output<typeof GoogleCalendarResultSchema>; type GoogleCalendarParams = z.input<typeof GoogleCalendarParamsSchema>;; export type GoogleCalendarOperationResult<T extends GoogleCalendarParams['operation']> = Extract<GoogleCalendarResult, { operation: T; }>; export
|
|
908
|
-
type GoogleCalendarParamsInput = z.input<typeof GoogleCalendarParamsSchema>;; export declare class GoogleCalendarBubble<T extends GoogleCalendarParams = GoogleCalendarParams> extends ServiceBubble<T, Extract<GoogleCalendarResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "google-calendar"; static readonly authType: "oauth"; static readonly bubbleName = "google-calendar"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_calendars">; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_calendars"; max_results: number; credentials?: Partial<Record<CredentialType, string>> | undefined; page_token?: string | undefined; }, { operation: "list_calendars"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; time_min: z.ZodOptional<z.ZodString>; time_max: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; single_events: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; order_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["startTime", "updated"]>>>; page_token: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; max_results: number; order_by: "updated" | "startTime"; calendar_id: string; single_events: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; q?: string | undefined; page_token?: string | undefined; time_min?: string | undefined; time_max?: string | undefined; }, { operation: "list_events"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; order_by?: "updated" | "startTime" | undefined; q?: string | undefined; page_token?: string | undefined; calendar_id?: string | undefined; time_min?: string | undefined; time_max?: string | undefined; single_events?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_event"; calendar_id: string; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_event"; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; summary: z.ZodString; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>; end: z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; conference: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { start: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; summary: string; operation: "create_event"; calendar_id: string; end: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; conference: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; location?: string | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }, { start: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; summary: string; operation: "create_event"; end: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; location?: string | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; conference?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_event"; calendar_id: string; event_id: string; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; summary?: string | undefined; location?: string | undefined; end?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }, { operation: "update_event"; event_id: string; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; summary?: string | undefined; calendar_id?: string | undefined; location?: string | undefined; end?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; send_updates: z.ZodDefault<z.ZodOptional<z.ZodEnum<["all", "externalOnly", "none"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_event"; calendar_id: string; event_id: string; send_updates: "none" | "all" | "externalOnly"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_event"; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; send_updates?: "none" | "all" | "externalOnly" | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_calendars">; success: z.ZodBoolean; calendars: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_calendars"; next_page_token?: string | undefined; calendars?: z.objectOutputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { success: boolean; error: string; operation: "list_calendars"; next_page_token?: string | undefined; calendars?: z.objectInputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_events"; next_page_token?: string | undefined; events?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { success: boolean; error: string; operation: "list_events"; next_page_token?: string | undefined; events?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "get_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "create_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "update_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_event">; success: z.ZodBoolean; deleted: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_event"; deleted?: boolean | undefined; }, { success: boolean; error: string; operation: "delete_event"; deleted?: boolean | undefined; }>]>; static readonly shortDescription = "Google Calendar integration for managing events"; static readonly longDescription = "\n Google Calendar service integration for listing, creating, updating and deleting events.\n Use cases:\n - List calendars and events with filters and pagination\n - Create meetings with attendees and optional Google Meet link\n - Update or delete existing events and notify attendees\n Security Features:\n - OAuth 2.0 with scoped access to Calendar\n "; static readonly alias = "gcal"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private makeCalendarApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<GoogleCalendarResult, { operation: T['operation']; }>>; private listCalendars; private listEvents; private getEvent; private buildEventBody; private createEvent; private updateEvent; private deleteEvent; protected chooseCredential(): string | undefined; }
|
|
907
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GoogleCalendarParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_calendars">; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_calendars"; max_results: number; credentials?: Partial<Record<CredentialType, string>> | undefined; page_token?: string | undefined; }, { operation: "list_calendars"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; time_min: z.ZodOptional<z.ZodString>; time_max: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; single_events: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; order_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["startTime", "updated"]>>>; page_token: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; max_results: number; order_by: "updated" | "startTime"; calendar_id: string; single_events: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; q?: string | undefined; page_token?: string | undefined; time_min?: string | undefined; time_max?: string | undefined; }, { operation: "list_events"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; order_by?: "updated" | "startTime" | undefined; q?: string | undefined; page_token?: string | undefined; calendar_id?: string | undefined; time_min?: string | undefined; time_max?: string | undefined; single_events?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_event"; calendar_id: string; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_event"; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; summary: z.ZodString; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>; end: z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; conference: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { start: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; summary: string; operation: "create_event"; end: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; calendar_id: string; conference: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; location?: string | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }, { start: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; summary: string; operation: "create_event"; end: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; location?: string | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; calendar_id?: string | undefined; conference?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_event"; calendar_id: string; event_id: string; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; summary?: string | undefined; location?: string | undefined; end?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }, { operation: "update_event"; event_id: string; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; summary?: string | undefined; location?: string | undefined; end?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; calendar_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; send_updates: z.ZodDefault<z.ZodOptional<z.ZodEnum<["all", "externalOnly", "none"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_event"; calendar_id: string; event_id: string; send_updates: "none" | "all" | "externalOnly"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_event"; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; send_updates?: "none" | "all" | "externalOnly" | undefined; }>]>; declare const GoogleCalendarResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_calendars">; success: z.ZodBoolean; calendars: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_calendars"; next_page_token?: string | undefined; calendars?: z.objectOutputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { success: boolean; error: string; operation: "list_calendars"; next_page_token?: string | undefined; calendars?: z.objectInputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_events"; next_page_token?: string | undefined; events?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { success: boolean; error: string; operation: "list_events"; next_page_token?: string | undefined; events?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "get_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "create_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "update_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_event">; success: z.ZodBoolean; deleted: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_event"; deleted?: boolean | undefined; }, { success: boolean; error: string; operation: "delete_event"; deleted?: boolean | undefined; }>]>; type GoogleCalendarResult = z.output<typeof GoogleCalendarResultSchema>; type GoogleCalendarParams = z.input<typeof GoogleCalendarParamsSchema>;; export type GoogleCalendarOperationResult<T extends GoogleCalendarParams['operation']> = Extract<GoogleCalendarResult, { operation: T; }>; export
|
|
908
|
+
type GoogleCalendarParamsInput = z.input<typeof GoogleCalendarParamsSchema>;; export declare class GoogleCalendarBubble<T extends GoogleCalendarParams = GoogleCalendarParams> extends ServiceBubble<T, Extract<GoogleCalendarResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "google-calendar"; static readonly authType: "oauth"; static readonly bubbleName = "google-calendar"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_calendars">; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; page_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_calendars"; max_results: number; credentials?: Partial<Record<CredentialType, string>> | undefined; page_token?: string | undefined; }, { operation: "list_calendars"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; time_min: z.ZodOptional<z.ZodString>; time_max: z.ZodOptional<z.ZodString>; q: z.ZodOptional<z.ZodString>; single_events: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; order_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["startTime", "updated"]>>>; page_token: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; max_results: number; order_by: "updated" | "startTime"; calendar_id: string; single_events: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; q?: string | undefined; page_token?: string | undefined; time_min?: string | undefined; time_max?: string | undefined; }, { operation: "list_events"; credentials?: Partial<Record<CredentialType, string>> | undefined; max_results?: number | undefined; order_by?: "updated" | "startTime" | undefined; q?: string | undefined; page_token?: string | undefined; calendar_id?: string | undefined; time_min?: string | undefined; time_max?: string | undefined; single_events?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_event"; calendar_id: string; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_event"; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; summary: z.ZodString; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>; end: z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; conference: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { start: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; summary: string; operation: "create_event"; end: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; calendar_id: string; conference: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; location?: string | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }, { start: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; summary: string; operation: "create_event"; end: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; location?: string | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; calendar_id?: string | undefined; conference?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_event"; calendar_id: string; event_id: string; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; summary?: string | undefined; location?: string | undefined; end?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; }, { operation: "update_event"; event_id: string; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; start?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; summary?: string | undefined; location?: string | undefined; end?: { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; } | undefined; attendees?: { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }[] | undefined; calendar_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_event">; calendar_id: z.ZodDefault<z.ZodOptional<z.ZodString>>; event_id: z.ZodString; send_updates: z.ZodDefault<z.ZodOptional<z.ZodEnum<["all", "externalOnly", "none"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_event"; calendar_id: string; event_id: string; send_updates: "none" | "all" | "externalOnly"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_event"; event_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; calendar_id?: string | undefined; send_updates?: "none" | "all" | "externalOnly" | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_calendars">; success: z.ZodBoolean; calendars: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_calendars"; next_page_token?: string | undefined; calendars?: z.objectOutputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { success: boolean; error: string; operation: "list_calendars"; next_page_token?: string | undefined; calendars?: z.objectInputType<{ id: z.ZodString; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; selected: z.ZodOptional<z.ZodBoolean>; accessRole: z.ZodOptional<z.ZodEnum<["freeBusyReader", "reader", "writer", "owner"]>>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_page_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "list_events"; next_page_token?: string | undefined; events?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { success: boolean; error: string; operation: "list_events"; next_page_token?: string | undefined; events?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "get_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "get_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "create_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "create_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_event">; success: z.ZodBoolean; event: z.ZodOptional<z.ZodObject<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough">>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "update_event"; event?: z.objectOutputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { success: boolean; error: string; operation: "update_event"; event?: z.objectInputType<{ id: z.ZodString; status: z.ZodOptional<z.ZodString>; htmlLink: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; summary: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; end: z.ZodOptional<z.ZodObject<{ dateTime: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; timeZone: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }, { date?: string | undefined; timeZone?: string | undefined; dateTime?: string | undefined; }>>; attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; optional: z.ZodOptional<z.ZodBoolean>; responseStatus: z.ZodOptional<z.ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }, { email: string; optional?: boolean | undefined; displayName?: string | undefined; responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined; }>, "many">>; organizer: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; displayName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; displayName?: string | undefined; }, { email?: string | undefined; displayName?: string | undefined; }>>; hangoutLink: z.ZodOptional<z.ZodString>; conferenceData: z.ZodOptional<z.ZodAny>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_event">; success: z.ZodBoolean; deleted: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "delete_event"; deleted?: boolean | undefined; }, { success: boolean; error: string; operation: "delete_event"; deleted?: boolean | undefined; }>]>; static readonly shortDescription = "Google Calendar integration for managing events"; static readonly longDescription = "\n Google Calendar service integration for listing, creating, updating and deleting events.\n Use cases:\n - List calendars and events with filters and pagination\n - Create meetings with attendees and optional Google Meet link\n - Update or delete existing events and notify attendees\n Security Features:\n - OAuth 2.0 with scoped access to Calendar\n "; static readonly alias = "gcal"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private makeCalendarApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<GoogleCalendarResult, { operation: T['operation']; }>>; private listCalendars; private listEvents; private getEvent; private buildEventBody; private createEvent; private updateEvent; private deleteEvent; protected chooseCredential(): string | undefined; }
|
|
909
909
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
910
910
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
911
911
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1013,7 +1013,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1013
1013
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1014
1014
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1015
1015
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1016
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const SlackNotifierParamsSchema: z.ZodObject<{ contentToFormat: z.ZodString; originalUserQuery: z.ZodOptional<z.ZodString>; targetChannel: z.ZodString; messageTitle: z.ZodOptional<z.ZodString>; messageStyle: z.ZodDefault<z.ZodEnum<["professional", "casual", "technical", "concise", "detailed"]>>; includeFormatting: z.ZodDefault<z.ZodBoolean>; maxMessageLength: z.ZodDefault<z.ZodNumber>; aiModel: z.ZodOptional<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { contentToFormat: string; targetChannel: string; messageStyle: "professional" | "casual" | "technical" | "concise" | "detailed"; includeFormatting: boolean; maxMessageLength: number; credentials?: Partial<Record<CredentialType, string>> | undefined; originalUserQuery?: string | undefined; messageTitle?: string | undefined; aiModel?: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; } | undefined; }, { contentToFormat: string; targetChannel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; originalUserQuery?: string | undefined; messageTitle?: string | undefined; messageStyle?: "professional" | "casual" | "technical" | "concise" | "detailed" | undefined; includeFormatting?: boolean | undefined; maxMessageLength?: number | undefined; aiModel?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; }>; type SlackNotifierParamsInput = z.input<typeof SlackNotifierParamsSchema>;; type SlackNotifierParams = z.output<typeof SlackNotifierParamsSchema>; declare const SlackNotifierResultSchema: z.ZodObject<{ success: z.ZodBoolean; error: z.ZodString; messageInfo: z.ZodOptional<z.ZodObject<{ messageTimestamp: z.ZodOptional<z.ZodString>; channelId: z.ZodOptional<z.ZodString>; channelName: z.ZodOptional<z.ZodString>; formattedMessage: z.ZodOptional<z.ZodString>; messageLength: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; }, { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; }>>; formattingInfo: z.ZodOptional<z.ZodObject<{ modelUsed: z.ZodOptional<z.ZodString>; wasTruncated: z.ZodDefault<z.ZodBoolean>; originalLength: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { wasTruncated: boolean; modelUsed?: string | undefined; originalLength?: number | undefined; }, { modelUsed?: string | undefined; wasTruncated?: boolean | undefined; originalLength?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { success: boolean; error: string; messageInfo?: { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; } | undefined; formattingInfo?: { wasTruncated: boolean; modelUsed?: string | undefined; originalLength?: number | undefined; } | undefined; }, { success: boolean; error: string; messageInfo?: { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; } | undefined; formattingInfo?: { modelUsed?: string | undefined; wasTruncated?: boolean | undefined; originalLength?: number | undefined; } | undefined; }>; type SlackNotifierResult = z.infer<typeof SlackNotifierResultSchema>; export declare class SlackNotifierWorkflowBubble extends WorkflowBubble<SlackNotifierParams, SlackNotifierResult> { static readonly bubbleName = "slack-notifier"; static readonly schema: z.ZodObject<{ contentToFormat: z.ZodString; originalUserQuery: z.ZodOptional<z.ZodString>; targetChannel: z.ZodString; messageTitle: z.ZodOptional<z.ZodString>; messageStyle: z.ZodDefault<z.ZodEnum<["professional", "casual", "technical", "concise", "detailed"]>>; includeFormatting: z.ZodDefault<z.ZodBoolean>; maxMessageLength: z.ZodDefault<z.ZodNumber>; aiModel: z.ZodOptional<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { contentToFormat: string; targetChannel: string; messageStyle: "professional" | "casual" | "technical" | "concise" | "detailed"; includeFormatting: boolean; maxMessageLength: number; credentials?: Partial<Record<CredentialType, string>> | undefined; originalUserQuery?: string | undefined; messageTitle?: string | undefined; aiModel?: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; } | undefined; }, { contentToFormat: string; targetChannel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; originalUserQuery?: string | undefined; messageTitle?: string | undefined; messageStyle?: "professional" | "casual" | "technical" | "concise" | "detailed" | undefined; includeFormatting?: boolean | undefined; maxMessageLength?: number | undefined; aiModel?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; }>; static readonly resultSchema: z.ZodObject<{ success: z.ZodBoolean; error: z.ZodString; messageInfo: z.ZodOptional<z.ZodObject<{ messageTimestamp: z.ZodOptional<z.ZodString>; channelId: z.ZodOptional<z.ZodString>; channelName: z.ZodOptional<z.ZodString>; formattedMessage: z.ZodOptional<z.ZodString>; messageLength: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; }, { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; }>>; formattingInfo: z.ZodOptional<z.ZodObject<{ modelUsed: z.ZodOptional<z.ZodString>; wasTruncated: z.ZodDefault<z.ZodBoolean>; originalLength: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { wasTruncated: boolean; modelUsed?: string | undefined; originalLength?: number | undefined; }, { modelUsed?: string | undefined; wasTruncated?: boolean | undefined; originalLength?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { success: boolean; error: string; messageInfo?: { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; } | undefined; formattingInfo?: { wasTruncated: boolean; modelUsed?: string | undefined; originalLength?: number | undefined; } | undefined; }, { success: boolean; error: string; messageInfo?: { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; } | undefined; formattingInfo?: { modelUsed?: string | undefined; wasTruncated?: boolean | undefined; originalLength?: number | undefined; } | undefined; }>; static readonly shortDescription = "Data analyst-powered Slack notifications that tell compelling stories"; static readonly longDescription = "Transforms raw data and insights into engaging, conversational Slack messages that colleagues actually want to read. Uses AI with a data analyst personality to spot patterns, provide context, and make information actionable. Perfect for sharing analysis results, automated reports, and business intelligence updates with natural, human-like communication."; static readonly alias = "notify-slack"; static readonly type: "workflow"; constructor(params: SlackNotifierParamsInput, context?: BubbleContext); protected performAction(): Promise<SlackNotifierResult>; private findSlackChannel; private formatContentWithAI; private sendToSlack; private buildFormattingPrompt; }
|
|
1016
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const SlackNotifierParamsSchema: z.ZodObject<{ contentToFormat: z.ZodString; originalUserQuery: z.ZodOptional<z.ZodString>; targetChannel: z.ZodString; messageTitle: z.ZodOptional<z.ZodString>; messageStyle: z.ZodDefault<z.ZodEnum<["professional", "casual", "technical", "concise", "detailed"]>>; includeFormatting: z.ZodDefault<z.ZodBoolean>; maxMessageLength: z.ZodDefault<z.ZodNumber>; aiModel: z.ZodOptional<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { contentToFormat: string; targetChannel: string; messageStyle: "professional" | "casual" | "technical" | "concise" | "detailed"; includeFormatting: boolean; maxMessageLength: number; credentials?: Partial<Record<CredentialType, string>> | undefined; originalUserQuery?: string | undefined; messageTitle?: string | undefined; aiModel?: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; } | undefined; }, { contentToFormat: string; targetChannel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; originalUserQuery?: string | undefined; messageTitle?: string | undefined; messageStyle?: "professional" | "casual" | "technical" | "concise" | "detailed" | undefined; includeFormatting?: boolean | undefined; maxMessageLength?: number | undefined; aiModel?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; }>; type SlackNotifierParamsInput = z.input<typeof SlackNotifierParamsSchema>;; type SlackNotifierParams = z.output<typeof SlackNotifierParamsSchema>; declare const SlackNotifierResultSchema: z.ZodObject<{ success: z.ZodBoolean; error: z.ZodString; messageInfo: z.ZodOptional<z.ZodObject<{ messageTimestamp: z.ZodOptional<z.ZodString>; channelId: z.ZodOptional<z.ZodString>; channelName: z.ZodOptional<z.ZodString>; formattedMessage: z.ZodOptional<z.ZodString>; messageLength: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; }, { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; }>>; formattingInfo: z.ZodOptional<z.ZodObject<{ modelUsed: z.ZodOptional<z.ZodString>; wasTruncated: z.ZodDefault<z.ZodBoolean>; originalLength: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { wasTruncated: boolean; modelUsed?: string | undefined; originalLength?: number | undefined; }, { modelUsed?: string | undefined; wasTruncated?: boolean | undefined; originalLength?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; messageInfo?: { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; } | undefined; formattingInfo?: { wasTruncated: boolean; modelUsed?: string | undefined; originalLength?: number | undefined; } | undefined; }, { error: string; success: boolean; messageInfo?: { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; } | undefined; formattingInfo?: { modelUsed?: string | undefined; wasTruncated?: boolean | undefined; originalLength?: number | undefined; } | undefined; }>; type SlackNotifierResult = z.infer<typeof SlackNotifierResultSchema>; export declare class SlackNotifierWorkflowBubble extends WorkflowBubble<SlackNotifierParams, SlackNotifierResult> { static readonly bubbleName = "slack-notifier"; static readonly schema: z.ZodObject<{ contentToFormat: z.ZodString; originalUserQuery: z.ZodOptional<z.ZodString>; targetChannel: z.ZodString; messageTitle: z.ZodOptional<z.ZodString>; messageStyle: z.ZodDefault<z.ZodEnum<["professional", "casual", "technical", "concise", "detailed"]>>; includeFormatting: z.ZodDefault<z.ZodBoolean>; maxMessageLength: z.ZodDefault<z.ZodNumber>; aiModel: z.ZodOptional<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { contentToFormat: string; targetChannel: string; messageStyle: "professional" | "casual" | "technical" | "concise" | "detailed"; includeFormatting: boolean; maxMessageLength: number; credentials?: Partial<Record<CredentialType, string>> | undefined; originalUserQuery?: string | undefined; messageTitle?: string | undefined; aiModel?: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; } | undefined; }, { contentToFormat: string; targetChannel: string; credentials?: Partial<Record<CredentialType, string>> | undefined; originalUserQuery?: string | undefined; messageTitle?: string | undefined; messageStyle?: "professional" | "casual" | "technical" | "concise" | "detailed" | undefined; includeFormatting?: boolean | undefined; maxMessageLength?: number | undefined; aiModel?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; }>; static readonly resultSchema: z.ZodObject<{ success: z.ZodBoolean; error: z.ZodString; messageInfo: z.ZodOptional<z.ZodObject<{ messageTimestamp: z.ZodOptional<z.ZodString>; channelId: z.ZodOptional<z.ZodString>; channelName: z.ZodOptional<z.ZodString>; formattedMessage: z.ZodOptional<z.ZodString>; messageLength: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; }, { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; }>>; formattingInfo: z.ZodOptional<z.ZodObject<{ modelUsed: z.ZodOptional<z.ZodString>; wasTruncated: z.ZodDefault<z.ZodBoolean>; originalLength: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { wasTruncated: boolean; modelUsed?: string | undefined; originalLength?: number | undefined; }, { modelUsed?: string | undefined; wasTruncated?: boolean | undefined; originalLength?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; messageInfo?: { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; } | undefined; formattingInfo?: { wasTruncated: boolean; modelUsed?: string | undefined; originalLength?: number | undefined; } | undefined; }, { error: string; success: boolean; messageInfo?: { messageTimestamp?: string | undefined; channelId?: string | undefined; channelName?: string | undefined; formattedMessage?: string | undefined; messageLength?: number | undefined; } | undefined; formattingInfo?: { modelUsed?: string | undefined; wasTruncated?: boolean | undefined; originalLength?: number | undefined; } | undefined; }>; static readonly shortDescription = "Data analyst-powered Slack notifications that tell compelling stories"; static readonly longDescription = "Transforms raw data and insights into engaging, conversational Slack messages that colleagues actually want to read. Uses AI with a data analyst personality to spot patterns, provide context, and make information actionable. Perfect for sharing analysis results, automated reports, and business intelligence updates with natural, human-like communication."; static readonly alias = "notify-slack"; static readonly type: "workflow"; constructor(params: SlackNotifierParamsInput, context?: BubbleContext); protected performAction(): Promise<SlackNotifierResult>; private findSlackChannel; private formatContentWithAI; private sendToSlack; private buildFormattingPrompt; }
|
|
1017
1017
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1018
1018
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1019
1019
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1120,8 +1120,8 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1120
1120
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1121
1121
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1122
1122
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1123
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; export type StreamingEvent = { type: 'start'; data: { message: string; maxIterations: number; timestamp: string; }; } | { type: 'llm_start'; data: { model: string; temperature: number; }; } | { type: 'token'; data: { content: string; messageId: string; }; } | { type: 'llm_complete'; data: { messageId: string; totalTokens?: number; }; } | { type: 'tool_start'; data: { tool: string; input: unknown; callId: string; }; } | { type: 'tool_complete'; data: { callId: string; output: unknown; duration: number; }; } | { type: 'iteration_start'; data: { iteration: number; }; } | { type: 'iteration_complete'; data: { iteration: number; hasToolCalls: boolean; }; } | { type: 'error'; data: { error: string; recoverable: boolean; }; } | { type: 'complete'; data: { result: AIAgentResult; totalDuration: number; }; }; export type StreamingCallback = (event: StreamingEvent) => Promise<void> | void; declare const AIAgentParamsSchema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { message: string; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; tools: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; streaming: boolean; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { message: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; images?: ({ data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; systemPrompt?: string | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; tools?: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; streaming?: boolean | undefined; }>; declare const AIAgentResultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }, { success: boolean; error: string; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }>; type AIAgentParams = z.input<typeof AIAgentParamsSchema>; type AIAgentParamsParsed = z.output<typeof AIAgentParamsSchema>; type AIAgentResult = z.output<typeof AIAgentResultSchema>; export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AIAgentResult> { static readonly type: "service"; static readonly service = "ai-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { message: string; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; tools: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; streaming: boolean; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { message: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; images?: ({ data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; systemPrompt?: string | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; tools?: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; streaming?: boolean | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { success: boolean; error: string; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }, { success: boolean; error: string; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }>; static readonly shortDescription = "AI agent with LangGraph for tool-enabled conversations, multimodal support, and JSON mode"; static readonly longDescription = "\n An AI agent powered by LangGraph that can use any tool bubble to answer questions.\n Use cases:\n - Add tools to enhance the AI agent's capabilities (web-search-tool, web-scrape-tool)\n - Multi-step reasoning with tool assistance\n - Tool-augmented conversations with any registered tool\n - JSON mode for structured output (strips markdown formatting)\n "; static readonly alias = "agent"; private factory; constructor(params?: AIAgentParams, context?: BubbleContext); testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<AIAgentResult>; actionWithStreaming(streamingCallback: StreamingCallback, context?: BubbleContext): Promise<AIAgentResult>; protected chooseCredential(): string | undefined; private formatFinalResponse; private formatGeminiImageResponse; private initializeModel; private initializeTools; private createAgentGraph; private executeAgent; private executeAgentWithStreaming; }
|
|
1124
|
-
export {}; declare const BubbleFlowGeneratorParamsSchema: z.ZodObject<{ prompt: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { prompt: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { prompt: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>; declare const BubbleFlowGeneratorResultSchema: z.ZodObject<{ generatedCode: z.ZodString; isValid: z.ZodBoolean; success: z.ZodBoolean; error: z.ZodString; toolCalls: z.ZodArray<z.ZodAny, "many">; summary: z.ZodDefault<z.ZodString>; inputsSchema: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, {
|
|
1123
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; export type StreamingEvent = { type: 'start'; data: { message: string; maxIterations: number; timestamp: string; }; } | { type: 'llm_start'; data: { model: string; temperature: number; }; } | { type: 'token'; data: { content: string; messageId: string; }; } | { type: 'llm_complete'; data: { messageId: string; totalTokens?: number; }; } | { type: 'tool_start'; data: { tool: string; input: unknown; callId: string; }; } | { type: 'tool_complete'; data: { callId: string; output: unknown; duration: number; }; } | { type: 'iteration_start'; data: { iteration: number; }; } | { type: 'iteration_complete'; data: { iteration: number; hasToolCalls: boolean; }; } | { type: 'error'; data: { error: string; recoverable: boolean; }; } | { type: 'complete'; data: { result: AIAgentResult; totalDuration: number; }; }; export type StreamingCallback = (event: StreamingEvent) => Promise<void> | void; declare const AIAgentParamsSchema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; mimeType?: string | undefined; description?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { message: string; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; tools: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; streaming: boolean; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { message: string; name?: string | undefined; images?: ({ data: string; type?: "base64" | undefined; mimeType?: string | undefined; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; systemPrompt?: string | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tools?: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; streaming?: boolean | undefined; }>; declare const AIAgentResultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; error: string; success: boolean; }, { response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; error: string; success: boolean; }>; type AIAgentParams = z.input<typeof AIAgentParamsSchema>; type AIAgentParamsParsed = z.output<typeof AIAgentParamsSchema>; type AIAgentResult = z.output<typeof AIAgentResultSchema>; export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AIAgentResult> { static readonly type: "service"; static readonly service = "ai-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; mimeType?: string | undefined; description?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { message: string; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; tools: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; streaming: boolean; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { message: string; name?: string | undefined; images?: ({ data: string; type?: "base64" | undefined; mimeType?: string | undefined; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; systemPrompt?: string | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tools?: { name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; streaming?: boolean | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; error: string; success: boolean; }, { response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; error: string; success: boolean; }>; static readonly shortDescription = "AI agent with LangGraph for tool-enabled conversations, multimodal support, and JSON mode"; static readonly longDescription = "\n An AI agent powered by LangGraph that can use any tool bubble to answer questions.\n Use cases:\n - Add tools to enhance the AI agent's capabilities (web-search-tool, web-scrape-tool)\n - Multi-step reasoning with tool assistance\n - Tool-augmented conversations with any registered tool\n - JSON mode for structured output (strips markdown formatting)\n "; static readonly alias = "agent"; private factory; constructor(params?: AIAgentParams, context?: BubbleContext); testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<AIAgentResult>; actionWithStreaming(streamingCallback: StreamingCallback, context?: BubbleContext): Promise<AIAgentResult>; protected chooseCredential(): string | undefined; private formatFinalResponse; private formatGeminiImageResponse; private initializeModel; private initializeTools; private createAgentGraph; private executeAgent; private executeAgentWithStreaming; }
|
|
1124
|
+
export {}; declare const BubbleFlowGeneratorParamsSchema: z.ZodObject<{ prompt: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { prompt: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { prompt: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>; declare const BubbleFlowGeneratorResultSchema: z.ZodObject<{ generatedCode: z.ZodString; isValid: z.ZodBoolean; success: z.ZodBoolean; error: z.ZodString; toolCalls: z.ZodArray<z.ZodAny, "many">; summary: z.ZodDefault<z.ZodString>; inputsSchema: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { toolCalls: any[]; error: string; success: boolean; summary: string; generatedCode: string; isValid: boolean; inputsSchema: string; }, { toolCalls: any[]; error: string; success: boolean; generatedCode: string; isValid: boolean; summary?: string | undefined; inputsSchema?: string | undefined; }>; type BubbleFlowGeneratorParams = z.output<typeof BubbleFlowGeneratorParamsSchema>; type BubbleFlowGeneratorResult = z.output<typeof BubbleFlowGeneratorResultSchema>; export declare class BubbleFlowGeneratorWorkflow extends WorkflowBubble<BubbleFlowGeneratorParams, BubbleFlowGeneratorResult> { static readonly type: "workflow"; static readonly bubbleName = "bubbleflow-generator"; static readonly schema: z.ZodObject<{ prompt: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { prompt: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { prompt: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>; static readonly resultSchema: z.ZodObject<{ generatedCode: z.ZodString; isValid: z.ZodBoolean; success: z.ZodBoolean; error: z.ZodString; toolCalls: z.ZodArray<z.ZodAny, "many">; summary: z.ZodDefault<z.ZodString>; inputsSchema: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { toolCalls: any[]; error: string; success: boolean; summary: string; generatedCode: string; isValid: boolean; inputsSchema: string; }, { toolCalls: any[]; error: string; success: boolean; generatedCode: string; isValid: boolean; summary?: string | undefined; inputsSchema?: string | undefined; }>; static readonly shortDescription = "Generate BubbleFlow code from natural language"; static readonly longDescription = "\n Simple BubbleFlow generator that uses AI with validation tools.\n \n Just provide a natural language prompt describing what you want your BubbleFlow to do,\n and it will generate complete TypeScript code with proper validation.\n \n Example prompts:\n - \"Create a flow that queries my database and sends results to Slack\"\n - \"Build a workflow that processes user data with AI and stores it\"\n - \"Make a flow that analyzes text and generates a summary\"\n "; static readonly alias = "generate-flow"; private bubbleFactory; constructor(params: z.input<typeof BubbleFlowGeneratorParamsSchema>, context?: BubbleContext); private runValidationAgent; private runSummarizeAgent; private createSystemPrompt; private createStreamingSystemPrompt; protected performAction(context?: BubbleContext): Promise<BubbleFlowGeneratorResult>; actionWithStreaming(streamingCallback: StreamingCallback, context?: BubbleContext): Promise<BubbleFlowGeneratorResult>; }
|
|
1125
1125
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1126
1126
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1127
1127
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1175,7 +1175,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1175
1175
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1176
1176
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1177
1177
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1178
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const SlackDataAssistantParamsSchema: z.ZodObject<{ slackChannel: z.ZodString; slackThreadTs: z.ZodOptional<z.ZodString>; userQuestion: z.ZodString; userName: z.ZodOptional<z.ZodString>; name: z.ZodDefault<z.ZodString>; dataSourceType: z.ZodDefault<z.ZodEnum<["postgresql", "mysql", "sqlite", "mariadb", "mssql"]>>; databaseUrl: z.ZodOptional<z.ZodString>; ignoreSSLErrors: z.ZodDefault<z.ZodBoolean>; aiModel: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; injectedMetadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; }, { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; }>>; additionalContext: z.ZodOptional<z.ZodString>; maxQueries: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; temperature: number; verbosity: "1" | "2" | "3" | "4" | "5"; dataSourceType: "postgresql" | "mysql" | "sqlite" | "mssql" | "mariadb"; ignoreSSLErrors: boolean; aiModel: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; technicality: "1" | "2" | "3" | "4" | "5"; includeQuery: boolean; includeExplanation: boolean; slackChannel: string; userQuestion: string; maxQueries: number; credentials?: Partial<Record<CredentialType, string>> | undefined; injectedMetadata?: { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; } | undefined; additionalContext?: string | undefined; slackThreadTs?: string | undefined; userName?: string | undefined; databaseUrl?: string | undefined; }, { slackChannel: string; userQuestion: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; temperature?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; dataSourceType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "mariadb" | undefined; ignoreSSLErrors?: boolean | undefined; injectedMetadata?: { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; } | undefined; aiModel?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; slackThreadTs?: string | undefined; userName?: string | undefined; databaseUrl?: string | undefined; maxQueries?: number | undefined; }>; declare const SlackDataAssistantResultSchema: z.ZodObject<{ success: z.ZodBoolean; error: z.ZodString; query: z.ZodOptional<z.ZodString>; queryExplanation: z.ZodOptional<z.ZodString>; queryResults: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; formattedResponse: z.ZodOptional<z.ZodString>; slackBlocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; slackMessageTs: z.ZodOptional<z.ZodString>; isDataQuestion: z.ZodOptional<z.ZodBoolean>; metadata: z.ZodOptional<z.ZodObject<{ executionTime: z.ZodNumber; rowCount: z.ZodOptional<z.ZodNumber>; wordCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { executionTime: number; rowCount?: number | undefined; wordCount?: number | undefined; }, { executionTime: number; rowCount?: number | undefined; wordCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata?: { executionTime: number; rowCount?: number | undefined; wordCount?: number | undefined; } | undefined; query?: string | undefined; queryExplanation?: string | undefined; queryResults?: Record<string, unknown>[] | undefined; formattedResponse?: string | undefined; slackBlocks?: unknown[] | undefined; slackMessageTs?: string | undefined; isDataQuestion?: boolean | undefined; }, { success: boolean; error: string; metadata?: { executionTime: number; rowCount?: number | undefined; wordCount?: number | undefined; } | undefined; query?: string | undefined; queryExplanation?: string | undefined; queryResults?: Record<string, unknown>[] | undefined; formattedResponse?: string | undefined; slackBlocks?: unknown[] | undefined; slackMessageTs?: string | undefined; isDataQuestion?: boolean | undefined; }>; type SlackDataAssistantParams = z.input<typeof SlackDataAssistantParamsSchema>;; type SlackDataAssistantResult = z.output<typeof SlackDataAssistantResultSchema>; export declare class SlackDataAssistantWorkflow extends WorkflowBubble<SlackDataAssistantParams, SlackDataAssistantResult> { static readonly type: "workflow"; static readonly service = "slack-data-assistant"; static readonly bubbleName = "slack-data-assistant"; static readonly schema: z.ZodObject<{ slackChannel: z.ZodString; slackThreadTs: z.ZodOptional<z.ZodString>; userQuestion: z.ZodString; userName: z.ZodOptional<z.ZodString>; name: z.ZodDefault<z.ZodString>; dataSourceType: z.ZodDefault<z.ZodEnum<["postgresql", "mysql", "sqlite", "mariadb", "mssql"]>>; databaseUrl: z.ZodOptional<z.ZodString>; ignoreSSLErrors: z.ZodDefault<z.ZodBoolean>; aiModel: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; injectedMetadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; }, { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; }>>; additionalContext: z.ZodOptional<z.ZodString>; maxQueries: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; temperature: number; verbosity: "1" | "2" | "3" | "4" | "5"; dataSourceType: "postgresql" | "mysql" | "sqlite" | "mssql" | "mariadb"; ignoreSSLErrors: boolean; aiModel: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; technicality: "1" | "2" | "3" | "4" | "5"; includeQuery: boolean; includeExplanation: boolean; slackChannel: string; userQuestion: string; maxQueries: number; credentials?: Partial<Record<CredentialType, string>> | undefined; injectedMetadata?: { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; } | undefined; additionalContext?: string | undefined; slackThreadTs?: string | undefined; userName?: string | undefined; databaseUrl?: string | undefined; }, { slackChannel: string; userQuestion: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; temperature?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; dataSourceType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "mariadb" | undefined; ignoreSSLErrors?: boolean | undefined; injectedMetadata?: { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; } | undefined; aiModel?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; slackThreadTs?: string | undefined; userName?: string | undefined; databaseUrl?: string | undefined; maxQueries?: number | undefined; }>; static readonly resultSchema: z.ZodObject<{ success: z.ZodBoolean; error: z.ZodString; query: z.ZodOptional<z.ZodString>; queryExplanation: z.ZodOptional<z.ZodString>; queryResults: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; formattedResponse: z.ZodOptional<z.ZodString>; slackBlocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; slackMessageTs: z.ZodOptional<z.ZodString>; isDataQuestion: z.ZodOptional<z.ZodBoolean>; metadata: z.ZodOptional<z.ZodObject<{ executionTime: z.ZodNumber; rowCount: z.ZodOptional<z.ZodNumber>; wordCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { executionTime: number; rowCount?: number | undefined; wordCount?: number | undefined; }, { executionTime: number; rowCount?: number | undefined; wordCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata?: { executionTime: number; rowCount?: number | undefined; wordCount?: number | undefined; } | undefined; query?: string | undefined; queryExplanation?: string | undefined; queryResults?: Record<string, unknown>[] | undefined; formattedResponse?: string | undefined; slackBlocks?: unknown[] | undefined; slackMessageTs?: string | undefined; isDataQuestion?: boolean | undefined; }, { success: boolean; error: string; metadata?: { executionTime: number; rowCount?: number | undefined; wordCount?: number | undefined; } | undefined; query?: string | undefined; queryExplanation?: string | undefined; queryResults?: Record<string, unknown>[] | undefined; formattedResponse?: string | undefined; slackBlocks?: unknown[] | undefined; slackMessageTs?: string | undefined; isDataQuestion?: boolean | undefined; }>; static readonly shortDescription = "AI-powered Slack bot that answers data questions by querying databases"; static readonly longDescription = "\n A comprehensive workflow that creates an intelligent Slack bot capable of:\n - Receiving questions from Slack mentions\n - Analyzing database schema\n - Generating appropriate SQL queries using AI\n - Executing queries safely (read-only)\n - Formatting results in a user-friendly way\n - Responding in Slack with rich block formatting\n \n Perfect for:\n - Business intelligence chat-bots\n - Data analytics assistants\n - Database query automation\n - Self-service data access\n "; static readonly alias = "slack-data-bot"; constructor(params: SlackDataAssistantParams, context?: BubbleContext); private extractFirstName; private cleanBotName; private cleanUsername; private generateReadableNameFromUserId; protected performAction(): Promise<SlackDataAssistantResult>; private aggregateQueryResults; }
|
|
1178
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const SlackDataAssistantParamsSchema: z.ZodObject<{ slackChannel: z.ZodString; slackThreadTs: z.ZodOptional<z.ZodString>; userQuestion: z.ZodString; userName: z.ZodOptional<z.ZodString>; name: z.ZodDefault<z.ZodString>; dataSourceType: z.ZodDefault<z.ZodEnum<["postgresql", "mysql", "sqlite", "mariadb", "mssql"]>>; databaseUrl: z.ZodOptional<z.ZodString>; ignoreSSLErrors: z.ZodDefault<z.ZodBoolean>; aiModel: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; injectedMetadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; }, { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; }>>; additionalContext: z.ZodOptional<z.ZodString>; maxQueries: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; temperature: number; verbosity: "1" | "2" | "3" | "4" | "5"; aiModel: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; technicality: "1" | "2" | "3" | "4" | "5"; includeQuery: boolean; includeExplanation: boolean; slackChannel: string; userQuestion: string; dataSourceType: "postgresql" | "mysql" | "sqlite" | "mariadb" | "mssql"; ignoreSSLErrors: boolean; maxQueries: number; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; slackThreadTs?: string | undefined; userName?: string | undefined; databaseUrl?: string | undefined; injectedMetadata?: { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; } | undefined; }, { slackChannel: string; userQuestion: string; name?: string | undefined; temperature?: number | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; aiModel?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; slackThreadTs?: string | undefined; userName?: string | undefined; dataSourceType?: "postgresql" | "mysql" | "sqlite" | "mariadb" | "mssql" | undefined; databaseUrl?: string | undefined; ignoreSSLErrors?: boolean | undefined; injectedMetadata?: { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; } | undefined; maxQueries?: number | undefined; }>; declare const SlackDataAssistantResultSchema: z.ZodObject<{ success: z.ZodBoolean; error: z.ZodString; query: z.ZodOptional<z.ZodString>; queryExplanation: z.ZodOptional<z.ZodString>; queryResults: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; formattedResponse: z.ZodOptional<z.ZodString>; slackBlocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; slackMessageTs: z.ZodOptional<z.ZodString>; isDataQuestion: z.ZodOptional<z.ZodBoolean>; metadata: z.ZodOptional<z.ZodObject<{ executionTime: z.ZodNumber; rowCount: z.ZodOptional<z.ZodNumber>; wordCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { executionTime: number; wordCount?: number | undefined; rowCount?: number | undefined; }, { executionTime: number; wordCount?: number | undefined; rowCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata?: { executionTime: number; wordCount?: number | undefined; rowCount?: number | undefined; } | undefined; query?: string | undefined; queryExplanation?: string | undefined; queryResults?: Record<string, unknown>[] | undefined; formattedResponse?: string | undefined; slackBlocks?: unknown[] | undefined; slackMessageTs?: string | undefined; isDataQuestion?: boolean | undefined; }, { error: string; success: boolean; metadata?: { executionTime: number; wordCount?: number | undefined; rowCount?: number | undefined; } | undefined; query?: string | undefined; queryExplanation?: string | undefined; queryResults?: Record<string, unknown>[] | undefined; formattedResponse?: string | undefined; slackBlocks?: unknown[] | undefined; slackMessageTs?: string | undefined; isDataQuestion?: boolean | undefined; }>; type SlackDataAssistantParams = z.input<typeof SlackDataAssistantParamsSchema>;; type SlackDataAssistantResult = z.output<typeof SlackDataAssistantResultSchema>; export declare class SlackDataAssistantWorkflow extends WorkflowBubble<SlackDataAssistantParams, SlackDataAssistantResult> { static readonly type: "workflow"; static readonly service = "slack-data-assistant"; static readonly bubbleName = "slack-data-assistant"; static readonly schema: z.ZodObject<{ slackChannel: z.ZodString; slackThreadTs: z.ZodOptional<z.ZodString>; userQuestion: z.ZodString; userName: z.ZodOptional<z.ZodString>; name: z.ZodDefault<z.ZodString>; dataSourceType: z.ZodDefault<z.ZodEnum<["postgresql", "mysql", "sqlite", "mariadb", "mssql"]>>; databaseUrl: z.ZodOptional<z.ZodString>; ignoreSSLErrors: z.ZodDefault<z.ZodBoolean>; aiModel: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; injectedMetadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; }, { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; }>>; additionalContext: z.ZodOptional<z.ZodString>; maxQueries: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; temperature: number; verbosity: "1" | "2" | "3" | "4" | "5"; aiModel: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; technicality: "1" | "2" | "3" | "4" | "5"; includeQuery: boolean; includeExplanation: boolean; slackChannel: string; userQuestion: string; dataSourceType: "postgresql" | "mysql" | "sqlite" | "mariadb" | "mssql"; ignoreSSLErrors: boolean; maxQueries: number; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; slackThreadTs?: string | undefined; userName?: string | undefined; databaseUrl?: string | undefined; injectedMetadata?: { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; } | undefined; }, { slackChannel: string; userQuestion: string; name?: string | undefined; temperature?: number | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; aiModel?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; slackThreadTs?: string | undefined; userName?: string | undefined; dataSourceType?: "postgresql" | "mysql" | "sqlite" | "mariadb" | "mssql" | undefined; databaseUrl?: string | undefined; ignoreSSLErrors?: boolean | undefined; injectedMetadata?: { tables?: Record<string, Record<string, string>> | undefined; tableNotes?: Record<string, string> | undefined; rules?: string[] | undefined; } | undefined; maxQueries?: number | undefined; }>; static readonly resultSchema: z.ZodObject<{ success: z.ZodBoolean; error: z.ZodString; query: z.ZodOptional<z.ZodString>; queryExplanation: z.ZodOptional<z.ZodString>; queryResults: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; formattedResponse: z.ZodOptional<z.ZodString>; slackBlocks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; slackMessageTs: z.ZodOptional<z.ZodString>; isDataQuestion: z.ZodOptional<z.ZodBoolean>; metadata: z.ZodOptional<z.ZodObject<{ executionTime: z.ZodNumber; rowCount: z.ZodOptional<z.ZodNumber>; wordCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { executionTime: number; wordCount?: number | undefined; rowCount?: number | undefined; }, { executionTime: number; wordCount?: number | undefined; rowCount?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata?: { executionTime: number; wordCount?: number | undefined; rowCount?: number | undefined; } | undefined; query?: string | undefined; queryExplanation?: string | undefined; queryResults?: Record<string, unknown>[] | undefined; formattedResponse?: string | undefined; slackBlocks?: unknown[] | undefined; slackMessageTs?: string | undefined; isDataQuestion?: boolean | undefined; }, { error: string; success: boolean; metadata?: { executionTime: number; wordCount?: number | undefined; rowCount?: number | undefined; } | undefined; query?: string | undefined; queryExplanation?: string | undefined; queryResults?: Record<string, unknown>[] | undefined; formattedResponse?: string | undefined; slackBlocks?: unknown[] | undefined; slackMessageTs?: string | undefined; isDataQuestion?: boolean | undefined; }>; static readonly shortDescription = "AI-powered Slack bot that answers data questions by querying databases"; static readonly longDescription = "\n A comprehensive workflow that creates an intelligent Slack bot capable of:\n - Receiving questions from Slack mentions\n - Analyzing database schema\n - Generating appropriate SQL queries using AI\n - Executing queries safely (read-only)\n - Formatting results in a user-friendly way\n - Responding in Slack with rich block formatting\n \n Perfect for:\n - Business intelligence chat-bots\n - Data analytics assistants\n - Database query automation\n - Self-service data access\n "; static readonly alias = "slack-data-bot"; constructor(params: SlackDataAssistantParams, context?: BubbleContext); private extractFirstName; private cleanBotName; private cleanUsername; private generateReadableNameFromUserId; protected performAction(): Promise<SlackDataAssistantResult>; private aggregateQueryResults; }
|
|
1179
1179
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1180
1180
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1181
1181
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1229,7 +1229,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1229
1229
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1230
1230
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1231
1231
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1232
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const PDFFormOperationsParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"discover">; pdfData: z.ZodString; targetPage: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "discover"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; targetPage?: number | undefined; }, { operation: "discover"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; targetPage?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"fill">; pdfData: z.ZodString; fieldValues: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "fill"; pdfData: string; fieldValues: Record<string, string>; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "fill"; pdfData: string; fieldValues: Record<string, string>; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"analyze-checkboxes">; pdfData: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "analyze-checkboxes"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "analyze-checkboxes"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate">; pdfData: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "validate"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "validate"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-images">; pdfData: z.ZodString; format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; operation: "convert-to-images"; pdfData: string; dpi: number; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; }, { operation: "convert-to-images"; pdfData: string; format?: "png" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-markdown">; pdfData: z.ZodString; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; includeFormFields: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "convert-to-markdown"; pdfData: string; includeFormFields: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; }, { operation: "convert-to-markdown"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; includeFormFields?: boolean | undefined; }>]>; declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"discover">; fields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; page: z.ZodNumber; name: z.ZodString; type: z.ZodString; field_type: z.ZodString; current_value: z.ZodString; choices: z.ZodArray<z.ZodString, "many">; rect: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>; x: z.ZodNumber; y: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; field_flags: z.ZodNumber; label: z.ZodString; potential_labels: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { type: string; name: string; id: number; label: string; width: number; height: number; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; field_flags: number; potential_labels: string[]; }, { type: string; name: string; id: number; label: string; width: number; height: number; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; field_flags: number; potential_labels: string[]; }>, "many">; totalFields: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; fields: { type: string; name: string; id: number; label: string; width: number; height: number; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; field_flags: number; potential_labels: string[]; }[]; operation: "discover"; totalFields: number; }, { success: boolean; error: string; fields: { type: string; name: string; id: number; label: string; width: number; height: number; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; field_flags: number; potential_labels: string[]; }[]; operation: "discover"; totalFields: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"fill">; filledPdfData: z.ZodString; filledFields: z.ZodNumber; verification: z.ZodRecord<z.ZodString, z.ZodObject<{ value: z.ZodString; type: z.ZodString; page: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; type: string; page: number; }, { value: string; type: string; page: number; }>>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "fill"; filledPdfData: string; filledFields: number; verification: Record<string, { value: string; type: string; page: number; }>; }, { success: boolean; error: string; operation: "fill"; filledPdfData: string; filledFields: number; verification: Record<string, { value: string; type: string; page: number; }>; }>, z.ZodObject<{ operation: z.ZodLiteral<"analyze-checkboxes">; checkboxes: z.ZodRecord<z.ZodString, z.ZodObject<{ page: z.ZodNumber; current_value: z.ZodString; possible_values: z.ZodArray<z.ZodString, "many">; field_flags: z.ZodNumber; }, "strip", z.ZodTypeAny, { page: number; current_value: string; field_flags: number; possible_values: string[]; }, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>>; totalCheckboxes: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "analyze-checkboxes"; checkboxes: Record<string, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>; totalCheckboxes: number; }, { success: boolean; error: string; operation: "analyze-checkboxes"; checkboxes: Record<string, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>; totalCheckboxes: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate">; fields: z.ZodRecord<z.ZodString, z.ZodObject<{ value: z.ZodString; type: z.ZodString; page: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; type: string; page: number; }, { value: string; type: string; page: number; }>>; totalFields: z.ZodNumber; filledFields: z.ZodNumber; emptyFields: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; fields: Record<string, { value: string; type: string; page: number; }>; operation: "validate"; totalFields: number; filledFields: number; emptyFields: number; }, { success: boolean; error: string; fields: Record<string, { value: string; type: string; page: number; }>; operation: "validate"; totalFields: number; filledFields: number; emptyFields: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-images">; images: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; imageData: z.ZodString; format: z.ZodString; width: z.ZodNumber; height: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; pageNumber: number; width: number; height: number; imageData: string; }, { format: string; pageNumber: number; width: number; height: number; imageData: string; }>, "many">; totalPages: z.ZodNumber; convertedPages: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; images: { format: string; pageNumber: number; width: number; height: number; imageData: string; }[]; totalPages: number; operation: "convert-to-images"; convertedPages: number; }, { success: boolean; error: string; images: { format: string; pageNumber: number; width: number; height: number; imageData: string; }[]; totalPages: number; operation: "convert-to-images"; convertedPages: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-markdown">; markdown: z.ZodString; pages: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; markdown: z.ZodString; formFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodString; value: z.ZodString; x: z.ZodNumber; y: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; type: string; name: string; id: number; x: number; y: number; }, { value: string; type: string; name: string; id: number; x: number; y: number; }>, "many">>; }, "strip", z.ZodTypeAny, { markdown: string; pageNumber: number; formFields?: { value: string; type: string; name: string; id: number; x: number; y: number; }[] | undefined; }, { markdown: string; pageNumber: number; formFields?: { value: string; type: string; name: string; id: number; x: number; y: number; }[] | undefined; }>, "many">; totalPages: z.ZodNumber; convertedPages: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; markdown: string; pages: { markdown: string; pageNumber: number; formFields?: { value: string; type: string; name: string; id: number; x: number; y: number; }[] | undefined; }[]; totalPages: number; operation: "convert-to-markdown"; convertedPages: number; }, { success: boolean; error: string; markdown: string; pages: { markdown: string; pageNumber: number; formFields?: { value: string; type: string; name: string; id: number; x: number; y: number; }[] | undefined; }[]; totalPages: number; operation: "convert-to-markdown"; convertedPages: number; }>]>; type PDFFormOperationsParams = z.output<typeof PDFFormOperationsParamsSchema>; type PDFFormOperationsResult = z.output<typeof PDFFormOperationsResultSchema>; export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams = PDFFormOperationsParams> extends WorkflowBubble<T, Extract<PDFFormOperationsResult, { operation: T['operation']; }>> { static readonly type: "workflow"; static readonly bubbleName = "pdf-form-operations"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"discover">; pdfData: z.ZodString; targetPage: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "discover"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; targetPage?: number | undefined; }, { operation: "discover"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; targetPage?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"fill">; pdfData: z.ZodString; fieldValues: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "fill"; pdfData: string; fieldValues: Record<string, string>; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "fill"; pdfData: string; fieldValues: Record<string, string>; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"analyze-checkboxes">; pdfData: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "analyze-checkboxes"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "analyze-checkboxes"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate">; pdfData: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "validate"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "validate"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-images">; pdfData: z.ZodString; format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; operation: "convert-to-images"; pdfData: string; dpi: number; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; }, { operation: "convert-to-images"; pdfData: string; format?: "png" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-markdown">; pdfData: z.ZodString; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; includeFormFields: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "convert-to-markdown"; pdfData: string; includeFormFields: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; }, { operation: "convert-to-markdown"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; includeFormFields?: boolean | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"discover">; fields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; page: z.ZodNumber; name: z.ZodString; type: z.ZodString; field_type: z.ZodString; current_value: z.ZodString; choices: z.ZodArray<z.ZodString, "many">; rect: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>; x: z.ZodNumber; y: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; field_flags: z.ZodNumber; label: z.ZodString; potential_labels: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { type: string; name: string; id: number; label: string; width: number; height: number; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; field_flags: number; potential_labels: string[]; }, { type: string; name: string; id: number; label: string; width: number; height: number; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; field_flags: number; potential_labels: string[]; }>, "many">; totalFields: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; fields: { type: string; name: string; id: number; label: string; width: number; height: number; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; field_flags: number; potential_labels: string[]; }[]; operation: "discover"; totalFields: number; }, { success: boolean; error: string; fields: { type: string; name: string; id: number; label: string; width: number; height: number; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; field_flags: number; potential_labels: string[]; }[]; operation: "discover"; totalFields: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"fill">; filledPdfData: z.ZodString; filledFields: z.ZodNumber; verification: z.ZodRecord<z.ZodString, z.ZodObject<{ value: z.ZodString; type: z.ZodString; page: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; type: string; page: number; }, { value: string; type: string; page: number; }>>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "fill"; filledPdfData: string; filledFields: number; verification: Record<string, { value: string; type: string; page: number; }>; }, { success: boolean; error: string; operation: "fill"; filledPdfData: string; filledFields: number; verification: Record<string, { value: string; type: string; page: number; }>; }>, z.ZodObject<{ operation: z.ZodLiteral<"analyze-checkboxes">; checkboxes: z.ZodRecord<z.ZodString, z.ZodObject<{ page: z.ZodNumber; current_value: z.ZodString; possible_values: z.ZodArray<z.ZodString, "many">; field_flags: z.ZodNumber; }, "strip", z.ZodTypeAny, { page: number; current_value: string; field_flags: number; possible_values: string[]; }, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>>; totalCheckboxes: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; operation: "analyze-checkboxes"; checkboxes: Record<string, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>; totalCheckboxes: number; }, { success: boolean; error: string; operation: "analyze-checkboxes"; checkboxes: Record<string, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>; totalCheckboxes: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate">; fields: z.ZodRecord<z.ZodString, z.ZodObject<{ value: z.ZodString; type: z.ZodString; page: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; type: string; page: number; }, { value: string; type: string; page: number; }>>; totalFields: z.ZodNumber; filledFields: z.ZodNumber; emptyFields: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; fields: Record<string, { value: string; type: string; page: number; }>; operation: "validate"; totalFields: number; filledFields: number; emptyFields: number; }, { success: boolean; error: string; fields: Record<string, { value: string; type: string; page: number; }>; operation: "validate"; totalFields: number; filledFields: number; emptyFields: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-images">; images: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; imageData: z.ZodString; format: z.ZodString; width: z.ZodNumber; height: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; pageNumber: number; width: number; height: number; imageData: string; }, { format: string; pageNumber: number; width: number; height: number; imageData: string; }>, "many">; totalPages: z.ZodNumber; convertedPages: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; images: { format: string; pageNumber: number; width: number; height: number; imageData: string; }[]; totalPages: number; operation: "convert-to-images"; convertedPages: number; }, { success: boolean; error: string; images: { format: string; pageNumber: number; width: number; height: number; imageData: string; }[]; totalPages: number; operation: "convert-to-images"; convertedPages: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-markdown">; markdown: z.ZodString; pages: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; markdown: z.ZodString; formFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodString; value: z.ZodString; x: z.ZodNumber; y: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; type: string; name: string; id: number; x: number; y: number; }, { value: string; type: string; name: string; id: number; x: number; y: number; }>, "many">>; }, "strip", z.ZodTypeAny, { markdown: string; pageNumber: number; formFields?: { value: string; type: string; name: string; id: number; x: number; y: number; }[] | undefined; }, { markdown: string; pageNumber: number; formFields?: { value: string; type: string; name: string; id: number; x: number; y: number; }[] | undefined; }>, "many">; totalPages: z.ZodNumber; convertedPages: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; markdown: string; pages: { markdown: string; pageNumber: number; formFields?: { value: string; type: string; name: string; id: number; x: number; y: number; }[] | undefined; }[]; totalPages: number; operation: "convert-to-markdown"; convertedPages: number; }, { success: boolean; error: string; markdown: string; pages: { markdown: string; pageNumber: number; formFields?: { value: string; type: string; name: string; id: number; x: number; y: number; }[] | undefined; }[]; totalPages: number; operation: "convert-to-markdown"; convertedPages: number; }>]>; static readonly shortDescription = "PDF form field operations (discover, fill, analyze, validate, convert-to-images, convert-to-markdown)"; static readonly longDescription = "\n Unified PDF form operations workflow providing comprehensive form field manipulation.\n \n Operations:\n - discover: Extract all form fields with coordinates and metadata\n - fill: Fill form fields with provided values and return filled PDF\n - analyze-checkboxes: Analyze checkbox fields and their possible values\n - validate: Verify form field values and completion status\n - convert-to-images: Convert PDF pages to PNG/JPEG images with customizable quality and DPI\n - convert-to-markdown: Convert PDF to markdown format using AI analysis of visual content\n \n Uses PyMuPDF (fitz) library via Python scripts for all PDF operations.\n \n Input: Base64 encoded PDF data\n Output: Operation-specific results with success/error handling\n "; static readonly alias = "pdf-forms"; constructor(params?: T, context?: BubbleContext); private executePythonScript; private executePythonFileScript; protected performAction(context?: BubbleContext): Promise<Extract<PDFFormOperationsResult, { operation: T['operation']; }>>; private discoverFields; private fillFields; private analyzeCheckboxes; private validateFields; private convertToImages; private convertToMarkdown; }
|
|
1232
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const PDFFormOperationsParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"discover">; pdfData: z.ZodString; targetPage: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "discover"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; targetPage?: number | undefined; }, { operation: "discover"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; targetPage?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"fill">; pdfData: z.ZodString; fieldValues: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "fill"; pdfData: string; fieldValues: Record<string, string>; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "fill"; pdfData: string; fieldValues: Record<string, string>; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"analyze-checkboxes">; pdfData: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "analyze-checkboxes"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "analyze-checkboxes"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate">; pdfData: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "validate"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "validate"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-images">; pdfData: z.ZodString; format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; operation: "convert-to-images"; quality: number; pdfData: string; dpi: number; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; }, { operation: "convert-to-images"; pdfData: string; format?: "png" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-markdown">; pdfData: z.ZodString; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; includeFormFields: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "convert-to-markdown"; pdfData: string; includeFormFields: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; }, { operation: "convert-to-markdown"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; includeFormFields?: boolean | undefined; }>]>; declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"discover">; fields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; page: z.ZodNumber; name: z.ZodString; type: z.ZodString; field_type: z.ZodString; current_value: z.ZodString; choices: z.ZodArray<z.ZodString, "many">; rect: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>; x: z.ZodNumber; y: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; field_flags: z.ZodNumber; label: z.ZodString; potential_labels: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { type: string; name: string; id: number; label: string; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; width: number; height: number; field_flags: number; potential_labels: string[]; }, { type: string; name: string; id: number; label: string; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; width: number; height: number; field_flags: number; potential_labels: string[]; }>, "many">; totalFields: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "discover"; fields: { type: string; name: string; id: number; label: string; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; width: number; height: number; field_flags: number; potential_labels: string[]; }[]; totalFields: number; }, { error: string; success: boolean; operation: "discover"; fields: { type: string; name: string; id: number; label: string; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; width: number; height: number; field_flags: number; potential_labels: string[]; }[]; totalFields: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"fill">; filledPdfData: z.ZodString; filledFields: z.ZodNumber; verification: z.ZodRecord<z.ZodString, z.ZodObject<{ value: z.ZodString; type: z.ZodString; page: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; value: string; page: number; }, { type: string; value: string; page: number; }>>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "fill"; filledPdfData: string; filledFields: number; verification: Record<string, { type: string; value: string; page: number; }>; }, { error: string; success: boolean; operation: "fill"; filledPdfData: string; filledFields: number; verification: Record<string, { type: string; value: string; page: number; }>; }>, z.ZodObject<{ operation: z.ZodLiteral<"analyze-checkboxes">; checkboxes: z.ZodRecord<z.ZodString, z.ZodObject<{ page: z.ZodNumber; current_value: z.ZodString; possible_values: z.ZodArray<z.ZodString, "many">; field_flags: z.ZodNumber; }, "strip", z.ZodTypeAny, { page: number; current_value: string; field_flags: number; possible_values: string[]; }, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>>; totalCheckboxes: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "analyze-checkboxes"; checkboxes: Record<string, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>; totalCheckboxes: number; }, { error: string; success: boolean; operation: "analyze-checkboxes"; checkboxes: Record<string, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>; totalCheckboxes: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate">; fields: z.ZodRecord<z.ZodString, z.ZodObject<{ value: z.ZodString; type: z.ZodString; page: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; value: string; page: number; }, { type: string; value: string; page: number; }>>; totalFields: z.ZodNumber; filledFields: z.ZodNumber; emptyFields: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "validate"; fields: Record<string, { type: string; value: string; page: number; }>; totalFields: number; filledFields: number; emptyFields: number; }, { error: string; success: boolean; operation: "validate"; fields: Record<string, { type: string; value: string; page: number; }>; totalFields: number; filledFields: number; emptyFields: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-images">; images: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; imageData: z.ZodString; format: z.ZodString; width: z.ZodNumber; height: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; width: number; height: number; pageNumber: number; imageData: string; }, { format: string; width: number; height: number; pageNumber: number; imageData: string; }>, "many">; totalPages: z.ZodNumber; convertedPages: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { images: { format: string; width: number; height: number; pageNumber: number; imageData: string; }[]; error: string; success: boolean; totalPages: number; operation: "convert-to-images"; convertedPages: number; }, { images: { format: string; width: number; height: number; pageNumber: number; imageData: string; }[]; error: string; success: boolean; totalPages: number; operation: "convert-to-images"; convertedPages: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-markdown">; markdown: z.ZodString; pages: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; markdown: z.ZodString; formFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodString; value: z.ZodString; x: z.ZodNumber; y: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; value: string; name: string; id: number; x: number; y: number; }, { type: string; value: string; name: string; id: number; x: number; y: number; }>, "many">>; }, "strip", z.ZodTypeAny, { markdown: string; pageNumber: number; formFields?: { type: string; value: string; name: string; id: number; x: number; y: number; }[] | undefined; }, { markdown: string; pageNumber: number; formFields?: { type: string; value: string; name: string; id: number; x: number; y: number; }[] | undefined; }>, "many">; totalPages: z.ZodNumber; convertedPages: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; markdown: string; pages: { markdown: string; pageNumber: number; formFields?: { type: string; value: string; name: string; id: number; x: number; y: number; }[] | undefined; }[]; totalPages: number; operation: "convert-to-markdown"; convertedPages: number; }, { error: string; success: boolean; markdown: string; pages: { markdown: string; pageNumber: number; formFields?: { type: string; value: string; name: string; id: number; x: number; y: number; }[] | undefined; }[]; totalPages: number; operation: "convert-to-markdown"; convertedPages: number; }>]>; type PDFFormOperationsParams = z.output<typeof PDFFormOperationsParamsSchema>; type PDFFormOperationsResult = z.output<typeof PDFFormOperationsResultSchema>; export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams = PDFFormOperationsParams> extends WorkflowBubble<T, Extract<PDFFormOperationsResult, { operation: T['operation']; }>> { static readonly type: "workflow"; static readonly bubbleName = "pdf-form-operations"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"discover">; pdfData: z.ZodString; targetPage: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "discover"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; targetPage?: number | undefined; }, { operation: "discover"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; targetPage?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"fill">; pdfData: z.ZodString; fieldValues: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "fill"; pdfData: string; fieldValues: Record<string, string>; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "fill"; pdfData: string; fieldValues: Record<string, string>; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"analyze-checkboxes">; pdfData: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "analyze-checkboxes"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "analyze-checkboxes"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate">; pdfData: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "validate"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "validate"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-images">; pdfData: z.ZodString; format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; operation: "convert-to-images"; quality: number; pdfData: string; dpi: number; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; }, { operation: "convert-to-images"; pdfData: string; format?: "png" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-markdown">; pdfData: z.ZodString; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; includeFormFields: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "convert-to-markdown"; pdfData: string; includeFormFields: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; }, { operation: "convert-to-markdown"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; pages?: number[] | undefined; includeFormFields?: boolean | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"discover">; fields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; page: z.ZodNumber; name: z.ZodString; type: z.ZodString; field_type: z.ZodString; current_value: z.ZodString; choices: z.ZodArray<z.ZodString, "many">; rect: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>; x: z.ZodNumber; y: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; field_flags: z.ZodNumber; label: z.ZodString; potential_labels: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { type: string; name: string; id: number; label: string; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; width: number; height: number; field_flags: number; potential_labels: string[]; }, { type: string; name: string; id: number; label: string; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; width: number; height: number; field_flags: number; potential_labels: string[]; }>, "many">; totalFields: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "discover"; fields: { type: string; name: string; id: number; label: string; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; width: number; height: number; field_flags: number; potential_labels: string[]; }[]; totalFields: number; }, { error: string; success: boolean; operation: "discover"; fields: { type: string; name: string; id: number; label: string; page: number; field_type: string; current_value: string; choices: string[]; rect: [number, number, number, number]; x: number; y: number; width: number; height: number; field_flags: number; potential_labels: string[]; }[]; totalFields: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"fill">; filledPdfData: z.ZodString; filledFields: z.ZodNumber; verification: z.ZodRecord<z.ZodString, z.ZodObject<{ value: z.ZodString; type: z.ZodString; page: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; value: string; page: number; }, { type: string; value: string; page: number; }>>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "fill"; filledPdfData: string; filledFields: number; verification: Record<string, { type: string; value: string; page: number; }>; }, { error: string; success: boolean; operation: "fill"; filledPdfData: string; filledFields: number; verification: Record<string, { type: string; value: string; page: number; }>; }>, z.ZodObject<{ operation: z.ZodLiteral<"analyze-checkboxes">; checkboxes: z.ZodRecord<z.ZodString, z.ZodObject<{ page: z.ZodNumber; current_value: z.ZodString; possible_values: z.ZodArray<z.ZodString, "many">; field_flags: z.ZodNumber; }, "strip", z.ZodTypeAny, { page: number; current_value: string; field_flags: number; possible_values: string[]; }, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>>; totalCheckboxes: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "analyze-checkboxes"; checkboxes: Record<string, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>; totalCheckboxes: number; }, { error: string; success: boolean; operation: "analyze-checkboxes"; checkboxes: Record<string, { page: number; current_value: string; field_flags: number; possible_values: string[]; }>; totalCheckboxes: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate">; fields: z.ZodRecord<z.ZodString, z.ZodObject<{ value: z.ZodString; type: z.ZodString; page: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; value: string; page: number; }, { type: string; value: string; page: number; }>>; totalFields: z.ZodNumber; filledFields: z.ZodNumber; emptyFields: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "validate"; fields: Record<string, { type: string; value: string; page: number; }>; totalFields: number; filledFields: number; emptyFields: number; }, { error: string; success: boolean; operation: "validate"; fields: Record<string, { type: string; value: string; page: number; }>; totalFields: number; filledFields: number; emptyFields: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-images">; images: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; imageData: z.ZodString; format: z.ZodString; width: z.ZodNumber; height: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; width: number; height: number; pageNumber: number; imageData: string; }, { format: string; width: number; height: number; pageNumber: number; imageData: string; }>, "many">; totalPages: z.ZodNumber; convertedPages: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { images: { format: string; width: number; height: number; pageNumber: number; imageData: string; }[]; error: string; success: boolean; totalPages: number; operation: "convert-to-images"; convertedPages: number; }, { images: { format: string; width: number; height: number; pageNumber: number; imageData: string; }[]; error: string; success: boolean; totalPages: number; operation: "convert-to-images"; convertedPages: number; }>, z.ZodObject<{ operation: z.ZodLiteral<"convert-to-markdown">; markdown: z.ZodString; pages: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; markdown: z.ZodString; formFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; type: z.ZodString; value: z.ZodString; x: z.ZodNumber; y: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; value: string; name: string; id: number; x: number; y: number; }, { type: string; value: string; name: string; id: number; x: number; y: number; }>, "many">>; }, "strip", z.ZodTypeAny, { markdown: string; pageNumber: number; formFields?: { type: string; value: string; name: string; id: number; x: number; y: number; }[] | undefined; }, { markdown: string; pageNumber: number; formFields?: { type: string; value: string; name: string; id: number; x: number; y: number; }[] | undefined; }>, "many">; totalPages: z.ZodNumber; convertedPages: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; markdown: string; pages: { markdown: string; pageNumber: number; formFields?: { type: string; value: string; name: string; id: number; x: number; y: number; }[] | undefined; }[]; totalPages: number; operation: "convert-to-markdown"; convertedPages: number; }, { error: string; success: boolean; markdown: string; pages: { markdown: string; pageNumber: number; formFields?: { type: string; value: string; name: string; id: number; x: number; y: number; }[] | undefined; }[]; totalPages: number; operation: "convert-to-markdown"; convertedPages: number; }>]>; static readonly shortDescription = "PDF form field operations (discover, fill, analyze, validate, convert-to-images, convert-to-markdown)"; static readonly longDescription = "\n Unified PDF form operations workflow providing comprehensive form field manipulation.\n \n Operations:\n - discover: Extract all form fields with coordinates and metadata\n - fill: Fill form fields with provided values and return filled PDF\n - analyze-checkboxes: Analyze checkbox fields and their possible values\n - validate: Verify form field values and completion status\n - convert-to-images: Convert PDF pages to PNG/JPEG images with customizable quality and DPI\n - convert-to-markdown: Convert PDF to markdown format using AI analysis of visual content\n \n Uses PyMuPDF (fitz) library via Python scripts for all PDF operations.\n \n Input: Base64 encoded PDF data\n Output: Operation-specific results with success/error handling\n "; static readonly alias = "pdf-forms"; constructor(params?: T, context?: BubbleContext); private executePythonScript; private executePythonFileScript; protected performAction(context?: BubbleContext): Promise<Extract<PDFFormOperationsResult, { operation: T['operation']; }>>; private discoverFields; private fillFields; private analyzeCheckboxes; private validateFields; private convertToImages; private convertToMarkdown; }
|
|
1233
1233
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1234
1234
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1235
1235
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1283,7 +1283,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1283
1283
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1284
1284
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1285
1285
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1286
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const PDFOcrWorkflowParamsSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{ mode: z.ZodLiteral<"identify">; pdfData: z.ZodString; discoveryOptions: z.ZodDefault<z.ZodObject<{ targetPage: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { targetPage?: number | undefined; }, { targetPage?: number | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { mode: "identify"; pdfData: string; discoveryOptions: { targetPage?: number | undefined; }; imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { mode: "identify"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; discoveryOptions?: { targetPage?: number | undefined; } | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>, z.ZodObject<{ mode: z.ZodLiteral<"autofill">; pdfData: z.ZodString; clientInformation: z.ZodString; discoveryOptions: z.ZodDefault<z.ZodObject<{ targetPage: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { targetPage?: number | undefined; }, { targetPage?: number | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { mode: "autofill"; pdfData: string; discoveryOptions: { targetPage?: number | undefined; }; imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; clientInformation: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { mode: "autofill"; pdfData: string; clientInformation: string; credentials?: Partial<Record<CredentialType, string>> | undefined; discoveryOptions?: { targetPage?: number | undefined; } | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>]>; declare const PDFOcrWorkflowResultSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{ mode: z.ZodLiteral<"identify">; extractedFields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; fieldName: z.ZodString; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: number; fieldName: string; confidence: number; }, { id: number; fieldName: string; confidence: number; }>, "many">; discoveryData: z.ZodObject<{ totalFields: z.ZodNumber; fieldsWithCoordinates: z.ZodNumber; pages: z.ZodArray<z.ZodNumber, "many">; }, "strip", z.ZodTypeAny, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }>; imageData: z.ZodObject<{ totalPages: z.ZodNumber; convertedPages: z.ZodNumber; format: z.ZodString; dpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; totalPages: number; dpi: number; convertedPages: number; }, { format: string; totalPages: number; dpi: number; convertedPages: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; mode: "identify"; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { id: number; fieldName: string; confidence: number; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; }, { success: boolean; error: string; mode: "identify"; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { id: number; fieldName: string; confidence: number; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; }>, z.ZodObject<{ mode: z.ZodLiteral<"autofill">; extractedFields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; originalFieldName: z.ZodOptional<z.ZodString>; fieldName: z.ZodString; value: z.ZodString; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }, { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }>, "many">; filledPdfData: z.ZodString; discoveryData: z.ZodObject<{ totalFields: z.ZodNumber; fieldsWithCoordinates: z.ZodNumber; pages: z.ZodArray<z.ZodNumber, "many">; }, "strip", z.ZodTypeAny, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }>; imageData: z.ZodObject<{ totalPages: z.ZodNumber; convertedPages: z.ZodNumber; format: z.ZodString; dpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; totalPages: number; dpi: number; convertedPages: number; }, { format: string; totalPages: number; dpi: number; convertedPages: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; fillResults: z.ZodObject<{ filledFields: z.ZodNumber; successfullyFilled: z.ZodNumber; }, "strip", z.ZodTypeAny, { filledFields: number; successfullyFilled: number; }, { filledFields: number; successfullyFilled: number; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; mode: "autofill"; filledPdfData: string; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; fillResults: { filledFields: number; successfullyFilled: number; }; }, { success: boolean; error: string; mode: "autofill"; filledPdfData: string; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; fillResults: { filledFields: number; successfullyFilled: number; }; }>]>; type PDFOcrWorkflowParams = z.input<typeof PDFOcrWorkflowParamsSchema>;; type PDFOcrWorkflowResult = z.output<typeof PDFOcrWorkflowResultSchema>; export type PDFOcrModeResult<T extends PDFOcrWorkflowParams['mode']> = Extract<PDFOcrWorkflowResult, { mode: T; }>; export type PDFOcrOperationResult<T extends PDFOcrWorkflowParams['mode']> = Extract<PDFOcrWorkflowResult, { mode: T; }>; export declare class PDFOcrWorkflow<T extends PDFOcrWorkflowParams = PDFOcrWorkflowParams> extends WorkflowBubble<T, Extract<PDFOcrWorkflowResult, { mode: T['mode']; }>> { static readonly type: "workflow"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{ mode: z.ZodLiteral<"identify">; pdfData: z.ZodString; discoveryOptions: z.ZodDefault<z.ZodObject<{ targetPage: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { targetPage?: number | undefined; }, { targetPage?: number | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { mode: "identify"; pdfData: string; discoveryOptions: { targetPage?: number | undefined; }; imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { mode: "identify"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; discoveryOptions?: { targetPage?: number | undefined; } | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>, z.ZodObject<{ mode: z.ZodLiteral<"autofill">; pdfData: z.ZodString; clientInformation: z.ZodString; discoveryOptions: z.ZodDefault<z.ZodObject<{ targetPage: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { targetPage?: number | undefined; }, { targetPage?: number | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { mode: "autofill"; pdfData: string; discoveryOptions: { targetPage?: number | undefined; }; imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; clientInformation: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { mode: "autofill"; pdfData: string; clientInformation: string; credentials?: Partial<Record<CredentialType, string>> | undefined; discoveryOptions?: { targetPage?: number | undefined; } | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{ mode: z.ZodLiteral<"identify">; extractedFields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; fieldName: z.ZodString; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: number; fieldName: string; confidence: number; }, { id: number; fieldName: string; confidence: number; }>, "many">; discoveryData: z.ZodObject<{ totalFields: z.ZodNumber; fieldsWithCoordinates: z.ZodNumber; pages: z.ZodArray<z.ZodNumber, "many">; }, "strip", z.ZodTypeAny, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }>; imageData: z.ZodObject<{ totalPages: z.ZodNumber; convertedPages: z.ZodNumber; format: z.ZodString; dpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; totalPages: number; dpi: number; convertedPages: number; }, { format: string; totalPages: number; dpi: number; convertedPages: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; mode: "identify"; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { id: number; fieldName: string; confidence: number; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; }, { success: boolean; error: string; mode: "identify"; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { id: number; fieldName: string; confidence: number; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; }>, z.ZodObject<{ mode: z.ZodLiteral<"autofill">; extractedFields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; originalFieldName: z.ZodOptional<z.ZodString>; fieldName: z.ZodString; value: z.ZodString; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }, { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }>, "many">; filledPdfData: z.ZodString; discoveryData: z.ZodObject<{ totalFields: z.ZodNumber; fieldsWithCoordinates: z.ZodNumber; pages: z.ZodArray<z.ZodNumber, "many">; }, "strip", z.ZodTypeAny, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }>; imageData: z.ZodObject<{ totalPages: z.ZodNumber; convertedPages: z.ZodNumber; format: z.ZodString; dpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; totalPages: number; dpi: number; convertedPages: number; }, { format: string; totalPages: number; dpi: number; convertedPages: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; fillResults: z.ZodObject<{ filledFields: z.ZodNumber; successfullyFilled: z.ZodNumber; }, "strip", z.ZodTypeAny, { filledFields: number; successfullyFilled: number; }, { filledFields: number; successfullyFilled: number; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; mode: "autofill"; filledPdfData: string; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; fillResults: { filledFields: number; successfullyFilled: number; }; }, { success: boolean; error: string; mode: "autofill"; filledPdfData: string; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; fillResults: { filledFields: number; successfullyFilled: number; }; }>]>; static readonly shortDescription = "PDF OCR workflow: identify fields or autofill forms using AI analysis"; static readonly longDescription = "\n Comprehensive PDF OCR workflow with two modes for form field processing:\n \n **Identify Mode:**\n - Discovers and names form fields from PDF documents\n - Returns field IDs, descriptive names, and confidence scores\n - Useful for form schema generation and document understanding\n \n **Autofill Mode:**\n - Identifies form fields AND fills them using provided client information\n - Returns field data with values plus a filled PDF\n - Uses AI to intelligently map client data to appropriate form fields\n \n Process:\n 1. Discover form fields using PyMuPDF (field names, types, coordinates)\n 2. Convert PDF pages to high-quality images using PyMuPDF\n 3. Send images + discovery data + client info (autofill mode) to AI agent\n 4. For autofill mode: Use PDF Form Operations to fill the form with AI-determined values\n \n Features:\n - Two distinct modes: identify vs autofill\n - Cross-references visual analysis with form field metadata\n - Supports both fillable PDFs and scanned documents\n - Generates meaningful field names based on PDF content and context\n - Intelligent value mapping from client information (autofill mode)\n - Configurable image quality and AI model selection\n - Returns confidence scores for field identification accuracy\n \n Use cases:\n - **Identify**: Form schema generation, document structure analysis\n - **Autofill**: Automated form filling, client onboarding, data entry automation\n \n Input: Base64 encoded PDF data + mode + client information (autofill mode)\n Output: Mode-specific results with field data and optional filled PDF\n "; static readonly alias = "pdf-ocr"; constructor(params: T, context?: BubbleContext); protected performAction(): Promise<Extract<PDFOcrWorkflowResult, { mode: T['mode']; }>>; }
|
|
1286
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const PDFOcrWorkflowParamsSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{ mode: z.ZodLiteral<"identify">; pdfData: z.ZodString; discoveryOptions: z.ZodDefault<z.ZodObject<{ targetPage: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { targetPage?: number | undefined; }, { targetPage?: number | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { mode: "identify"; pdfData: string; discoveryOptions: { targetPage?: number | undefined; }; imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { mode: "identify"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; discoveryOptions?: { targetPage?: number | undefined; } | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>, z.ZodObject<{ mode: z.ZodLiteral<"autofill">; pdfData: z.ZodString; clientInformation: z.ZodString; discoveryOptions: z.ZodDefault<z.ZodObject<{ targetPage: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { targetPage?: number | undefined; }, { targetPage?: number | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { mode: "autofill"; pdfData: string; discoveryOptions: { targetPage?: number | undefined; }; imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; clientInformation: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { mode: "autofill"; pdfData: string; clientInformation: string; credentials?: Partial<Record<CredentialType, string>> | undefined; discoveryOptions?: { targetPage?: number | undefined; } | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>]>; declare const PDFOcrWorkflowResultSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{ mode: z.ZodLiteral<"identify">; extractedFields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; fieldName: z.ZodString; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: number; fieldName: string; confidence: number; }, { id: number; fieldName: string; confidence: number; }>, "many">; discoveryData: z.ZodObject<{ totalFields: z.ZodNumber; fieldsWithCoordinates: z.ZodNumber; pages: z.ZodArray<z.ZodNumber, "many">; }, "strip", z.ZodTypeAny, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }>; imageData: z.ZodObject<{ totalPages: z.ZodNumber; convertedPages: z.ZodNumber; format: z.ZodString; dpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; totalPages: number; dpi: number; convertedPages: number; }, { format: string; totalPages: number; dpi: number; convertedPages: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; mode: "identify"; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { id: number; fieldName: string; confidence: number; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; }, { error: string; success: boolean; mode: "identify"; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { id: number; fieldName: string; confidence: number; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; }>, z.ZodObject<{ mode: z.ZodLiteral<"autofill">; extractedFields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; originalFieldName: z.ZodOptional<z.ZodString>; fieldName: z.ZodString; value: z.ZodString; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }, { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }>, "many">; filledPdfData: z.ZodString; discoveryData: z.ZodObject<{ totalFields: z.ZodNumber; fieldsWithCoordinates: z.ZodNumber; pages: z.ZodArray<z.ZodNumber, "many">; }, "strip", z.ZodTypeAny, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }>; imageData: z.ZodObject<{ totalPages: z.ZodNumber; convertedPages: z.ZodNumber; format: z.ZodString; dpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; totalPages: number; dpi: number; convertedPages: number; }, { format: string; totalPages: number; dpi: number; convertedPages: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; fillResults: z.ZodObject<{ filledFields: z.ZodNumber; successfullyFilled: z.ZodNumber; }, "strip", z.ZodTypeAny, { filledFields: number; successfullyFilled: number; }, { filledFields: number; successfullyFilled: number; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; mode: "autofill"; filledPdfData: string; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; fillResults: { filledFields: number; successfullyFilled: number; }; }, { error: string; success: boolean; mode: "autofill"; filledPdfData: string; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; fillResults: { filledFields: number; successfullyFilled: number; }; }>]>; type PDFOcrWorkflowParams = z.input<typeof PDFOcrWorkflowParamsSchema>;; type PDFOcrWorkflowResult = z.output<typeof PDFOcrWorkflowResultSchema>; export type PDFOcrModeResult<T extends PDFOcrWorkflowParams['mode']> = Extract<PDFOcrWorkflowResult, { mode: T; }>; export type PDFOcrOperationResult<T extends PDFOcrWorkflowParams['mode']> = Extract<PDFOcrWorkflowResult, { mode: T; }>; export declare class PDFOcrWorkflow<T extends PDFOcrWorkflowParams = PDFOcrWorkflowParams> extends WorkflowBubble<T, Extract<PDFOcrWorkflowResult, { mode: T['mode']; }>> { static readonly type: "workflow"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{ mode: z.ZodLiteral<"identify">; pdfData: z.ZodString; discoveryOptions: z.ZodDefault<z.ZodObject<{ targetPage: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { targetPage?: number | undefined; }, { targetPage?: number | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { mode: "identify"; pdfData: string; discoveryOptions: { targetPage?: number | undefined; }; imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { mode: "identify"; pdfData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; discoveryOptions?: { targetPage?: number | undefined; } | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>, z.ZodObject<{ mode: z.ZodLiteral<"autofill">; pdfData: z.ZodString; clientInformation: z.ZodString; discoveryOptions: z.ZodDefault<z.ZodObject<{ targetPage: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { targetPage?: number | undefined; }, { targetPage?: number | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { mode: "autofill"; pdfData: string; discoveryOptions: { targetPage?: number | undefined; }; imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; clientInformation: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { mode: "autofill"; pdfData: string; clientInformation: string; credentials?: Partial<Record<CredentialType, string>> | undefined; discoveryOptions?: { targetPage?: number | undefined; } | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{ mode: z.ZodLiteral<"identify">; extractedFields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; fieldName: z.ZodString; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: number; fieldName: string; confidence: number; }, { id: number; fieldName: string; confidence: number; }>, "many">; discoveryData: z.ZodObject<{ totalFields: z.ZodNumber; fieldsWithCoordinates: z.ZodNumber; pages: z.ZodArray<z.ZodNumber, "many">; }, "strip", z.ZodTypeAny, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }>; imageData: z.ZodObject<{ totalPages: z.ZodNumber; convertedPages: z.ZodNumber; format: z.ZodString; dpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; totalPages: number; dpi: number; convertedPages: number; }, { format: string; totalPages: number; dpi: number; convertedPages: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; mode: "identify"; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { id: number; fieldName: string; confidence: number; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; }, { error: string; success: boolean; mode: "identify"; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { id: number; fieldName: string; confidence: number; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; }>, z.ZodObject<{ mode: z.ZodLiteral<"autofill">; extractedFields: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; originalFieldName: z.ZodOptional<z.ZodString>; fieldName: z.ZodString; value: z.ZodString; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }, { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }>, "many">; filledPdfData: z.ZodString; discoveryData: z.ZodObject<{ totalFields: z.ZodNumber; fieldsWithCoordinates: z.ZodNumber; pages: z.ZodArray<z.ZodNumber, "many">; }, "strip", z.ZodTypeAny, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }, { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }>; imageData: z.ZodObject<{ totalPages: z.ZodNumber; convertedPages: z.ZodNumber; format: z.ZodString; dpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { format: string; totalPages: number; dpi: number; convertedPages: number; }, { format: string; totalPages: number; dpi: number; convertedPages: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; fillResults: z.ZodObject<{ filledFields: z.ZodNumber; successfullyFilled: z.ZodNumber; }, "strip", z.ZodTypeAny, { filledFields: number; successfullyFilled: number; }, { filledFields: number; successfullyFilled: number; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; mode: "autofill"; filledPdfData: string; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; fillResults: { filledFields: number; successfullyFilled: number; }; }, { error: string; success: boolean; mode: "autofill"; filledPdfData: string; imageData: { format: string; totalPages: number; dpi: number; convertedPages: number; }; extractedFields: { value: string; id: number; fieldName: string; confidence: number; originalFieldName?: string | undefined; }[]; discoveryData: { pages: number[]; totalFields: number; fieldsWithCoordinates: number; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; fillResults: { filledFields: number; successfullyFilled: number; }; }>]>; static readonly shortDescription = "PDF OCR workflow: identify fields or autofill forms using AI analysis"; static readonly longDescription = "\n Comprehensive PDF OCR workflow with two modes for form field processing:\n \n **Identify Mode:**\n - Discovers and names form fields from PDF documents\n - Returns field IDs, descriptive names, and confidence scores\n - Useful for form schema generation and document understanding\n \n **Autofill Mode:**\n - Identifies form fields AND fills them using provided client information\n - Returns field data with values plus a filled PDF\n - Uses AI to intelligently map client data to appropriate form fields\n \n Process:\n 1. Discover form fields using PyMuPDF (field names, types, coordinates)\n 2. Convert PDF pages to high-quality images using PyMuPDF\n 3. Send images + discovery data + client info (autofill mode) to AI agent\n 4. For autofill mode: Use PDF Form Operations to fill the form with AI-determined values\n \n Features:\n - Two distinct modes: identify vs autofill\n - Cross-references visual analysis with form field metadata\n - Supports both fillable PDFs and scanned documents\n - Generates meaningful field names based on PDF content and context\n - Intelligent value mapping from client information (autofill mode)\n - Configurable image quality and AI model selection\n - Returns confidence scores for field identification accuracy\n \n Use cases:\n - **Identify**: Form schema generation, document structure analysis\n - **Autofill**: Automated form filling, client onboarding, data entry automation\n \n Input: Base64 encoded PDF data + mode + client information (autofill mode)\n Output: Mode-specific results with field data and optional filled PDF\n "; static readonly alias = "pdf-ocr"; constructor(params: T, context?: BubbleContext); protected performAction(): Promise<Extract<PDFOcrWorkflowResult, { mode: T['mode']; }>>; }
|
|
1287
1287
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1288
1288
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1289
1289
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1337,7 +1337,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1337
1337
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1338
1338
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1339
1339
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1340
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GenerateDocumentWorkflowParamsSchema: z.ZodObject<{ documents: z.ZodArray<z.ZodObject<{ content: z.ZodString; index: z.ZodNumber; metadata: z.ZodOptional<z.ZodObject<{ originalFilename: z.ZodOptional<z.ZodString>; pageCount: z.ZodOptional<z.ZodNumber>; uploadedImages: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; fileName: z.ZodString; fileUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { fileName: string; pageNumber: number; fileUrl?: string | undefined; }, { fileName: string; pageNumber: number; fileUrl?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; }, { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; }>>; }, "strip", z.ZodTypeAny, { content: string; index: number; metadata?: { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; } | undefined; }, { content: string; index: number; metadata?: { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; } | undefined; }>, "many">; outputDescription: z.ZodString; outputFormat: z.ZodDefault<z.ZodEnum<["html", "csv", "json"]>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; documents: { content: string; index: number; metadata?: { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; } | undefined; }[]; outputDescription: string; outputFormat: "html" | "json" | "csv"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { documents: { content: string; index: number; metadata?: { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; } | undefined; }[]; outputDescription: string; credentials?: Partial<Record<CredentialType, string>> | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; outputFormat?: "html" | "json" | "csv" | undefined; }>; declare const GenerateDocumentWorkflowResultSchema: z.ZodObject<{ columns: z.ZodArray<z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<["string", "number", "integer", "float", "date", "boolean"]>; description: z.ZodString; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }, { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }>, "many">; rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">; metadata: z.ZodObject<{ totalDocuments: z.ZodNumber; totalRows: z.ZodNumber; totalColumns: z.ZodNumber; processingTime: z.ZodNumber; extractedFrom: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }, { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }>; generatedFiles: z.ZodObject<{ html: z.ZodOptional<z.ZodString>; csv: z.ZodOptional<z.ZodString>; json: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }, { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata: { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }; rows: Record<string, string | number | boolean | null>[]; columns: { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }[]; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; generatedFiles: { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }; }, { success: boolean; error: string; metadata: { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }; rows: Record<string, string | number | boolean | null>[]; columns: { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }[]; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; generatedFiles: { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }; }>; type GenerateDocumentWorkflowParams = z.input<typeof GenerateDocumentWorkflowParamsSchema>;; type GenerateDocumentWorkflowResult = z.output<typeof GenerateDocumentWorkflowResultSchema>; export declare class GenerateDocumentWorkflow extends WorkflowBubble<GenerateDocumentWorkflowParams, GenerateDocumentWorkflowResult> { static readonly type: "workflow"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ documents: z.ZodArray<z.ZodObject<{ content: z.ZodString; index: z.ZodNumber; metadata: z.ZodOptional<z.ZodObject<{ originalFilename: z.ZodOptional<z.ZodString>; pageCount: z.ZodOptional<z.ZodNumber>; uploadedImages: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; fileName: z.ZodString; fileUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { fileName: string; pageNumber: number; fileUrl?: string | undefined; }, { fileName: string; pageNumber: number; fileUrl?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; }, { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; }>>; }, "strip", z.ZodTypeAny, { content: string; index: number; metadata?: { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; } | undefined; }, { content: string; index: number; metadata?: { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; } | undefined; }>, "many">; outputDescription: z.ZodString; outputFormat: z.ZodDefault<z.ZodEnum<["html", "csv", "json"]>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; documents: { content: string; index: number; metadata?: { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; } | undefined; }[]; outputDescription: string; outputFormat: "html" | "json" | "csv"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { documents: { content: string; index: number; metadata?: { pageCount?: number | undefined; originalFilename?: string | undefined; uploadedImages?: { fileName: string; pageNumber: number; fileUrl?: string | undefined; }[] | undefined; } | undefined; }[]; outputDescription: string; credentials?: Partial<Record<CredentialType, string>> | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; outputFormat?: "html" | "json" | "csv" | undefined; }>; static readonly resultSchema: z.ZodObject<{ columns: z.ZodArray<z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<["string", "number", "integer", "float", "date", "boolean"]>; description: z.ZodString; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }, { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }>, "many">; rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">; metadata: z.ZodObject<{ totalDocuments: z.ZodNumber; totalRows: z.ZodNumber; totalColumns: z.ZodNumber; processingTime: z.ZodNumber; extractedFrom: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }, { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }>; generatedFiles: z.ZodObject<{ html: z.ZodOptional<z.ZodString>; csv: z.ZodOptional<z.ZodString>; json: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }, { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata: { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }; rows: Record<string, string | number | boolean | null>[]; columns: { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }[]; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; generatedFiles: { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }; }, { success: boolean; error: string; metadata: { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }; rows: Record<string, string | number | boolean | null>[]; columns: { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }[]; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; generatedFiles: { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }; }>; static readonly shortDescription = "Generate Document workflow: convert markdown to structured formats using AI"; static readonly longDescription = "\n Comprehensive document generation workflow that transforms unstructured markdown content into structured data formats:\n \n **Process:**\n 1. Analyze markdown documents using AI to understand content and structure\n 2. Extract data points based on user requirements and output description\n 3. Generate consistent column definitions and data rows\n 4. Convert to requested format (HTML table, CSV, JSON)\n \n **Features:**\n - Multi-document processing with content consolidation\n - AI-powered data extraction and structuring\n - Flexible output format support (HTML, CSV, JSON)\n - Configurable AI model selection and parameters\n - Comprehensive metadata and analysis tracking\n - Error handling and validation\n \n **Common Use Cases:**\n - **Expense Management**: Extract vendor, amount, date, category from receipts\n - **Invoice Processing**: Structure billing information into tables\n - **Contact Lists**: Organize people and contact information\n - **Inventory Management**: Extract product details and quantities\n - **Research Data**: Structure findings and references\n \n **Input**: Array of markdown documents + output requirements description\n **Output**: Structured data in requested format with metadata and analysis\n "; static readonly alias = "generate-doc"; constructor(params: GenerateDocumentWorkflowParams, context?: BubbleContext); protected performAction(): Promise<GenerateDocumentWorkflowResult>; private generateCSV; private normalizeColumnType; private normalizeRowValue; private generateHTML; }
|
|
1340
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GenerateDocumentWorkflowParamsSchema: z.ZodObject<{ documents: z.ZodArray<z.ZodObject<{ content: z.ZodString; index: z.ZodNumber; metadata: z.ZodOptional<z.ZodObject<{ originalFilename: z.ZodOptional<z.ZodString>; pageCount: z.ZodOptional<z.ZodNumber>; uploadedImages: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; fileName: z.ZodString; fileUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { pageNumber: number; fileName: string; fileUrl?: string | undefined; }, { pageNumber: number; fileName: string; fileUrl?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; }, { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; }>>; }, "strip", z.ZodTypeAny, { content: string; index: number; metadata?: { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; } | undefined; }, { content: string; index: number; metadata?: { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; } | undefined; }>, "many">; outputDescription: z.ZodString; outputFormat: z.ZodDefault<z.ZodEnum<["html", "csv", "json"]>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; documents: { content: string; index: number; metadata?: { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; } | undefined; }[]; outputDescription: string; outputFormat: "html" | "json" | "csv"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { documents: { content: string; index: number; metadata?: { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; } | undefined; }[]; outputDescription: string; credentials?: Partial<Record<CredentialType, string>> | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; outputFormat?: "html" | "json" | "csv" | undefined; }>; declare const GenerateDocumentWorkflowResultSchema: z.ZodObject<{ columns: z.ZodArray<z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<["string", "number", "integer", "float", "date", "boolean"]>; description: z.ZodString; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }, { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }>, "many">; rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">; metadata: z.ZodObject<{ totalDocuments: z.ZodNumber; totalRows: z.ZodNumber; totalColumns: z.ZodNumber; processingTime: z.ZodNumber; extractedFrom: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }, { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }>; generatedFiles: z.ZodObject<{ html: z.ZodOptional<z.ZodString>; csv: z.ZodOptional<z.ZodString>; json: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }, { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; columns: { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }[]; rows: Record<string, string | number | boolean | null>[]; generatedFiles: { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }; }, { error: string; success: boolean; metadata: { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; columns: { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }[]; rows: Record<string, string | number | boolean | null>[]; generatedFiles: { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }; }>; type GenerateDocumentWorkflowParams = z.input<typeof GenerateDocumentWorkflowParamsSchema>;; type GenerateDocumentWorkflowResult = z.output<typeof GenerateDocumentWorkflowResultSchema>; export declare class GenerateDocumentWorkflow extends WorkflowBubble<GenerateDocumentWorkflowParams, GenerateDocumentWorkflowResult> { static readonly type: "workflow"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ documents: z.ZodArray<z.ZodObject<{ content: z.ZodString; index: z.ZodNumber; metadata: z.ZodOptional<z.ZodObject<{ originalFilename: z.ZodOptional<z.ZodString>; pageCount: z.ZodOptional<z.ZodNumber>; uploadedImages: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; fileName: z.ZodString; fileUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { pageNumber: number; fileName: string; fileUrl?: string | undefined; }, { pageNumber: number; fileName: string; fileUrl?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; }, { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; }>>; }, "strip", z.ZodTypeAny, { content: string; index: number; metadata?: { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; } | undefined; }, { content: string; index: number; metadata?: { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; } | undefined; }>, "many">; outputDescription: z.ZodString; outputFormat: z.ZodDefault<z.ZodEnum<["html", "csv", "json"]>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; documents: { content: string; index: number; metadata?: { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; } | undefined; }[]; outputDescription: string; outputFormat: "html" | "json" | "csv"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { documents: { content: string; index: number; metadata?: { originalFilename?: string | undefined; pageCount?: number | undefined; uploadedImages?: { pageNumber: number; fileName: string; fileUrl?: string | undefined; }[] | undefined; } | undefined; }[]; outputDescription: string; credentials?: Partial<Record<CredentialType, string>> | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; outputFormat?: "html" | "json" | "csv" | undefined; }>; static readonly resultSchema: z.ZodObject<{ columns: z.ZodArray<z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<["string", "number", "integer", "float", "date", "boolean"]>; description: z.ZodString; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }, { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }>, "many">; rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">; metadata: z.ZodObject<{ totalDocuments: z.ZodNumber; totalRows: z.ZodNumber; totalColumns: z.ZodNumber; processingTime: z.ZodNumber; extractedFrom: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }, { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }>; generatedFiles: z.ZodObject<{ html: z.ZodOptional<z.ZodString>; csv: z.ZodOptional<z.ZodString>; json: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }, { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime?: number | undefined; }, { model: string; iterations: number; processingTime?: number | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; columns: { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }[]; rows: Record<string, string | number | boolean | null>[]; generatedFiles: { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }; }, { error: string; success: boolean; metadata: { processingTime: number; totalDocuments: number; totalRows: number; totalColumns: number; extractedFrom: string[]; }; aiAnalysis: { model: string; iterations: number; processingTime?: number | undefined; }; columns: { type: "string" | "number" | "boolean" | "integer" | "float" | "date"; description: string; name: string; }[]; rows: Record<string, string | number | boolean | null>[]; generatedFiles: { html?: string | undefined; json?: string | undefined; csv?: string | undefined; }; }>; static readonly shortDescription = "Generate Document workflow: convert markdown to structured formats using AI"; static readonly longDescription = "\n Comprehensive document generation workflow that transforms unstructured markdown content into structured data formats:\n \n **Process:**\n 1. Analyze markdown documents using AI to understand content and structure\n 2. Extract data points based on user requirements and output description\n 3. Generate consistent column definitions and data rows\n 4. Convert to requested format (HTML table, CSV, JSON)\n \n **Features:**\n - Multi-document processing with content consolidation\n - AI-powered data extraction and structuring\n - Flexible output format support (HTML, CSV, JSON)\n - Configurable AI model selection and parameters\n - Comprehensive metadata and analysis tracking\n - Error handling and validation\n \n **Common Use Cases:**\n - **Expense Management**: Extract vendor, amount, date, category from receipts\n - **Invoice Processing**: Structure billing information into tables\n - **Contact Lists**: Organize people and contact information\n - **Inventory Management**: Extract product details and quantities\n - **Research Data**: Structure findings and references\n \n **Input**: Array of markdown documents + output requirements description\n **Output**: Structured data in requested format with metadata and analysis\n "; static readonly alias = "generate-doc"; constructor(params: GenerateDocumentWorkflowParams, context?: BubbleContext); protected performAction(): Promise<GenerateDocumentWorkflowResult>; private generateCSV; private normalizeColumnType; private normalizeRowValue; private generateHTML; }
|
|
1341
1341
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1342
1342
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1343
1343
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1391,7 +1391,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1391
1391
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1392
1392
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1393
1393
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1394
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const ParseDocumentWorkflowParamsSchema: z.ZodObject<{ documentData: z.ZodString; documentType: z.ZodDefault<z.ZodEnum<["pdf", "image"]>>; isFileUrl: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; conversionOptions: z.ZodDefault<z.ZodObject<{ preserveStructure: z.ZodDefault<z.ZodBoolean>; includeVisualDescriptions: z.ZodDefault<z.ZodBoolean>; extractNumericalData: z.ZodDefault<z.ZodBoolean>; combinePages: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { preserveStructure: boolean; includeVisualDescriptions: boolean; extractNumericalData: boolean; combinePages: boolean; }, { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; storageOptions: z.ZodOptional<z.ZodObject<{ uploadImages: z.ZodDefault<z.ZodBoolean>; bucketName: z.ZodOptional<z.ZodString>; pageImageUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; uploadUrl: z.ZodString; fileName: z.ZodString; }, "strip", z.ZodTypeAny, { fileName: string; uploadUrl: string; pageNumber: number; }, { fileName: string; uploadUrl: string; pageNumber: number; }>, "many">>; userId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { uploadImages: boolean; bucketName?: string | undefined; userId?: string | undefined; pageImageUrls?: { fileName: string; uploadUrl: string; pageNumber: number; }[] | undefined; }, { bucketName?: string | undefined; userId?: string | undefined; uploadImages?: boolean | undefined; pageImageUrls?: { fileName: string; uploadUrl: string; pageNumber: number; }[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; documentData: string; documentType: "image" | "pdf"; isFileUrl: boolean; conversionOptions: { preserveStructure: boolean; includeVisualDescriptions: boolean; extractNumericalData: boolean; combinePages: boolean; }; credentials?: Partial<Record<CredentialType, string>> | undefined; storageOptions?: { uploadImages: boolean; bucketName?: string | undefined; userId?: string | undefined; pageImageUrls?: { fileName: string; uploadUrl: string; pageNumber: number; }[] | undefined; } | undefined; }, { documentData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; documentType?: "image" | "pdf" | undefined; isFileUrl?: boolean | undefined; conversionOptions?: { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; } | undefined; storageOptions?: { bucketName?: string | undefined; userId?: string | undefined; uploadImages?: boolean | undefined; pageImageUrls?: { fileName: string; uploadUrl: string; pageNumber: number; }[] | undefined; } | undefined; }>; declare const ParseDocumentWorkflowResultSchema: z.ZodObject<{ markdown: z.ZodString; pages: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; markdown: z.ZodString; hasCharts: z.ZodBoolean; hasTables: z.ZodBoolean; hasImages: z.ZodBoolean; }, "strip", z.ZodTypeAny, { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }, { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }>, "many">; metadata: z.ZodObject<{ totalPages: z.ZodNumber; processedPages: z.ZodNumber; hasVisualElements: z.ZodBoolean; processingTime: z.ZodNumber; imageFormat: z.ZodString; imageDpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }, { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }>; conversionSummary: z.ZodObject<{ totalCharacters: z.ZodNumber; tablesExtracted: z.ZodNumber; chartsDescribed: z.ZodNumber; imagesDescribed: z.ZodNumber; }, "strip", z.ZodTypeAny, { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }, { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodNumber; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime: number; }, { model: string; iterations: number; processingTime: number; }>; uploadedImages: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; fileName: z.ZodString; fileUrl: z.ZodOptional<z.ZodString>; uploaded: z.ZodBoolean; }, "strip", z.ZodTypeAny, { fileName: string; pageNumber: number; uploaded: boolean; fileUrl?: string | undefined; }, { fileName: string; pageNumber: number; uploaded: boolean; fileUrl?: string | undefined; }>, "many">>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata: { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }; markdown: string; pages: { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }[]; aiAnalysis: { model: string; iterations: number; processingTime: number; }; conversionSummary: { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }; uploadedImages?: { fileName: string; pageNumber: number; uploaded: boolean; fileUrl?: string | undefined; }[] | undefined; }, { success: boolean; error: string; metadata: { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }; markdown: string; pages: { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }[]; aiAnalysis: { model: string; iterations: number; processingTime: number; }; conversionSummary: { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }; uploadedImages?: { fileName: string; pageNumber: number; uploaded: boolean; fileUrl?: string | undefined; }[] | undefined; }>; type ParseDocumentWorkflowParams = z.input<typeof ParseDocumentWorkflowParamsSchema>;; type ParseDocumentWorkflowResult = z.output<typeof ParseDocumentWorkflowResultSchema>; export declare class ParseDocumentWorkflow extends WorkflowBubble<ParseDocumentWorkflowParams, ParseDocumentWorkflowResult> { static readonly type: "workflow"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ documentData: z.ZodString; documentType: z.ZodDefault<z.ZodEnum<["pdf", "image"]>>; isFileUrl: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; conversionOptions: z.ZodDefault<z.ZodObject<{ preserveStructure: z.ZodDefault<z.ZodBoolean>; includeVisualDescriptions: z.ZodDefault<z.ZodBoolean>; extractNumericalData: z.ZodDefault<z.ZodBoolean>; combinePages: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { preserveStructure: boolean; includeVisualDescriptions: boolean; extractNumericalData: boolean; combinePages: boolean; }, { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; storageOptions: z.ZodOptional<z.ZodObject<{ uploadImages: z.ZodDefault<z.ZodBoolean>; bucketName: z.ZodOptional<z.ZodString>; pageImageUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; uploadUrl: z.ZodString; fileName: z.ZodString; }, "strip", z.ZodTypeAny, { fileName: string; uploadUrl: string; pageNumber: number; }, { fileName: string; uploadUrl: string; pageNumber: number; }>, "many">>; userId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { uploadImages: boolean; bucketName?: string | undefined; userId?: string | undefined; pageImageUrls?: { fileName: string; uploadUrl: string; pageNumber: number; }[] | undefined; }, { bucketName?: string | undefined; userId?: string | undefined; uploadImages?: boolean | undefined; pageImageUrls?: { fileName: string; uploadUrl: string; pageNumber: number; }[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview"; temperature: number; maxTokens: number; jsonMode: boolean; }; documentData: string; documentType: "image" | "pdf"; isFileUrl: boolean; conversionOptions: { preserveStructure: boolean; includeVisualDescriptions: boolean; extractNumericalData: boolean; combinePages: boolean; }; credentials?: Partial<Record<CredentialType, string>> | undefined; storageOptions?: { uploadImages: boolean; bucketName?: string | undefined; userId?: string | undefined; pageImageUrls?: { fileName: string; uploadUrl: string; pageNumber: number; }[] | undefined; } | undefined; }, { documentData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; quality?: number | undefined; pages?: number[] | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; documentType?: "image" | "pdf" | undefined; isFileUrl?: boolean | undefined; conversionOptions?: { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; } | undefined; storageOptions?: { bucketName?: string | undefined; userId?: string | undefined; uploadImages?: boolean | undefined; pageImageUrls?: { fileName: string; uploadUrl: string; pageNumber: number; }[] | undefined; } | undefined; }>; static readonly resultSchema: z.ZodObject<{ markdown: z.ZodString; pages: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; markdown: z.ZodString; hasCharts: z.ZodBoolean; hasTables: z.ZodBoolean; hasImages: z.ZodBoolean; }, "strip", z.ZodTypeAny, { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }, { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }>, "many">; metadata: z.ZodObject<{ totalPages: z.ZodNumber; processedPages: z.ZodNumber; hasVisualElements: z.ZodBoolean; processingTime: z.ZodNumber; imageFormat: z.ZodString; imageDpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }, { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }>; conversionSummary: z.ZodObject<{ totalCharacters: z.ZodNumber; tablesExtracted: z.ZodNumber; chartsDescribed: z.ZodNumber; imagesDescribed: z.ZodNumber; }, "strip", z.ZodTypeAny, { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }, { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodNumber; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime: number; }, { model: string; iterations: number; processingTime: number; }>; uploadedImages: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; fileName: z.ZodString; fileUrl: z.ZodOptional<z.ZodString>; uploaded: z.ZodBoolean; }, "strip", z.ZodTypeAny, { fileName: string; pageNumber: number; uploaded: boolean; fileUrl?: string | undefined; }, { fileName: string; pageNumber: number; uploaded: boolean; fileUrl?: string | undefined; }>, "many">>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata: { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }; markdown: string; pages: { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }[]; aiAnalysis: { model: string; iterations: number; processingTime: number; }; conversionSummary: { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }; uploadedImages?: { fileName: string; pageNumber: number; uploaded: boolean; fileUrl?: string | undefined; }[] | undefined; }, { success: boolean; error: string; metadata: { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }; markdown: string; pages: { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }[]; aiAnalysis: { model: string; iterations: number; processingTime: number; }; conversionSummary: { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }; uploadedImages?: { fileName: string; pageNumber: number; uploaded: boolean; fileUrl?: string | undefined; }[] | undefined; }>; static readonly shortDescription = "Parse Document workflow: convert PDFs/images to markdown using AI vision"; static readonly longDescription = "\n Comprehensive document parsing workflow that converts PDFs and images into structured markdown:\n \n **Process:**\n 1. Convert PDFs to high-quality images (if needed)\n 2. Analyze images using AI vision models to extract content\n 3. Generate clean, structured markdown preserving document layout\n 4. Describe charts, tables, and images with numerical data when possible\n \n **Features:**\n - **PDF & Image Support**: Handles both PDF documents and image files\n - **Structure Preservation**: Maintains headers, lists, paragraphs, and formatting\n - **Visual Element Analysis**: Describes charts, graphs, tables, and images in detail\n - **Numerical Data Extraction**: Extracts specific values from charts and tables\n - **High-Quality Conversion**: Configurable DPI and quality settings\n - **Per-Page Analysis**: Detailed breakdown of each page's content\n \n **Visual Element Handling:**\n - **Charts & Graphs**: Extract data points, trends, axis labels, percentages\n - **Tables**: Convert to markdown tables with all visible data\n - **Images & Diagrams**: Detailed descriptions including any visible text/numbers\n - **Forms**: Structure field names and any filled values\n \n **Output Options:**\n - Combined markdown document or per-page breakdown\n - Configurable structure preservation and visual descriptions\n - Comprehensive metadata and conversion statistics\n \n **Common Use Cases:**\n - **Document Digitization**: Convert scanned PDFs to editable markdown\n - **Report Analysis**: Extract data from business reports and charts\n - **Academic Papers**: Preserve structure and extract figures/tables\n - **Technical Documentation**: Maintain formatting and describe diagrams\n - **Research Materials**: Extract and structure information from various documents\n \n **Input**: PDF or image data + conversion preferences\n **Output**: Clean markdown with preserved structure and visual descriptions\n "; static readonly alias = "parse-doc"; constructor(params: ParseDocumentWorkflowParams, context?: BubbleContext); protected performAction(context?: BubbleContext): Promise<ParseDocumentWorkflowResult>; }
|
|
1394
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const ParseDocumentWorkflowParamsSchema: z.ZodObject<{ documentData: z.ZodString; documentType: z.ZodDefault<z.ZodEnum<["pdf", "image"]>>; isFileUrl: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; conversionOptions: z.ZodDefault<z.ZodObject<{ preserveStructure: z.ZodDefault<z.ZodBoolean>; includeVisualDescriptions: z.ZodDefault<z.ZodBoolean>; extractNumericalData: z.ZodDefault<z.ZodBoolean>; combinePages: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { preserveStructure: boolean; includeVisualDescriptions: boolean; extractNumericalData: boolean; combinePages: boolean; }, { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; storageOptions: z.ZodOptional<z.ZodObject<{ uploadImages: z.ZodDefault<z.ZodBoolean>; bucketName: z.ZodOptional<z.ZodString>; pageImageUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; uploadUrl: z.ZodString; fileName: z.ZodString; }, "strip", z.ZodTypeAny, { pageNumber: number; fileName: string; uploadUrl: string; }, { pageNumber: number; fileName: string; uploadUrl: string; }>, "many">>; userId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { uploadImages: boolean; bucketName?: string | undefined; pageImageUrls?: { pageNumber: number; fileName: string; uploadUrl: string; }[] | undefined; userId?: string | undefined; }, { uploadImages?: boolean | undefined; bucketName?: string | undefined; pageImageUrls?: { pageNumber: number; fileName: string; uploadUrl: string; }[] | undefined; userId?: string | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; documentData: string; documentType: "image" | "pdf"; isFileUrl: boolean; conversionOptions: { preserveStructure: boolean; includeVisualDescriptions: boolean; extractNumericalData: boolean; combinePages: boolean; }; credentials?: Partial<Record<CredentialType, string>> | undefined; storageOptions?: { uploadImages: boolean; bucketName?: string | undefined; pageImageUrls?: { pageNumber: number; fileName: string; uploadUrl: string; }[] | undefined; userId?: string | undefined; } | undefined; }, { documentData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; documentType?: "image" | "pdf" | undefined; isFileUrl?: boolean | undefined; conversionOptions?: { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; } | undefined; storageOptions?: { uploadImages?: boolean | undefined; bucketName?: string | undefined; pageImageUrls?: { pageNumber: number; fileName: string; uploadUrl: string; }[] | undefined; userId?: string | undefined; } | undefined; }>; declare const ParseDocumentWorkflowResultSchema: z.ZodObject<{ markdown: z.ZodString; pages: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; markdown: z.ZodString; hasCharts: z.ZodBoolean; hasTables: z.ZodBoolean; hasImages: z.ZodBoolean; }, "strip", z.ZodTypeAny, { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }, { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }>, "many">; metadata: z.ZodObject<{ totalPages: z.ZodNumber; processedPages: z.ZodNumber; hasVisualElements: z.ZodBoolean; processingTime: z.ZodNumber; imageFormat: z.ZodString; imageDpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }, { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }>; conversionSummary: z.ZodObject<{ totalCharacters: z.ZodNumber; tablesExtracted: z.ZodNumber; chartsDescribed: z.ZodNumber; imagesDescribed: z.ZodNumber; }, "strip", z.ZodTypeAny, { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }, { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodNumber; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime: number; }, { model: string; iterations: number; processingTime: number; }>; uploadedImages: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; fileName: z.ZodString; fileUrl: z.ZodOptional<z.ZodString>; uploaded: z.ZodBoolean; }, "strip", z.ZodTypeAny, { pageNumber: number; fileName: string; uploaded: boolean; fileUrl?: string | undefined; }, { pageNumber: number; fileName: string; uploaded: boolean; fileUrl?: string | undefined; }>, "many">>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }; markdown: string; pages: { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }[]; aiAnalysis: { model: string; iterations: number; processingTime: number; }; conversionSummary: { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }; uploadedImages?: { pageNumber: number; fileName: string; uploaded: boolean; fileUrl?: string | undefined; }[] | undefined; }, { error: string; success: boolean; metadata: { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }; markdown: string; pages: { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }[]; aiAnalysis: { model: string; iterations: number; processingTime: number; }; conversionSummary: { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }; uploadedImages?: { pageNumber: number; fileName: string; uploaded: boolean; fileUrl?: string | undefined; }[] | undefined; }>; type ParseDocumentWorkflowParams = z.input<typeof ParseDocumentWorkflowParamsSchema>;; type ParseDocumentWorkflowResult = z.output<typeof ParseDocumentWorkflowResultSchema>; export declare class ParseDocumentWorkflow extends WorkflowBubble<ParseDocumentWorkflowParams, ParseDocumentWorkflowResult> { static readonly type: "workflow"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ documentData: z.ZodString; documentType: z.ZodDefault<z.ZodEnum<["pdf", "image"]>>; isFileUrl: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; conversionOptions: z.ZodDefault<z.ZodObject<{ preserveStructure: z.ZodDefault<z.ZodBoolean>; includeVisualDescriptions: z.ZodDefault<z.ZodBoolean>; extractNumericalData: z.ZodDefault<z.ZodBoolean>; combinePages: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { preserveStructure: boolean; includeVisualDescriptions: boolean; extractNumericalData: boolean; combinePages: boolean; }, { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; }>>; imageOptions: z.ZodDefault<z.ZodObject<{ format: z.ZodDefault<z.ZodEnum<["png", "jpeg"]>>; quality: z.ZodDefault<z.ZodNumber>; dpi: z.ZodDefault<z.ZodNumber>; pages: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }, { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodNumber>; jsonMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; storageOptions: z.ZodOptional<z.ZodObject<{ uploadImages: z.ZodDefault<z.ZodBoolean>; bucketName: z.ZodOptional<z.ZodString>; pageImageUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; uploadUrl: z.ZodString; fileName: z.ZodString; }, "strip", z.ZodTypeAny, { pageNumber: number; fileName: string; uploadUrl: string; }, { pageNumber: number; fileName: string; uploadUrl: string; }>, "many">>; userId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { uploadImages: boolean; bucketName?: string | undefined; pageImageUrls?: { pageNumber: number; fileName: string; uploadUrl: string; }[] | undefined; userId?: string | undefined; }, { uploadImages?: boolean | undefined; bucketName?: string | undefined; pageImageUrls?: { pageNumber: number; fileName: string; uploadUrl: string; }[] | undefined; userId?: string | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { imageOptions: { format: "png" | "jpeg"; quality: number; dpi: number; pages?: number[] | undefined; }; aiOptions: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929"; temperature: number; maxTokens: number; jsonMode: boolean; }; documentData: string; documentType: "image" | "pdf"; isFileUrl: boolean; conversionOptions: { preserveStructure: boolean; includeVisualDescriptions: boolean; extractNumericalData: boolean; combinePages: boolean; }; credentials?: Partial<Record<CredentialType, string>> | undefined; storageOptions?: { uploadImages: boolean; bucketName?: string | undefined; pageImageUrls?: { pageNumber: number; fileName: string; uploadUrl: string; }[] | undefined; userId?: string | undefined; } | undefined; }, { documentData: string; credentials?: Partial<Record<CredentialType, string>> | undefined; imageOptions?: { format?: "png" | "jpeg" | undefined; pages?: number[] | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; documentType?: "image" | "pdf" | undefined; isFileUrl?: boolean | undefined; conversionOptions?: { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; } | undefined; storageOptions?: { uploadImages?: boolean | undefined; bucketName?: string | undefined; pageImageUrls?: { pageNumber: number; fileName: string; uploadUrl: string; }[] | undefined; userId?: string | undefined; } | undefined; }>; static readonly resultSchema: z.ZodObject<{ markdown: z.ZodString; pages: z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; markdown: z.ZodString; hasCharts: z.ZodBoolean; hasTables: z.ZodBoolean; hasImages: z.ZodBoolean; }, "strip", z.ZodTypeAny, { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }, { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }>, "many">; metadata: z.ZodObject<{ totalPages: z.ZodNumber; processedPages: z.ZodNumber; hasVisualElements: z.ZodBoolean; processingTime: z.ZodNumber; imageFormat: z.ZodString; imageDpi: z.ZodNumber; }, "strip", z.ZodTypeAny, { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }, { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }>; conversionSummary: z.ZodObject<{ totalCharacters: z.ZodNumber; tablesExtracted: z.ZodNumber; chartsDescribed: z.ZodNumber; imagesDescribed: z.ZodNumber; }, "strip", z.ZodTypeAny, { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }, { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }>; aiAnalysis: z.ZodObject<{ model: z.ZodString; iterations: z.ZodNumber; processingTime: z.ZodNumber; }, "strip", z.ZodTypeAny, { model: string; iterations: number; processingTime: number; }, { model: string; iterations: number; processingTime: number; }>; uploadedImages: z.ZodOptional<z.ZodArray<z.ZodObject<{ pageNumber: z.ZodNumber; fileName: z.ZodString; fileUrl: z.ZodOptional<z.ZodString>; uploaded: z.ZodBoolean; }, "strip", z.ZodTypeAny, { pageNumber: number; fileName: string; uploaded: boolean; fileUrl?: string | undefined; }, { pageNumber: number; fileName: string; uploaded: boolean; fileUrl?: string | undefined; }>, "many">>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }; markdown: string; pages: { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }[]; aiAnalysis: { model: string; iterations: number; processingTime: number; }; conversionSummary: { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }; uploadedImages?: { pageNumber: number; fileName: string; uploaded: boolean; fileUrl?: string | undefined; }[] | undefined; }, { error: string; success: boolean; metadata: { totalPages: number; processingTime: number; processedPages: number; hasVisualElements: boolean; imageFormat: string; imageDpi: number; }; markdown: string; pages: { markdown: string; pageNumber: number; hasCharts: boolean; hasTables: boolean; hasImages: boolean; }[]; aiAnalysis: { model: string; iterations: number; processingTime: number; }; conversionSummary: { totalCharacters: number; tablesExtracted: number; chartsDescribed: number; imagesDescribed: number; }; uploadedImages?: { pageNumber: number; fileName: string; uploaded: boolean; fileUrl?: string | undefined; }[] | undefined; }>; static readonly shortDescription = "Parse Document workflow: convert PDFs/images to markdown using AI vision"; static readonly longDescription = "\n Comprehensive document parsing workflow that converts PDFs and images into structured markdown:\n \n **Process:**\n 1. Convert PDFs to high-quality images (if needed)\n 2. Analyze images using AI vision models to extract content\n 3. Generate clean, structured markdown preserving document layout\n 4. Describe charts, tables, and images with numerical data when possible\n \n **Features:**\n - **PDF & Image Support**: Handles both PDF documents and image files\n - **Structure Preservation**: Maintains headers, lists, paragraphs, and formatting\n - **Visual Element Analysis**: Describes charts, graphs, tables, and images in detail\n - **Numerical Data Extraction**: Extracts specific values from charts and tables\n - **High-Quality Conversion**: Configurable DPI and quality settings\n - **Per-Page Analysis**: Detailed breakdown of each page's content\n \n **Visual Element Handling:**\n - **Charts & Graphs**: Extract data points, trends, axis labels, percentages\n - **Tables**: Convert to markdown tables with all visible data\n - **Images & Diagrams**: Detailed descriptions including any visible text/numbers\n - **Forms**: Structure field names and any filled values\n \n **Output Options:**\n - Combined markdown document or per-page breakdown\n - Configurable structure preservation and visual descriptions\n - Comprehensive metadata and conversion statistics\n \n **Common Use Cases:**\n - **Document Digitization**: Convert scanned PDFs to editable markdown\n - **Report Analysis**: Extract data from business reports and charts\n - **Academic Papers**: Preserve structure and extract figures/tables\n - **Technical Documentation**: Maintain formatting and describe diagrams\n - **Research Materials**: Extract and structure information from various documents\n \n **Input**: PDF or image data + conversion preferences\n **Output**: Clean markdown with preserved structure and visual descriptions\n "; static readonly alias = "parse-doc"; constructor(params: ParseDocumentWorkflowParams, context?: BubbleContext); protected performAction(context?: BubbleContext): Promise<ParseDocumentWorkflowResult>; }
|
|
1395
1395
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1396
1396
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1397
1397
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1446,7 +1446,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1446
1446
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1447
1447
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1448
1448
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1449
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const ListBubblesToolParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; type ListBubblesToolParamsInput = z.input<typeof ListBubblesToolParamsSchema>;; type ListBubblesToolParams = z.output<typeof ListBubblesToolParamsSchema>; type ListBubblesToolResult = z.output<typeof ListBubblesToolResultSchema>; declare const ListBubblesToolResultSchema: z.ZodObject<{ bubbles: z.ZodArray<z.ZodObject<{ name: z.ZodString; alias: z.ZodOptional<z.ZodString>; shortDescription: z.ZodString; useCase: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }, { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }>, "many">; totalCount: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, {
|
|
1449
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const ListBubblesToolParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; type ListBubblesToolParamsInput = z.input<typeof ListBubblesToolParamsSchema>;; type ListBubblesToolParams = z.output<typeof ListBubblesToolParamsSchema>; type ListBubblesToolResult = z.output<typeof ListBubblesToolResultSchema>; declare const ListBubblesToolResultSchema: z.ZodObject<{ bubbles: z.ZodArray<z.ZodObject<{ name: z.ZodString; alias: z.ZodOptional<z.ZodString>; shortDescription: z.ZodString; useCase: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }, { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }>, "many">; totalCount: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; bubbles: { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }[]; totalCount: number; }, { error: string; success: boolean; bubbles: { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }[]; totalCount: number; }>; export declare class ListBubblesTool extends ToolBubble<ListBubblesToolParams, ListBubblesToolResult> { static readonly bubbleName = "list-bubbles-tool"; static readonly schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; static readonly resultSchema: z.ZodObject<{ bubbles: z.ZodArray<z.ZodObject<{ name: z.ZodString; alias: z.ZodOptional<z.ZodString>; shortDescription: z.ZodString; useCase: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }, { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }>, "many">; totalCount: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; bubbles: { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }[]; totalCount: number; }, { error: string; success: boolean; bubbles: { type: string; name: string; shortDescription: string; useCase: string; alias?: string | undefined; }[]; totalCount: number; }>; static readonly shortDescription = "Lists all available bubbles in the registry"; static readonly longDescription = "\n A tool bubble that provides a comprehensive list of all registered bubbles in the NodeX system.\n \n Returns information about each bubble including:\n - Bubble name and alias\n - Short description\n - Extracted use cases\n - Bubble type (service, workflow, tool)\n \n Use cases:\n - AI agent discovery of available capabilities\n - System introspection and documentation\n - Dynamic tool selection for workflow building\n "; static readonly alias = "list"; static readonly type = "tool"; constructor(params?: ListBubblesToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<ListBubblesToolResult>; private extractUseCaseFromDescription; }
|
|
1450
1450
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1451
1451
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1452
1452
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1501,7 +1501,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1501
1501
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1502
1502
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1503
1503
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1504
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GetBubbleDetailsToolParamsSchema: z.ZodObject<{ bubbleName: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { bubbleName: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { bubbleName: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>; type GetBubbleDetailsToolParamsInput = z.input<typeof GetBubbleDetailsToolParamsSchema>;; type GetBubbleDetailsToolParams = z.output<typeof GetBubbleDetailsToolParamsSchema>; type GetBubbleDetailsToolResult = z.output<typeof GetBubbleDetailsToolResultSchema>; declare const GetBubbleDetailsToolResultSchema: z.ZodObject<{ name: z.ZodString; alias: z.ZodOptional<z.ZodString>; outputSchema: z.ZodString; usageExample: z.ZodString; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { name: string;
|
|
1504
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const GetBubbleDetailsToolParamsSchema: z.ZodObject<{ bubbleName: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { bubbleName: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { bubbleName: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>; type GetBubbleDetailsToolParamsInput = z.input<typeof GetBubbleDetailsToolParamsSchema>;; type GetBubbleDetailsToolParams = z.output<typeof GetBubbleDetailsToolParamsSchema>; type GetBubbleDetailsToolResult = z.output<typeof GetBubbleDetailsToolResultSchema>; declare const GetBubbleDetailsToolResultSchema: z.ZodObject<{ name: z.ZodString; alias: z.ZodOptional<z.ZodString>; outputSchema: z.ZodString; usageExample: z.ZodString; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; error: string; success: boolean; outputSchema: string; usageExample: string; alias?: string | undefined; }, { name: string; error: string; success: boolean; outputSchema: string; usageExample: string; alias?: string | undefined; }>; export declare class GetBubbleDetailsTool extends ToolBubble<GetBubbleDetailsToolParams, GetBubbleDetailsToolResult> { static readonly type: "tool"; static readonly bubbleName = "get-bubble-details-tool"; static readonly schema: z.ZodObject<{ bubbleName: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { bubbleName: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { bubbleName: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>; static readonly resultSchema: z.ZodObject<{ name: z.ZodString; alias: z.ZodOptional<z.ZodString>; outputSchema: z.ZodString; usageExample: z.ZodString; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; error: string; success: boolean; outputSchema: string; usageExample: string; alias?: string | undefined; }, { name: string; error: string; success: boolean; outputSchema: string; usageExample: string; alias?: string | undefined; }>; static readonly shortDescription = "Provides detailed information about a specific bubble, including schema, parameters, and documentation"; static readonly longDescription = "\n A tool bubble that retrieves comprehensive information about any registered bubble in the system.\n \n Returns detailed information including:\n - Complete schema with parameter types and descriptions\n - Result schema for expected outputs\n - Credential requirements\n - AI-formatted documentation\n - Usage examples\n \n Use cases:\n - AI agent understanding of specific bubble capabilities\n - Parameter validation before bubble instantiation\n - Documentation generation and help systems\n - Dynamic form generation for bubble configuration\n "; static readonly alias = "details"; private factory; constructor(params: GetBubbleDetailsToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<GetBubbleDetailsToolResult>; private generateOutputSchemaString; private generateTypeInfo; private generateUsageExample; private isDiscriminatedUnion; private generateOperationExamples; private generateSingleExample; private formatOperationComment; private generateOutputExample; private getParameterDescription; private generateExampleParams; private generateExampleValue; private toCamelCase; private toPascalCase; }
|
|
1505
1505
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1506
1506
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1507
1507
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1611,7 +1611,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1611
1611
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1612
1612
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1613
1613
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1614
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const BubbleFlowValidationToolParamsSchema: z.ZodObject<{ code: z.ZodString; options: z.ZodOptional<z.ZodObject<{ includeDetails: z.ZodDefault<z.ZodBoolean>; strictMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { includeDetails: boolean; strictMode: boolean; }, { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { code: string; options?: { includeDetails: boolean; strictMode: boolean; } | undefined; credentials?: Record<string, string> | undefined; config?: Record<string, unknown> | undefined; }, { code: string; options?: { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; } | undefined; credentials?: Record<string, string> | undefined; config?: Record<string, unknown> | undefined; }>; type BubbleFlowValidationToolParamsInput = z.input<typeof BubbleFlowValidationToolParamsSchema>;; type BubbleFlowValidationToolParams = z.output<typeof BubbleFlowValidationToolParamsSchema>; type BubbleFlowValidationToolResult = z.output<typeof BubbleFlowValidationToolResultSchema>; declare const BubbleFlowValidationToolResultSchema: z.ZodObject<{ valid: z.ZodBoolean; errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bubbleCount: z.ZodOptional<z.ZodNumber>; bubbles: z.ZodOptional<z.ZodArray<z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodString; className: z.ZodString; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; parameterCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }, { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }>, "many">>; metadata: z.ZodObject<{ validatedAt: z.ZodString; codeLength: z.ZodNumber; strictMode: z.ZodBoolean; }, "strip", z.ZodTypeAny, { strictMode: boolean; validatedAt: string; codeLength: number; }, { strictMode: boolean; validatedAt: string; codeLength: number; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { valid: boolean;
|
|
1614
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const BubbleFlowValidationToolParamsSchema: z.ZodObject<{ code: z.ZodString; options: z.ZodOptional<z.ZodObject<{ includeDetails: z.ZodDefault<z.ZodBoolean>; strictMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { includeDetails: boolean; strictMode: boolean; }, { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { code: string; options?: { includeDetails: boolean; strictMode: boolean; } | undefined; credentials?: Record<string, string> | undefined; config?: Record<string, unknown> | undefined; }, { code: string; options?: { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; } | undefined; credentials?: Record<string, string> | undefined; config?: Record<string, unknown> | undefined; }>; type BubbleFlowValidationToolParamsInput = z.input<typeof BubbleFlowValidationToolParamsSchema>;; type BubbleFlowValidationToolParams = z.output<typeof BubbleFlowValidationToolParamsSchema>; type BubbleFlowValidationToolResult = z.output<typeof BubbleFlowValidationToolResultSchema>; declare const BubbleFlowValidationToolResultSchema: z.ZodObject<{ valid: z.ZodBoolean; errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bubbleCount: z.ZodOptional<z.ZodNumber>; bubbles: z.ZodOptional<z.ZodArray<z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodString; className: z.ZodString; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; parameterCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }, { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }>, "many">>; metadata: z.ZodObject<{ validatedAt: z.ZodString; codeLength: z.ZodNumber; strictMode: z.ZodBoolean; }, "strip", z.ZodTypeAny, { strictMode: boolean; validatedAt: string; codeLength: number; }, { strictMode: boolean; validatedAt: string; codeLength: number; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { valid: boolean; error: string; success: boolean; metadata: { strictMode: boolean; validatedAt: string; codeLength: number; }; bubbles?: { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }[] | undefined; errors?: string[] | undefined; bubbleCount?: number | undefined; }, { valid: boolean; error: string; success: boolean; metadata: { strictMode: boolean; validatedAt: string; codeLength: number; }; bubbles?: { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }[] | undefined; errors?: string[] | undefined; bubbleCount?: number | undefined; }>; export declare class BubbleFlowValidationTool extends ToolBubble<BubbleFlowValidationToolParams, BubbleFlowValidationToolResult> { static readonly type: "tool"; static readonly bubbleName = "bubbleflow-validation-tool"; static readonly schema: z.ZodObject<{ code: z.ZodString; options: z.ZodOptional<z.ZodObject<{ includeDetails: z.ZodDefault<z.ZodBoolean>; strictMode: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { includeDetails: boolean; strictMode: boolean; }, { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { code: string; options?: { includeDetails: boolean; strictMode: boolean; } | undefined; credentials?: Record<string, string> | undefined; config?: Record<string, unknown> | undefined; }, { code: string; options?: { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; } | undefined; credentials?: Record<string, string> | undefined; config?: Record<string, unknown> | undefined; }>; static readonly resultSchema: z.ZodObject<{ valid: z.ZodBoolean; errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bubbleCount: z.ZodOptional<z.ZodNumber>; bubbles: z.ZodOptional<z.ZodArray<z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodString; className: z.ZodString; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; parameterCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }, { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }>, "many">>; metadata: z.ZodObject<{ validatedAt: z.ZodString; codeLength: z.ZodNumber; strictMode: z.ZodBoolean; }, "strip", z.ZodTypeAny, { strictMode: boolean; validatedAt: string; codeLength: number; }, { strictMode: boolean; validatedAt: string; codeLength: number; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { valid: boolean; error: string; success: boolean; metadata: { strictMode: boolean; validatedAt: string; codeLength: number; }; bubbles?: { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }[] | undefined; errors?: string[] | undefined; bubbleCount?: number | undefined; }, { valid: boolean; error: string; success: boolean; metadata: { strictMode: boolean; validatedAt: string; codeLength: number; }; bubbles?: { bubbleName: string; variableName: string; className: string; hasAwait: boolean; hasActionCall: boolean; parameterCount: number; }[] | undefined; errors?: string[] | undefined; bubbleCount?: number | undefined; }>; static readonly shortDescription = "Validates BubbleFlow TypeScript code for syntax and structure"; static readonly longDescription = "\n A comprehensive validation tool for BubbleFlow TypeScript code.\n \n What it does:\n - Validates TypeScript syntax and compilation\n - Checks BubbleFlow class structure and requirements\n - Parses and analyzes bubble instantiations\n - Provides detailed error reporting with line numbers\n - Returns metadata about detected bubbles\n \n How it works:\n - Uses TypeScript compiler API for syntax validation\n - Validates that code extends BubbleFlow and has handle method\n - Parses bubble instantiations using AST analysis\n - Maps bubble class names to registered bubble types\n \n Use cases:\n - When an AI agent needs to validate user-provided BubbleFlow code\n - When checking code before execution or deployment\n - When providing feedback on BubbleFlow implementation\n - When analyzing bubble usage patterns in code\n "; static readonly alias = "validate-bubbleflow"; private bubbleFactory; constructor(params: BubbleFlowValidationToolParamsInput, context?: BubbleContext); private initializeBubbleFactory; performAction(context?: BubbleContext): Promise<BubbleFlowValidationToolResult>; }
|
|
1615
1615
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1616
1616
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1617
1617
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1721,7 +1721,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1721
1721
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1722
1722
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1723
1723
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1724
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const WebScrapeToolParamsSchema: z.ZodObject<{ url: z.ZodString; format: z.ZodDefault<z.ZodEnum<["markdown"]>>; onlyMainContent: z.ZodDefault<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["wait", "click", "write", "press", "scroll", "executeJavascript"]>; milliseconds: z.ZodOptional<z.ZodNumber>; selector: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; key: z.ZodOptional<z.ZodString>; direction: z.ZodOptional<z.ZodEnum<["up", "down"]>>; script: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }, { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }>, "many">>; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; waitFor: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "markdown"; url: string; onlyMainContent: boolean; waitFor: number; credentials?: Partial<Record<CredentialType, string>> | undefined; headers?: Record<string, string> | undefined; actions?: { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }[] | undefined; }, { url: string; format?: "markdown" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
1724
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const WebScrapeToolParamsSchema: z.ZodObject<{ url: z.ZodString; format: z.ZodDefault<z.ZodEnum<["markdown"]>>; onlyMainContent: z.ZodDefault<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["wait", "click", "write", "press", "scroll", "executeJavascript"]>; milliseconds: z.ZodOptional<z.ZodNumber>; selector: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; key: z.ZodOptional<z.ZodString>; direction: z.ZodOptional<z.ZodEnum<["up", "down"]>>; script: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }, { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }>, "many">>; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; waitFor: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "markdown"; url: string; onlyMainContent: boolean; waitFor: number; credentials?: Partial<Record<CredentialType, string>> | undefined; headers?: Record<string, string> | undefined; actions?: { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }[] | undefined; }, { url: string; format?: "markdown" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; headers?: Record<string, string> | undefined; onlyMainContent?: boolean | undefined; waitFor?: number | undefined; actions?: { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }[] | undefined; }>; declare const WebScrapeToolResultSchema: z.ZodObject<{ content: z.ZodString; title: z.ZodString; url: z.ZodString; format: z.ZodString; success: z.ZodBoolean; error: z.ZodString; metadata: z.ZodOptional<z.ZodObject<{ statusCode: z.ZodOptional<z.ZodNumber>; loadTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { loadTime?: number | undefined; statusCode?: number | undefined; }, { loadTime?: number | undefined; statusCode?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { format: string; title: string; content: string; url: string; error: string; success: boolean; metadata?: { loadTime?: number | undefined; statusCode?: number | undefined; } | undefined; }, { format: string; title: string; content: string; url: string; error: string; success: boolean; metadata?: { loadTime?: number | undefined; statusCode?: number | undefined; } | undefined; }>; type WebScrapeToolParams = z.output<typeof WebScrapeToolParamsSchema>; type WebScrapeToolResult = z.output<typeof WebScrapeToolResultSchema>; type WebScrapeToolParamsInput = z.input<typeof WebScrapeToolParamsSchema>;; export declare class WebScrapeTool extends ToolBubble<WebScrapeToolParams, WebScrapeToolResult> { static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ url: z.ZodString; format: z.ZodDefault<z.ZodEnum<["markdown"]>>; onlyMainContent: z.ZodDefault<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["wait", "click", "write", "press", "scroll", "executeJavascript"]>; milliseconds: z.ZodOptional<z.ZodNumber>; selector: z.ZodOptional<z.ZodString>; text: z.ZodOptional<z.ZodString>; key: z.ZodOptional<z.ZodString>; direction: z.ZodOptional<z.ZodEnum<["up", "down"]>>; script: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }, { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }>, "many">>; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; waitFor: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "markdown"; url: string; onlyMainContent: boolean; waitFor: number; credentials?: Partial<Record<CredentialType, string>> | undefined; headers?: Record<string, string> | undefined; actions?: { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }[] | undefined; }, { url: string; format?: "markdown" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; headers?: Record<string, string> | undefined; onlyMainContent?: boolean | undefined; waitFor?: number | undefined; actions?: { type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript"; text?: string | undefined; script?: string | undefined; key?: string | undefined; milliseconds?: number | undefined; selector?: string | undefined; direction?: "up" | "down" | undefined; }[] | undefined; }>; static readonly resultSchema: z.ZodObject<{ content: z.ZodString; title: z.ZodString; url: z.ZodString; format: z.ZodString; success: z.ZodBoolean; error: z.ZodString; metadata: z.ZodOptional<z.ZodObject<{ statusCode: z.ZodOptional<z.ZodNumber>; loadTime: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { loadTime?: number | undefined; statusCode?: number | undefined; }, { loadTime?: number | undefined; statusCode?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { format: string; title: string; content: string; url: string; error: string; success: boolean; metadata?: { loadTime?: number | undefined; statusCode?: number | undefined; } | undefined; }, { format: string; title: string; content: string; url: string; error: string; success: boolean; metadata?: { loadTime?: number | undefined; statusCode?: number | undefined; } | undefined; }>; static readonly shortDescription = "Scrapes content from a single web page using Firecrawl, good to use after web-search-tool to get the full content of a page"; static readonly longDescription = "\n A simple and powerful web scraping tool that extracts content from any web page.\n \n Features:\n - Clean content extraction with main content focus\n - Multiple format support (markdown, html, rawHtml)\n - Fast and reliable using Firecrawl\n - Handles JavaScript-rendered pages\n - Optional browser automation for authentication flows\n - Custom headers support for session-based scraping\n - Requires FIRECRAWL_API_KEY credential\n \n Basic use cases:\n - Extract article content for analysis\n - Scrape product information from e-commerce sites\n - Get clean text from documentation pages\n - Extract data from any public web page\n \n Advanced use cases (with actions):\n - Login and scrape protected content\n - Navigate multi-step authentication flows\n - Interact with dynamic content requiring clicks/scrolls\n - Execute custom JavaScript for complex scenarios\n "; static readonly alias = "scrape"; static readonly type = "tool"; constructor(params?: WebScrapeToolParamsInput, context?: BubbleContext); performAction(): Promise<WebScrapeToolResult>; }
|
|
1725
1725
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1726
1726
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1727
1727
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1776,7 +1776,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1776
1776
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1777
1777
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1778
1778
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1779
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const WebCrawlToolParamsSchema: z.ZodObject<{ url: z.ZodString; format: z.ZodDefault<z.ZodEnum<["markdown"]>>; onlyMainContent: z.ZodDefault<z.ZodBoolean>; maxPages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; crawlDepth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; includePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; waitFor: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "markdown"; url: string; onlyMainContent: boolean; waitFor: number; credentials?: Partial<Record<CredentialType, string>> | undefined; maxPages?: number | undefined; crawlDepth?: number | undefined; includePaths?: string[] | undefined; excludePaths?: string[] | undefined; }, { url: string; format?: "markdown" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; onlyMainContent?: boolean | undefined; maxPages?: number | undefined; crawlDepth?: number | undefined; includePaths?: string[] | undefined; excludePaths?: string[] | undefined; waitFor?: number | undefined; }>; declare const WebCrawlToolResultSchema: z.ZodObject<{ url: z.ZodString; success: z.ZodBoolean; error: z.ZodString; pages: z.ZodArray<z.ZodObject<{ url: z.ZodString; title: z.ZodOptional<z.ZodString>; content: z.ZodString; depth: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { content: string; url: string; title?: string | undefined; depth?: number | undefined; }, { content: string; url: string; title?: string | undefined; depth?: number | undefined; }>, "many">; totalPages: z.ZodNumber; metadata: z.ZodOptional<z.ZodObject<{ loadTime: z.ZodOptional<z.ZodNumber>; crawlDepth: z.ZodOptional<z.ZodNumber>; maxPagesReached: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; }, { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, {
|
|
1779
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const WebCrawlToolParamsSchema: z.ZodObject<{ url: z.ZodString; format: z.ZodDefault<z.ZodEnum<["markdown"]>>; onlyMainContent: z.ZodDefault<z.ZodBoolean>; maxPages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; crawlDepth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; includePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; waitFor: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "markdown"; url: string; onlyMainContent: boolean; waitFor: number; credentials?: Partial<Record<CredentialType, string>> | undefined; maxPages?: number | undefined; crawlDepth?: number | undefined; includePaths?: string[] | undefined; excludePaths?: string[] | undefined; }, { url: string; format?: "markdown" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; onlyMainContent?: boolean | undefined; maxPages?: number | undefined; crawlDepth?: number | undefined; includePaths?: string[] | undefined; excludePaths?: string[] | undefined; waitFor?: number | undefined; }>; declare const WebCrawlToolResultSchema: z.ZodObject<{ url: z.ZodString; success: z.ZodBoolean; error: z.ZodString; pages: z.ZodArray<z.ZodObject<{ url: z.ZodString; title: z.ZodOptional<z.ZodString>; content: z.ZodString; depth: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { content: string; url: string; title?: string | undefined; depth?: number | undefined; }, { content: string; url: string; title?: string | undefined; depth?: number | undefined; }>, "many">; totalPages: z.ZodNumber; metadata: z.ZodOptional<z.ZodObject<{ loadTime: z.ZodOptional<z.ZodNumber>; crawlDepth: z.ZodOptional<z.ZodNumber>; maxPagesReached: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; }, { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { url: string; error: string; success: boolean; pages: { content: string; url: string; title?: string | undefined; depth?: number | undefined; }[]; totalPages: number; metadata?: { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; } | undefined; }, { url: string; error: string; success: boolean; pages: { content: string; url: string; title?: string | undefined; depth?: number | undefined; }[]; totalPages: number; metadata?: { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; } | undefined; }>; type WebCrawlToolParams = z.input<typeof WebCrawlToolParamsSchema>;; type WebCrawlToolResult = z.output<typeof WebCrawlToolResultSchema>; type WebCrawlToolParamsInput = z.input<typeof WebCrawlToolParamsSchema>;; export declare class WebCrawlTool extends ToolBubble<WebCrawlToolParams, WebCrawlToolResult> { static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ url: z.ZodString; format: z.ZodDefault<z.ZodEnum<["markdown"]>>; onlyMainContent: z.ZodDefault<z.ZodBoolean>; maxPages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; crawlDepth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; includePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; waitFor: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "markdown"; url: string; onlyMainContent: boolean; waitFor: number; credentials?: Partial<Record<CredentialType, string>> | undefined; maxPages?: number | undefined; crawlDepth?: number | undefined; includePaths?: string[] | undefined; excludePaths?: string[] | undefined; }, { url: string; format?: "markdown" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; onlyMainContent?: boolean | undefined; maxPages?: number | undefined; crawlDepth?: number | undefined; includePaths?: string[] | undefined; excludePaths?: string[] | undefined; waitFor?: number | undefined; }>; static readonly resultSchema: z.ZodObject<{ url: z.ZodString; success: z.ZodBoolean; error: z.ZodString; pages: z.ZodArray<z.ZodObject<{ url: z.ZodString; title: z.ZodOptional<z.ZodString>; content: z.ZodString; depth: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { content: string; url: string; title?: string | undefined; depth?: number | undefined; }, { content: string; url: string; title?: string | undefined; depth?: number | undefined; }>, "many">; totalPages: z.ZodNumber; metadata: z.ZodOptional<z.ZodObject<{ loadTime: z.ZodOptional<z.ZodNumber>; crawlDepth: z.ZodOptional<z.ZodNumber>; maxPagesReached: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; }, { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { url: string; error: string; success: boolean; pages: { content: string; url: string; title?: string | undefined; depth?: number | undefined; }[]; totalPages: number; metadata?: { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; } | undefined; }, { url: string; error: string; success: boolean; pages: { content: string; url: string; title?: string | undefined; depth?: number | undefined; }[]; totalPages: number; metadata?: { crawlDepth?: number | undefined; loadTime?: number | undefined; maxPagesReached?: boolean | undefined; } | undefined; }>; static readonly shortDescription = "Multi-page web crawling tool for exploring entire websites and subdomains."; static readonly longDescription = "\n A powerful web crawling tool that can systematically explore websites and extract content from multiple pages.\n \n \uD83D\uDD77\uFE0F CRAWL Features:\n - Recursively crawl websites and subdomains\n - Configurable crawl depth and page limits (up to 100 pages)\n - URL pattern filtering (include/exclude paths)\n - Multiple format support (markdown, html, links, rawHtml)\n - Main content focus filtering\n - Discover and extract content from entire sites\n \n Technical Features:\n - Handles JavaScript-rendered pages and dynamic content\n - Robust error handling and retry mechanisms\n - Configurable wait times for dynamic content\n - Requires FIRECRAWL_API_KEY credential\n \n Use Cases:\n - Site mapping and competitive analysis\n - Documentation aggregation across multiple pages \n - Content analysis and research across domains\n - SEO analysis and site structure discovery\n - Building comprehensive datasets from websites\n "; static readonly alias = "crawl"; static readonly type = "tool"; constructor(params?: WebCrawlToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<WebCrawlToolResult>; private executeCrawl; }
|
|
1780
1780
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1781
1781
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1782
1782
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1886,7 +1886,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1886
1886
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1887
1887
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1888
1888
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1889
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const ResearchAgentToolParamsSchema: z.ZodObject<{ task: z.ZodString; expectedResultSchema: z.ZodString; model: z.ZodOptional<z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>>; maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { maxIterations: number; task: string; expectedResultSchema: string;
|
|
1889
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const ResearchAgentToolParamsSchema: z.ZodObject<{ task: z.ZodString; expectedResultSchema: z.ZodString; model: z.ZodOptional<z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>>; maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { maxIterations: number; task: string; expectedResultSchema: string; model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; maxTokens?: number | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { task: string; expectedResultSchema: string; model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; maxTokens?: number | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; maxIterations?: number | undefined; }>; declare const ResearchAgentToolResultSchema: z.ZodObject<{ result: z.ZodAny; summary: z.ZodString; sourcesUsed: z.ZodArray<z.ZodString, "many">; iterationsUsed: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; summary: string; sourcesUsed: string[]; iterationsUsed: number; result?: any; }, { error: string; success: boolean; summary: string; sourcesUsed: string[]; iterationsUsed: number; result?: any; }>; type ResearchAgentToolParams = z.output<typeof ResearchAgentToolParamsSchema>; type ResearchAgentToolResult = z.output<typeof ResearchAgentToolResultSchema>; type ResearchAgentToolParamsInput = z.input<typeof ResearchAgentToolParamsSchema>;; export declare class ResearchAgentTool extends ToolBubble<ResearchAgentToolParams, ResearchAgentToolResult> { static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ task: z.ZodString; expectedResultSchema: z.ZodString; model: z.ZodOptional<z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929"]>>>; maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { maxIterations: number; task: string; expectedResultSchema: string; model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; maxTokens?: number | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { task: string; expectedResultSchema: string; model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined; maxTokens?: number | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; maxIterations?: number | undefined; }>; static readonly resultSchema: z.ZodObject<{ result: z.ZodAny; summary: z.ZodString; sourcesUsed: z.ZodArray<z.ZodString, "many">; iterationsUsed: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; summary: string; sourcesUsed: string[]; iterationsUsed: number; result?: any; }, { error: string; success: boolean; summary: string; sourcesUsed: string[]; iterationsUsed: number; result?: any; }>; static readonly shortDescription = "AI-powered research agent that searches and scrapes the internet to gather structured information"; static readonly longDescription = "\n A sophisticated research agent that strategically combines web search and selective web scraping to gather and structure information from the internet.\n \n Features:\n - Intelligent web search using Firecrawl's search API to find relevant sources\n - Strategic web scraping - for detailed content from specific high-value pages\n - Multi-page web crawling - for comprehensive coverage across entire websites\n - AI-powered analysis to synthesize information into the requested JSON structure\n - Up to 100 iterations for thorough research and data gathering\n - Structured result formatting based on provided JSON schema\n - Comprehensive source tracking and research summary\n \n Research Strategy:\n - Prioritizes efficient web search to gather comprehensive information\n - Uses scraping strategically for detailed content from specific pages\n - Uses crawling for comprehensive coverage across multiple related pages\n - Only uses scraping/crawling when search results lack sufficient detail\n - Focuses on quality over quantity in content extraction\n \n Use cases:\n - Market research with structured competitor analysis\n - Academic research gathering from multiple sources \n - Product research with feature comparisons\n - News and trend analysis with categorized findings\n - Technical research requiring documentation synthesis\n - Any research task requiring web data in a specific format\n \n The agent starts with systematic web searches, then strategically uses scraping for specific pages or crawling for comprehensive site coverage when additional detail is needed. It provides a summary of the research conducted and lists all sources used.\n "; static readonly alias = "research"; static readonly type = "tool"; constructor(params?: ResearchAgentToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<ResearchAgentToolResult>; private buildResearchPrompt; private buildSystemPrompt; private extractSourcesFromToolCalls; private generateResearchSummary; }
|
|
1890
1890
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1891
1891
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1892
1892
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
@@ -1941,7 +1941,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
|
|
|
1941
1941
|
export interface BubbleOperationResult { success: boolean; error: string; }
|
|
1942
1942
|
export type BubbleFlowOperationResult = unknown; export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
1943
1943
|
export interface BubbleContext { logger?: BubbleLogger; variableId?: number; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1944
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const RedditPostSchema: z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }, { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }>; declare const RedditScrapeToolParamsSchema: z.ZodObject<{ subreddit: z.ZodString; limit: z.ZodDefault<z.ZodNumber>; sort: z.ZodDefault<z.ZodEnum<["hot", "new", "top", "rising"]>>; timeFilter: z.ZodOptional<z.ZodEnum<["hour", "day", "week", "month", "year", "all"]>>; filterToday: z.ZodDefault<z.ZodBoolean>; includeStickied: z.ZodDefault<z.ZodBoolean>; minScore: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { sort: "hot" | "new" | "top" | "rising"; limit: number; subreddit: string; filterToday: boolean; includeStickied: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; timeFilter?: "all" | "hour" | "day" | "week" | "month" | "year" | undefined; minScore?: number | undefined; }, { subreddit: string; sort?: "hot" | "new" | "top" | "rising" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; timeFilter?: "all" | "hour" | "day" | "week" | "month" | "year" | undefined; filterToday?: boolean | undefined; includeStickied?: boolean | undefined; minScore?: number | undefined; }>; declare const RedditScrapeToolResultSchema: z.ZodObject<{ posts: z.ZodArray<z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }, { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }>, "many">; metadata: z.ZodObject<{ subreddit: z.ZodString; requestedLimit: z.ZodNumber; actualCount: z.ZodNumber; filteredCount: z.ZodNumber; sort: z.ZodString; timeFilter: z.ZodOptional<z.ZodString>; scrapedAt: z.ZodString; apiEndpoint: z.ZodString; }, "strip", z.ZodTypeAny, { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }, { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata: { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }[]; }, { success: boolean; error: string; metadata: { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }[]; }>; type RedditScrapeToolParams = z.output<typeof RedditScrapeToolParamsSchema>; type RedditScrapeToolResult = z.output<typeof RedditScrapeToolResultSchema>; type RedditScrapeToolParamsInput = z.input<typeof RedditScrapeToolParamsSchema>;; type RedditPost = z.output<typeof RedditPostSchema>; export declare class RedditScrapeTool extends ToolBubble<RedditScrapeToolParams, RedditScrapeToolResult> { static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ subreddit: z.ZodString; limit: z.ZodDefault<z.ZodNumber>; sort: z.ZodDefault<z.ZodEnum<["hot", "new", "top", "rising"]>>; timeFilter: z.ZodOptional<z.ZodEnum<["hour", "day", "week", "month", "year", "all"]>>; filterToday: z.ZodDefault<z.ZodBoolean>; includeStickied: z.ZodDefault<z.ZodBoolean>; minScore: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { sort: "hot" | "new" | "top" | "rising"; limit: number; subreddit: string; filterToday: boolean; includeStickied: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; timeFilter?: "all" | "hour" | "day" | "week" | "month" | "year" | undefined; minScore?: number | undefined; }, { subreddit: string; sort?: "hot" | "new" | "top" | "rising" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; timeFilter?: "all" | "hour" | "day" | "week" | "month" | "year" | undefined; filterToday?: boolean | undefined; includeStickied?: boolean | undefined; minScore?: number | undefined; }>; static readonly resultSchema: z.ZodObject<{ posts: z.ZodArray<z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }, { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }>, "many">; metadata: z.ZodObject<{ subreddit: z.ZodString; requestedLimit: z.ZodNumber; actualCount: z.ZodNumber; filteredCount: z.ZodNumber; sort: z.ZodString; timeFilter: z.ZodOptional<z.ZodString>; scrapedAt: z.ZodString; apiEndpoint: z.ZodString; }, "strip", z.ZodTypeAny, { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }, { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata: { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }[]; }, { success: boolean; error: string; metadata: { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; subreddit: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }[]; }>; static readonly shortDescription = "Scrapes posts from any Reddit subreddit with flexible filtering and sorting options"; static readonly longDescription = "\n A specialized tool for scraping Reddit posts from any subreddit with comprehensive filtering and sorting capabilities.\n \n \uD83D\uDD25 Core Features:\n - Scrape posts from any public subreddit\n - Multiple sorting options (hot, new, top, rising)\n - Flexible post limits (1-100 posts)\n - Time-based filtering for top posts\n - Today-only filtering option\n - Score-based filtering\n - Stickied post inclusion/exclusion\n \n \uD83D\uDCCA Post Data Extracted:\n - Title, author, and content\n - Upvote scores and comment counts\n - Creation timestamps and permalinks\n - Post types (text vs link posts)\n - External URLs and domains\n - Thumbnails and flairs\n - Comprehensive metadata\n \n \uD83C\uDFAF Use Cases:\n - Monitor specific subreddits for trends\n - Gather posts for content analysis\n - Track community engagement metrics\n - Feed Reddit data into other workflows\n - Research subreddit activity patterns\n - Content aggregation and curation\n \n \u26A1 Technical Features:\n - Uses Reddit's official JSON API\n - No authentication required for public posts\n - Respects Reddit's rate limiting\n - Handles large subreddits efficiently\n - Robust error handling and validation\n - Clean, structured data output\n \n Perfect for integration with AI agents, data analysis workflows, and content monitoring systems.\n "; static readonly alias = "reddit"; static readonly type = "tool"; constructor(params?: RedditScrapeToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<RedditScrapeToolResult>; private buildRedditApiUrl; private getRandomUserAgent; private fetchRedditData; private parseRedditResponse; private applyFilters; }
|
|
1944
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; }; declare const RedditPostSchema: z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }>; declare const RedditScrapeToolParamsSchema: z.ZodObject<{ subreddit: z.ZodString; limit: z.ZodDefault<z.ZodNumber>; sort: z.ZodDefault<z.ZodEnum<["hot", "new", "top", "rising"]>>; timeFilter: z.ZodOptional<z.ZodEnum<["hour", "day", "week", "month", "year", "all"]>>; filterToday: z.ZodDefault<z.ZodBoolean>; includeStickied: z.ZodDefault<z.ZodBoolean>; minScore: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { sort: "hot" | "new" | "top" | "rising"; limit: number; subreddit: string; filterToday: boolean; includeStickied: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; timeFilter?: "all" | "hour" | "day" | "week" | "month" | "year" | undefined; minScore?: number | undefined; }, { subreddit: string; sort?: "hot" | "new" | "top" | "rising" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; timeFilter?: "all" | "hour" | "day" | "week" | "month" | "year" | undefined; filterToday?: boolean | undefined; includeStickied?: boolean | undefined; minScore?: number | undefined; }>; declare const RedditScrapeToolResultSchema: z.ZodObject<{ posts: z.ZodArray<z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }>, "many">; metadata: z.ZodObject<{ subreddit: z.ZodString; requestedLimit: z.ZodNumber; actualCount: z.ZodNumber; filteredCount: z.ZodNumber; sort: z.ZodString; timeFilter: z.ZodOptional<z.ZodString>; scrapedAt: z.ZodString; apiEndpoint: z.ZodString; }, "strip", z.ZodTypeAny, { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }, { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata: { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }[]; }, { success: boolean; error: string; metadata: { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }[]; }>; type RedditScrapeToolParams = z.output<typeof RedditScrapeToolParamsSchema>; type RedditScrapeToolResult = z.output<typeof RedditScrapeToolResultSchema>; type RedditScrapeToolParamsInput = z.input<typeof RedditScrapeToolParamsSchema>;; type RedditPost = z.output<typeof RedditPostSchema>; export declare class RedditScrapeTool extends ToolBubble<RedditScrapeToolParams, RedditScrapeToolResult> { static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ subreddit: z.ZodString; limit: z.ZodDefault<z.ZodNumber>; sort: z.ZodDefault<z.ZodEnum<["hot", "new", "top", "rising"]>>; timeFilter: z.ZodOptional<z.ZodEnum<["hour", "day", "week", "month", "year", "all"]>>; filterToday: z.ZodDefault<z.ZodBoolean>; includeStickied: z.ZodDefault<z.ZodBoolean>; minScore: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { sort: "hot" | "new" | "top" | "rising"; limit: number; subreddit: string; filterToday: boolean; includeStickied: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; timeFilter?: "all" | "hour" | "day" | "week" | "month" | "year" | undefined; minScore?: number | undefined; }, { subreddit: string; sort?: "hot" | "new" | "top" | "rising" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; timeFilter?: "all" | "hour" | "day" | "week" | "month" | "year" | undefined; filterToday?: boolean | undefined; includeStickied?: boolean | undefined; minScore?: number | undefined; }>; static readonly resultSchema: z.ZodObject<{ posts: z.ZodArray<z.ZodObject<{ title: z.ZodString; url: z.ZodString; author: z.ZodString; score: z.ZodNumber; numComments: z.ZodNumber; createdUtc: z.ZodNumber; postUrl: z.ZodString; selftext: z.ZodString; subreddit: z.ZodString; postHint: z.ZodOptional<z.ZodNullable<z.ZodString>>; isSelf: z.ZodBoolean; thumbnail: z.ZodOptional<z.ZodString>; domain: z.ZodOptional<z.ZodString>; flair: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }, { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }>, "many">; metadata: z.ZodObject<{ subreddit: z.ZodString; requestedLimit: z.ZodNumber; actualCount: z.ZodNumber; filteredCount: z.ZodNumber; sort: z.ZodString; timeFilter: z.ZodOptional<z.ZodString>; scrapedAt: z.ZodString; apiEndpoint: z.ZodString; }, "strip", z.ZodTypeAny, { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }, { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; error: string; metadata: { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }[]; }, { success: boolean; error: string; metadata: { sort: string; subreddit: string; requestedLimit: number; actualCount: number; filteredCount: number; scrapedAt: string; apiEndpoint: string; timeFilter?: string | undefined; }; posts: { title: string; url: string; author: string; score: number; numComments: number; createdUtc: number; postUrl: string; selftext: string; subreddit: string; isSelf: boolean; domain?: string | undefined; postHint?: string | null | undefined; thumbnail?: string | undefined; flair?: string | undefined; }[]; }>; static readonly shortDescription = "Scrapes posts from any Reddit subreddit with flexible filtering and sorting options"; static readonly longDescription = "\n A specialized tool for scraping Reddit posts from any subreddit with comprehensive filtering and sorting capabilities.\n \n \uD83D\uDD25 Core Features:\n - Scrape posts from any public subreddit\n - Multiple sorting options (hot, new, top, rising)\n - Flexible post limits (1-100 posts)\n - Time-based filtering for top posts\n - Today-only filtering option\n - Score-based filtering\n - Stickied post inclusion/exclusion\n \n \uD83D\uDCCA Post Data Extracted:\n - Title, author, and content\n - Upvote scores and comment counts\n - Creation timestamps and permalinks\n - Post types (text vs link posts)\n - External URLs and domains\n - Thumbnails and flairs\n - Comprehensive metadata\n \n \uD83C\uDFAF Use Cases:\n - Monitor specific subreddits for trends\n - Gather posts for content analysis\n - Track community engagement metrics\n - Feed Reddit data into other workflows\n - Research subreddit activity patterns\n - Content aggregation and curation\n \n \u26A1 Technical Features:\n - Uses Reddit's official JSON API\n - No authentication required for public posts\n - Respects Reddit's rate limiting\n - Handles large subreddits efficiently\n - Robust error handling and validation\n - Clean, structured data output\n \n Perfect for integration with AI agents, data analysis workflows, and content monitoring systems.\n "; static readonly alias = "reddit"; static readonly type = "tool"; constructor(params?: RedditScrapeToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<RedditScrapeToolResult>; private buildRedditApiUrl; private getRandomUserAgent; private fetchRedditData; private parseRedditResponse; private applyFilters; }
|
|
1945
1945
|
export type { RedditPost, RedditScrapeToolParams, RedditScrapeToolResult }; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1946
1946
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1947
1947
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|