@bubblelab/bubble-core 0.1.277 → 0.1.278

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.
@@ -1179,9 +1179,9 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1179
1179
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1180
1180
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1181
1181
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
1182
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; type: z.ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: z.ZodString; description: z.ZodOptional<z.ZodString>; required: z.ZodOptional<z.ZodBoolean>; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; custom_field_options: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: z.ZodOptional<z.ZodString>; regexp_for_validation: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; ticket_field_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; active: z.ZodOptional<z.ZodBoolean>; category: z.ZodOptional<z.ZodString>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; ticket_id: z.ZodString; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; title: z.ZodString; actions: z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; macro_id: z.ZodString; title: z.ZodOptional<z.ZodString>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: z.ZodOptional<z.ZodBoolean>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; query: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; success: z.ZodBoolean; ticket_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; success: z.ZodBoolean; ticket_field: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodObject<{ ticket: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; comment: z.ZodOptional<z.ZodObject<{ body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; scoped_body: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; }, "strip", z.ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", z.ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export
1183
- type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>;;;;; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare class ZendeskBubble<T extends ZendeskParamsInput = ZendeskParamsInput> extends ServiceBubble<T, Extract<ZendeskResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "zendesk"; static readonly authType: "oauth"; static readonly bubbleName = "zendesk"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; ticket_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; subject: import("zod").ZodString; body: import("zod").ZodString; requester_email: import("zod").ZodOptional<import("zod").ZodString>; requester_name: import("zod").ZodOptional<import("zod").ZodString>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; type: import("zod").ZodOptional<import("zod").ZodEnum<["problem", "incident", "question", "task"]>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; ticket_id: import("zod").ZodString; comment: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; ticket_id: import("zod").ZodString; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; query: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodEnum<["end-user", "agent", "admin"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; query: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; organization_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; query: import("zod").ZodString; sort_by: import("zod").ZodOptional<import("zod").ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; query: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodString>; category_id: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; article_id: import("zod").ZodString; locale: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_fields">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket_field">; type: import("zod").ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; active: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; custom_field_options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: import("zod").ZodOptional<import("zod").ZodString>; regexp_for_validation: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_ticket_field">; ticket_field_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_macros">; active: import("zod").ZodOptional<import("zod").ZodBoolean>; category: import("zod").ZodOptional<import("zod").ZodString>; include: import("zod").ZodOptional<import("zod").ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_macro">; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"apply_macro">; ticket_id: import("zod").ZodString; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_macro">; title: import("zod").ZodString; actions: import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; description: import("zod").ZodOptional<import("zod").ZodString>; restriction: import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodString; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_macro">; macro_id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; description: import("zod").ZodOptional<import("zod").ZodString>; restriction: import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodString; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_macro">; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_macros">; query: import("zod").ZodString; active: import("zod").ZodOptional<import("zod").ZodBoolean>; include: import("zod").ZodOptional<import("zod").ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; success: import("zod").ZodBoolean; tickets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; success: import("zod").ZodBoolean; comments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; success: import("zod").ZodBoolean; users: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; success: import("zod").ZodBoolean; user: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; success: import("zod").ZodBoolean; organizations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; success: import("zod").ZodBoolean; organization: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_fields">; success: import("zod").ZodBoolean; ticket_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; type: import("zod").ZodString; title: import("zod").ZodString; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; custom_field_options: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", import("zod").ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket_field">; success: import("zod").ZodBoolean; ticket_field: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; type: import("zod").ZodString; title: import("zod").ZodString; active: import("zod").ZodOptional<import("zod").ZodBoolean>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; custom_field_options: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", import("zod").ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_ticket_field">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; success: import("zod").ZodBoolean; articles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; success: import("zod").ZodBoolean; article: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_macros">; success: import("zod").ZodBoolean; macros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"apply_macro">; success: import("zod").ZodBoolean; result: import("zod").ZodOptional<import("zod").ZodObject<{ ticket: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; comment: import("zod").ZodOptional<import("zod").ZodObject<{ body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; scoped_body: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>; }, "strip", import("zod").ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", import("zod").ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_macro">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_macros">; success: import("zod").ZodBoolean; macros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>]>; static readonly shortDescription = "Zendesk integration for tickets, comments, users, and help center"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "support"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private parseCredentials; protected chooseCredential(): string | undefined; private makeZendeskApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<ZendeskResult, { operation: T['operation']; }>>; private listTickets; private getTicket; private createTicket; private updateTicket; private listTicketFields; private createTicketField; private deleteTicketField; private listTicketComments; private listUsers; private getUser; private listOrganizations; private getOrganization; private search; private listArticles; private getArticle; private listMacros; private getMacro; private applyMacro; private createMacro; private updateMacro; private deleteMacro; private searchMacros; private mapTicket; private mapComment; private mapUser; private mapOrganization; private mapMacro; private mapArticle; }
1184
- export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; type: z.ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: z.ZodString; description: z.ZodOptional<z.ZodString>; required: z.ZodOptional<z.ZodBoolean>; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; custom_field_options: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: z.ZodOptional<z.ZodString>; regexp_for_validation: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; ticket_field_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; active: z.ZodOptional<z.ZodBoolean>; category: z.ZodOptional<z.ZodString>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; ticket_id: z.ZodString; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; title: z.ZodString; actions: z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; macro_id: z.ZodString; title: z.ZodOptional<z.ZodString>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: z.ZodOptional<z.ZodBoolean>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; query: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; success: z.ZodBoolean; ticket_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; success: z.ZodBoolean; ticket_field: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodObject<{ ticket: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; comment: z.ZodOptional<z.ZodObject<{ body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; scoped_body: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; }, "strip", z.ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", z.ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1182
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; type: z.ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: z.ZodString; description: z.ZodOptional<z.ZodString>; required: z.ZodOptional<z.ZodBoolean>; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; custom_field_options: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: z.ZodOptional<z.ZodString>; regexp_for_validation: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; ticket_field_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; active: z.ZodOptional<z.ZodBoolean>; category: z.ZodOptional<z.ZodString>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; ticket_id: z.ZodString; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; title: z.ZodString; actions: z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; macro_id: z.ZodString; title: z.ZodOptional<z.ZodString>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: z.ZodOptional<z.ZodBoolean>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; query: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_attachment">; filename: z.ZodString; content: z.ZodString; content_type: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; file_name: z.ZodString; content_url: z.ZodString; content_type: z.ZodString; size: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; success: z.ZodBoolean; ticket_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; success: z.ZodBoolean; ticket_field: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodObject<{ ticket: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; comment: z.ZodOptional<z.ZodObject<{ body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; scoped_body: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; }, "strip", z.ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", z.ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_attachment">; success: z.ZodBoolean; upload: z.ZodOptional<z.ZodObject<{ token: z.ZodString; attachment: z.ZodObject<{ id: z.ZodNumber; file_name: z.ZodString; content_url: z.ZodString; size: z.ZodNumber; content_type: z.ZodString; }, "strip", z.ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>; }, "strip", z.ZodTypeAny, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export
1183
+ type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>;;;;; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare class ZendeskBubble<T extends ZendeskParamsInput = ZendeskParamsInput> extends ServiceBubble<T, Extract<ZendeskResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "zendesk"; static readonly authType: "oauth"; static readonly bubbleName = "zendesk"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; ticket_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; subject: import("zod").ZodString; body: import("zod").ZodString; requester_email: import("zod").ZodOptional<import("zod").ZodString>; requester_name: import("zod").ZodOptional<import("zod").ZodString>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; type: import("zod").ZodOptional<import("zod").ZodEnum<["problem", "incident", "question", "task"]>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; ticket_id: import("zod").ZodString; comment: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; ticket_id: import("zod").ZodString; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; query: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodEnum<["end-user", "agent", "admin"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; query: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; organization_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; query: import("zod").ZodString; sort_by: import("zod").ZodOptional<import("zod").ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; query: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodString>; category_id: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; article_id: import("zod").ZodString; locale: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_fields">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket_field">; type: import("zod").ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; active: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; custom_field_options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: import("zod").ZodOptional<import("zod").ZodString>; regexp_for_validation: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_ticket_field">; ticket_field_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_macros">; active: import("zod").ZodOptional<import("zod").ZodBoolean>; category: import("zod").ZodOptional<import("zod").ZodString>; include: import("zod").ZodOptional<import("zod").ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_macro">; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"apply_macro">; ticket_id: import("zod").ZodString; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_macro">; title: import("zod").ZodString; actions: import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; description: import("zod").ZodOptional<import("zod").ZodString>; restriction: import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodString; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_macro">; macro_id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; description: import("zod").ZodOptional<import("zod").ZodString>; restriction: import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodString; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_macro">; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_macros">; query: import("zod").ZodString; active: import("zod").ZodOptional<import("zod").ZodBoolean>; include: import("zod").ZodOptional<import("zod").ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"upload_attachment">; filename: import("zod").ZodString; content: import("zod").ZodString; content_type: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; success: import("zod").ZodBoolean; tickets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; success: import("zod").ZodBoolean; comments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; file_name: import("zod").ZodString; content_url: import("zod").ZodString; content_type: import("zod").ZodString; size: import("zod").ZodNumber; }, "strip", import("zod").ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; success: import("zod").ZodBoolean; users: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; success: import("zod").ZodBoolean; user: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; success: import("zod").ZodBoolean; organizations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; success: import("zod").ZodBoolean; organization: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_fields">; success: import("zod").ZodBoolean; ticket_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; type: import("zod").ZodString; title: import("zod").ZodString; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; custom_field_options: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", import("zod").ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket_field">; success: import("zod").ZodBoolean; ticket_field: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; type: import("zod").ZodString; title: import("zod").ZodString; active: import("zod").ZodOptional<import("zod").ZodBoolean>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; custom_field_options: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", import("zod").ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_ticket_field">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; success: import("zod").ZodBoolean; articles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; success: import("zod").ZodBoolean; article: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_macros">; success: import("zod").ZodBoolean; macros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"apply_macro">; success: import("zod").ZodBoolean; result: import("zod").ZodOptional<import("zod").ZodObject<{ ticket: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; comment: import("zod").ZodOptional<import("zod").ZodObject<{ body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; scoped_body: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>; }, "strip", import("zod").ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", import("zod").ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_macro">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_macros">; success: import("zod").ZodBoolean; macros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"upload_attachment">; success: import("zod").ZodBoolean; upload: import("zod").ZodOptional<import("zod").ZodObject<{ token: import("zod").ZodString; attachment: import("zod").ZodObject<{ id: import("zod").ZodNumber; file_name: import("zod").ZodString; content_url: import("zod").ZodString; size: import("zod").ZodNumber; content_type: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>; }, "strip", import("zod").ZodTypeAny, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }>]>; static readonly shortDescription = "Zendesk integration for tickets, comments, users, and help center"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "support"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private parseCredentials; protected chooseCredential(): string | undefined; private makeZendeskApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<ZendeskResult, { operation: T['operation']; }>>; private listTickets; private getTicket; private createTicket; private updateTicket; private listTicketFields; private createTicketField; private deleteTicketField; private listTicketComments; private listUsers; private getUser; private listOrganizations; private getOrganization; private search; private listArticles; private getArticle; private listMacros; private getMacro; private applyMacro; private createMacro; private updateMacro; private deleteMacro; private searchMacros; private static readonly MIME_TYPES; private inferContentType; private uploadAttachment; private mapTicket; private mapComment; private mapUser; private mapOrganization; private mapMacro; private mapArticle; }
1184
+ export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; type: z.ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: z.ZodString; description: z.ZodOptional<z.ZodString>; required: z.ZodOptional<z.ZodBoolean>; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; custom_field_options: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: z.ZodOptional<z.ZodString>; regexp_for_validation: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; ticket_field_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; active: z.ZodOptional<z.ZodBoolean>; category: z.ZodOptional<z.ZodString>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; ticket_id: z.ZodString; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; title: z.ZodString; actions: z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; macro_id: z.ZodString; title: z.ZodOptional<z.ZodString>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: z.ZodOptional<z.ZodBoolean>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; query: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_attachment">; filename: z.ZodString; content: z.ZodString; content_type: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; file_name: z.ZodString; content_url: z.ZodString; content_type: z.ZodString; size: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; success: z.ZodBoolean; ticket_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; success: z.ZodBoolean; ticket_field: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodObject<{ ticket: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; comment: z.ZodOptional<z.ZodObject<{ body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; scoped_body: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; }, "strip", z.ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", z.ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_attachment">; success: z.ZodBoolean; upload: z.ZodOptional<z.ZodObject<{ token: z.ZodString; attachment: z.ZodObject<{ id: z.ZodNumber; file_name: z.ZodString; content_url: z.ZodString; size: z.ZodNumber; content_type: z.ZodString; }, "strip", z.ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>; }, "strip", z.ZodTypeAny, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1185
1185
  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; }
1186
1186
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1187
1187
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -1199,8 +1199,8 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1199
1199
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1200
1200
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1201
1201
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
1202
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; type: z.ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: z.ZodString; description: z.ZodOptional<z.ZodString>; required: z.ZodOptional<z.ZodBoolean>; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; custom_field_options: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: z.ZodOptional<z.ZodString>; regexp_for_validation: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; ticket_field_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; active: z.ZodOptional<z.ZodBoolean>; category: z.ZodOptional<z.ZodString>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; ticket_id: z.ZodString; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; title: z.ZodString; actions: z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; macro_id: z.ZodString; title: z.ZodOptional<z.ZodString>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: z.ZodOptional<z.ZodBoolean>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; query: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; success: z.ZodBoolean; ticket_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; success: z.ZodBoolean; ticket_field: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodObject<{ ticket: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; comment: z.ZodOptional<z.ZodObject<{ body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; scoped_body: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; }, "strip", z.ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", z.ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare class ZendeskBubble<T extends ZendeskParamsInput = ZendeskParamsInput> extends ServiceBubble<T, Extract<ZendeskResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "zendesk"; static readonly authType: "oauth"; static readonly bubbleName = "zendesk"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; ticket_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; subject: import("zod").ZodString; body: import("zod").ZodString; requester_email: import("zod").ZodOptional<import("zod").ZodString>; requester_name: import("zod").ZodOptional<import("zod").ZodString>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; type: import("zod").ZodOptional<import("zod").ZodEnum<["problem", "incident", "question", "task"]>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; ticket_id: import("zod").ZodString; comment: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; ticket_id: import("zod").ZodString; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; query: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodEnum<["end-user", "agent", "admin"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; query: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; organization_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; query: import("zod").ZodString; sort_by: import("zod").ZodOptional<import("zod").ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; query: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodString>; category_id: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; article_id: import("zod").ZodString; locale: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_fields">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket_field">; type: import("zod").ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; active: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; custom_field_options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: import("zod").ZodOptional<import("zod").ZodString>; regexp_for_validation: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_ticket_field">; ticket_field_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_macros">; active: import("zod").ZodOptional<import("zod").ZodBoolean>; category: import("zod").ZodOptional<import("zod").ZodString>; include: import("zod").ZodOptional<import("zod").ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_macro">; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"apply_macro">; ticket_id: import("zod").ZodString; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_macro">; title: import("zod").ZodString; actions: import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; description: import("zod").ZodOptional<import("zod").ZodString>; restriction: import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodString; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_macro">; macro_id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; description: import("zod").ZodOptional<import("zod").ZodString>; restriction: import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodString; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_macro">; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_macros">; query: import("zod").ZodString; active: import("zod").ZodOptional<import("zod").ZodBoolean>; include: import("zod").ZodOptional<import("zod").ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; success: import("zod").ZodBoolean; tickets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; success: import("zod").ZodBoolean; comments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; success: import("zod").ZodBoolean; users: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; success: import("zod").ZodBoolean; user: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; success: import("zod").ZodBoolean; organizations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; success: import("zod").ZodBoolean; organization: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_fields">; success: import("zod").ZodBoolean; ticket_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; type: import("zod").ZodString; title: import("zod").ZodString; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; custom_field_options: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", import("zod").ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket_field">; success: import("zod").ZodBoolean; ticket_field: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; type: import("zod").ZodString; title: import("zod").ZodString; active: import("zod").ZodOptional<import("zod").ZodBoolean>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; custom_field_options: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", import("zod").ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_ticket_field">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; success: import("zod").ZodBoolean; articles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; success: import("zod").ZodBoolean; article: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_macros">; success: import("zod").ZodBoolean; macros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"apply_macro">; success: import("zod").ZodBoolean; result: import("zod").ZodOptional<import("zod").ZodObject<{ ticket: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; comment: import("zod").ZodOptional<import("zod").ZodObject<{ body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; scoped_body: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>; }, "strip", import("zod").ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", import("zod").ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_macro">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_macros">; success: import("zod").ZodBoolean; macros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>]>; static readonly shortDescription = "Zendesk integration for tickets, comments, users, and help center"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "support"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private parseCredentials; protected chooseCredential(): string | undefined; private makeZendeskApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<ZendeskResult, { operation: T['operation']; }>>; private listTickets; private getTicket; private createTicket; private updateTicket; private listTicketFields; private createTicketField; private deleteTicketField; private listTicketComments; private listUsers; private getUser; private listOrganizations; private getOrganization; private search; private listArticles; private getArticle; private listMacros; private getMacro; private applyMacro; private createMacro; private updateMacro; private deleteMacro; private searchMacros; private mapTicket; private mapComment; private mapUser; private mapOrganization; private mapMacro; private mapArticle; }
1203
- export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; type: z.ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: z.ZodString; description: z.ZodOptional<z.ZodString>; required: z.ZodOptional<z.ZodBoolean>; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; custom_field_options: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: z.ZodOptional<z.ZodString>; regexp_for_validation: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; ticket_field_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; active: z.ZodOptional<z.ZodBoolean>; category: z.ZodOptional<z.ZodString>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; ticket_id: z.ZodString; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; title: z.ZodString; actions: z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; macro_id: z.ZodString; title: z.ZodOptional<z.ZodString>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: z.ZodOptional<z.ZodBoolean>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; query: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; success: z.ZodBoolean; ticket_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; success: z.ZodBoolean; ticket_field: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodObject<{ ticket: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; comment: z.ZodOptional<z.ZodObject<{ body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; scoped_body: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; }, "strip", z.ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", z.ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1202
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; type: z.ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: z.ZodString; description: z.ZodOptional<z.ZodString>; required: z.ZodOptional<z.ZodBoolean>; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; custom_field_options: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: z.ZodOptional<z.ZodString>; regexp_for_validation: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; ticket_field_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; active: z.ZodOptional<z.ZodBoolean>; category: z.ZodOptional<z.ZodString>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; ticket_id: z.ZodString; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; title: z.ZodString; actions: z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; macro_id: z.ZodString; title: z.ZodOptional<z.ZodString>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: z.ZodOptional<z.ZodBoolean>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; query: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_attachment">; filename: z.ZodString; content: z.ZodString; content_type: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; file_name: z.ZodString; content_url: z.ZodString; content_type: z.ZodString; size: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; success: z.ZodBoolean; ticket_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; success: z.ZodBoolean; ticket_field: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodObject<{ ticket: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; comment: z.ZodOptional<z.ZodObject<{ body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; scoped_body: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; }, "strip", z.ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", z.ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_attachment">; success: z.ZodBoolean; upload: z.ZodOptional<z.ZodObject<{ token: z.ZodString; attachment: z.ZodObject<{ id: z.ZodNumber; file_name: z.ZodString; content_url: z.ZodString; size: z.ZodNumber; content_type: z.ZodString; }, "strip", z.ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>; }, "strip", z.ZodTypeAny, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare class ZendeskBubble<T extends ZendeskParamsInput = ZendeskParamsInput> extends ServiceBubble<T, Extract<ZendeskResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "zendesk"; static readonly authType: "oauth"; static readonly bubbleName = "zendesk"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; ticket_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; subject: import("zod").ZodString; body: import("zod").ZodString; requester_email: import("zod").ZodOptional<import("zod").ZodString>; requester_name: import("zod").ZodOptional<import("zod").ZodString>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; type: import("zod").ZodOptional<import("zod").ZodEnum<["problem", "incident", "question", "task"]>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; ticket_id: import("zod").ZodString; comment: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; status: import("zod").ZodOptional<import("zod").ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: import("zod").ZodOptional<import("zod").ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: import("zod").ZodOptional<import("zod").ZodNumber>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; ticket_id: import("zod").ZodString; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; query: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodEnum<["end-user", "agent", "admin"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; query: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; organization_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; query: import("zod").ZodString; sort_by: import("zod").ZodOptional<import("zod").ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["asc", "desc"]>>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; query: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodString>; category_id: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; article_id: import("zod").ZodString; locale: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_fields">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket_field">; type: import("zod").ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: import("zod").ZodString; description: import("zod").ZodOptional<import("zod").ZodString>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; active: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; custom_field_options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: import("zod").ZodOptional<import("zod").ZodString>; regexp_for_validation: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_ticket_field">; ticket_field_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_macros">; active: import("zod").ZodOptional<import("zod").ZodBoolean>; category: import("zod").ZodOptional<import("zod").ZodString>; include: import("zod").ZodOptional<import("zod").ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_macro">; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"apply_macro">; ticket_id: import("zod").ZodString; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_macro">; title: import("zod").ZodString; actions: import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; description: import("zod").ZodOptional<import("zod").ZodString>; restriction: import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodString; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_macro">; macro_id: import("zod").ZodString; title: import("zod").ZodOptional<import("zod").ZodString>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; description: import("zod").ZodOptional<import("zod").ZodString>; restriction: import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodString; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_macro">; macro_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_macros">; query: import("zod").ZodString; active: import("zod").ZodOptional<import("zod").ZodBoolean>; include: import("zod").ZodOptional<import("zod").ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; per_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"upload_attachment">; filename: import("zod").ZodString; content: import("zod").ZodString; content_type: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tickets">; success: import("zod").ZodBoolean; tickets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_ticket">; success: import("zod").ZodBoolean; ticket: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; subject: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; priority: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; type: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; requester_id: import("zod").ZodOptional<import("zod").ZodNumber>; assignee_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_comments">; success: import("zod").ZodBoolean; comments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; file_name: import("zod").ZodString; content_url: import("zod").ZodString; content_type: import("zod").ZodString; size: import("zod").ZodNumber; }, "strip", import("zod").ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>, "many">>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; success: import("zod").ZodBoolean; users: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; success: import("zod").ZodBoolean; user: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; role: import("zod").ZodOptional<import("zod").ZodString>; organization_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; success: import("zod").ZodBoolean; organizations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; success: import("zod").ZodBoolean; organization: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; name: import("zod").ZodOptional<import("zod").ZodString>; domain_names: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; external_id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search">; success: import("zod").ZodBoolean; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_ticket_fields">; success: import("zod").ZodBoolean; ticket_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; type: import("zod").ZodString; title: import("zod").ZodString; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; custom_field_options: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", import("zod").ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_ticket_field">; success: import("zod").ZodBoolean; ticket_field: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; type: import("zod").ZodString; title: import("zod").ZodString; active: import("zod").ZodOptional<import("zod").ZodBoolean>; required: import("zod").ZodOptional<import("zod").ZodBoolean>; custom_field_options: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", import("zod").ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_ticket_field">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_articles">; success: import("zod").ZodBoolean; articles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_article">; success: import("zod").ZodBoolean; article: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; body: import("zod").ZodOptional<import("zod").ZodString>; locale: import("zod").ZodOptional<import("zod").ZodString>; section_id: import("zod").ZodOptional<import("zod").ZodNumber>; author_id: import("zod").ZodOptional<import("zod").ZodNumber>; draft: import("zod").ZodOptional<import("zod").ZodBoolean>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_macros">; success: import("zod").ZodBoolean; macros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"apply_macro">; success: import("zod").ZodBoolean; result: import("zod").ZodOptional<import("zod").ZodObject<{ ticket: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; comment: import("zod").ZodOptional<import("zod").ZodObject<{ body: import("zod").ZodOptional<import("zod").ZodString>; html_body: import("zod").ZodOptional<import("zod").ZodString>; public: import("zod").ZodOptional<import("zod").ZodBoolean>; scoped_body: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>; }, "strip", import("zod").ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", import("zod").ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_macro">; success: import("zod").ZodBoolean; macro: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_macro">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_macros">; success: import("zod").ZodBoolean; macros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; title: import("zod").ZodOptional<import("zod").ZodString>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; active: import("zod").ZodOptional<import("zod").ZodBoolean>; actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ field: import("zod").ZodString; value: import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodNull]>>; }, "strip", import("zod").ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ type: import("zod").ZodOptional<import("zod").ZodString>; id: import("zod").ZodOptional<import("zod").ZodNumber>; ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>; }, "strip", import("zod").ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; updated_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: import("zod").ZodOptional<import("zod").ZodNumber>; next_page: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"upload_attachment">; success: import("zod").ZodBoolean; upload: import("zod").ZodOptional<import("zod").ZodObject<{ token: import("zod").ZodString; attachment: import("zod").ZodObject<{ id: import("zod").ZodNumber; file_name: import("zod").ZodString; content_url: import("zod").ZodString; size: import("zod").ZodNumber; content_type: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>; }, "strip", import("zod").ZodTypeAny, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }>]>; static readonly shortDescription = "Zendesk integration for tickets, comments, users, and help center"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "support"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise<boolean>; private parseCredentials; protected chooseCredential(): string | undefined; private makeZendeskApiRequest; protected performAction(context?: BubbleContext): Promise<Extract<ZendeskResult, { operation: T['operation']; }>>; private listTickets; private getTicket; private createTicket; private updateTicket; private listTicketFields; private createTicketField; private deleteTicketField; private listTicketComments; private listUsers; private getUser; private listOrganizations; private getOrganization; private search; private listArticles; private getArticle; private listMacros; private getMacro; private applyMacro; private createMacro; private updateMacro; private deleteMacro; private searchMacros; private static readonly MIME_TYPES; private inferContentType; private uploadAttachment; private mapTicket; private mapComment; private mapUser; private mapOrganization; private mapMacro; private mapArticle; }
1203
+ export declare const ZendeskParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; sort_by: z.ZodDefault<z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "status"]>>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tickets"; page: number; per_page: number; sort_by: "status" | "priority" | "created_at" | "updated_at"; sort_order: "asc" | "desc"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tickets"; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; ticket_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_ticket"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; subject: z.ZodString; body: z.ZodString; requester_email: z.ZodOptional<z.ZodString>; requester_name: z.ZodOptional<z.ZodString>; assignee_id: z.ZodOptional<z.ZodNumber>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; type: z.ZodOptional<z.ZodEnum<["problem", "incident", "question", "task"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "create_ticket"; body: string; subject: string; type?: "question" | "task" | "problem" | "incident" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; requester_email?: string | undefined; requester_name?: string | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; ticket_id: z.ZodString; comment: z.ZodOptional<z.ZodString>; public: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; status: z.ZodOptional<z.ZodEnum<["new", "open", "pending", "hold", "solved", "closed"]>>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal", "low"]>>; assignee_id: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_ticket"; public: boolean; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }, { operation: "update_ticket"; ticket_id: string; status?: "pending" | "open" | "closed" | "new" | "hold" | "solved" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; tags?: string[] | undefined; priority?: "low" | "high" | "urgent" | "normal" | undefined; public?: boolean | undefined; comment?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | undefined; uploads?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; ticket_id: z.ZodString; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_comments"; page: number; per_page: number; sort_order: "asc" | "desc"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_comments"; ticket_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; query: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodEnum<["end-user", "agent", "admin"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_users"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; }, { operation: "list_users"; credentials?: Partial<Record<CredentialType, string>> | undefined; role?: "agent" | "end-user" | "admin" | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; user_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; query: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_organizations"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; }, { operation: "list_organizations"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; page?: number | undefined; per_page?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; organization_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodString; sort_by: z.ZodOptional<z.ZodEnum<["updated_at", "created_at", "priority", "status", "ticket_type"]>>; sort_order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search"; page: number; per_page: number; sort_order: "asc" | "desc"; credentials?: Partial<Record<CredentialType, string>> | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; }, { query: string; operation: "search"; credentials?: Partial<Record<CredentialType, string>> | undefined; page?: number | undefined; per_page?: number | undefined; sort_by?: "status" | "priority" | "created_at" | "updated_at" | "ticket_type" | undefined; sort_order?: "asc" | "desc" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; query: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodString>; category_id: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_articles"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; section_id?: string | undefined; category_id?: string | undefined; }, { operation: "list_articles"; credentials?: Partial<Record<CredentialType, string>> | undefined; query?: string | undefined; locale?: string | undefined; page?: number | undefined; per_page?: number | undefined; section_id?: string | undefined; category_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; article_id: z.ZodString; locale: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }, { operation: "get_article"; article_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; locale?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_ticket_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; type: z.ZodEnum<["text", "textarea", "checkbox", "date", "integer", "decimal", "regexp", "partialcreditcard", "multiselect", "tagger", "lookup"]>; title: z.ZodString; description: z.ZodOptional<z.ZodString>; required: z.ZodOptional<z.ZodBoolean>; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; custom_field_options: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>; tag: z.ZodOptional<z.ZodString>; regexp_for_validation: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; active: boolean; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }, { type: "integer" | "date" | "text" | "checkbox" | "lookup" | "textarea" | "decimal" | "regexp" | "partialcreditcard" | "multiselect" | "tagger"; title: string; operation: "create_ticket_field"; description?: string | undefined; required?: boolean | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | undefined; tag?: string | undefined; regexp_for_validation?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; ticket_field_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_ticket_field"; ticket_field_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; active: z.ZodOptional<z.ZodBoolean>; category: z.ZodOptional<z.ZodString>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; category?: string | undefined; active?: boolean | undefined; }, { operation: "list_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; category?: string | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; ticket_id: z.ZodString; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "apply_macro"; ticket_id: string; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; title: z.ZodString; actions: z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">; active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; active: boolean; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { title: string; operation: "create_macro"; actions: { value: string | number | boolean | string[] | null; field: string; }[]; description?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; macro_id: z.ZodString; title: z.ZodOptional<z.ZodString>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; active: z.ZodOptional<z.ZodBoolean>; description: z.ZodOptional<z.ZodString>; restriction: z.ZodOptional<z.ZodObject<{ type: z.ZodString; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type: string; id?: number | undefined; ids?: number[] | undefined; }, { type: string; id?: number | undefined; ids?: number[] | undefined; }>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }, { operation: "update_macro"; macro_id: string; description?: string | undefined; title?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; active?: boolean | undefined; restriction?: { type: string; id?: number | undefined; ids?: number[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; macro_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "delete_macro"; macro_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; query: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; include: z.ZodOptional<z.ZodEnum<["usage_7d", "usage_24h", "usage_30d"]>>; page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "search_macros"; page: number; per_page: number; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; active?: boolean | undefined; }, { query: string; operation: "search_macros"; credentials?: Partial<Record<CredentialType, string>> | undefined; include?: "usage_7d" | "usage_24h" | "usage_30d" | undefined; page?: number | undefined; per_page?: number | undefined; active?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_attachment">; filename: z.ZodString; content: z.ZodString; content_type: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }, { content: string; operation: "upload_attachment"; filename: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: string | undefined; }>]>; export declare const ZendeskResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_tickets">; success: z.ZodBoolean; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_tickets"; count?: number | undefined; tickets?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_ticket">; success: z.ZodBoolean; ticket: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; subject: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; priority: z.ZodNullable<z.ZodOptional<z.ZodString>>; type: z.ZodNullable<z.ZodOptional<z.ZodString>>; requester_id: z.ZodOptional<z.ZodNumber>; assignee_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; id: number; }, { value: string | number | boolean | string[] | null; id: number; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }, { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_ticket"; ticket?: { id: number; type?: string | null | undefined; description?: string | undefined; status?: string | undefined; tags?: string[] | undefined; priority?: string | null | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | undefined; custom_fields?: { value: string | number | boolean | string[] | null; id: number; }[] | undefined; assignee_id?: number | null | undefined; organization_id?: number | null | undefined; requester_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_comments">; success: z.ZodBoolean; comments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; author_id: z.ZodOptional<z.ZodNumber>; attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; file_name: z.ZodString; content_url: z.ZodString; content_type: z.ZodString; size: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>, "many">>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }, { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_ticket_comments"; count?: number | undefined; comments?: { id: number; attachments?: { id: number; size: number; file_name: string; content_type: string; content_url: string; }[] | undefined; public?: boolean | undefined; body?: string | undefined; created_at?: string | undefined; html_body?: string | undefined; author_id?: number | undefined; }[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_users">; success: z.ZodBoolean; users: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }[] | undefined; count?: number | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_user">; success: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodString>; organization_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; active: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }, { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: { id: number; name?: string | undefined; email?: string | undefined; role?: string | undefined; created_at?: string | undefined; active?: boolean | undefined; organization_id?: number | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_organizations">; success: z.ZodBoolean; organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; count?: number | undefined; next_page?: string | null | undefined; organizations?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_organization">; success: z.ZodBoolean; organization: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; name: z.ZodOptional<z.ZodString>; domain_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }, { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: { id: number; name?: string | undefined; created_at?: string | undefined; domain_names?: string[] | undefined; external_id?: string | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; success: z.ZodBoolean; results: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }, { error: string; success: boolean; operation: "search"; count?: number | undefined; results?: Record<string, unknown>[] | undefined; next_page?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_ticket_fields">; success: z.ZodBoolean; ticket_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_ticket_fields"; ticket_fields?: { type: string; title: string; id: number; description?: string | null | undefined; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_ticket_field">; success: z.ZodBoolean; ticket_field: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; type: z.ZodString; title: z.ZodString; active: z.ZodOptional<z.ZodBoolean>; required: z.ZodOptional<z.ZodBoolean>; custom_field_options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">>>; }, "strip", z.ZodTypeAny, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }, { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_ticket_field"; ticket_field?: { type: string; title: string; id: number; required?: boolean | undefined; active?: boolean | undefined; custom_field_options?: { value: string; name: string; }[] | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_ticket_field">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_ticket_field"; }, { error: string; success: boolean; operation: "delete_ticket_field"; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_articles">; success: z.ZodBoolean; articles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_articles"; count?: number | undefined; next_page?: string | null | undefined; articles?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_article">; success: z.ZodBoolean; article: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; body: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; section_id: z.ZodOptional<z.ZodNumber>; author_id: z.ZodOptional<z.ZodNumber>; draft: z.ZodOptional<z.ZodBoolean>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }, { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_article"; article?: { id: number; title?: string | undefined; body?: string | undefined; created_at?: string | undefined; draft?: boolean | undefined; locale?: string | undefined; updated_at?: string | undefined; section_id?: number | undefined; author_id?: number | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"apply_macro">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodObject<{ ticket: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; comment: z.ZodOptional<z.ZodObject<{ body: z.ZodOptional<z.ZodString>; html_body: z.ZodOptional<z.ZodString>; public: z.ZodOptional<z.ZodBoolean>; scoped_body: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>; }, "strip", z.ZodTypeAny, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }, { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; }>>; }, "strip", z.ZodTypeAny, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }, { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }, { error: string; success: boolean; operation: "apply_macro"; result?: { comment?: { public?: boolean | undefined; body?: string | undefined; html_body?: string | undefined; scoped_body?: string[][] | undefined; } | undefined; ticket?: Record<string, unknown> | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_macro">; success: z.ZodBoolean; macro: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }, { error: string; success: boolean; operation: "update_macro"; macro?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_macro">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_macro"; }, { error: string; success: boolean; operation: "delete_macro"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_macros">; success: z.ZodBoolean; macros: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; title: z.ZodOptional<z.ZodString>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; active: z.ZodOptional<z.ZodBoolean>; actions: z.ZodOptional<z.ZodArray<z.ZodObject<{ field: z.ZodString; value: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean | string[] | null; field: string; }, { value: string | number | boolean | string[] | null; field: string; }>, "many">>; restriction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodOptional<z.ZodNumber>; ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }, { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; }>>>; created_at: z.ZodOptional<z.ZodString>; updated_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }, { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }>, "many">>; count: z.ZodOptional<z.ZodNumber>; next_page: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_macros"; count?: number | undefined; next_page?: string | null | undefined; macros?: { id: number; description?: string | null | undefined; title?: string | undefined; created_at?: string | undefined; actions?: { value: string | number | boolean | string[] | null; field: string; }[] | undefined; updated_at?: string | undefined; active?: boolean | undefined; restriction?: { type?: string | undefined; id?: number | undefined; ids?: number[] | undefined; } | null | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"upload_attachment">; success: z.ZodBoolean; upload: z.ZodOptional<z.ZodObject<{ token: z.ZodString; attachment: z.ZodObject<{ id: z.ZodNumber; file_name: z.ZodString; content_url: z.ZodString; size: z.ZodNumber; content_type: z.ZodString; }, "strip", z.ZodTypeAny, { id: number; size: number; file_name: string; content_type: string; content_url: string; }, { id: number; size: number; file_name: string; content_type: string; content_url: string; }>; }, "strip", z.ZodTypeAny, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }, { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }, { error: string; success: boolean; operation: "upload_attachment"; upload?: { token: string; attachment: { id: number; size: number; file_name: string; content_type: string; content_url: string; }; } | undefined; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export type ZendeskParamsInput = z.input<typeof ZendeskParamsSchema>; export type ZendeskResult = z.output<typeof ZendeskResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1204
1204
  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; }
1205
1205
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1206
1206
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -1755,10 +1755,10 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1755
1755
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1756
1756
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1757
1757
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
1758
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const CDPCookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>; export type CDPCookie = z.infer<typeof CDPCookieSchema>; export declare const BrowserSessionProxySchema: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; export declare const BrowserSessionDataSchema: z.ZodObject<{ contextId: z.ZodString; cookies: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">; proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionData = z.infer<typeof BrowserSessionDataSchema>; export declare const ProxyGeolocationSchema: z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>; export type ProxyGeolocation = z.infer<typeof ProxyGeolocationSchema>; export declare const BrowserbaseProxySchema: z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>; export type BrowserbaseProxy = z.infer<typeof BrowserbaseProxySchema>; export declare const ExternalProxySchema: z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>; export type ExternalProxy = z.infer<typeof ExternalProxySchema>; export declare const ProxyConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>; export type ProxyConfig = z.infer<typeof ProxyConfigSchema>; export declare const StealthConfigSchema: z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>; export type StealthConfig = z.infer<typeof StealthConfigSchema>; export declare const BrowserBaseParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; context_id: z.ZodOptional<z.ZodString>; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; viewport_height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxies: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: z.ZodOptional<z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; session_id: z.ZodString; url: z.ZodString; wait_until: z.ZodDefault<z.ZodOptional<z.ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; session_id: z.ZodString; selector: z.ZodString; wait_for_navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; session_id: z.ZodString; selector: z.ZodString; text: z.ZodString; clear_first: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; delay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; session_id: z.ZodString; selector: z.ZodString; value: z.ZodString; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { value: string; timeout: number; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { value: string; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; session_id: z.ZodString; script: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["html", "text", "outer_html"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; content_type?: "text" | "html" | "outer_html" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; full_page: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>>; quality: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "webp" | "jpeg"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "webp" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; session_id: z.ZodString; wait_type: z.ZodEnum<["selector", "timeout", "navigation"]>; selector: z.ZodOptional<z.ZodString>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; session_id: z.ZodString; domain_filter: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; session_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const BrowserBaseResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; success: z.ZodBoolean; session_id: z.ZodOptional<z.ZodString>; context_id: z.ZodOptional<z.ZodString>; debug_url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; success: z.ZodBoolean; url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "select"; }, { error: string; success: boolean; operation: "select"; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; format: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; success: z.ZodBoolean; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; export type BrowserBaseParams = z.output<typeof BrowserBaseParamsSchema>; export
1758
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const CDPCookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>; export type CDPCookie = z.infer<typeof CDPCookieSchema>; export declare const BrowserSessionProxySchema: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; export declare const BrowserSessionDataSchema: z.ZodObject<{ contextId: z.ZodString; cookies: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">; proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionData = z.infer<typeof BrowserSessionDataSchema>; export declare const ProxyGeolocationSchema: z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>; export type ProxyGeolocation = z.infer<typeof ProxyGeolocationSchema>; export declare const BrowserbaseProxySchema: z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>; export type BrowserbaseProxy = z.infer<typeof BrowserbaseProxySchema>; export declare const ExternalProxySchema: z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>; export type ExternalProxy = z.infer<typeof ExternalProxySchema>; export declare const ProxyConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>; export type ProxyConfig = z.infer<typeof ProxyConfigSchema>; export declare const StealthConfigSchema: z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>; export type StealthConfig = z.infer<typeof StealthConfigSchema>; export declare const BrowserBaseParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; context_id: z.ZodOptional<z.ZodString>; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; viewport_height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxies: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: z.ZodOptional<z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; session_id: z.ZodString; url: z.ZodString; wait_until: z.ZodDefault<z.ZodOptional<z.ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; session_id: z.ZodString; selector: z.ZodString; wait_for_navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; session_id: z.ZodString; selector: z.ZodString; text: z.ZodString; clear_first: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; delay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; session_id: z.ZodString; selector: z.ZodString; value: z.ZodString; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { value: string; timeout: number; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { value: string; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; session_id: z.ZodString; script: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["html", "text", "outer_html"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: "text" | "html" | "outer_html" | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; full_page: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>>; quality: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "webp" | "jpeg"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "webp" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; session_id: z.ZodString; wait_type: z.ZodEnum<["selector", "timeout", "navigation"]>; selector: z.ZodOptional<z.ZodString>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; session_id: z.ZodString; domain_filter: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; session_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const BrowserBaseResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; success: z.ZodBoolean; session_id: z.ZodOptional<z.ZodString>; context_id: z.ZodOptional<z.ZodString>; debug_url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; success: z.ZodBoolean; url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "select"; }, { error: string; success: boolean; operation: "select"; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; format: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; success: z.ZodBoolean; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; export type BrowserBaseParams = z.output<typeof BrowserBaseParamsSchema>; export
1759
1759
  type BrowserBaseParamsInput = z.input<typeof BrowserBaseParamsSchema>;;; export type BrowserBaseResult = z.output<typeof BrowserBaseResultSchema>; interface ActiveSession { sessionId: string; contextId: string; browser: Browser; page: Page; connectUrl: string; startTime: number; }
1760
- export declare class BrowserBaseBubble<T extends BrowserBaseParamsInput = BrowserBaseParamsInput> extends ServiceBubble<T, Extract<BrowserBaseResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "browserbase"; static readonly authType: "apikey"; static readonly bubbleName = "browserbase"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"start_session">; context_id: import("zod").ZodOptional<import("zod").ZodString>; cookies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; domain: import("zod").ZodString; path: import("zod").ZodString; expires: import("zod").ZodNumber; httpOnly: import("zod").ZodBoolean; secure: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; viewport_height: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; proxies: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{ type: import("zod").ZodLiteral<"browserbase">; geolocation: import("zod").ZodOptional<import("zod").ZodObject<{ city: import("zod").ZodOptional<import("zod").ZodString>; state: import("zod").ZodOptional<import("zod").ZodString>; country: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, import("zod").ZodObject<{ type: import("zod").ZodLiteral<"external">; server: import("zod").ZodString; username: import("zod").ZodOptional<import("zod").ZodString>; password: import("zod").ZodOptional<import("zod").ZodString>; domainPattern: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: import("zod").ZodOptional<import("zod").ZodObject<{ advancedStealth: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; solveCaptchas: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; captchaImageSelector: import("zod").ZodOptional<import("zod").ZodString>; captchaInputSelector: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: import("zod").ZodOptional<import("zod").ZodNumber>; }, "strip", import("zod").ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"navigate">; session_id: import("zod").ZodString; url: import("zod").ZodString; wait_until: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"click">; session_id: import("zod").ZodString; selector: import("zod").ZodString; wait_for_navigation: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"type">; session_id: import("zod").ZodString; selector: import("zod").ZodString; text: import("zod").ZodString; clear_first: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; delay: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"select">; session_id: import("zod").ZodString; selector: import("zod").ZodString; value: import("zod").ZodString; timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { value: string; timeout: number; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { value: string; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"evaluate">; session_id: import("zod").ZodString; script: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_content">; session_id: import("zod").ZodString; selector: import("zod").ZodOptional<import("zod").ZodString>; content_type: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["html", "text", "outer_html"]>>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; content_type?: "text" | "html" | "outer_html" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"screenshot">; session_id: import("zod").ZodString; selector: import("zod").ZodOptional<import("zod").ZodString>; full_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; format: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["png", "jpeg", "webp"]>>>; quality: import("zod").ZodOptional<import("zod").ZodNumber>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { format: "png" | "webp" | "jpeg"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "webp" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"wait">; session_id: import("zod").ZodString; wait_type: import("zod").ZodEnum<["selector", "timeout", "navigation"]>; selector: import("zod").ZodOptional<import("zod").ZodString>; timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_cookies">; session_id: import("zod").ZodString; domain_filter: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"end_session">; session_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"start_session">; success: import("zod").ZodBoolean; session_id: import("zod").ZodOptional<import("zod").ZodString>; context_id: import("zod").ZodOptional<import("zod").ZodString>; debug_url: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"navigate">; success: import("zod").ZodBoolean; url: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"click">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"type">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"select">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "select"; }, { error: string; success: boolean; operation: "select"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"evaluate">; success: import("zod").ZodBoolean; result: import("zod").ZodOptional<import("zod").ZodUnknown>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_content">; success: import("zod").ZodBoolean; content: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"screenshot">; success: import("zod").ZodBoolean; data: import("zod").ZodOptional<import("zod").ZodString>; format: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"wait">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_cookies">; success: import("zod").ZodBoolean; cookies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; domain: import("zod").ZodString; path: import("zod").ZodString; expires: import("zod").ZodNumber; httpOnly: import("zod").ZodBoolean; secure: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"end_session">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; static readonly shortDescription = "Browser automation service using BrowserBase cloud browsers"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "browser"; private static activeSessions; constructor(params?: T, context?: BubbleContext, instanceId?: string); private getConfig; private browserbaseApi; private parseBrowserSessionCredential; private normalizeProxyServer; private buildProxyConfig; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<BrowserBaseResult, { operation: T['operation']; }>>; private startSession; private navigate; private click; private typeText; private selectOption; private evaluate; private getContent; private screenshot; private waitFor; private getCookies; private endSession; protected chooseCredential(): string | undefined; static getSession(sessionId: string): ActiveSession | undefined; static hasSession(sessionId: string): boolean; }
1761
- export {}; export declare const CDPCookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>; export type CDPCookie = z.infer<typeof CDPCookieSchema>; export declare const BrowserSessionProxySchema: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; export declare const BrowserSessionDataSchema: z.ZodObject<{ contextId: z.ZodString; cookies: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">; proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionData = z.infer<typeof BrowserSessionDataSchema>; export declare const ProxyGeolocationSchema: z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>; export type ProxyGeolocation = z.infer<typeof ProxyGeolocationSchema>; export declare const BrowserbaseProxySchema: z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>; export type BrowserbaseProxy = z.infer<typeof BrowserbaseProxySchema>; export declare const ExternalProxySchema: z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>; export type ExternalProxy = z.infer<typeof ExternalProxySchema>; export declare const ProxyConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>; export type ProxyConfig = z.infer<typeof ProxyConfigSchema>; export declare const StealthConfigSchema: z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>; export type StealthConfig = z.infer<typeof StealthConfigSchema>; export declare const BrowserBaseParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; context_id: z.ZodOptional<z.ZodString>; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; viewport_height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxies: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: z.ZodOptional<z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; session_id: z.ZodString; url: z.ZodString; wait_until: z.ZodDefault<z.ZodOptional<z.ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; session_id: z.ZodString; selector: z.ZodString; wait_for_navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; session_id: z.ZodString; selector: z.ZodString; text: z.ZodString; clear_first: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; delay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; session_id: z.ZodString; selector: z.ZodString; value: z.ZodString; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { value: string; timeout: number; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { value: string; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; session_id: z.ZodString; script: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["html", "text", "outer_html"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; content_type?: "text" | "html" | "outer_html" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; full_page: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>>; quality: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "webp" | "jpeg"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "webp" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; session_id: z.ZodString; wait_type: z.ZodEnum<["selector", "timeout", "navigation"]>; selector: z.ZodOptional<z.ZodString>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; session_id: z.ZodString; domain_filter: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; session_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const BrowserBaseResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; success: z.ZodBoolean; session_id: z.ZodOptional<z.ZodString>; context_id: z.ZodOptional<z.ZodString>; debug_url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; success: z.ZodBoolean; url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "select"; }, { error: string; success: boolean; operation: "select"; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; format: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; success: z.ZodBoolean; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; export type BrowserBaseParams = z.output<typeof BrowserBaseParamsSchema>; export type BrowserBaseParamsInput = z.input<typeof BrowserBaseParamsSchema>; export type BrowserBaseResult = z.output<typeof BrowserBaseResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1760
+ export declare class BrowserBaseBubble<T extends BrowserBaseParamsInput = BrowserBaseParamsInput> extends ServiceBubble<T, Extract<BrowserBaseResult, { operation: T['operation']; }>> { static readonly type: "service"; static readonly service = "browserbase"; static readonly authType: "apikey"; static readonly bubbleName = "browserbase"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"start_session">; context_id: import("zod").ZodOptional<import("zod").ZodString>; cookies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; domain: import("zod").ZodString; path: import("zod").ZodString; expires: import("zod").ZodNumber; httpOnly: import("zod").ZodBoolean; secure: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; viewport_height: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; proxies: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{ type: import("zod").ZodLiteral<"browserbase">; geolocation: import("zod").ZodOptional<import("zod").ZodObject<{ city: import("zod").ZodOptional<import("zod").ZodString>; state: import("zod").ZodOptional<import("zod").ZodString>; country: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, import("zod").ZodObject<{ type: import("zod").ZodLiteral<"external">; server: import("zod").ZodString; username: import("zod").ZodOptional<import("zod").ZodString>; password: import("zod").ZodOptional<import("zod").ZodString>; domainPattern: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: import("zod").ZodOptional<import("zod").ZodObject<{ advancedStealth: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; solveCaptchas: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; captchaImageSelector: import("zod").ZodOptional<import("zod").ZodString>; captchaInputSelector: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: import("zod").ZodOptional<import("zod").ZodNumber>; }, "strip", import("zod").ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"navigate">; session_id: import("zod").ZodString; url: import("zod").ZodString; wait_until: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"click">; session_id: import("zod").ZodString; selector: import("zod").ZodString; wait_for_navigation: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"type">; session_id: import("zod").ZodString; selector: import("zod").ZodString; text: import("zod").ZodString; clear_first: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; delay: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"select">; session_id: import("zod").ZodString; selector: import("zod").ZodString; value: import("zod").ZodString; timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { value: string; timeout: number; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { value: string; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"evaluate">; session_id: import("zod").ZodString; script: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_content">; session_id: import("zod").ZodString; selector: import("zod").ZodOptional<import("zod").ZodString>; content_type: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["html", "text", "outer_html"]>>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: "text" | "html" | "outer_html" | undefined; selector?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"screenshot">; session_id: import("zod").ZodString; selector: import("zod").ZodOptional<import("zod").ZodString>; full_page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; format: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["png", "jpeg", "webp"]>>>; quality: import("zod").ZodOptional<import("zod").ZodNumber>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { format: "png" | "webp" | "jpeg"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "webp" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"wait">; session_id: import("zod").ZodString; wait_type: import("zod").ZodEnum<["selector", "timeout", "navigation"]>; selector: import("zod").ZodOptional<import("zod").ZodString>; timeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_cookies">; session_id: import("zod").ZodString; domain_filter: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"end_session">; session_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"start_session">; success: import("zod").ZodBoolean; session_id: import("zod").ZodOptional<import("zod").ZodString>; context_id: import("zod").ZodOptional<import("zod").ZodString>; debug_url: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"navigate">; success: import("zod").ZodBoolean; url: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"click">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"type">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"select">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "select"; }, { error: string; success: boolean; operation: "select"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"evaluate">; success: import("zod").ZodBoolean; result: import("zod").ZodOptional<import("zod").ZodUnknown>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_content">; success: import("zod").ZodBoolean; content: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"screenshot">; success: import("zod").ZodBoolean; data: import("zod").ZodOptional<import("zod").ZodString>; format: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"wait">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_cookies">; success: import("zod").ZodBoolean; cookies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ name: import("zod").ZodString; value: import("zod").ZodString; domain: import("zod").ZodString; path: import("zod").ZodString; expires: import("zod").ZodNumber; httpOnly: import("zod").ZodBoolean; secure: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"end_session">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; static readonly shortDescription = "Browser automation service using BrowserBase cloud browsers"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "browser"; private static activeSessions; constructor(params?: T, context?: BubbleContext, instanceId?: string); private getConfig; private browserbaseApi; private parseBrowserSessionCredential; private normalizeProxyServer; private buildProxyConfig; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<BrowserBaseResult, { operation: T['operation']; }>>; private startSession; private navigate; private click; private typeText; private selectOption; private evaluate; private getContent; private screenshot; private waitFor; private getCookies; private endSession; protected chooseCredential(): string | undefined; static getSession(sessionId: string): ActiveSession | undefined; static hasSession(sessionId: string): boolean; }
1761
+ export {}; export declare const CDPCookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>; export type CDPCookie = z.infer<typeof CDPCookieSchema>; export declare const BrowserSessionProxySchema: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; export declare const BrowserSessionDataSchema: z.ZodObject<{ contextId: z.ZodString; cookies: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">; proxy: z.ZodOptional<z.ZodObject<{ server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { server: string; password?: string | undefined; username?: string | undefined; }, { server: string; password?: string | undefined; username?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }, { contextId: string; cookies: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[]; proxy?: { server: string; password?: string | undefined; username?: string | undefined; } | undefined; }>; export type BrowserSessionData = z.infer<typeof BrowserSessionDataSchema>; export declare const ProxyGeolocationSchema: z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>; export type ProxyGeolocation = z.infer<typeof ProxyGeolocationSchema>; export declare const BrowserbaseProxySchema: z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>; export type BrowserbaseProxy = z.infer<typeof BrowserbaseProxySchema>; export declare const ExternalProxySchema: z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>; export type ExternalProxy = z.infer<typeof ExternalProxySchema>; export declare const ProxyConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>; export type ProxyConfig = z.infer<typeof ProxyConfigSchema>; export declare const StealthConfigSchema: z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>; export type StealthConfig = z.infer<typeof StealthConfigSchema>; export declare const BrowserBaseParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; context_id: z.ZodOptional<z.ZodString>; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; viewport_width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; viewport_height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; proxies: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"browserbase">; geolocation: z.ZodOptional<z.ZodObject<{ city: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; country: z.ZodString; }, "strip", z.ZodTypeAny, { country: string; state?: string | undefined; city?: string | undefined; }, { country: string; state?: string | undefined; city?: string | undefined; }>>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }, { type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"external">; server: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; domainPattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }, { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; }>]>, "many">]>>; stealth: z.ZodOptional<z.ZodObject<{ advancedStealth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; solveCaptchas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }, { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; }>>; timeout_seconds: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { operation: "start_session"; viewport_width: number; viewport_height: number; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth: boolean; solveCaptchas: boolean; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }, { operation: "start_session"; credentials?: Partial<Record<CredentialType, string>> | undefined; stealth?: { advancedStealth?: boolean | undefined; solveCaptchas?: boolean | undefined; captchaImageSelector?: string | undefined; captchaInputSelector?: string | undefined; } | undefined; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; context_id?: string | undefined; viewport_width?: number | undefined; viewport_height?: number | undefined; proxies?: true | ({ type: "browserbase"; geolocation?: { country: string; state?: string | undefined; city?: string | undefined; } | undefined; domainPattern?: string | undefined; } | { type: "external"; server: string; password?: string | undefined; username?: string | undefined; domainPattern?: string | undefined; })[] | undefined; timeout_seconds?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; session_id: z.ZodString; url: z.ZodString; wait_until: z.ZodDefault<z.ZodOptional<z.ZodEnum<["load", "domcontentloaded", "networkidle0", "networkidle2"]>>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; url: string; operation: "navigate"; session_id: string; wait_until: "load" | "domcontentloaded" | "networkidle0" | "networkidle2"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { url: string; operation: "navigate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_until?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; session_id: z.ZodString; selector: z.ZodString; wait_for_navigation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "click"; session_id: string; selector: string; wait_for_navigation: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "click"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; wait_for_navigation?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; session_id: z.ZodString; selector: z.ZodString; text: z.ZodString; clear_first: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; delay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { text: string; operation: "type"; session_id: string; selector: string; delay: number; clear_first: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { text: string; operation: "type"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; delay?: number | undefined; clear_first?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; session_id: z.ZodString; selector: z.ZodString; value: z.ZodString; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { value: string; timeout: number; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { value: string; operation: "select"; session_id: string; selector: string; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; session_id: z.ZodString; script: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { script: string; operation: "evaluate"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["html", "text", "outer_html"]>>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_content"; session_id: string; content_type: "text" | "html" | "outer_html"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "get_content"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; content_type?: "text" | "html" | "outer_html" | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; session_id: z.ZodString; selector: z.ZodOptional<z.ZodString>; full_page: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>>; quality: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { format: "png" | "webp" | "jpeg"; operation: "screenshot"; session_id: string; full_page: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; }, { operation: "screenshot"; session_id: string; format?: "png" | "webp" | "jpeg" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; quality?: number | undefined; selector?: string | undefined; full_page?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; session_id: z.ZodString; wait_type: z.ZodEnum<["selector", "timeout", "navigation"]>; selector: z.ZodOptional<z.ZodString>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { timeout: number; operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; selector?: string | undefined; }, { operation: "wait"; session_id: string; wait_type: "timeout" | "selector" | "navigation"; credentials?: Partial<Record<CredentialType, string>> | undefined; timeout?: number | undefined; selector?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; session_id: z.ZodString; domain_filter: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }, { operation: "get_cookies"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; domain_filter?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; session_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "end_session"; session_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>]>; export declare const BrowserBaseResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"start_session">; success: z.ZodBoolean; session_id: z.ZodOptional<z.ZodString>; context_id: z.ZodOptional<z.ZodString>; debug_url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }, { error: string; success: boolean; operation: "start_session"; session_id?: string | undefined; context_id?: string | undefined; debug_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"navigate">; success: z.ZodBoolean; url: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }, { error: string; success: boolean; operation: "navigate"; url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"click">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "click"; }, { error: string; success: boolean; operation: "click"; }>, z.ZodObject<{ operation: z.ZodLiteral<"type">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "type"; }, { error: string; success: boolean; operation: "type"; }>, z.ZodObject<{ operation: z.ZodLiteral<"select">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "select"; }, { error: string; success: boolean; operation: "select"; }>, z.ZodObject<{ operation: z.ZodLiteral<"evaluate">; success: z.ZodBoolean; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }, { error: string; success: boolean; operation: "evaluate"; result?: unknown; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_content">; success: z.ZodBoolean; content: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }, { error: string; success: boolean; operation: "get_content"; content?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"screenshot">; success: z.ZodBoolean; data: z.ZodOptional<z.ZodString>; format: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }, { error: string; success: boolean; operation: "screenshot"; format?: string | undefined; data?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"wait">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "wait"; }, { error: string; success: boolean; operation: "wait"; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_cookies">; success: z.ZodBoolean; cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }, { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }, { error: string; success: boolean; operation: "get_cookies"; cookies?: { value: string; path: string; name: string; domain: string; expires: number; httpOnly: boolean; secure: boolean; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"end_session">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "end_session"; }, { error: string; success: boolean; operation: "end_session"; }>]>; export type BrowserBaseParams = z.output<typeof BrowserBaseParamsSchema>; export type BrowserBaseParamsInput = z.input<typeof BrowserBaseParamsSchema>; export type BrowserBaseResult = z.output<typeof BrowserBaseResultSchema>; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; protected beforeAction(): Promise<void>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
1762
1762
  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; }
1763
1763
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1764
1764
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }