@bubblelab/bubble-core 0.1.117 → 0.1.118

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.
@@ -371,8 +371,13 @@ export interface SlackSectionBlock { type: 'section'; text: SlackTextObject; }
371
371
  export interface SlackDividerBlock { type: 'divider'; }
372
372
  export interface SlackHeaderBlock { type: 'header'; text: SlackTextObject; }
373
373
  export interface SlackContextBlock { type: 'context'; elements: SlackTextObject[]; }
374
- export type SlackBlock = SlackSectionBlock | SlackDividerBlock | SlackHeaderBlock | SlackContextBlock; export interface MarkdownToBlocksOptions { useHeaderBlocks?: boolean; addDividersAfterHeaders?: boolean; preserveLineBreaks?: boolean; }
375
- export declare function markdownToMrkdwn(markdown: string): string; export declare function markdownToBlocks(markdown: string, options?: MarkdownToBlocksOptions): SlackBlock[]; export declare function createTextBlock(text: string, useMrkdwn?: boolean): SlackSectionBlock; export declare function createDividerBlock(): SlackDividerBlock; export declare function createHeaderBlock(text: string): SlackHeaderBlock; export declare function createContextBlock(texts: string[]): SlackContextBlock; export declare function splitLongText(text: string, maxLength?: number): string[]; export declare function splitLongBlocks(blocks: SlackBlock[]): SlackBlock[]; export declare function containsMarkdown(text: string): boolean; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
374
+ export interface SlackTableCellRawText { type: 'raw_text'; text: string; }
375
+ export interface SlackTableCellRichText { type: 'rich_text'; elements: unknown[]; }
376
+ export type SlackTableCell = SlackTableCellRawText | SlackTableCellRichText; export interface SlackTableColumnSetting { align?: 'left' | 'center' | 'right'; is_wrapped?: boolean; }
377
+ export interface SlackTableBlock { type: 'table'; rows: SlackTableCell[][]; column_settings?: SlackTableColumnSetting[]; block_id?: string; }
378
+ export type SlackBlock = SlackSectionBlock | SlackDividerBlock | SlackHeaderBlock | SlackContextBlock | SlackTableBlock; export interface MarkdownToBlocksOptions { useHeaderBlocks?: boolean; addDividersAfterHeaders?: boolean; preserveLineBreaks?: boolean; }
379
+ export declare function markdownToMrkdwn(markdown: string): string; export declare function markdownToBlocks(markdown: string, options?: MarkdownToBlocksOptions): SlackBlock[]; export declare function createTextBlock(text: string, useMrkdwn?: boolean): SlackSectionBlock; export declare function createDividerBlock(): SlackDividerBlock; export declare function createHeaderBlock(text: string): SlackHeaderBlock; export declare function createContextBlock(texts: string[]): SlackContextBlock; export declare const SLACK_TABLE_MAX_ROWS = 100; export declare const SLACK_TABLE_MAX_COLUMNS = 20; export interface CreateTableBlockResult { tableBlock: SlackTableBlock; overflowCsv?: string; wasTruncated: boolean; originalRowCount: number; }
380
+ export declare function createTableBlock(headers: string[], rows: string[][], columnSettings?: SlackTableColumnSetting[]): CreateTableBlockResult; export declare function splitLongText(text: string, maxLength?: number): string[]; export declare function splitLongBlocks(blocks: SlackBlock[]): SlackBlock[]; export declare function containsMarkdown(text: string): boolean; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
376
381
  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; }
377
382
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
378
383
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -448,7 +453,7 @@ export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider
448
453
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
449
454
  export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
450
455
  export declare abstract class WorkflowBubble<TParams extends ServiceBubbleParams = ServiceBubbleParams, TResult extends BubbleOperationResult = BubbleOperationResult> extends BaseBubble<TParams, TResult> implements IWorkflowBubble<TResult> { readonly type: "workflow"; constructor(params: unknown, context?: BubbleContext, instanceId?: string); get currentParams(): TParams; get currentContext(): BubbleContext | undefined; }
451
- declare const SlackFormatterAgentParamsSchema: z.ZodObject<{ message: z.ZodString; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeBlockKit: z.ZodDefault<z.ZodBoolean>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; temperature: number; maxTokens: number; }; tools: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; verbosity: "1" | "2" | "3" | "4" | "5"; technicality: "1" | "2" | "3" | "4" | "5"; includeBlockKit: boolean; includeQuery: boolean; includeExplanation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; }, { message: string; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; tools?: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeBlockKit?: boolean | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; }>; declare const SlackFormatterAgentResultSchema: z.ZodObject<{ response: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["section", "header", "divider", "context", "actions", "input", "file", "image"]>; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; block_id: z.ZodOptional<z.ZodString>; accessory: z.ZodOptional<z.ZodUnknown>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; element: z.ZodOptional<z.ZodUnknown>; label: z.ZodOptional<z.ZodUnknown>; hint: z.ZodOptional<z.ZodUnknown>; optional: z.ZodOptional<z.ZodBoolean>; alt_text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text"; text: string; emoji?: boolean | undefined; }, { type: "plain_text"; text: string; emoji?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }, { type: "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }>, "many">>; metadata: z.ZodObject<{ verbosityLevel: z.ZodString; technicalityLevel: z.ZodString; wordCount: z.ZodNumber; blockCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }>; toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">>; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; response: string; iterations: number; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }, { error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; response: string; iterations: number; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }>; type SlackFormatterAgentParams = z.input<typeof SlackFormatterAgentParamsSchema>;; type SlackFormatterAgentParamsParsed = z.output<typeof SlackFormatterAgentParamsSchema>; type SlackFormatterAgentResult = z.output<typeof SlackFormatterAgentResultSchema>; export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackFormatterAgentParamsParsed, SlackFormatterAgentResult> { static readonly type: "service"; static readonly service = "slack-formatter-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeBlockKit: z.ZodDefault<z.ZodBoolean>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; temperature: number; maxTokens: number; }; tools: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; verbosity: "1" | "2" | "3" | "4" | "5"; technicality: "1" | "2" | "3" | "4" | "5"; includeBlockKit: boolean; includeQuery: boolean; includeExplanation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; }, { message: string; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; tools?: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeBlockKit?: boolean | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["section", "header", "divider", "context", "actions", "input", "file", "image"]>; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; block_id: z.ZodOptional<z.ZodString>; accessory: z.ZodOptional<z.ZodUnknown>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; element: z.ZodOptional<z.ZodUnknown>; label: z.ZodOptional<z.ZodUnknown>; hint: z.ZodOptional<z.ZodUnknown>; optional: z.ZodOptional<z.ZodBoolean>; alt_text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text"; text: string; emoji?: boolean | undefined; }, { type: "plain_text"; text: string; emoji?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }, { type: "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }>, "many">>; metadata: z.ZodObject<{ verbosityLevel: z.ZodString; technicalityLevel: z.ZodString; wordCount: z.ZodNumber; blockCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }>; toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">>; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; response: string; iterations: number; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }, { error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; response: string; iterations: number; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }>; static readonly shortDescription = "AI agent for creating well-formatted Slack messages with adjustable verbosity and technicality"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "slack-format"; private factory; constructor(params?: SlackFormatterAgentParams, context?: BubbleContext); testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<SlackFormatterAgentResult>; protected chooseCredential(): string | undefined; private createSlackFormatterPrompt; private initializeModel; private initializeTools; private createAgentGraph; private executeAgent; private extractSlackBlocks; private validateAndFixSlackBlocks; }
456
+ declare const SlackFormatterAgentParamsSchema: z.ZodObject<{ message: z.ZodString; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeBlockKit: z.ZodDefault<z.ZodBoolean>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; temperature: number; maxTokens: number; }; tools: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; verbosity: "1" | "2" | "3" | "4" | "5"; technicality: "1" | "2" | "3" | "4" | "5"; includeBlockKit: boolean; includeQuery: boolean; includeExplanation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; }, { message: string; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; tools?: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeBlockKit?: boolean | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; }>; declare const SlackFormatterAgentResultSchema: z.ZodObject<{ response: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["section", "header", "divider", "context", "actions", "input", "file", "image", "table"]>; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; block_id: z.ZodOptional<z.ZodString>; accessory: z.ZodOptional<z.ZodUnknown>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; element: z.ZodOptional<z.ZodUnknown>; label: z.ZodOptional<z.ZodUnknown>; hint: z.ZodOptional<z.ZodUnknown>; optional: z.ZodOptional<z.ZodBoolean>; alt_text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text"; text: string; emoji?: boolean | undefined; }, { type: "plain_text"; text: string; emoji?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "table" | "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }, { type: "table" | "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }>, "many">>; metadata: z.ZodObject<{ verbosityLevel: z.ZodString; technicalityLevel: z.ZodString; wordCount: z.ZodNumber; blockCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }>; toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">>; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; response: string; iterations: number; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "table" | "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }, { error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; response: string; iterations: number; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "table" | "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }>; type SlackFormatterAgentParams = z.input<typeof SlackFormatterAgentParamsSchema>;; type SlackFormatterAgentParamsParsed = z.output<typeof SlackFormatterAgentParamsSchema>; type SlackFormatterAgentResult = z.output<typeof SlackFormatterAgentResultSchema>; export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackFormatterAgentParamsParsed, SlackFormatterAgentResult> { static readonly type: "service"; static readonly service = "slack-formatter-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; verbosity: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeBlockKit: z.ZodDefault<z.ZodBoolean>; includeQuery: z.ZodDefault<z.ZodBoolean>; includeExplanation: z.ZodDefault<z.ZodBoolean>; model: z.ZodDefault<z.ZodObject<{ model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; temperature: number; maxTokens: number; }, { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research"; temperature: number; maxTokens: number; }; tools: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; maxIterations: number; verbosity: "1" | "2" | "3" | "4" | "5"; technicality: "1" | "2" | "3" | "4" | "5"; includeBlockKit: boolean; includeQuery: boolean; includeExplanation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; additionalContext?: string | undefined; }, { message: string; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research" | undefined; temperature?: number | undefined; maxTokens?: number | undefined; } | undefined; tools?: { name: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; maxIterations?: number | undefined; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeBlockKit?: boolean | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; additionalContext?: string | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["section", "header", "divider", "context", "actions", "input", "file", "image", "table"]>; text: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>>; block_id: z.ZodOptional<z.ZodString>; accessory: z.ZodOptional<z.ZodUnknown>; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; element: z.ZodOptional<z.ZodUnknown>; label: z.ZodOptional<z.ZodUnknown>; hint: z.ZodOptional<z.ZodUnknown>; optional: z.ZodOptional<z.ZodBoolean>; alt_text: z.ZodOptional<z.ZodString>; image_url: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["plain_text"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text"; text: string; emoji?: boolean | undefined; }, { type: "plain_text"; text: string; emoji?: boolean | undefined; }>>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["plain_text", "mrkdwn"]>; text: z.ZodString; emoji: z.ZodOptional<z.ZodBoolean>; verbatim: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }, { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "table" | "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }, { type: "table" | "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }>, "many">>; metadata: z.ZodObject<{ verbosityLevel: z.ZodString; technicalityLevel: z.ZodString; wordCount: z.ZodNumber; blockCount: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }, { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }>; toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">>; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; response: string; iterations: number; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "table" | "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }, { error: string; success: boolean; metadata: { verbosityLevel: string; technicalityLevel: string; wordCount: number; blockCount?: number | undefined; }; response: string; iterations: number; toolCalls?: { tool: string; input?: unknown; output?: unknown; }[] | undefined; blocks?: { type: "table" | "image" | "input" | "file" | "section" | "divider" | "header" | "context" | "actions"; title?: { type: "plain_text"; text: string; emoji?: boolean | undefined; } | undefined; optional?: boolean | undefined; text?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; } | undefined; image_url?: string | undefined; fields?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; elements?: { type: "plain_text" | "mrkdwn"; text: string; emoji?: boolean | undefined; verbatim?: boolean | undefined; }[] | undefined; alt_text?: string | undefined; block_id?: string | undefined; accessory?: unknown; element?: unknown; label?: unknown; hint?: unknown; }[] | undefined; }>; static readonly shortDescription = "AI agent for creating well-formatted Slack messages with adjustable verbosity and technicality"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "slack-format"; private factory; constructor(params?: SlackFormatterAgentParams, context?: BubbleContext); testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<SlackFormatterAgentResult>; protected chooseCredential(): string | undefined; private createSlackFormatterPrompt; private initializeModel; private initializeTools; private createAgentGraph; private executeAgent; private extractSlackBlocks; private validateAndFixSlackBlocks; }
452
457
  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>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
453
458
  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; }
454
459
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
@@ -841,7 +846,7 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
841
846
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
842
847
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
843
848
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
844
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; declare const NotionParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_page">; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; children: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; cover: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; operation: "create_page"; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; children?: unknown[] | undefined; }, { parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; operation: "create_page"; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; children?: unknown[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_page">; page_id: z.ZodString; filter_properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; }, { operation: "retrieve_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; page_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_page"; page_id: string; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; archived?: boolean | undefined; in_trash?: boolean | undefined; }, { operation: "update_page"; page_id: string; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; archived?: boolean | undefined; in_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_database">; database_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_database"; database_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_database"; database_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query_data_source">; data_source_id: z.ZodString; filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; sorts: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; filter_properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; result_type: z.ZodOptional<z.ZodEnum<["page", "data_source"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "query_data_source"; page_size: number; data_source_id: string; filter?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; sorts?: unknown[] | undefined; start_cursor?: string | undefined; result_type?: "page" | "data_source" | undefined; }, { operation: "query_data_source"; data_source_id: string; filter?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; filter_properties?: string[] | undefined; sorts?: unknown[] | undefined; start_cursor?: string | undefined; result_type?: "page" | "data_source" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_data_source">; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; parent: { type: "database_id"; database_id: string; }; operation: "create_data_source"; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; }, { properties: Record<string, unknown>; parent: { type: "database_id"; database_id: string; }; operation: "create_data_source"; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_data_source">; data_source_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; in_trash: z.ZodOptional<z.ZodBoolean>; parent: z.ZodOptional<z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_data_source"; data_source_id: string; properties?: Record<string, unknown> | undefined; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "database_id"; database_id: string; } | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; in_trash?: boolean | undefined; }, { operation: "update_data_source"; data_source_id: string; properties?: Record<string, unknown> | undefined; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "database_id"; database_id: string; } | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; in_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_database">; parent: z.ZodEffects<z.ZodEffects<z.ZodObject<{ type: z.ZodEnum<["page_id", "workspace"]>; page_id: z.ZodOptional<z.ZodString>; workspace: z.ZodOptional<z.ZodLiteral<true>>; }, "strip", z.ZodTypeAny, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>, { type: "workspace"; workspace: boolean; page_id?: undefined; } | { type: "page_id"; page_id: string; workspace?: undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>; initial_data_source: z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; }, { properties: Record<string, unknown>; }>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; cover: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { type: "workspace"; workspace: boolean; page_id?: undefined; } | { type: "page_id"; page_id: string; workspace?: undefined; }; operation: "create_database"; initial_data_source: { properties: Record<string, unknown>; }; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; }, { parent: { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }; operation: "create_database"; initial_data_source: { properties: Record<string, unknown>; }; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_database">; database_id: z.ZodString; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_database"; database_id: string; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; } | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; is_inline?: boolean | undefined; }, { operation: "update_database"; database_id: string; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; } | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; is_inline?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_block_children">; block_id: z.ZodString; children: z.ZodArray<z.ZodUnknown, "many">; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "append_block_children"; block_id: string; children: unknown[]; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "append_block_children"; block_id: string; children: unknown[]; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block_children">; block_id: z.ZodString; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_block_children"; block_id: string; page_size: number; credentials?: Partial<Record<CredentialType, string>> | undefined; start_cursor?: string | undefined; }, { operation: "retrieve_block_children"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block">; block_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_block">; block_id: z.ZodString; archived: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; archived?: boolean | undefined; }, { operation: "update_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_comment">; parent: z.ZodObject<{ page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { block_id?: string | undefined; page_id?: string | undefined; }, { block_id?: string | undefined; page_id?: string | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ file_upload_id: z.ZodString; type: z.ZodOptional<z.ZodLiteral<"file_upload">>; }, "strip", z.ZodTypeAny, { file_upload_id: string; type?: "file_upload" | undefined; }, { file_upload_id: string; type?: "file_upload" | undefined; }>, "many">>; display_name: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["integration", "user", "custom"]>; custom: z.ZodOptional<z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>>; }, "strip", z.ZodTypeAny, { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; }, { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { block_id?: string | undefined; page_id?: string | undefined; }; operation: "create_comment"; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; attachments?: { file_upload_id: string; type?: "file_upload" | undefined; }[] | undefined; display_name?: { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; } | undefined; }, { parent: { block_id?: string | undefined; page_id?: string | undefined; }; operation: "create_comment"; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; attachments?: { file_upload_id: string; type?: "file_upload" | undefined; }[] | undefined; display_name?: { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_comment">; comment_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_comment"; comment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_comment"; comment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page_size: number; credentials?: Partial<Record<CredentialType, string>> | undefined; start_cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodOptional<z.ZodString>; sort: z.ZodOptional<z.ZodObject<{ direction: z.ZodEnum<["ascending", "descending"]>; timestamp: z.ZodLiteral<"last_edited_time">; }, "strip", z.ZodTypeAny, { timestamp: "last_edited_time"; direction: "ascending" | "descending"; }, { timestamp: "last_edited_time"; direction: "ascending" | "descending"; }>>; filter: z.ZodOptional<z.ZodObject<{ value: z.ZodEnum<["page", "data_source"]>; property: z.ZodLiteral<"object">; }, "strip", z.ZodTypeAny, { value: "page" | "data_source"; property: "object"; }, { value: "page" | "data_source"; property: "object"; }>>; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search"; page_size: number; sort?: { timestamp: "last_edited_time"; direction: "ascending" | "descending"; } | undefined; filter?: { value: "page" | "data_source"; property: "object"; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; start_cursor?: string | undefined; }, { operation: "search"; sort?: { timestamp: "last_edited_time"; direction: "ascending" | "descending"; } | undefined; filter?: { value: "page" | "data_source"; property: "object"; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>]>; declare const NotionResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "retrieve_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "retrieve_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query_data_source">; success: z.ZodBoolean; error: z.ZodString; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query_data_source"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "query_data_source"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_data_source">; success: z.ZodBoolean; error: z.ZodString; dataSource: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_data_source"; dataSource?: z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "create_data_source"; dataSource?: z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_data_source">; success: z.ZodBoolean; error: z.ZodString; dataSource: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_data_source"; dataSource?: z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "update_data_source"; dataSource?: z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_block_children">; success: z.ZodBoolean; error: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "append_block_children"; blocks?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "append_block_children"; blocks?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block_children">; success: z.ZodBoolean; error: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_block_children"; blocks?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "retrieve_block_children"; blocks?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block">; success: z.ZodBoolean; error: z.ZodString; block: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_block"; block?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "retrieve_block"; block?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_block">; success: z.ZodBoolean; error: z.ZodString; block: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_block"; block?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "update_block"; block?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_comment">; success: z.ZodBoolean; error: z.ZodString; comment: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"comment">; id: z.ZodString; parent: z.ZodObject<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; discussion_id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; }, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; } | undefined; }, { error: string; success: boolean; operation: "create_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_comment">; success: z.ZodBoolean; error: z.ZodString; comment: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"comment">; id: z.ZodString; parent: z.ZodObject<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; discussion_id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; }, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; } | undefined; }, { error: string; success: boolean; operation: "retrieve_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; error: z.ZodString; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; error: z.ZodString; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "search"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>]>; type NotionParams = z.input<typeof NotionParamsSchema>;; type NotionResult = z.output<typeof NotionResultSchema>; export declare class NotionBubble<T extends NotionParams = NotionParams> extends ServiceBubble<T & { credentials?: Partial<Record<CredentialType, string>>; }, Extract<NotionResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "notion"; static readonly authType: "oauth"; static readonly bubbleName = "notion"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_page">; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; children: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; cover: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; operation: "create_page"; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; children?: unknown[] | undefined; }, { parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; operation: "create_page"; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; children?: unknown[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_page">; page_id: z.ZodString; filter_properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; }, { operation: "retrieve_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; page_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_page"; page_id: string; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; archived?: boolean | undefined; in_trash?: boolean | undefined; }, { operation: "update_page"; page_id: string; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; archived?: boolean | undefined; in_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_database">; database_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_database"; database_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_database"; database_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query_data_source">; data_source_id: z.ZodString; filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; sorts: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; filter_properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; result_type: z.ZodOptional<z.ZodEnum<["page", "data_source"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "query_data_source"; page_size: number; data_source_id: string; filter?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; sorts?: unknown[] | undefined; start_cursor?: string | undefined; result_type?: "page" | "data_source" | undefined; }, { operation: "query_data_source"; data_source_id: string; filter?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; filter_properties?: string[] | undefined; sorts?: unknown[] | undefined; start_cursor?: string | undefined; result_type?: "page" | "data_source" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_data_source">; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; parent: { type: "database_id"; database_id: string; }; operation: "create_data_source"; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; }, { properties: Record<string, unknown>; parent: { type: "database_id"; database_id: string; }; operation: "create_data_source"; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_data_source">; data_source_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; in_trash: z.ZodOptional<z.ZodBoolean>; parent: z.ZodOptional<z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_data_source"; data_source_id: string; properties?: Record<string, unknown> | undefined; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "database_id"; database_id: string; } | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; in_trash?: boolean | undefined; }, { operation: "update_data_source"; data_source_id: string; properties?: Record<string, unknown> | undefined; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "database_id"; database_id: string; } | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; in_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_database">; parent: z.ZodEffects<z.ZodEffects<z.ZodObject<{ type: z.ZodEnum<["page_id", "workspace"]>; page_id: z.ZodOptional<z.ZodString>; workspace: z.ZodOptional<z.ZodLiteral<true>>; }, "strip", z.ZodTypeAny, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>, { type: "workspace"; workspace: boolean; page_id?: undefined; } | { type: "page_id"; page_id: string; workspace?: undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>; initial_data_source: z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; }, { properties: Record<string, unknown>; }>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; cover: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { type: "workspace"; workspace: boolean; page_id?: undefined; } | { type: "page_id"; page_id: string; workspace?: undefined; }; operation: "create_database"; initial_data_source: { properties: Record<string, unknown>; }; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; }, { parent: { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }; operation: "create_database"; initial_data_source: { properties: Record<string, unknown>; }; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_database">; database_id: z.ZodString; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_database"; database_id: string; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; } | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; is_inline?: boolean | undefined; }, { operation: "update_database"; database_id: string; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; } | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; is_inline?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_block_children">; block_id: z.ZodString; children: z.ZodArray<z.ZodUnknown, "many">; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "append_block_children"; block_id: string; children: unknown[]; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "append_block_children"; block_id: string; children: unknown[]; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block_children">; block_id: z.ZodString; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_block_children"; block_id: string; page_size: number; credentials?: Partial<Record<CredentialType, string>> | undefined; start_cursor?: string | undefined; }, { operation: "retrieve_block_children"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block">; block_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_block">; block_id: z.ZodString; archived: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; archived?: boolean | undefined; }, { operation: "update_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_comment">; parent: z.ZodObject<{ page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { block_id?: string | undefined; page_id?: string | undefined; }, { block_id?: string | undefined; page_id?: string | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ file_upload_id: z.ZodString; type: z.ZodOptional<z.ZodLiteral<"file_upload">>; }, "strip", z.ZodTypeAny, { file_upload_id: string; type?: "file_upload" | undefined; }, { file_upload_id: string; type?: "file_upload" | undefined; }>, "many">>; display_name: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["integration", "user", "custom"]>; custom: z.ZodOptional<z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>>; }, "strip", z.ZodTypeAny, { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; }, { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { block_id?: string | undefined; page_id?: string | undefined; }; operation: "create_comment"; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; attachments?: { file_upload_id: string; type?: "file_upload" | undefined; }[] | undefined; display_name?: { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; } | undefined; }, { parent: { block_id?: string | undefined; page_id?: string | undefined; }; operation: "create_comment"; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; credentials?: Partial<Record<CredentialType, string>> | undefined; attachments?: { file_upload_id: string; type?: "file_upload" | undefined; }[] | undefined; display_name?: { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_comment">; comment_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_comment"; comment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_comment"; comment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page_size: number; credentials?: Partial<Record<CredentialType, string>> | undefined; start_cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodOptional<z.ZodString>; sort: z.ZodOptional<z.ZodObject<{ direction: z.ZodEnum<["ascending", "descending"]>; timestamp: z.ZodLiteral<"last_edited_time">; }, "strip", z.ZodTypeAny, { timestamp: "last_edited_time"; direction: "ascending" | "descending"; }, { timestamp: "last_edited_time"; direction: "ascending" | "descending"; }>>; filter: z.ZodOptional<z.ZodObject<{ value: z.ZodEnum<["page", "data_source"]>; property: z.ZodLiteral<"object">; }, "strip", z.ZodTypeAny, { value: "page" | "data_source"; property: "object"; }, { value: "page" | "data_source"; property: "object"; }>>; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search"; page_size: number; sort?: { timestamp: "last_edited_time"; direction: "ascending" | "descending"; } | undefined; filter?: { value: "page" | "data_source"; property: "object"; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; start_cursor?: string | undefined; }, { operation: "search"; sort?: { timestamp: "last_edited_time"; direction: "ascending" | "descending"; } | undefined; filter?: { value: "page" | "data_source"; property: "object"; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "retrieve_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "retrieve_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query_data_source">; success: z.ZodBoolean; error: z.ZodString; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query_data_source"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "query_data_source"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_data_source">; success: z.ZodBoolean; error: z.ZodString; dataSource: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_data_source"; dataSource?: z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "create_data_source"; dataSource?: z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_data_source">; success: z.ZodBoolean; error: z.ZodString; dataSource: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_data_source"; dataSource?: z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "update_data_source"; dataSource?: z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_block_children">; success: z.ZodBoolean; error: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "append_block_children"; blocks?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "append_block_children"; blocks?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block_children">; success: z.ZodBoolean; error: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_block_children"; blocks?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "retrieve_block_children"; blocks?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block">; success: z.ZodBoolean; error: z.ZodString; block: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_block"; block?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "retrieve_block"; block?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_block">; success: z.ZodBoolean; error: z.ZodString; block: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_block"; block?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "update_block"; block?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_comment">; success: z.ZodBoolean; error: z.ZodString; comment: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"comment">; id: z.ZodString; parent: z.ZodObject<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; discussion_id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; }, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; } | undefined; }, { error: string; success: boolean; operation: "create_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_comment">; success: z.ZodBoolean; error: z.ZodString; comment: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"comment">; id: z.ZodString; parent: z.ZodObject<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; discussion_id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; }, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; } | undefined; }, { error: string; success: boolean; operation: "retrieve_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; error: z.ZodString; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; error: z.ZodString; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "search"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>]>; static readonly shortDescription = "Notion API integration for pages, databases, and blocks"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "notion"; constructor(params?: T, context?: BubbleContext, instanceId?: string); testCredential(): Promise<boolean>; protected chooseCredential(): string | undefined; protected performAction(context?: BubbleContext): Promise<Extract<NotionResult, { operation: T['operation']; }>>; private createPage; private retrievePage; private updatePage; private retrieveDatabase; private queryDataSource; private updateDataSource; private createDataSource; private createDatabase; private updateDatabase; private appendBlockChildren; private retrieveBlockChildren; private retrieveBlock; private updateBlock; private createComment; private retrieveComment; private listUsers; private search; private makeNotionApiCall; }
849
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; declare const NotionParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_page">; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; children: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; cover: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; operation: "create_page"; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; children?: unknown[] | undefined; }, { parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; operation: "create_page"; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; children?: unknown[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_page">; page_id: z.ZodString; filter_properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; }, { operation: "retrieve_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; page_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_page"; page_id: string; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; archived?: boolean | undefined; in_trash?: boolean | undefined; }, { operation: "update_page"; page_id: string; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; archived?: boolean | undefined; in_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_database">; database_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_database"; database_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_database"; database_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query_data_source">; data_source_id: z.ZodString; filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; sorts: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; filter_properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; result_type: z.ZodOptional<z.ZodEnum<["page", "data_source"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "query_data_source"; page_size: number; data_source_id: string; filter?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; sorts?: unknown[] | undefined; start_cursor?: string | undefined; result_type?: "page" | "data_source" | undefined; }, { operation: "query_data_source"; data_source_id: string; filter?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; filter_properties?: string[] | undefined; sorts?: unknown[] | undefined; start_cursor?: string | undefined; result_type?: "page" | "data_source" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_data_source">; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; parent: { type: "database_id"; database_id: string; }; operation: "create_data_source"; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; }, { properties: Record<string, unknown>; parent: { type: "database_id"; database_id: string; }; operation: "create_data_source"; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_data_source">; data_source_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; in_trash: z.ZodOptional<z.ZodBoolean>; parent: z.ZodOptional<z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_data_source"; data_source_id: string; properties?: Record<string, unknown> | undefined; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "database_id"; database_id: string; } | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; in_trash?: boolean | undefined; }, { operation: "update_data_source"; data_source_id: string; properties?: Record<string, unknown> | undefined; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "database_id"; database_id: string; } | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; in_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_database">; parent: z.ZodEffects<z.ZodEffects<z.ZodObject<{ type: z.ZodEnum<["page_id", "workspace"]>; page_id: z.ZodOptional<z.ZodString>; workspace: z.ZodOptional<z.ZodLiteral<true>>; }, "strip", z.ZodTypeAny, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>, { type: "workspace"; workspace: boolean; page_id?: undefined; } | { type: "page_id"; page_id: string; workspace?: undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>; initial_data_source: z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; }, { properties: Record<string, unknown>; }>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; cover: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { type: "workspace"; workspace: boolean; page_id?: undefined; } | { type: "page_id"; page_id: string; workspace?: undefined; }; operation: "create_database"; initial_data_source: { properties: Record<string, unknown>; }; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; }, { parent: { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }; operation: "create_database"; initial_data_source: { properties: Record<string, unknown>; }; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_database">; database_id: z.ZodString; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_database"; database_id: string; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; } | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; is_inline?: boolean | undefined; }, { operation: "update_database"; database_id: string; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; } | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; is_inline?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_block_children">; block_id: z.ZodString; children: z.ZodArray<z.ZodUnknown, "many">; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "append_block_children"; block_id: string; children: unknown[]; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "append_block_children"; block_id: string; children: unknown[]; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block_children">; block_id: z.ZodString; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_block_children"; block_id: string; page_size: number; credentials?: Partial<Record<CredentialType, string>> | undefined; start_cursor?: string | undefined; }, { operation: "retrieve_block_children"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block">; block_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_block">; block_id: z.ZodString; archived: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; archived?: boolean | undefined; }, { operation: "update_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_comment">; parent: z.ZodObject<{ page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { block_id?: string | undefined; page_id?: string | undefined; }, { block_id?: string | undefined; page_id?: string | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ file_upload_id: z.ZodString; type: z.ZodOptional<z.ZodLiteral<"file_upload">>; }, "strip", z.ZodTypeAny, { file_upload_id: string; type?: "file_upload" | undefined; }, { file_upload_id: string; type?: "file_upload" | undefined; }>, "many">>; display_name: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["integration", "user", "custom"]>; custom: z.ZodOptional<z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>>; }, "strip", z.ZodTypeAny, { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; }, { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { block_id?: string | undefined; page_id?: string | undefined; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; operation: "create_comment"; credentials?: Partial<Record<CredentialType, string>> | undefined; attachments?: { file_upload_id: string; type?: "file_upload" | undefined; }[] | undefined; display_name?: { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; } | undefined; }, { parent: { block_id?: string | undefined; page_id?: string | undefined; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; operation: "create_comment"; credentials?: Partial<Record<CredentialType, string>> | undefined; attachments?: { file_upload_id: string; type?: "file_upload" | undefined; }[] | undefined; display_name?: { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_comment">; comment_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_comment"; comment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_comment"; comment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page_size: number; credentials?: Partial<Record<CredentialType, string>> | undefined; start_cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodOptional<z.ZodString>; sort: z.ZodOptional<z.ZodObject<{ direction: z.ZodEnum<["ascending", "descending"]>; timestamp: z.ZodLiteral<"last_edited_time">; }, "strip", z.ZodTypeAny, { timestamp: "last_edited_time"; direction: "ascending" | "descending"; }, { timestamp: "last_edited_time"; direction: "ascending" | "descending"; }>>; filter: z.ZodOptional<z.ZodObject<{ value: z.ZodEnum<["page", "data_source"]>; property: z.ZodLiteral<"object">; }, "strip", z.ZodTypeAny, { value: "page" | "data_source"; property: "object"; }, { value: "page" | "data_source"; property: "object"; }>>; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search"; page_size: number; sort?: { timestamp: "last_edited_time"; direction: "ascending" | "descending"; } | undefined; filter?: { value: "page" | "data_source"; property: "object"; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; start_cursor?: string | undefined; }, { operation: "search"; sort?: { timestamp: "last_edited_time"; direction: "ascending" | "descending"; } | undefined; filter?: { value: "page" | "data_source"; property: "object"; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>]>; declare const NotionResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "retrieve_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "retrieve_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query_data_source">; success: z.ZodBoolean; error: z.ZodString; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query_data_source"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "query_data_source"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_data_source">; success: z.ZodBoolean; error: z.ZodString; dataSource: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_data_source"; dataSource?: z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "create_data_source"; dataSource?: z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_data_source">; success: z.ZodBoolean; error: z.ZodString; dataSource: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_data_source"; dataSource?: z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "update_data_source"; dataSource?: z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_block_children">; success: z.ZodBoolean; error: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "append_block_children"; blocks?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "append_block_children"; blocks?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block_children">; success: z.ZodBoolean; error: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_block_children"; blocks?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "retrieve_block_children"; blocks?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block">; success: z.ZodBoolean; error: z.ZodString; block: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_block"; block?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "retrieve_block"; block?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_block">; success: z.ZodBoolean; error: z.ZodString; block: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_block"; block?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "update_block"; block?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_comment">; success: z.ZodBoolean; error: z.ZodString; comment: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"comment">; id: z.ZodString; parent: z.ZodObject<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; discussion_id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; }, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; } | undefined; }, { error: string; success: boolean; operation: "create_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_comment">; success: z.ZodBoolean; error: z.ZodString; comment: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"comment">; id: z.ZodString; parent: z.ZodObject<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; discussion_id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; }, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; } | undefined; }, { error: string; success: boolean; operation: "retrieve_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; error: z.ZodString; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; error: z.ZodString; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "search"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>]>; type NotionParams = z.input<typeof NotionParamsSchema>;; type NotionResult = z.output<typeof NotionResultSchema>; export declare class NotionBubble<T extends NotionParams = NotionParams> extends ServiceBubble<T & { credentials?: Partial<Record<CredentialType, string>>; }, Extract<NotionResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "notion"; static readonly authType: "oauth"; static readonly bubbleName = "notion"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_page">; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; children: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; cover: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; operation: "create_page"; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; children?: unknown[] | undefined; }, { parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; operation: "create_page"; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; children?: unknown[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_page">; page_id: z.ZodString; filter_properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; }, { operation: "retrieve_page"; page_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; page_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_page"; page_id: string; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; archived?: boolean | undefined; in_trash?: boolean | undefined; }, { operation: "update_page"; page_id: string; properties?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; archived?: boolean | undefined; in_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_database">; database_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_database"; database_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_database"; database_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query_data_source">; data_source_id: z.ZodString; filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; sorts: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; filter_properties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; result_type: z.ZodOptional<z.ZodEnum<["page", "data_source"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "query_data_source"; page_size: number; data_source_id: string; filter?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; filter_properties?: string[] | undefined; sorts?: unknown[] | undefined; start_cursor?: string | undefined; result_type?: "page" | "data_source" | undefined; }, { operation: "query_data_source"; data_source_id: string; filter?: Record<string, unknown> | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; filter_properties?: string[] | undefined; sorts?: unknown[] | undefined; start_cursor?: string | undefined; result_type?: "page" | "data_source" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_data_source">; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; parent: { type: "database_id"; database_id: string; }; operation: "create_data_source"; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; }, { properties: Record<string, unknown>; parent: { type: "database_id"; database_id: string; }; operation: "create_data_source"; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_data_source">; data_source_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; in_trash: z.ZodOptional<z.ZodBoolean>; parent: z.ZodOptional<z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_data_source"; data_source_id: string; properties?: Record<string, unknown> | undefined; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "database_id"; database_id: string; } | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; in_trash?: boolean | undefined; }, { operation: "update_data_source"; data_source_id: string; properties?: Record<string, unknown> | undefined; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "database_id"; database_id: string; } | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; in_trash?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_database">; parent: z.ZodEffects<z.ZodEffects<z.ZodObject<{ type: z.ZodEnum<["page_id", "workspace"]>; page_id: z.ZodOptional<z.ZodString>; workspace: z.ZodOptional<z.ZodLiteral<true>>; }, "strip", z.ZodTypeAny, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>, { type: "workspace"; workspace: boolean; page_id?: undefined; } | { type: "page_id"; page_id: string; workspace?: undefined; }, { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }>; initial_data_source: z.ZodObject<{ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; }, "strip", z.ZodTypeAny, { properties: Record<string, unknown>; }, { properties: Record<string, unknown>; }>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>; cover: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { type: "workspace"; workspace: boolean; page_id?: undefined; } | { type: "page_id"; page_id: string; workspace?: undefined; }; operation: "create_database"; initial_data_source: { properties: Record<string, unknown>; }; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; }, { parent: { type: "workspace" | "page_id"; workspace?: true | undefined; page_id?: string | undefined; }; operation: "create_database"; initial_data_source: { properties: Record<string, unknown>; }; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_database">; database_id: z.ZodString; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>, z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_database"; database_id: string; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; } | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; is_inline?: boolean | undefined; }, { operation: "update_database"; database_id: string; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; title?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; parent?: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; } | undefined; is_locked?: boolean | undefined; icon?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | { type: "emoji"; emoji: string; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; is_inline?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_block_children">; block_id: z.ZodString; children: z.ZodArray<z.ZodUnknown, "many">; after: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "append_block_children"; block_id: string; children: unknown[]; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }, { operation: "append_block_children"; block_id: string; children: unknown[]; credentials?: Partial<Record<CredentialType, string>> | undefined; after?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block_children">; block_id: z.ZodString; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_block_children"; block_id: string; page_size: number; credentials?: Partial<Record<CredentialType, string>> | undefined; start_cursor?: string | undefined; }, { operation: "retrieve_block_children"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block">; block_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_block">; block_id: z.ZodString; archived: z.ZodOptional<z.ZodBoolean>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; archived?: boolean | undefined; }, { operation: "update_block"; block_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_comment">; parent: z.ZodObject<{ page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { block_id?: string | undefined; page_id?: string | undefined; }, { block_id?: string | undefined; page_id?: string | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ file_upload_id: z.ZodString; type: z.ZodOptional<z.ZodLiteral<"file_upload">>; }, "strip", z.ZodTypeAny, { file_upload_id: string; type?: "file_upload" | undefined; }, { file_upload_id: string; type?: "file_upload" | undefined; }>, "many">>; display_name: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["integration", "user", "custom"]>; custom: z.ZodOptional<z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>>; }, "strip", z.ZodTypeAny, { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; }, { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { parent: { block_id?: string | undefined; page_id?: string | undefined; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; operation: "create_comment"; credentials?: Partial<Record<CredentialType, string>> | undefined; attachments?: { file_upload_id: string; type?: "file_upload" | undefined; }[] | undefined; display_name?: { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; } | undefined; }, { parent: { block_id?: string | undefined; page_id?: string | undefined; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; operation: "create_comment"; credentials?: Partial<Record<CredentialType, string>> | undefined; attachments?: { file_upload_id: string; type?: "file_upload" | undefined; }[] | undefined; display_name?: { type: "custom" | "user" | "integration"; custom?: { name: string; } | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_comment">; comment_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "retrieve_comment"; comment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "retrieve_comment"; comment_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page_size: number; credentials?: Partial<Record<CredentialType, string>> | undefined; start_cursor?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodOptional<z.ZodString>; sort: z.ZodOptional<z.ZodObject<{ direction: z.ZodEnum<["ascending", "descending"]>; timestamp: z.ZodLiteral<"last_edited_time">; }, "strip", z.ZodTypeAny, { timestamp: "last_edited_time"; direction: "ascending" | "descending"; }, { timestamp: "last_edited_time"; direction: "ascending" | "descending"; }>>; filter: z.ZodOptional<z.ZodObject<{ value: z.ZodEnum<["page", "data_source"]>; property: z.ZodLiteral<"object">; }, "strip", z.ZodTypeAny, { value: "page" | "data_source"; property: "object"; }, { value: "page" | "data_source"; property: "object"; }>>; start_cursor: z.ZodOptional<z.ZodString>; page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search"; page_size: number; sort?: { timestamp: "last_edited_time"; direction: "ascending" | "descending"; } | undefined; filter?: { value: "page" | "data_source"; property: "object"; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; start_cursor?: string | undefined; }, { operation: "search"; sort?: { timestamp: "last_edited_time"; direction: "ascending" | "descending"; } | undefined; filter?: { value: "page" | "data_source"; property: "object"; } | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page_size?: number | undefined; start_cursor?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"create_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "retrieve_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_page">; success: z.ZodBoolean; error: z.ZodString; page: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"page">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; url: z.ZodString; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }, { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_page"; page?: { object: "page"; properties: Record<string, unknown>; id: string; url: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; last_edited_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; archived: boolean; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "retrieve_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query_data_source">; success: z.ZodBoolean; error: z.ZodString; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query_data_source"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "query_data_source"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_data_source">; success: z.ZodBoolean; error: z.ZodString; dataSource: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_data_source"; dataSource?: z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "create_data_source"; dataSource?: z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_data_source">; success: z.ZodBoolean; error: z.ZodString; dataSource: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_data_source"; dataSource?: z.objectOutputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "update_data_source"; dataSource?: z.objectInputType<{ object: z.ZodLiteral<"data_source">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; properties: z.ZodRecord<z.ZodString, z.ZodUnknown>; parent: z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, z.ZodTypeAny, "passthrough">>; database_parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; is_inline: z.ZodOptional<z.ZodBoolean>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; title: z.ZodDefault<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_database">; success: z.ZodBoolean; error: z.ZodString; database: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"database">; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; title: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; description: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">>; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; parent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>; is_inline: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; is_locked: z.ZodOptional<z.ZodBoolean>; data_sources: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"emoji">; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { type: "emoji"; emoji: string; }, { type: "emoji"; emoji: string; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>]>>>; cover: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"file">; file: z.ZodObject<{ url: z.ZodString; expiry_time: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; expiry_time: string; }, { url: string; expiry_time: string; }>; }, "strip", z.ZodTypeAny, { type: "file"; file: { url: string; expiry_time: string; }; }, { type: "file"; file: { url: string; expiry_time: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"file_upload">; file_upload: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { type: "file_upload"; file_upload: { id: string; }; }, { type: "file_upload"; file_upload: { id: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; external: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { type: "external"; external: { url: string; }; }, { type: "external"; external: { url: string; }; }>]>>>; }, "strip", z.ZodTypeAny, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }, { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }>, "many">; url: z.ZodOptional<z.ZodString>; public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }, { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_database"; database?: { object: "database"; title: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; id: string; parent: { type: "page_id"; page_id: string; } | { type: "database_id"; database_id: string; } | { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; } | { type: "block_id"; block_id: string; } | { type: "workspace"; workspace: true; }; created_time: string; last_edited_time: string; data_sources: { name: string; id: string; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; }[]; description?: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[] | undefined; url?: string | undefined; is_locked?: boolean | undefined; icon?: { type: "emoji"; emoji: string; } | { type: "external"; external: { url: string; }; } | { type: "file"; file: { url: string; expiry_time: string; }; } | null | undefined; cover?: { type: "file"; file: { url: string; expiry_time: string; }; } | { type: "file_upload"; file_upload: { id: string; }; } | { type: "external"; external: { url: string; }; } | null | undefined; in_trash?: boolean | undefined; public_url?: string | null | undefined; is_inline?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"append_block_children">; success: z.ZodBoolean; error: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "append_block_children"; blocks?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "append_block_children"; blocks?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block_children">; success: z.ZodBoolean; error: z.ZodString; blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_block_children"; blocks?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "retrieve_block_children"; blocks?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_block">; success: z.ZodBoolean; error: z.ZodString; block: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_block"; block?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "retrieve_block"; block?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_block">; success: z.ZodBoolean; error: z.ZodString; block: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_block"; block?: z.objectOutputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }, { error: string; success: boolean; operation: "update_block"; block?: z.objectInputType<{ object: z.ZodLiteral<"block">; id: z.ZodString; parent: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"page_id">; page_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page_id"; page_id: string; }, { type: "page_id"; page_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"database_id">; database_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "database_id"; database_id: string; }, { type: "database_id"; database_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"data_source_id">; data_source_id: z.ZodString; database_id: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }, { type: "data_source_id"; data_source_id: string; database_id?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"block_id">; block_id: z.ZodString; }, "strip", z.ZodTypeAny, { type: "block_id"; block_id: string; }, { type: "block_id"; block_id: string; }>, z.ZodObject<{ type: z.ZodLiteral<"workspace">; workspace: z.ZodLiteral<true>; }, "strip", z.ZodTypeAny, { type: "workspace"; workspace: true; }, { type: "workspace"; workspace: true; }>]>>; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; last_edited_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; has_children: z.ZodBoolean; archived: z.ZodBoolean; in_trash: z.ZodOptional<z.ZodBoolean>; type: z.ZodString; }, z.ZodTypeAny, "passthrough"> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_comment">; success: z.ZodBoolean; error: z.ZodString; comment: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"comment">; id: z.ZodString; parent: z.ZodObject<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; discussion_id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; }, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; } | undefined; }, { error: string; success: boolean; operation: "create_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"retrieve_comment">; success: z.ZodBoolean; error: z.ZodString; comment: z.ZodOptional<z.ZodObject<{ object: z.ZodLiteral<"comment">; id: z.ZodString; parent: z.ZodObject<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodEnum<["page_id", "block_id"]>; page_id: z.ZodOptional<z.ZodString>; block_id: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>; discussion_id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; created_by: z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>; rich_text: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["text", "mention", "equation"]>; text: z.ZodOptional<z.ZodObject<{ content: z.ZodString; link: z.ZodOptional<z.ZodNullable<z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>>; }, "strip", z.ZodTypeAny, { content: string; link?: { url: string; } | null | undefined; }, { content: string; link?: { url: string; } | null | undefined; }>>; annotations: z.ZodOptional<z.ZodObject<{ bold: z.ZodDefault<z.ZodBoolean>; italic: z.ZodDefault<z.ZodBoolean>; strikethrough: z.ZodDefault<z.ZodBoolean>; underline: z.ZodDefault<z.ZodBoolean>; code: z.ZodDefault<z.ZodBoolean>; color: z.ZodDefault<z.ZodEnum<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red"]>>; }, "strip", z.ZodTypeAny, { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; }, { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; }>>; plain_text: z.ZodOptional<z.ZodString>; href: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }, { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; }, { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; }>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "retrieve_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code: boolean; bold: boolean; color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red"; italic: boolean; strikethrough: boolean; underline: boolean; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; } | undefined; }, { error: string; success: boolean; operation: "retrieve_comment"; comment?: { object: "comment"; id: string; parent: { type: "block_id" | "page_id"; block_id?: string | undefined; page_id?: string | undefined; } & { [k: string]: unknown; }; rich_text: { type: "text" | "mention" | "equation"; text?: { content: string; link?: { url: string; } | null | undefined; } | undefined; plain_text?: string | undefined; annotations?: { code?: boolean | undefined; bold?: boolean | undefined; color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | undefined; italic?: boolean | undefined; strikethrough?: boolean | undefined; underline?: boolean | undefined; } | undefined; href?: string | null | undefined; }[]; created_time: string; last_edited_time: string; created_by: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }; discussion_id: string; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; error: z.ZodString; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodLiteral<"user">; id: z.ZodString; type: z.ZodOptional<z.ZodEnum<["person", "bot"]>>; name: z.ZodOptional<z.ZodString>; avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; person: z.ZodOptional<z.ZodObject<{ email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { email?: string | undefined; }, { email?: string | undefined; }>>; bot: z.ZodOptional<z.ZodObject<{ owner: z.ZodOptional<z.ZodObject<{ type: z.ZodEnum<["workspace", "user"]>; workspace: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "user" | "workspace"; workspace?: boolean | undefined; }, { type: "user" | "workspace"; workspace?: boolean | undefined; }>>; workspace_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }, { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }, { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { object: "user"; id: string; type?: "person" | "bot" | undefined; name?: string | undefined; person?: { email?: string | undefined; } | undefined; avatar_url?: string | null | undefined; bot?: { owner?: { type: "user" | "workspace"; workspace?: boolean | undefined; } | undefined; workspace_name?: string | undefined; } | undefined; }[] | undefined; next_cursor?: string | null | undefined; has_more?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; error: z.ZodString; results: z.ZodOptional<z.ZodArray<z.ZodObject<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">>, "many">>; next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>; has_more: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectOutputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }, { error: string; success: boolean; operation: "search"; next_cursor?: string | null | undefined; has_more?: boolean | undefined; results?: z.objectInputType<{ object: z.ZodEnum<["page", "data_source"]>; id: z.ZodString; created_time: z.ZodString; last_edited_time: z.ZodString; url: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; title: z.ZodOptional<z.ZodArray<z.ZodObject<{ plain_text: z.ZodOptional<z.ZodString>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ plain_text: z.ZodOptional<z.ZodString>; }, z.ZodTypeAny, "passthrough">>, "many">>; parent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; archived: z.ZodOptional<z.ZodBoolean>; in_trash: z.ZodOptional<z.ZodBoolean>; }, z.ZodTypeAny, "passthrough">[] | undefined; }>]>; static readonly shortDescription = "Notion API integration for pages, databases, and blocks"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "notion"; constructor(params?: T, context?: BubbleContext, instanceId?: string); testCredential(): Promise<boolean>; protected chooseCredential(): string | undefined; protected performAction(context?: BubbleContext): Promise<Extract<NotionResult, { operation: T['operation']; }>>; private createPage; private retrievePage; private updatePage; private retrieveDatabase; private queryDataSource; private updateDataSource; private createDataSource; private createDatabase; private updateDatabase; private appendBlockChildren; private retrieveBlockChildren; private retrieveBlock; private updateBlock; private createComment; private retrieveComment; private listUsers; private search; private makeNotionApiCall; }
845
850
  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>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
846
851
  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; }
847
852
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }