@bubblelab/bubble-core 0.1.234 → 0.1.236
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 +8 -8
- package/dist/bubbles/service-bubble/capability-pipeline.js +1 -1
- package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
- package/dist/bubbles/service-bubble/gmail.d.ts +67 -0
- package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/gmail.js +53 -0
- package/dist/bubbles/service-bubble/gmail.js.map +1 -1
- package/dist/bubbles/service-bubble/http.d.ts +23 -0
- package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/http.js +87 -12
- package/dist/bubbles/service-bubble/http.js.map +1 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +89 -0
- package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.js +38 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.js.map +1 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +87 -0
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.js +53 -2
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.js.map +1 -1
- package/dist/bubbles.json +240 -9
- package/package.json +2 -2
package/dist/bubble-bundle.d.ts
CHANGED
|
@@ -449,7 +449,7 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
|
|
|
449
449
|
export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
|
|
450
450
|
export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
|
|
451
451
|
export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
|
|
452
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; 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>; authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api-key", "api-key-header", "custom"]>>; authHeader: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; timeout: number; method: "POST" | "DELETE" | "GET" | "PUT" | "PATCH" | "HEAD" | "OPTIONS"; followRedirects: boolean; authType: "none" | "custom" | "bearer" | "basic" | "api-key" | "api-key-header"; credentials?: Partial<Record<CredentialType, string>> | undefined; headers?: Record<string, string> | undefined; body?: string | Record<string, unknown> | undefined; authHeader?: string | undefined; }, { url: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; headers?: Record<string, string> | undefined; method?: "POST" | "DELETE" | "GET" | "PUT" | "PATCH" | "HEAD" | "OPTIONS" | undefined; body?: string | Record<string, unknown> | undefined; followRedirects?: boolean | undefined; authType?: "none" | "custom" | "bearer" | "basic" | "api-key" | "api-key-header" | undefined; authHeader?: string | 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; error: string; success: boolean; headers: Record<string, string>; size: number; body: string; statusText: string; responseTime: number; json?: unknown; }, { status: number; error: string; success: boolean; headers: Record<string, string>; size: number; body: 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: "apikey"; 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>; authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api-key", "api-key-header", "custom"]>>; authHeader: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; timeout: number; method: "POST" | "DELETE" | "GET" | "PUT" | "PATCH" | "HEAD" | "OPTIONS"; followRedirects: boolean; authType: "none" | "custom" | "bearer" | "basic" | "api-key" | "api-key-header"; credentials?: Partial<Record<CredentialType, string>> | undefined; headers?: Record<string, string> | undefined; body?: string | Record<string, unknown> | undefined; authHeader?: string | undefined; }, { url: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; headers?: Record<string, string> | undefined; method?: "POST" | "DELETE" | "GET" | "PUT" | "PATCH" | "HEAD" | "OPTIONS" | undefined; body?: string | Record<string, unknown> | undefined; followRedirects?: boolean | undefined; authType?: "none" | "custom" | "bearer" | "basic" | "api-key" | "api-key-header" | undefined; authHeader?: string | 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; error: string; success: boolean; headers: Record<string, string>; size: number; body: string; statusText: string; responseTime: number; json?: unknown; }, { status: number; error: string; success: boolean; headers: Record<string, string>; size: number; body: string; statusText: string; responseTime: number; json?: unknown; }>; static readonly shortDescription = "Makes HTTP requests to external APIs and services"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "fetch"; constructor(params?: HttpParamsInput, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<HttpResult>; }
|
|
452
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; 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>; authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api-key", "api-key-header", "custom"]>>; authHeader: z.ZodOptional<z.ZodString>; responseType: z.ZodDefault<z.ZodEnum<["auto", "text", "binary"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; timeout: number; method: "POST" | "DELETE" | "GET" | "PUT" | "PATCH" | "HEAD" | "OPTIONS"; followRedirects: boolean; authType: "none" | "custom" | "bearer" | "basic" | "api-key" | "api-key-header"; responseType: "binary" | "auto" | "text"; credentials?: Partial<Record<CredentialType, string>> | undefined; headers?: Record<string, string> | undefined; body?: string | Record<string, unknown> | undefined; authHeader?: string | undefined; }, { url: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; headers?: Record<string, string> | undefined; method?: "POST" | "DELETE" | "GET" | "PUT" | "PATCH" | "HEAD" | "OPTIONS" | undefined; body?: string | Record<string, unknown> | undefined; followRedirects?: boolean | undefined; authType?: "none" | "custom" | "bearer" | "basic" | "api-key" | "api-key-header" | undefined; authHeader?: string | undefined; responseType?: "binary" | "auto" | "text" | 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; isBase64: z.ZodBoolean; contentType: z.ZodString; json: z.ZodOptional<z.ZodUnknown>; success: z.ZodBoolean; error: z.ZodString; responseTime: z.ZodNumber; size: z.ZodNumber; }, "strip", z.ZodTypeAny, { status: number; error: string; success: boolean; isBase64: boolean; headers: Record<string, string>; size: number; body: string; contentType: string; statusText: string; responseTime: number; json?: unknown; }, { status: number; error: string; success: boolean; isBase64: boolean; headers: Record<string, string>; size: number; body: string; contentType: 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: "apikey"; 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>; authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api-key", "api-key-header", "custom"]>>; authHeader: z.ZodOptional<z.ZodString>; responseType: z.ZodDefault<z.ZodEnum<["auto", "text", "binary"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; timeout: number; method: "POST" | "DELETE" | "GET" | "PUT" | "PATCH" | "HEAD" | "OPTIONS"; followRedirects: boolean; authType: "none" | "custom" | "bearer" | "basic" | "api-key" | "api-key-header"; responseType: "binary" | "auto" | "text"; credentials?: Partial<Record<CredentialType, string>> | undefined; headers?: Record<string, string> | undefined; body?: string | Record<string, unknown> | undefined; authHeader?: string | undefined; }, { url: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; headers?: Record<string, string> | undefined; method?: "POST" | "DELETE" | "GET" | "PUT" | "PATCH" | "HEAD" | "OPTIONS" | undefined; body?: string | Record<string, unknown> | undefined; followRedirects?: boolean | undefined; authType?: "none" | "custom" | "bearer" | "basic" | "api-key" | "api-key-header" | undefined; authHeader?: string | undefined; responseType?: "binary" | "auto" | "text" | undefined; }>; static readonly resultSchema: z.ZodObject<{ status: z.ZodNumber; statusText: z.ZodString; headers: z.ZodRecord<z.ZodString, z.ZodString>; body: z.ZodString; isBase64: z.ZodBoolean; contentType: z.ZodString; json: z.ZodOptional<z.ZodUnknown>; success: z.ZodBoolean; error: z.ZodString; responseTime: z.ZodNumber; size: z.ZodNumber; }, "strip", z.ZodTypeAny, { status: number; error: string; success: boolean; isBase64: boolean; headers: Record<string, string>; size: number; body: string; contentType: string; statusText: string; responseTime: number; json?: unknown; }, { status: number; error: string; success: boolean; isBase64: boolean; headers: Record<string, string>; size: number; body: string; contentType: string; statusText: string; responseTime: number; json?: unknown; }>; static readonly shortDescription = "Makes HTTP requests to external APIs and services"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "fetch"; constructor(params?: HttpParamsInput, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<HttpResult>; private isTextMimeType; }
|
|
453
453
|
export {}; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
454
454
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
455
455
|
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; }); }
|
|
@@ -526,8 +526,8 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
|
|
|
526
526
|
export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
|
|
527
527
|
export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
|
|
528
528
|
export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
|
|
529
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; 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>; include_details: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; include_details: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; include_details?: boolean | 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: "minimal" | "metadata" | "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?: "minimal" | "metadata" | "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; page_token?: string | undefined; include_spam_trash?: boolean | 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; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_threads"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_labels"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_labels"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; name: z.ZodString; label_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>>; message_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["show", "hide"]>>>; background_color: z.ZodOptional<z.ZodString>; text_color: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_label"; label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide"; message_list_visibility: "show" | "hide"; credentials?: Partial<Record<CredentialType, string>> | undefined; background_color?: string | undefined; text_color?: string | undefined; }, { name: string; operation: "create_label"; credentials?: Partial<Record<CredentialType, string>> | undefined; label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; message_list_visibility?: "show" | "hide" | undefined; background_color?: string | undefined; text_color?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; message_id: z.ZodString; add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_message_labels"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_message_labels"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; thread_id: z.ZodString; add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: 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, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; 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, { error: string; success: boolean; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "delete_email"; deleted_message_id?: string | undefined; }, { error: string; success: boolean; 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, { error: string; success: boolean; operation: "trash_email"; trashed_message_id?: string | undefined; }, { error: string; success: boolean; 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; success: z.ZodBoolean; labels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodEnum<["system", "user"]>>; messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>; labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; success: z.ZodBoolean; label: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodEnum<["system", "user"]>>; messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>; labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; success: z.ZodBoolean; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | 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
|
|
530
|
-
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>; include_details: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; include_details: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; include_details?: boolean | 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: "minimal" | "metadata" | "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?: "minimal" | "metadata" | "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; page_token?: string | undefined; include_spam_trash?: boolean | 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; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_threads"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_labels"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_labels"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; name: z.ZodString; label_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>>; message_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["show", "hide"]>>>; background_color: z.ZodOptional<z.ZodString>; text_color: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_label"; label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide"; message_list_visibility: "show" | "hide"; credentials?: Partial<Record<CredentialType, string>> | undefined; background_color?: string | undefined; text_color?: string | undefined; }, { name: string; operation: "create_label"; credentials?: Partial<Record<CredentialType, string>> | undefined; label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; message_list_visibility?: "show" | "hide" | undefined; background_color?: string | undefined; text_color?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; message_id: z.ZodString; add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_message_labels"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_message_labels"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; thread_id: z.ZodString; add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: 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, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; 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, { error: string; success: boolean; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "delete_email"; deleted_message_id?: string | undefined; }, { error: string; success: boolean; 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, { error: string; success: boolean; operation: "trash_email"; trashed_message_id?: string | undefined; }, { error: string; success: boolean; 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; success: z.ZodBoolean; labels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodEnum<["system", "user"]>>; messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>; labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; success: z.ZodBoolean; label: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodEnum<["system", "user"]>>; messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>; labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; success: z.ZodBoolean; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | 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; private extractEmailTextContent; private decodeBase64; private cleanEmailContent; private cleanBodyPart; private filterEssentialHeaders; private cleanPayloadData; private processAndCleanMessage; 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; private listLabels; private createLabel; private modifyMessageLabels; private modifyThreadLabels; protected chooseCredential(): string | undefined; }
|
|
529
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; 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>; include_details: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; include_details: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; include_details?: boolean | 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: "minimal" | "metadata" | "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?: "minimal" | "metadata" | "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; page_token?: string | undefined; include_spam_trash?: boolean | 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; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_threads"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_labels"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_labels"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; name: z.ZodString; label_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>>; message_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["show", "hide"]>>>; background_color: z.ZodOptional<z.ZodString>; text_color: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_label"; label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide"; message_list_visibility: "show" | "hide"; credentials?: Partial<Record<CredentialType, string>> | undefined; background_color?: string | undefined; text_color?: string | undefined; }, { name: string; operation: "create_label"; credentials?: Partial<Record<CredentialType, string>> | undefined; label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; message_list_visibility?: "show" | "hide" | undefined; background_color?: string | undefined; text_color?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; message_id: z.ZodString; add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_message_labels"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_message_labels"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; thread_id: z.ZodString; add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_attachment">; message_id: z.ZodString; attachment_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_attachment"; message_id: string; attachment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_attachment"; message_id: string; attachment_id: string; credentials?: Partial<Record<CredentialType, 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, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; 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, { error: string; success: boolean; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "delete_email"; deleted_message_id?: string | undefined; }, { error: string; success: boolean; 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, { error: string; success: boolean; operation: "trash_email"; trashed_message_id?: string | undefined; }, { error: string; success: boolean; 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; success: z.ZodBoolean; labels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodEnum<["system", "user"]>>; messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>; labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; success: z.ZodBoolean; label: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodEnum<["system", "user"]>>; messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>; labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; success: z.ZodBoolean; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_attachment">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_attachment"; data?: string | undefined; size?: number | undefined; }, { error: string; success: boolean; operation: "get_attachment"; data?: string | undefined; size?: number | 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
|
|
530
|
+
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>; include_details: z.ZodDefault<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_emails"; max_results: number; include_spam_trash: boolean; include_details: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_emails"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; include_details?: boolean | 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: "minimal" | "metadata" | "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?: "minimal" | "metadata" | "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; page_token?: string | undefined; include_spam_trash?: boolean | 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; page_token?: string | undefined; label_ids?: string[] | undefined; }, { operation: "list_threads"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; max_results?: number | undefined; page_token?: string | undefined; label_ids?: string[] | undefined; include_spam_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_labels"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_labels"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; name: z.ZodString; label_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>>; message_list_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["show", "hide"]>>>; background_color: z.ZodOptional<z.ZodString>; text_color: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_label"; label_list_visibility: "labelShow" | "labelShowIfUnread" | "labelHide"; message_list_visibility: "show" | "hide"; credentials?: Partial<Record<CredentialType, string>> | undefined; background_color?: string | undefined; text_color?: string | undefined; }, { name: string; operation: "create_label"; credentials?: Partial<Record<CredentialType, string>> | undefined; label_list_visibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; message_list_visibility?: "show" | "hide" | undefined; background_color?: string | undefined; text_color?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; message_id: z.ZodString; add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_message_labels"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_message_labels"; message_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; thread_id: z.ZodString; add_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; remove_label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }, { operation: "modify_thread_labels"; thread_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; add_label_ids?: string[] | undefined; remove_label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_attachment">; message_id: z.ZodString; attachment_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_attachment"; message_id: string; attachment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_attachment"; message_id: string; attachment_id: string; credentials?: Partial<Record<CredentialType, 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, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_email"; message_id?: string | undefined; thread_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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; next_page_token?: string | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "list_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_email"; message?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; result_size_estimate: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; result_size_estimate?: number | undefined; }, { error: string; success: boolean; operation: "search_emails"; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "mark_as_read"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; 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, { error: string; success: boolean; operation: "mark_as_unread"; modified_messages?: string[] | undefined; }, { error: string; success: boolean; 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_draft"; draft?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "send_draft"; message_id?: string | undefined; thread_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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }, { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }; id: string; }[] | undefined; }, { error: string; success: boolean; operation: "list_drafts"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; drafts?: { message: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "delete_email"; deleted_message_id?: string | undefined; }, { error: string; success: boolean; 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, { error: string; success: boolean; operation: "trash_email"; trashed_message_id?: string | undefined; }, { error: string; success: boolean; 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.ZodOptional<z.ZodString>; labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; snippet: z.ZodOptional<z.ZodString>; textContent: 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; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }, { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }, { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }>, "many">>; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }, { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | 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, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_threads"; next_page_token?: string | undefined; result_size_estimate?: number | undefined; threads?: { id: string; messages?: { id: string; raw?: string | undefined; threadId?: string | undefined; labelIds?: string[] | undefined; snippet?: string | undefined; textContent?: string | undefined; historyId?: string | undefined; internalDate?: string | undefined; sizeEstimate?: number | undefined; payload?: { mimeType?: string | undefined; headers?: { value: string; name: string; }[] | undefined; body?: { data?: string | undefined; size?: number | undefined; attachmentId?: string | undefined; } | undefined; parts?: any[] | undefined; } | undefined; }[] | undefined; snippet?: string | undefined; historyId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_labels">; success: z.ZodBoolean; labels: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodEnum<["system", "user"]>>; messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>; labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_labels"; labels?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_label">; success: z.ZodBoolean; label: z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodOptional<z.ZodEnum<["system", "user"]>>; messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>; labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>; }, "strip", z.ZodTypeAny, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }, { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_label"; label?: { name: string; id: string; type?: "user" | "system" | undefined; messageListVisibility?: "show" | "hide" | undefined; labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_message_labels">; success: z.ZodBoolean; message_id: z.ZodOptional<z.ZodString>; label_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }, { error: string; success: boolean; operation: "modify_message_labels"; message_id?: string | undefined; label_ids?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"modify_thread_labels">; success: z.ZodBoolean; thread_id: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }, { error: string; success: boolean; operation: "modify_thread_labels"; thread_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_attachment">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodNumber>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_attachment"; data?: string | undefined; size?: number | undefined; }, { error: string; success: boolean; operation: "get_attachment"; data?: string | undefined; size?: number | 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; private extractEmailTextContent; private decodeBase64; private cleanEmailContent; private cleanBodyPart; private filterEssentialHeaders; private cleanPayloadData; private processAndCleanMessage; 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; private listLabels; private createLabel; private modifyMessageLabels; private modifyThreadLabels; private getAttachment; protected chooseCredential(): string | undefined; }
|
|
531
531
|
export {}; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
532
532
|
export declare abstract class ServiceBubble<TParams extends ServiceBubbleParams = ServiceBubbleParams, TResult extends BubbleOperationResult = BubbleOperationResult> extends BaseBubble<TParams, TResult> { readonly type: "service"; authType?: 'oauth' | 'apikey' | 'none' | 'connection-string'; constructor(params: unknown, context?: BubbleContext, instanceId?: string); abstract testCredential(): Promise<boolean>; protected abstract chooseCredential(): string | undefined; getCredentialMetadata(): Promise<DatabaseMetadata | undefined>; get currentParams(): Omit<TParams, 'credentials'>; setParam<K extends keyof TParams>(paramName: K, paramValue: TParams[K]): void; get currentContext(): BubbleContext | undefined; }
|
|
533
533
|
export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
@@ -1033,9 +1033,9 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
|
|
|
1033
1033
|
export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
|
|
1034
1034
|
export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
|
|
1035
1035
|
export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
|
|
1036
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const HubSpotParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: z.ZodArray<z.ZodObject<{ filters: z.ZodArray<z.ZodObject<{ propertyName: z.ZodString; operator: z.ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: z.ZodOptional<z.ZodString>; highValue: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: z.ZodString; label: z.ZodString; type: z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: z.ZodString; description: z.ZodOptional<z.ZodString>; hasUniqueValue: z.ZodOptional<z.ZodBoolean>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; label: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; groupName: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; object_type: z.ZodEnum<["deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; note_body: z.ZodString; associations: z.ZodArray<z.ZodObject<{ object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; }, "strip", z.ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const HubSpotResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: z.ZodOptional<z.ZodNumber>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; success: z.ZodBoolean; properties: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; success: z.ZodBoolean; associations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; success: z.ZodBoolean; pipelines: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; success: z.ZodBoolean; account: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; export type HubSpotParams = z.output<typeof HubSpotParamsSchema>; export
|
|
1037
|
-
type HubSpotParamsInput = z.input<typeof HubSpotParamsSchema>;;;;; export type HubSpotResult = z.output<typeof HubSpotResultSchema>; export declare class HubSpotBubble<T extends HubSpotParamsInput = HubSpotParamsInput> extends ServiceBubble<T, Extract<HubSpotResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "hubspot"; static readonly authType: "oauth"; static readonly bubbleName = "hubspot"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: import("zod").ZodArray<import("zod").ZodObject<{ filters: import("zod").ZodArray<import("zod").ZodObject<{ propertyName: import("zod").ZodString; operator: import("zod").ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: import("zod").ZodOptional<import("zod").ZodString>; highValue: import("zod").ZodOptional<import("zod").ZodString>; values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; }, "strip", import("zod").ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", import("zod").ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; after: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_create_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: import("zod").ZodArray<import("zod").ZodObject<{ properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_update_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_delete_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: import("zod").ZodArray<import("zod").ZodString, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_properties">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: import("zod").ZodString; label: import("zod").ZodString; type: import("zod").ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: import("zod").ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; hasUniqueValue: import("zod").ZodOptional<import("zod").ZodBoolean>; options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; displayOrder: import("zod").ZodOptional<import("zod").ZodNumber>; hidden: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; label: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; groupName: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: import("zod").ZodOptional<import("zod").ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; displayOrder: import("zod").ZodOptional<import("zod").ZodNumber>; hidden: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_associations">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_association">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_association">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pipelines">; object_type: import("zod").ZodEnum<["deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; note_body: import("zod").ZodString; associations: import("zod").ZodArray<import("zod").ZodObject<{ object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_account_info">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_record">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: import("zod").ZodOptional<import("zod").ZodNumber>; paging: import("zod").ZodOptional<import("zod").ZodObject<{ next: import("zod").ZodOptional<import("zod").ZodObject<{ after: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", import("zod").ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_create_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_update_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_delete_records">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_properties">; success: import("zod").ZodBoolean; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_property">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_associations">; success: import("zod").ZodBoolean; associations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_association">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_association">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pipelines">; success: import("zod").ZodBoolean; pipelines: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; success: import("zod").ZodBoolean; note: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_account_info">; success: import("zod").ZodBoolean; account: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; static readonly shortDescription = "HubSpot CRM integration for contacts, companies, deals, and tickets"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "crm"; private static readonly NOTE_ASSOC_TYPES; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; protected chooseCredential(): string | undefined; private makeHubSpotApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<HubSpotResult, { operation: T['operation']; }>>; private createRecord; private getRecord; private updateRecord; private deleteRecord; private searchRecords; private batchCreateRecords; private batchUpdateRecords; private batchDeleteRecords; private listProperties; private getProperty; private createProperty; private updateProperty; private deleteProperty; private listAssociations; private createAssociation; private removeAssociation; private listPipelines; private createNote; private getAccountInfo; }
|
|
1038
|
-
export declare const HubSpotParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: z.ZodArray<z.ZodObject<{ filters: z.ZodArray<z.ZodObject<{ propertyName: z.ZodString; operator: z.ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: z.ZodOptional<z.ZodString>; highValue: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: z.ZodString; label: z.ZodString; type: z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: z.ZodString; description: z.ZodOptional<z.ZodString>; hasUniqueValue: z.ZodOptional<z.ZodBoolean>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; label: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; groupName: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; object_type: z.ZodEnum<["deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; note_body: z.ZodString; associations: z.ZodArray<z.ZodObject<{ object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; }, "strip", z.ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const HubSpotResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: z.ZodOptional<z.ZodNumber>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; success: z.ZodBoolean; properties: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; success: z.ZodBoolean; associations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; success: z.ZodBoolean; pipelines: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; success: z.ZodBoolean; account: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; export type HubSpotParams = z.output<typeof HubSpotParamsSchema>; export type HubSpotParamsInput = z.input<typeof HubSpotParamsSchema>; export type HubSpotResult = z.output<typeof HubSpotResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
1036
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const HubSpotParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: z.ZodArray<z.ZodObject<{ filters: z.ZodArray<z.ZodObject<{ propertyName: z.ZodString; operator: z.ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: z.ZodOptional<z.ZodString>; highValue: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: z.ZodString; label: z.ZodString; type: z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: z.ZodString; description: z.ZodOptional<z.ZodString>; hasUniqueValue: z.ZodOptional<z.ZodBoolean>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; label: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; groupName: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; object_type: z.ZodEnum<["deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; note_body: z.ZodString; associations: z.ZodArray<z.ZodObject<{ object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; }, "strip", z.ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_owners">; email: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_owners"; limit: number; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "list_owners"; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_owner">; owner_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const HubSpotResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: z.ZodOptional<z.ZodNumber>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; success: z.ZodBoolean; properties: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; success: z.ZodBoolean; associations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; success: z.ZodBoolean; pipelines: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_owners">; success: z.ZodBoolean; owners: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_owner">; success: z.ZodBoolean; owner: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; success: z.ZodBoolean; account: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; export type HubSpotParams = z.output<typeof HubSpotParamsSchema>; export
|
|
1037
|
+
type HubSpotParamsInput = z.input<typeof HubSpotParamsSchema>;;;;; export type HubSpotResult = z.output<typeof HubSpotResultSchema>; export declare class HubSpotBubble<T extends HubSpotParamsInput = HubSpotParamsInput> extends ServiceBubble<T, Extract<HubSpotResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "hubspot"; static readonly authType: "oauth"; static readonly bubbleName = "hubspot"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: import("zod").ZodArray<import("zod").ZodObject<{ filters: import("zod").ZodArray<import("zod").ZodObject<{ propertyName: import("zod").ZodString; operator: import("zod").ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: import("zod").ZodOptional<import("zod").ZodString>; highValue: import("zod").ZodOptional<import("zod").ZodString>; values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; }, "strip", import("zod").ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", import("zod").ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; after: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_create_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: import("zod").ZodArray<import("zod").ZodObject<{ properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_update_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_delete_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: import("zod").ZodArray<import("zod").ZodString, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_properties">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: import("zod").ZodString; label: import("zod").ZodString; type: import("zod").ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: import("zod").ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; hasUniqueValue: import("zod").ZodOptional<import("zod").ZodBoolean>; options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; displayOrder: import("zod").ZodOptional<import("zod").ZodNumber>; hidden: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; label: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; groupName: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: import("zod").ZodOptional<import("zod").ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; displayOrder: import("zod").ZodOptional<import("zod").ZodNumber>; hidden: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_associations">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_association">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_association">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pipelines">; object_type: import("zod").ZodEnum<["deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; note_body: import("zod").ZodString; associations: import("zod").ZodArray<import("zod").ZodObject<{ object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_owners">; email: import("zod").ZodOptional<import("zod").ZodString>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; after: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_owners"; limit: number; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "list_owners"; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_owner">; owner_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_account_info">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_record">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: import("zod").ZodOptional<import("zod").ZodNumber>; paging: import("zod").ZodOptional<import("zod").ZodObject<{ next: import("zod").ZodOptional<import("zod").ZodObject<{ after: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", import("zod").ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_create_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_update_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_delete_records">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_properties">; success: import("zod").ZodBoolean; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_property">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_associations">; success: import("zod").ZodBoolean; associations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_association">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_association">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pipelines">; success: import("zod").ZodBoolean; pipelines: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; success: import("zod").ZodBoolean; note: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_owners">; success: import("zod").ZodBoolean; owners: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; paging: import("zod").ZodOptional<import("zod").ZodObject<{ next: import("zod").ZodOptional<import("zod").ZodObject<{ after: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", import("zod").ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_owner">; success: import("zod").ZodBoolean; owner: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_account_info">; success: import("zod").ZodBoolean; account: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; static readonly shortDescription = "HubSpot CRM integration for contacts, companies, deals, and tickets"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "crm"; private static readonly NOTE_ASSOC_TYPES; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; protected chooseCredential(): string | undefined; private makeHubSpotApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<HubSpotResult, { operation: T['operation']; }>>; private createRecord; private getRecord; private updateRecord; private deleteRecord; private searchRecords; private batchCreateRecords; private batchUpdateRecords; private batchDeleteRecords; private listProperties; private getProperty; private createProperty; private updateProperty; private deleteProperty; private listAssociations; private createAssociation; private removeAssociation; private listPipelines; private createNote; private listOwners; private getOwner; private getAccountInfo; }
|
|
1038
|
+
export declare const HubSpotParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: z.ZodArray<z.ZodObject<{ filters: z.ZodArray<z.ZodObject<{ propertyName: z.ZodString; operator: z.ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: z.ZodOptional<z.ZodString>; highValue: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: z.ZodString; label: z.ZodString; type: z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: z.ZodString; description: z.ZodOptional<z.ZodString>; hasUniqueValue: z.ZodOptional<z.ZodBoolean>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; label: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; groupName: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; object_type: z.ZodEnum<["deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; note_body: z.ZodString; associations: z.ZodArray<z.ZodObject<{ object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; }, "strip", z.ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_owners">; email: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_owners"; limit: number; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "list_owners"; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_owner">; owner_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const HubSpotResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: z.ZodOptional<z.ZodNumber>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; success: z.ZodBoolean; properties: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; success: z.ZodBoolean; associations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; success: z.ZodBoolean; pipelines: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_owners">; success: z.ZodBoolean; owners: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_owner">; success: z.ZodBoolean; owner: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; success: z.ZodBoolean; account: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; export type HubSpotParams = z.output<typeof HubSpotParamsSchema>; export type HubSpotParamsInput = z.input<typeof HubSpotParamsSchema>; export type HubSpotResult = z.output<typeof HubSpotResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
1039
1039
|
export declare abstract class ServiceBubble<TParams extends ServiceBubbleParams = ServiceBubbleParams, TResult extends BubbleOperationResult = BubbleOperationResult> extends BaseBubble<TParams, TResult> { readonly type: "service"; authType?: 'oauth' | 'apikey' | 'none' | 'connection-string'; constructor(params: unknown, context?: BubbleContext, instanceId?: string); abstract testCredential(): Promise<boolean>; protected abstract chooseCredential(): string | undefined; getCredentialMetadata(): Promise<DatabaseMetadata | undefined>; get currentParams(): Omit<TParams, 'credentials'>; setParam<K extends keyof TParams>(paramName: K, paramValue: TParams[K]): void; get currentContext(): BubbleContext | undefined; }
|
|
1040
1040
|
export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1041
1041
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
@@ -1053,8 +1053,8 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
|
|
|
1053
1053
|
export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
|
|
1054
1054
|
export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
|
|
1055
1055
|
export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
|
|
1056
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const HubSpotParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: z.ZodArray<z.ZodObject<{ filters: z.ZodArray<z.ZodObject<{ propertyName: z.ZodString; operator: z.ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: z.ZodOptional<z.ZodString>; highValue: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: z.ZodString; label: z.ZodString; type: z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: z.ZodString; description: z.ZodOptional<z.ZodString>; hasUniqueValue: z.ZodOptional<z.ZodBoolean>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; label: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; groupName: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; object_type: z.ZodEnum<["deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; note_body: z.ZodString; associations: z.ZodArray<z.ZodObject<{ object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; }, "strip", z.ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const HubSpotResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: z.ZodOptional<z.ZodNumber>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; success: z.ZodBoolean; properties: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; success: z.ZodBoolean; associations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; success: z.ZodBoolean; pipelines: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; success: z.ZodBoolean; account: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; export type HubSpotParams = z.output<typeof HubSpotParamsSchema>; export type HubSpotParamsInput = z.input<typeof HubSpotParamsSchema>; export type HubSpotResult = z.output<typeof HubSpotResultSchema>; export declare class HubSpotBubble<T extends HubSpotParamsInput = HubSpotParamsInput> extends ServiceBubble<T, Extract<HubSpotResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "hubspot"; static readonly authType: "oauth"; static readonly bubbleName = "hubspot"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: import("zod").ZodArray<import("zod").ZodObject<{ filters: import("zod").ZodArray<import("zod").ZodObject<{ propertyName: import("zod").ZodString; operator: import("zod").ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: import("zod").ZodOptional<import("zod").ZodString>; highValue: import("zod").ZodOptional<import("zod").ZodString>; values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; }, "strip", import("zod").ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", import("zod").ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; after: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_create_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: import("zod").ZodArray<import("zod").ZodObject<{ properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_update_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_delete_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: import("zod").ZodArray<import("zod").ZodString, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_properties">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: import("zod").ZodString; label: import("zod").ZodString; type: import("zod").ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: import("zod").ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; hasUniqueValue: import("zod").ZodOptional<import("zod").ZodBoolean>; options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; displayOrder: import("zod").ZodOptional<import("zod").ZodNumber>; hidden: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; label: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; groupName: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: import("zod").ZodOptional<import("zod").ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; displayOrder: import("zod").ZodOptional<import("zod").ZodNumber>; hidden: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_associations">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_association">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_association">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pipelines">; object_type: import("zod").ZodEnum<["deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; note_body: import("zod").ZodString; associations: import("zod").ZodArray<import("zod").ZodObject<{ object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_account_info">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_record">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: import("zod").ZodOptional<import("zod").ZodNumber>; paging: import("zod").ZodOptional<import("zod").ZodObject<{ next: import("zod").ZodOptional<import("zod").ZodObject<{ after: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", import("zod").ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_create_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_update_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_delete_records">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_properties">; success: import("zod").ZodBoolean; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_property">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_associations">; success: import("zod").ZodBoolean; associations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_association">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_association">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pipelines">; success: import("zod").ZodBoolean; pipelines: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; success: import("zod").ZodBoolean; note: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_account_info">; success: import("zod").ZodBoolean; account: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; static readonly shortDescription = "HubSpot CRM integration for contacts, companies, deals, and tickets"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "crm"; private static readonly NOTE_ASSOC_TYPES; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; protected chooseCredential(): string | undefined; private makeHubSpotApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<HubSpotResult, { operation: T['operation']; }>>; private createRecord; private getRecord; private updateRecord; private deleteRecord; private searchRecords; private batchCreateRecords; private batchUpdateRecords; private batchDeleteRecords; private listProperties; private getProperty; private createProperty; private updateProperty; private deleteProperty; private listAssociations; private createAssociation; private removeAssociation; private listPipelines; private createNote; private getAccountInfo; }
|
|
1057
|
-
export declare const HubSpotParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: z.ZodArray<z.ZodObject<{ filters: z.ZodArray<z.ZodObject<{ propertyName: z.ZodString; operator: z.ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: z.ZodOptional<z.ZodString>; highValue: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: z.ZodString; label: z.ZodString; type: z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: z.ZodString; description: z.ZodOptional<z.ZodString>; hasUniqueValue: z.ZodOptional<z.ZodBoolean>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; label: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; groupName: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; object_type: z.ZodEnum<["deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; note_body: z.ZodString; associations: z.ZodArray<z.ZodObject<{ object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; }, "strip", z.ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const HubSpotResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: z.ZodOptional<z.ZodNumber>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; success: z.ZodBoolean; properties: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; success: z.ZodBoolean; associations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; success: z.ZodBoolean; pipelines: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; success: z.ZodBoolean; account: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; export type HubSpotParams = z.output<typeof HubSpotParamsSchema>; export type HubSpotParamsInput = z.input<typeof HubSpotParamsSchema>; export type HubSpotResult = z.output<typeof HubSpotResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
1056
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const HubSpotParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: z.ZodArray<z.ZodObject<{ filters: z.ZodArray<z.ZodObject<{ propertyName: z.ZodString; operator: z.ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: z.ZodOptional<z.ZodString>; highValue: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: z.ZodString; label: z.ZodString; type: z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: z.ZodString; description: z.ZodOptional<z.ZodString>; hasUniqueValue: z.ZodOptional<z.ZodBoolean>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; label: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; groupName: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; object_type: z.ZodEnum<["deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; note_body: z.ZodString; associations: z.ZodArray<z.ZodObject<{ object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; }, "strip", z.ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_owners">; email: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_owners"; limit: number; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "list_owners"; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_owner">; owner_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const HubSpotResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: z.ZodOptional<z.ZodNumber>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; success: z.ZodBoolean; properties: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; success: z.ZodBoolean; associations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; success: z.ZodBoolean; pipelines: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_owners">; success: z.ZodBoolean; owners: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_owner">; success: z.ZodBoolean; owner: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; success: z.ZodBoolean; account: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; export type HubSpotParams = z.output<typeof HubSpotParamsSchema>; export type HubSpotParamsInput = z.input<typeof HubSpotParamsSchema>; export type HubSpotResult = z.output<typeof HubSpotResultSchema>; export declare class HubSpotBubble<T extends HubSpotParamsInput = HubSpotParamsInput> extends ServiceBubble<T, Extract<HubSpotResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "hubspot"; static readonly authType: "oauth"; static readonly bubbleName = "hubspot"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_record">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: import("zod").ZodArray<import("zod").ZodObject<{ filters: import("zod").ZodArray<import("zod").ZodObject<{ propertyName: import("zod").ZodString; operator: import("zod").ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: import("zod").ZodOptional<import("zod").ZodString>; highValue: import("zod").ZodOptional<import("zod").ZodString>; values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; }, "strip", import("zod").ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", import("zod").ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; after: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_create_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: import("zod").ZodArray<import("zod").ZodObject<{ properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_update_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_delete_records">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: import("zod").ZodArray<import("zod").ZodString, "many">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_properties">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: import("zod").ZodString; label: import("zod").ZodString; type: import("zod").ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: import("zod").ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; hasUniqueValue: import("zod").ZodOptional<import("zod").ZodBoolean>; options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; displayOrder: import("zod").ZodOptional<import("zod").ZodNumber>; hidden: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; label: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; groupName: import("zod").ZodOptional<import("zod").ZodString>; type: import("zod").ZodOptional<import("zod").ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: import("zod").ZodOptional<import("zod").ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; displayOrder: import("zod").ZodOptional<import("zod").ZodNumber>; hidden: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_property">; object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_associations">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_association">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_association">; from_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: import("zod").ZodString; to_object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pipelines">; object_type: import("zod").ZodEnum<["deals", "tickets"]>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; note_body: import("zod").ZodString; associations: import("zod").ZodArray<import("zod").ZodObject<{ object_type: import("zod").ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_owners">; email: import("zod").ZodOptional<import("zod").ZodString>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; after: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_owners"; limit: number; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "list_owners"; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_owner">; owner_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_account_info">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_record">; success: import("zod").ZodBoolean; record: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_record">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: import("zod").ZodOptional<import("zod").ZodNumber>; paging: import("zod").ZodOptional<import("zod").ZodObject<{ next: import("zod").ZodOptional<import("zod").ZodObject<{ after: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", import("zod").ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_create_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_update_records">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; archived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"batch_delete_records">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_properties">; success: import("zod").ZodBoolean; properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_property">; success: import("zod").ZodBoolean; property: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_property">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_associations">; success: import("zod").ZodBoolean; associations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_association">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_association">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_pipelines">; success: import("zod").ZodBoolean; pipelines: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; success: import("zod").ZodBoolean; note: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>; }, "strip", import("zod").ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_owners">; success: import("zod").ZodBoolean; owners: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; paging: import("zod").ZodOptional<import("zod").ZodObject<{ next: import("zod").ZodOptional<import("zod").ZodObject<{ after: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", import("zod").ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_owner">; success: import("zod").ZodBoolean; owner: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_account_info">; success: import("zod").ZodBoolean; account: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; static readonly shortDescription = "HubSpot CRM integration for contacts, companies, deals, and tickets"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "crm"; private static readonly NOTE_ASSOC_TYPES; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; protected chooseCredential(): string | undefined; private makeHubSpotApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<HubSpotResult, { operation: T['operation']; }>>; private createRecord; private getRecord; private updateRecord; private deleteRecord; private searchRecords; private batchCreateRecords; private batchUpdateRecords; private batchDeleteRecords; private listProperties; private getProperty; private createProperty; private updateProperty; private deleteProperty; private listAssociations; private createAssociation; private removeAssociation; private listPipelines; private createNote; private listOwners; private getOwner; private getAccountInfo; }
|
|
1057
|
+
export declare const HubSpotParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "create_record"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { properties: Record<string, string>; operation: "update_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_record"; record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; filter_groups: z.ZodArray<z.ZodObject<{ filters: z.ZodArray<z.ZodObject<{ propertyName: z.ZodString; operator: z.ZodEnum<["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"]>; value: z.ZodOptional<z.ZodString>; highValue: z.ZodOptional<z.ZodString>; values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }, { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }, { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }>, "many">; properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_records"; limit: number; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "search_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; filter_groups: { filters: { propertyName: string; operator: "GT" | "IN" | "LT" | "EQ" | "NEQ" | "LTE" | "GTE" | "BETWEEN" | "NOT_IN" | "HAS_PROPERTY" | "NOT_HAS_PROPERTY" | "CONTAINS_TOKEN" | "NOT_CONTAINS_TOKEN"; value?: string | undefined; values?: string[] | undefined; highValue?: string | undefined; }[]; }[]; properties?: string[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; }, { properties: Record<string, string>; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_create_records"; records: { properties: Record<string, string>; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; records: z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { properties: Record<string, string>; id: string; }, { properties: Record<string, string>; id: string; }>, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_update_records"; records: { properties: Record<string, string>; id: string; }[]; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_ids: z.ZodArray<z.ZodString, "many">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "batch_delete_records"; object_type: "deals" | "contacts" | "companies" | "tickets"; record_ids: string[]; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_properties"; object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; name: z.ZodString; label: z.ZodString; type: z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>; fieldType: z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>; groupName: z.ZodString; description: z.ZodOptional<z.ZodString>; hasUniqueValue: z.ZodOptional<z.ZodBoolean>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; calculationFormula: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }, { type: "string" | "number" | "date" | "datetime" | "enumeration" | "bool"; name: string; operation: "create_property"; label: string; object_type: "deals" | "contacts" | "companies" | "tickets"; fieldType: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber"; groupName: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; hasUniqueValue?: boolean | undefined; calculationFormula?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; label: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; groupName: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "datetime", "enumeration", "bool"]>>; fieldType: z.ZodOptional<z.ZodEnum<["text", "textarea", "number", "date", "file", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation", "html", "phonenumber"]>>; options: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; description: z.ZodOptional<z.ZodString>; displayOrder: z.ZodOptional<z.ZodNumber>; hidden: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }, { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }, { operation: "update_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; options?: { value: string; label: string; description?: string | undefined; displayOrder?: number | undefined; hidden?: boolean | undefined; }[] | undefined; type?: "string" | "number" | "date" | "datetime" | "enumeration" | "bool" | undefined; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; label?: string | undefined; fieldType?: "number" | "date" | "text" | "file" | "html" | "checkbox" | "textarea" | "select" | "radio" | "booleancheckbox" | "calculation_equation" | "phonenumber" | undefined; groupName?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; property_name: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_property"; object_type: "deals" | "contacts" | "companies" | "tickets"; property_name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_associations"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "create_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; from_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; from_record_id: z.ZodString; to_object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; to_record_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_association"; from_object_type: "deals" | "contacts" | "companies" | "tickets"; from_record_id: string; to_object_type: "deals" | "contacts" | "companies" | "tickets"; to_record_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; object_type: z.ZodEnum<["deals", "tickets"]>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_pipelines"; object_type: "deals" | "tickets"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; note_body: z.ZodString; associations: z.ZodArray<z.ZodObject<{ object_type: z.ZodEnum<["contacts", "companies", "deals", "tickets"]>; record_id: z.ZodString; }, "strip", z.ZodTypeAny, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }, { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }>, "many">; timestamp: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }, { operation: "create_note"; note_body: string; associations: { record_id: string; object_type: "deals" | "contacts" | "companies" | "tickets"; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; timestamp?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_owners">; email: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_owners"; limit: number; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "list_owners"; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_owner">; owner_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_owner"; owner_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_account_info"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const HubSpotResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_record">; success: z.ZodBoolean; record: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_record"; record?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_record">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_record"; }, { error: string; success: boolean; operation: "delete_record"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; total: z.ZodOptional<z.ZodNumber>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "search_records"; total?: number | undefined; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_create_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_create_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_update_records">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; archived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }, { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "batch_update_records"; results?: { properties: Record<string, unknown>; id: string; createdAt?: string | undefined; archived?: boolean | undefined; updatedAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"batch_delete_records">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "batch_delete_records"; }, { error: string; success: boolean; operation: "batch_delete_records"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_properties">; success: z.ZodBoolean; properties: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_properties"; properties?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "create_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_property">; success: z.ZodBoolean; property: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "update_property"; property?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_property">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_property"; }, { error: string; success: boolean; operation: "delete_property"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_associations">; success: z.ZodBoolean; associations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_associations"; associations?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_association"; }, { error: string; success: boolean; operation: "create_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_association">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_association"; }, { error: string; success: boolean; operation: "remove_association"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_pipelines">; success: z.ZodBoolean; pipelines: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }, { error: string; success: boolean; operation: "list_pipelines"; pipelines?: Record<string, unknown>[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; id: string; }, { properties: Record<string, unknown>; id: string; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { properties: Record<string, unknown>; id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_owners">; success: z.ZodBoolean; owners: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; paging: z.ZodOptional<z.ZodObject<{ next: z.ZodOptional<z.ZodObject<{ after: z.ZodString; }, "strip", z.ZodTypeAny, { after: string; }, { after: string; }>>; }, "strip", z.ZodTypeAny, { next?: { after: string; } | undefined; }, { next?: { after: string; } | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }, { error: string; success: boolean; operation: "list_owners"; owners?: Record<string, unknown>[] | undefined; paging?: { next?: { after: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_owner">; success: z.ZodBoolean; owner: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_owner"; owner?: Record<string, unknown> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_account_info">; success: z.ZodBoolean; account: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }, { error: string; success: boolean; operation: "get_account_info"; account?: Record<string, unknown> | undefined; }>]>; export type HubSpotParams = z.output<typeof HubSpotParamsSchema>; export type HubSpotParamsInput = z.input<typeof HubSpotParamsSchema>; export type HubSpotResult = z.output<typeof HubSpotResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
1058
1058
|
export declare abstract class ServiceBubble<TParams extends ServiceBubbleParams = ServiceBubbleParams, TResult extends BubbleOperationResult = BubbleOperationResult> extends BaseBubble<TParams, TResult> { readonly type: "service"; authType?: 'oauth' | 'apikey' | 'none' | 'connection-string'; constructor(params: unknown, context?: BubbleContext, instanceId?: string); abstract testCredential(): Promise<boolean>; protected abstract chooseCredential(): string | undefined; getCredentialMetadata(): Promise<DatabaseMetadata | undefined>; get currentParams(): Omit<TParams, 'credentials'>; setParam<K extends keyof TParams>(paramName: K, paramValue: TParams[K]): void; get currentContext(): BubbleContext | undefined; }
|
|
1059
1059
|
export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1060
1060
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|