@bubblelab/bubble-core 0.1.231 → 0.1.233

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.
@@ -1157,9 +1157,9 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1157
1157
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1158
1158
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1159
1159
  export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; executionMeta?: ExecutionMeta; [key: string]: unknown; }
1160
- 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; comment?: string | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; public?: boolean | undefined; comment?: string | 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; }>]>; 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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_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; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export
1161
- 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; comment?: string | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; public?: boolean | undefined; comment?: string | 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; }>]>; 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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_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; }>]>; 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 listTicketComments; private listUsers; private getUser; private listOrganizations; private getOrganization; private search; private listArticles; private getArticle; private mapTicket; private mapComment; private mapUser; private mapOrganization; private mapArticle; }
1162
- 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; comment?: string | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; public?: boolean | undefined; comment?: string | 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; }>]>; 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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_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; }>]>; 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>; }
1160
+ 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; }>]>; 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; }>]>; export type ZendeskParams = z.output<typeof ZendeskParamsSchema>; export
1161
+ 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; }>]>; 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; }>]>; 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 mapTicket; private mapComment; private mapUser; private mapOrganization; private mapArticle; }
1162
+ 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; }>]>; 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; }>]>; 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>; }
1163
1163
  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; }
1164
1164
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1165
1165
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -1177,8 +1177,8 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1177
1177
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1178
1178
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1179
1179
  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; }
1180
- 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; comment?: string | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; public?: boolean | undefined; comment?: string | 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; }>]>; 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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_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; }>]>; 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; comment?: string | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; public?: boolean | undefined; comment?: string | 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; }>]>; 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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_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; }>]>; 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 listTicketComments; private listUsers; private getUser; private listOrganizations; private getOrganization; private search; private listArticles; private getArticle; private mapTicket; private mapComment; private mapUser; private mapOrganization; private mapArticle; }
1181
- 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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">>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; comment?: string | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | undefined; public?: boolean | undefined; comment?: string | 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; }>]>; 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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">>; 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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; priority?: string | null | undefined; tags?: string[] | undefined; subject?: string | undefined; created_at?: string | undefined; updated_at?: string | 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_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; }>]>; 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>; }
1180
+ 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; }>]>; 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; }>]>; 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; }>]>; 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; }>]>; 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 mapTicket; private mapComment; private mapUser; private mapOrganization; private mapArticle; }
1181
+ 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; priority?: "low" | "high" | "urgent" | "normal" | undefined; tags?: string[] | 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; }>]>; 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; priority?: string | null | undefined; tags?: string[] | 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; }>]>; 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
1182
  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; }
1183
1183
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1184
1184
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -1280,9 +1280,9 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1280
1280
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1281
1281
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1282
1282
  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; }
1283
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const AshbyEmailSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyPhoneSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyCustomFieldSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>; export declare const AshbyCandidateSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>; export declare const AshbySocialLinkSchema: z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>; export declare const AshbyTagSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>; export declare const AshbyFileHandleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>; export declare const AshbySelectableValueSchema: z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>; export declare const AshbyCustomFieldDefinitionSchema: z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>; export declare const AshbyCandidateListItemSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>; export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: z.ZodOptional<z.ZodString>; created_after: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; name: z.ZodString; emails: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; }, "strip", z.ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credited_to_user_id: z.ZodOptional<z.ZodString>; tag: z.ZodOptional<z.ZodString>; allow_duplicate_linkedin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; email: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; candidate_id: z.ZodString; tag_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; include_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; title: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; sync_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; success: z.ZodBoolean; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; success: z.ZodBoolean; tag: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; success: z.ZodBoolean; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; export
1284
- type AshbyParamsInput = z.input<typeof AshbyParamsSchema>;;;;; export type AshbyParams = z.output<typeof AshbyParamsSchema>; export type AshbyResult = z.output<typeof AshbyResultSchema>; export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>; export type AshbyEmail = z.output<typeof AshbyEmailSchema>; export type AshbyPhone = z.output<typeof AshbyPhoneSchema>; export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>; export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>; export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>; export type AshbyTag = z.output<typeof AshbyTagSchema>; export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>; export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>; export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>; export type AshbyListCandidatesParams = Extract<AshbyParams, { operation: 'list_candidates'; }>; export type AshbyGetCandidateParams = Extract<AshbyParams, { operation: 'get_candidate'; }>; export type AshbyCreateCandidateParams = Extract<AshbyParams, { operation: 'create_candidate'; }>; export type AshbySearchCandidatesParams = Extract<AshbyParams, { operation: 'search_candidates'; }>; export type AshbyAddTagParams = Extract<AshbyParams, { operation: 'add_tag'; }>; export type AshbyListTagsParams = Extract<AshbyParams, { operation: 'list_tags'; }>; export type AshbyCreateTagParams = Extract<AshbyParams, { operation: 'create_tag'; }>; export type AshbyListCustomFieldsParams = Extract<AshbyParams, { operation: 'list_custom_fields'; }>; export declare class AshbyBubble<T extends AshbyParamsInput = AshbyParamsInput> extends ServiceBubble<T, Extract<AshbyResult, { operation: T['operation']; }>> { static readonly service = "ashby"; static readonly authType: "basic"; static readonly bubbleName: "ashby"; static readonly type: "service"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidates">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: import("zod").ZodOptional<import("zod").ZodString>; created_after: 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_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_candidate">; candidate_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_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_candidate">; name: import("zod").ZodString; emails: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ email: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; }, "strip", import("zod").ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: import("zod").ZodOptional<import("zod").ZodString>; linkedin_url: import("zod").ZodOptional<import("zod").ZodString>; github_url: import("zod").ZodOptional<import("zod").ZodString>; website: import("zod").ZodOptional<import("zod").ZodString>; source_id: import("zod").ZodOptional<import("zod").ZodString>; credited_to_user_id: import("zod").ZodOptional<import("zod").ZodString>; tag: import("zod").ZodOptional<import("zod").ZodString>; allow_duplicate_linkedin: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_candidates">; email: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_tag">; candidate_id: import("zod").ZodString; tag_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tags">; include_archived: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_tag">; title: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_custom_fields">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidates">; success: import("zod").ZodBoolean; candidates: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ url: import("zod").ZodString; type: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; company: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; school: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; applicationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; resumeFileHandle: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; name: import("zod").ZodString; handle: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; name: import("zod").ZodString; handle: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_candidate">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_candidate">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_candidates">; success: import("zod").ZodBoolean; candidates: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_tag">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tags">; success: import("zod").ZodBoolean; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_tag">; success: import("zod").ZodBoolean; tag: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_custom_fields">; success: import("zod").ZodBoolean; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; isPrivate: import("zod").ZodBoolean; title: import("zod").ZodString; objectType: import("zod").ZodString; isArchived: import("zod").ZodBoolean; fieldType: import("zod").ZodString; selectableValues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; isArchived: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; static readonly shortDescription = "Ashby ATS integration for candidate management"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "ashby-ats"; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<AshbyResult, { operation: T['operation']; }>>; private extractErrorMessage; private makeAshbyRequest; private listCandidates; private getCandidate; private normalizeLinkedInUrl; private extractNameFromLinkedInUrl; private findCandidateByLinkedIn; private createCandidate; private searchCandidates; private addTag; private listTags; private createTag; private listCustomFields; }
1285
- export declare const AshbyEmailSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyPhoneSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyCustomFieldSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>; export declare const AshbyCandidateSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>; export declare const AshbySocialLinkSchema: z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>; export declare const AshbyTagSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>; export declare const AshbyFileHandleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>; export declare const AshbySelectableValueSchema: z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>; export declare const AshbyCustomFieldDefinitionSchema: z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>; export declare const AshbyCandidateListItemSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>; export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: z.ZodOptional<z.ZodString>; created_after: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; name: z.ZodString; emails: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; }, "strip", z.ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credited_to_user_id: z.ZodOptional<z.ZodString>; tag: z.ZodOptional<z.ZodString>; allow_duplicate_linkedin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; email: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; candidate_id: z.ZodString; tag_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; include_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; title: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; sync_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; success: z.ZodBoolean; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; success: z.ZodBoolean; tag: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; success: z.ZodBoolean; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; export type AshbyParamsInput = z.input<typeof AshbyParamsSchema>; export type AshbyParams = z.output<typeof AshbyParamsSchema>; export type AshbyResult = z.output<typeof AshbyResultSchema>; export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>; export type AshbyEmail = z.output<typeof AshbyEmailSchema>; export type AshbyPhone = z.output<typeof AshbyPhoneSchema>; export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>; export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>; export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>; export type AshbyTag = z.output<typeof AshbyTagSchema>; export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>; export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>; export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>; export type AshbyListCandidatesParams = Extract<AshbyParams, { operation: 'list_candidates'; }>; export type AshbyGetCandidateParams = Extract<AshbyParams, { operation: 'get_candidate'; }>; export type AshbyCreateCandidateParams = Extract<AshbyParams, { operation: 'create_candidate'; }>; export type AshbySearchCandidatesParams = Extract<AshbyParams, { operation: 'search_candidates'; }>; export type AshbyAddTagParams = Extract<AshbyParams, { operation: 'add_tag'; }>; export type AshbyListTagsParams = Extract<AshbyParams, { operation: 'list_tags'; }>; export type AshbyCreateTagParams = Extract<AshbyParams, { operation: 'create_tag'; }>; export type AshbyListCustomFieldsParams = Extract<AshbyParams, { operation: 'list_custom_fields'; }>; 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>; }
1283
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const AshbyEmailSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyPhoneSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyCustomFieldSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>; export declare const AshbyCandidateSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>; export declare const AshbySocialLinkSchema: z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>; export declare const AshbyTagSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>; export declare const AshbyFileHandleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>; export declare const AshbySelectableValueSchema: z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>; export declare const AshbyCustomFieldDefinitionSchema: z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>; export declare const AshbyCandidateListItemSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>; export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: z.ZodOptional<z.ZodString>; created_after: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; name: z.ZodString; emails: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; }, "strip", z.ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credited_to_user_id: z.ZodOptional<z.ZodString>; tag: z.ZodOptional<z.ZodString>; allow_duplicate_linkedin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; email: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; candidate_id: z.ZodString; tag_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; include_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; title: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; sync_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; success: z.ZodBoolean; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; success: z.ZodBoolean; tag: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; success: z.ZodBoolean; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; export
1284
+ type AshbyParamsInput = z.input<typeof AshbyParamsSchema>;;;;; export type AshbyParams = z.output<typeof AshbyParamsSchema>; export type AshbyResult = z.output<typeof AshbyResultSchema>; export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>; export type AshbyEmail = z.output<typeof AshbyEmailSchema>; export type AshbyPhone = z.output<typeof AshbyPhoneSchema>; export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>; export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>; export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>; export type AshbyTag = z.output<typeof AshbyTagSchema>; export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>; export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>; export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>; export type AshbyListCandidatesParams = Extract<AshbyParams, { operation: 'list_candidates'; }>; export type AshbyGetCandidateParams = Extract<AshbyParams, { operation: 'get_candidate'; }>; export type AshbyCreateCandidateParams = Extract<AshbyParams, { operation: 'create_candidate'; }>; export type AshbySearchCandidatesParams = Extract<AshbyParams, { operation: 'search_candidates'; }>; export type AshbyAddTagParams = Extract<AshbyParams, { operation: 'add_tag'; }>; export type AshbyListTagsParams = Extract<AshbyParams, { operation: 'list_tags'; }>; export type AshbyCreateTagParams = Extract<AshbyParams, { operation: 'create_tag'; }>; export type AshbyListCustomFieldsParams = Extract<AshbyParams, { operation: 'list_custom_fields'; }>; export declare class AshbyBubble<T extends AshbyParamsInput = AshbyParamsInput> extends ServiceBubble<T, Extract<AshbyResult, { operation: T['operation']; }>> { static readonly service = "ashby"; static readonly authType: "basic"; static readonly bubbleName: "ashby"; static readonly type: "service"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidates">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: import("zod").ZodOptional<import("zod").ZodString>; created_after: 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_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_candidate">; candidate_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_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_candidate">; name: import("zod").ZodString; emails: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ email: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; }, "strip", import("zod").ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: import("zod").ZodOptional<import("zod").ZodString>; linkedin_url: import("zod").ZodOptional<import("zod").ZodString>; github_url: import("zod").ZodOptional<import("zod").ZodString>; website: import("zod").ZodOptional<import("zod").ZodString>; source_id: import("zod").ZodOptional<import("zod").ZodString>; credited_to_user_id: import("zod").ZodOptional<import("zod").ZodString>; tag: import("zod").ZodOptional<import("zod").ZodString>; allow_duplicate_linkedin: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_candidates">; email: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_tag">; candidate_id: import("zod").ZodString; tag_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tags">; include_archived: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_tag">; title: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_custom_fields">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidates">; success: import("zod").ZodBoolean; candidates: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ url: import("zod").ZodString; type: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; company: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; school: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; applicationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; resumeFileHandle: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; name: import("zod").ZodString; handle: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; name: import("zod").ZodString; handle: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_candidate">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_candidate">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_candidates">; success: import("zod").ZodBoolean; candidates: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_tag">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tags">; success: import("zod").ZodBoolean; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_tag">; success: import("zod").ZodBoolean; tag: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_custom_fields">; success: import("zod").ZodBoolean; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; isPrivate: import("zod").ZodBoolean; title: import("zod").ZodString; objectType: import("zod").ZodString; isArchived: import("zod").ZodBoolean; fieldType: import("zod").ZodString; selectableValues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; isArchived: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; static readonly shortDescription = "Ashby ATS integration for candidate management"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "ashby-ats"; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<AshbyResult, { operation: T['operation']; }>>; private extractErrorMessage; private makeAshbyRequest; private listCandidates; private getCandidate; private normalizeLinkedInUrl; private extractNameFromLinkedInUrl; private findCandidateByLinkedIn; private createCandidate; private searchCandidates; private addTag; private listTags; private createTag; private listCustomFields; }
1285
+ export declare const AshbyEmailSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyPhoneSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyCustomFieldSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>; export declare const AshbyCandidateSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>; export declare const AshbySocialLinkSchema: z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>; export declare const AshbyTagSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>; export declare const AshbyFileHandleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>; export declare const AshbySelectableValueSchema: z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>; export declare const AshbyCustomFieldDefinitionSchema: z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>; export declare const AshbyCandidateListItemSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>; export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: z.ZodOptional<z.ZodString>; created_after: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; name: z.ZodString; emails: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; }, "strip", z.ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credited_to_user_id: z.ZodOptional<z.ZodString>; tag: z.ZodOptional<z.ZodString>; allow_duplicate_linkedin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; email: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; candidate_id: z.ZodString; tag_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; include_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; title: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; sync_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; success: z.ZodBoolean; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; success: z.ZodBoolean; tag: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; success: z.ZodBoolean; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; export type AshbyParamsInput = z.input<typeof AshbyParamsSchema>; export type AshbyParams = z.output<typeof AshbyParamsSchema>; export type AshbyResult = z.output<typeof AshbyResultSchema>; export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>; export type AshbyEmail = z.output<typeof AshbyEmailSchema>; export type AshbyPhone = z.output<typeof AshbyPhoneSchema>; export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>; export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>; export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>; export type AshbyTag = z.output<typeof AshbyTagSchema>; export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>; export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>; export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>; export type AshbyListCandidatesParams = Extract<AshbyParams, { operation: 'list_candidates'; }>; export type AshbyGetCandidateParams = Extract<AshbyParams, { operation: 'get_candidate'; }>; export type AshbyCreateCandidateParams = Extract<AshbyParams, { operation: 'create_candidate'; }>; export type AshbySearchCandidatesParams = Extract<AshbyParams, { operation: 'search_candidates'; }>; export type AshbyAddTagParams = Extract<AshbyParams, { operation: 'add_tag'; }>; export type AshbyListTagsParams = Extract<AshbyParams, { operation: 'list_tags'; }>; export type AshbyCreateTagParams = Extract<AshbyParams, { operation: 'create_tag'; }>; export type AshbyListCustomFieldsParams = Extract<AshbyParams, { operation: 'list_custom_fields'; }>; 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>; }
1286
1286
  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; }
1287
1287
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1288
1288
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -1300,8 +1300,8 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1300
1300
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1301
1301
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1302
1302
  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; }
1303
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const AshbyEmailSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyPhoneSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyCustomFieldSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>; export declare const AshbyCandidateSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>; export declare const AshbySocialLinkSchema: z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>; export declare const AshbyTagSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>; export declare const AshbyFileHandleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>; export declare const AshbySelectableValueSchema: z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>; export declare const AshbyCustomFieldDefinitionSchema: z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>; export declare const AshbyCandidateListItemSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>; export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: z.ZodOptional<z.ZodString>; created_after: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; name: z.ZodString; emails: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; }, "strip", z.ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credited_to_user_id: z.ZodOptional<z.ZodString>; tag: z.ZodOptional<z.ZodString>; allow_duplicate_linkedin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; email: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; candidate_id: z.ZodString; tag_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; include_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; title: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; sync_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; success: z.ZodBoolean; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; success: z.ZodBoolean; tag: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; success: z.ZodBoolean; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; export type AshbyParamsInput = z.input<typeof AshbyParamsSchema>; export type AshbyParams = z.output<typeof AshbyParamsSchema>; export type AshbyResult = z.output<typeof AshbyResultSchema>; export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>; export type AshbyEmail = z.output<typeof AshbyEmailSchema>; export type AshbyPhone = z.output<typeof AshbyPhoneSchema>; export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>; export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>; export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>; export type AshbyTag = z.output<typeof AshbyTagSchema>; export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>; export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>; export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>; export type AshbyListCandidatesParams = Extract<AshbyParams, { operation: 'list_candidates'; }>; export type AshbyGetCandidateParams = Extract<AshbyParams, { operation: 'get_candidate'; }>; export type AshbyCreateCandidateParams = Extract<AshbyParams, { operation: 'create_candidate'; }>; export type AshbySearchCandidatesParams = Extract<AshbyParams, { operation: 'search_candidates'; }>; export type AshbyAddTagParams = Extract<AshbyParams, { operation: 'add_tag'; }>; export type AshbyListTagsParams = Extract<AshbyParams, { operation: 'list_tags'; }>; export type AshbyCreateTagParams = Extract<AshbyParams, { operation: 'create_tag'; }>; export type AshbyListCustomFieldsParams = Extract<AshbyParams, { operation: 'list_custom_fields'; }>; export declare class AshbyBubble<T extends AshbyParamsInput = AshbyParamsInput> extends ServiceBubble<T, Extract<AshbyResult, { operation: T['operation']; }>> { static readonly service = "ashby"; static readonly authType: "basic"; static readonly bubbleName: "ashby"; static readonly type: "service"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidates">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: import("zod").ZodOptional<import("zod").ZodString>; created_after: 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_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_candidate">; candidate_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_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_candidate">; name: import("zod").ZodString; emails: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ email: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; }, "strip", import("zod").ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: import("zod").ZodOptional<import("zod").ZodString>; linkedin_url: import("zod").ZodOptional<import("zod").ZodString>; github_url: import("zod").ZodOptional<import("zod").ZodString>; website: import("zod").ZodOptional<import("zod").ZodString>; source_id: import("zod").ZodOptional<import("zod").ZodString>; credited_to_user_id: import("zod").ZodOptional<import("zod").ZodString>; tag: import("zod").ZodOptional<import("zod").ZodString>; allow_duplicate_linkedin: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_candidates">; email: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_tag">; candidate_id: import("zod").ZodString; tag_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tags">; include_archived: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_tag">; title: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_custom_fields">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidates">; success: import("zod").ZodBoolean; candidates: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ url: import("zod").ZodString; type: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; company: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; school: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; applicationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; resumeFileHandle: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; name: import("zod").ZodString; handle: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; name: import("zod").ZodString; handle: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_candidate">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_candidate">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_candidates">; success: import("zod").ZodBoolean; candidates: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_tag">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tags">; success: import("zod").ZodBoolean; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_tag">; success: import("zod").ZodBoolean; tag: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_custom_fields">; success: import("zod").ZodBoolean; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; isPrivate: import("zod").ZodBoolean; title: import("zod").ZodString; objectType: import("zod").ZodString; isArchived: import("zod").ZodBoolean; fieldType: import("zod").ZodString; selectableValues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; isArchived: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; static readonly shortDescription = "Ashby ATS integration for candidate management"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "ashby-ats"; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<AshbyResult, { operation: T['operation']; }>>; private extractErrorMessage; private makeAshbyRequest; private listCandidates; private getCandidate; private normalizeLinkedInUrl; private extractNameFromLinkedInUrl; private findCandidateByLinkedIn; private createCandidate; private searchCandidates; private addTag; private listTags; private createTag; private listCustomFields; }
1304
- export declare const AshbyEmailSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyPhoneSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyCustomFieldSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>; export declare const AshbyCandidateSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>; export declare const AshbySocialLinkSchema: z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>; export declare const AshbyTagSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>; export declare const AshbyFileHandleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>; export declare const AshbySelectableValueSchema: z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>; export declare const AshbyCustomFieldDefinitionSchema: z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>; export declare const AshbyCandidateListItemSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>; export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: z.ZodOptional<z.ZodString>; created_after: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; name: z.ZodString; emails: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; }, "strip", z.ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credited_to_user_id: z.ZodOptional<z.ZodString>; tag: z.ZodOptional<z.ZodString>; allow_duplicate_linkedin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; tag?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; email: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; candidate_id: z.ZodString; tag_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; include_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; title: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; sync_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; success: z.ZodBoolean; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; success: z.ZodBoolean; tag: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; success: z.ZodBoolean; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; export type AshbyParamsInput = z.input<typeof AshbyParamsSchema>; export type AshbyParams = z.output<typeof AshbyParamsSchema>; export type AshbyResult = z.output<typeof AshbyResultSchema>; export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>; export type AshbyEmail = z.output<typeof AshbyEmailSchema>; export type AshbyPhone = z.output<typeof AshbyPhoneSchema>; export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>; export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>; export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>; export type AshbyTag = z.output<typeof AshbyTagSchema>; export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>; export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>; export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>; export type AshbyListCandidatesParams = Extract<AshbyParams, { operation: 'list_candidates'; }>; export type AshbyGetCandidateParams = Extract<AshbyParams, { operation: 'get_candidate'; }>; export type AshbyCreateCandidateParams = Extract<AshbyParams, { operation: 'create_candidate'; }>; export type AshbySearchCandidatesParams = Extract<AshbyParams, { operation: 'search_candidates'; }>; export type AshbyAddTagParams = Extract<AshbyParams, { operation: 'add_tag'; }>; export type AshbyListTagsParams = Extract<AshbyParams, { operation: 'list_tags'; }>; export type AshbyCreateTagParams = Extract<AshbyParams, { operation: 'create_tag'; }>; export type AshbyListCustomFieldsParams = Extract<AshbyParams, { operation: 'list_custom_fields'; }>; 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>; }
1303
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const AshbyEmailSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyPhoneSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyCustomFieldSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>; export declare const AshbyCandidateSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>; export declare const AshbySocialLinkSchema: z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>; export declare const AshbyTagSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>; export declare const AshbyFileHandleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>; export declare const AshbySelectableValueSchema: z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>; export declare const AshbyCustomFieldDefinitionSchema: z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>; export declare const AshbyCandidateListItemSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>; export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: z.ZodOptional<z.ZodString>; created_after: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; name: z.ZodString; emails: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; }, "strip", z.ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credited_to_user_id: z.ZodOptional<z.ZodString>; tag: z.ZodOptional<z.ZodString>; allow_duplicate_linkedin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; email: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; candidate_id: z.ZodString; tag_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; include_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; title: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; sync_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; success: z.ZodBoolean; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; success: z.ZodBoolean; tag: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; success: z.ZodBoolean; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; export type AshbyParamsInput = z.input<typeof AshbyParamsSchema>; export type AshbyParams = z.output<typeof AshbyParamsSchema>; export type AshbyResult = z.output<typeof AshbyResultSchema>; export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>; export type AshbyEmail = z.output<typeof AshbyEmailSchema>; export type AshbyPhone = z.output<typeof AshbyPhoneSchema>; export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>; export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>; export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>; export type AshbyTag = z.output<typeof AshbyTagSchema>; export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>; export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>; export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>; export type AshbyListCandidatesParams = Extract<AshbyParams, { operation: 'list_candidates'; }>; export type AshbyGetCandidateParams = Extract<AshbyParams, { operation: 'get_candidate'; }>; export type AshbyCreateCandidateParams = Extract<AshbyParams, { operation: 'create_candidate'; }>; export type AshbySearchCandidatesParams = Extract<AshbyParams, { operation: 'search_candidates'; }>; export type AshbyAddTagParams = Extract<AshbyParams, { operation: 'add_tag'; }>; export type AshbyListTagsParams = Extract<AshbyParams, { operation: 'list_tags'; }>; export type AshbyCreateTagParams = Extract<AshbyParams, { operation: 'create_tag'; }>; export type AshbyListCustomFieldsParams = Extract<AshbyParams, { operation: 'list_custom_fields'; }>; export declare class AshbyBubble<T extends AshbyParamsInput = AshbyParamsInput> extends ServiceBubble<T, Extract<AshbyResult, { operation: T['operation']; }>> { static readonly service = "ashby"; static readonly authType: "basic"; static readonly bubbleName: "ashby"; static readonly type: "service"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidates">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: import("zod").ZodOptional<import("zod").ZodString>; created_after: 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_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_candidate">; candidate_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_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_candidate">; name: import("zod").ZodString; emails: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ email: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; }, "strip", import("zod").ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: import("zod").ZodOptional<import("zod").ZodString>; linkedin_url: import("zod").ZodOptional<import("zod").ZodString>; github_url: import("zod").ZodOptional<import("zod").ZodString>; website: import("zod").ZodOptional<import("zod").ZodString>; source_id: import("zod").ZodOptional<import("zod").ZodString>; credited_to_user_id: import("zod").ZodOptional<import("zod").ZodString>; tag: import("zod").ZodOptional<import("zod").ZodString>; allow_duplicate_linkedin: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_candidates">; email: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_tag">; candidate_id: import("zod").ZodString; tag_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tags">; include_archived: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_tag">; title: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_custom_fields">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidates">; success: import("zod").ZodBoolean; candidates: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ url: import("zod").ZodString; type: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; company: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; school: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; applicationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; resumeFileHandle: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; name: import("zod").ZodString; handle: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; name: import("zod").ZodString; handle: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_candidate">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_candidate">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"search_candidates">; success: import("zod").ZodBoolean; candidates: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_tag">; success: import("zod").ZodBoolean; candidate: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; primaryEmailAddress: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ value: import("zod").ZodString; type: import("zod").ZodEnum<["Personal", "Work", "Other"]>; isPrimary: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; value: import("zod").ZodUnknown; isPrivate: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_tags">; success: import("zod").ZodBoolean; tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_tag">; success: import("zod").ZodBoolean; tag: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; isArchived: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_custom_fields">; success: import("zod").ZodBoolean; custom_fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; isPrivate: import("zod").ZodBoolean; title: import("zod").ZodString; objectType: import("zod").ZodString; isArchived: import("zod").ZodBoolean; fieldType: import("zod").ZodString; selectableValues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ label: import("zod").ZodString; value: import("zod").ZodString; isArchived: import("zod").ZodBoolean; }, "strip", import("zod").ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; sync_token: import("zod").ZodOptional<import("zod").ZodString>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; static readonly shortDescription = "Ashby ATS integration for candidate management"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "ashby-ats"; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<AshbyResult, { operation: T['operation']; }>>; private extractErrorMessage; private makeAshbyRequest; private listCandidates; private getCandidate; private normalizeLinkedInUrl; private extractNameFromLinkedInUrl; private findCandidateByLinkedIn; private createCandidate; private searchCandidates; private addTag; private listTags; private createTag; private listCustomFields; }
1304
+ export declare const AshbyEmailSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyPhoneSchema: z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>; export declare const AshbyCustomFieldSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>; export declare const AshbyCandidateSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>; export declare const AshbySocialLinkSchema: z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>; export declare const AshbyTagSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>; export declare const AshbyFileHandleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>; export declare const AshbySelectableValueSchema: z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>; export declare const AshbyCustomFieldDefinitionSchema: z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>; export declare const AshbyCandidateListItemSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>; export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Hired", "Archived", "Active", "Lead"]>>; job_id: z.ZodOptional<z.ZodString>; created_after: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidates"; limit: number; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }, { operation: "list_candidates"; status?: "Hired" | "Archived" | "Active" | "Lead" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; job_id?: string | undefined; created_after?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_candidate"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; name: z.ZodString; emails: z.ZodOptional<z.ZodArray<z.ZodObject<{ email: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; }, "strip", z.ZodTypeAny, { type: "Personal" | "Work" | "Other"; email: string; }, { type: "Personal" | "Work" | "Other"; email: string; }>, "many">>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credited_to_user_id: z.ZodOptional<z.ZodString>; tag: z.ZodOptional<z.ZodString>; allow_duplicate_linkedin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_candidate"; allow_duplicate_linkedin: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; }, { name: string; operation: "create_candidate"; credentials?: Partial<Record<CredentialType, string>> | undefined; website?: string | undefined; emails?: { type: "Personal" | "Work" | "Other"; email: string; }[] | undefined; tag?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; source_id?: string | undefined; credited_to_user_id?: string | undefined; allow_duplicate_linkedin?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; email: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "search_candidates"; name?: string | undefined; email?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; candidate_id: z.ZodString; tag_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_tag"; candidate_id: string; tag_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; include_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_tags"; include_archived: boolean; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_tags"; credentials?: Partial<Record<CredentialType, string>> | undefined; include_archived?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; title: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { title: string; operation: "create_tag"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; sync_token: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_custom_fields"; limit: number; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; sync_token?: string | undefined; }, { operation: "list_custom_fields"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; sync_token?: string | undefined; }>]>; export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>, "many">>; socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{ url: z.ZodString; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; url: string; }, { type: string; url: string; }>, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; position: z.ZodNullable<z.ZodOptional<z.ZodString>>; company: z.ZodNullable<z.ZodOptional<z.ZodString>>; school: z.ZodNullable<z.ZodOptional<z.ZodString>>; applicationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; resumeFileHandle: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>>>; fileHandles: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; handle: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; handle: string; }, { name: string; id: string; handle: string; }>, "many">>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_candidates"; next_cursor?: string | undefined; sync_token?: string | undefined; candidates?: { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; emailAddresses?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; phoneNumbers?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }[] | undefined; socialLinks?: { type: string; url: string; }[] | undefined; company?: string | null | undefined; school?: string | null | undefined; applicationIds?: string[] | undefined; resumeFileHandle?: { name: string; id: string; handle: string; } | null | undefined; fileHandles?: { name: string; id: string; handle: string; }[] | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_candidate">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; duplicate: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }, { error: string; success: boolean; operation: "create_candidate"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; duplicate?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"search_candidates">; success: z.ZodBoolean; candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "search_candidates"; candidates?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_tag">; success: z.ZodBoolean; candidate: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; name: z.ZodString; primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{ value: z.ZodString; type: z.ZodEnum<["Personal", "Work", "Other"]>; isPrimary: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }, { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; }>>>; customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; value: z.ZodUnknown; isPrivate: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }, { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }, { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "add_tag"; candidate?: { name: string; id: string; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; primaryPhoneNumber?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_tags">; success: z.ZodBoolean; tags: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_tags"; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_tag">; success: z.ZodBoolean; tag: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; isArchived: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { title: string; id: string; isArchived?: boolean | undefined; }, { title: string; id: string; isArchived?: boolean | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_tag"; tag?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_custom_fields">; success: z.ZodBoolean; custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; isPrivate: z.ZodBoolean; title: z.ZodString; objectType: z.ZodString; isArchived: z.ZodBoolean; fieldType: z.ZodString; selectableValues: z.ZodOptional<z.ZodArray<z.ZodObject<{ label: z.ZodString; value: z.ZodString; isArchived: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: string; label: string; isArchived: boolean; }, { value: string; label: string; isArchived: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }, { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; sync_token: z.ZodOptional<z.ZodString>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_custom_fields"; next_cursor?: string | undefined; custom_fields?: { title: string; id: string; fieldType: string; isPrivate: boolean; isArchived: boolean; objectType: string; selectableValues?: { value: string; label: string; isArchived: boolean; }[] | undefined; }[] | undefined; sync_token?: string | undefined; more_data_available?: boolean | undefined; }>]>; export type AshbyParamsInput = z.input<typeof AshbyParamsSchema>; export type AshbyParams = z.output<typeof AshbyParamsSchema>; export type AshbyResult = z.output<typeof AshbyResultSchema>; export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>; export type AshbyEmail = z.output<typeof AshbyEmailSchema>; export type AshbyPhone = z.output<typeof AshbyPhoneSchema>; export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>; export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>; export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>; export type AshbyTag = z.output<typeof AshbyTagSchema>; export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>; export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>; export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>; export type AshbyListCandidatesParams = Extract<AshbyParams, { operation: 'list_candidates'; }>; export type AshbyGetCandidateParams = Extract<AshbyParams, { operation: 'get_candidate'; }>; export type AshbyCreateCandidateParams = Extract<AshbyParams, { operation: 'create_candidate'; }>; export type AshbySearchCandidatesParams = Extract<AshbyParams, { operation: 'search_candidates'; }>; export type AshbyAddTagParams = Extract<AshbyParams, { operation: 'add_tag'; }>; export type AshbyListTagsParams = Extract<AshbyParams, { operation: 'list_tags'; }>; export type AshbyCreateTagParams = Extract<AshbyParams, { operation: 'create_tag'; }>; export type AshbyListCustomFieldsParams = Extract<AshbyParams, { operation: 'list_custom_fields'; }>; 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>; }
1305
1305
  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; }
1306
1306
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1307
1307
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }