@bubblelab/bubble-core 0.1.248 → 0.1.249

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.
@@ -1302,9 +1302,9 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1302
1302
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1303
1303
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1304
1304
  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; }
1305
- 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>; export declare const AshbyJobSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>; export declare const AshbyInterviewStageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>; export declare const AshbyApplicationSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>; export declare const AshbyNoteSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>; export declare const AshbySourceSchema: 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 AshbyFileInfoSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; candidate_id: z.ZodOptional<z.ZodString>; job_id: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; application_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; candidate_id: z.ZodString; job_id: z.ZodString; interview_stage_id: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; application_id: z.ZodString; interview_stage_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_candidate">; candidate_id: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; candidate_id: z.ZodString; content: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; file_handle: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; success: z.ZodBoolean; jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; success: z.ZodBoolean; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; success: z.ZodBoolean; applications: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_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: "update_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: "update_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_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; success: z.ZodBoolean; notes: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; success: z.ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; success: z.ZodBoolean; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }>]>; export
1306
- 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 AshbyJob = z.output<typeof AshbyJobSchema>; export type AshbyApplication = z.output<typeof AshbyApplicationSchema>; export type AshbyInterviewStage = z.output<typeof AshbyInterviewStageSchema>; export type AshbyNote = z.output<typeof AshbyNoteSchema>; export type AshbySource = z.output<typeof AshbySourceSchema>; export type AshbyFileInfo = z.output<typeof AshbyFileInfoSchema>; 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 type AshbyListJobsParams = Extract<AshbyParams, { operation: 'list_jobs'; }>; export type AshbyGetJobParams = Extract<AshbyParams, { operation: 'get_job'; }>; export type AshbyListApplicationsParams = Extract<AshbyParams, { operation: 'list_applications'; }>; export type AshbyGetApplicationParams = Extract<AshbyParams, { operation: 'get_application'; }>; export type AshbyCreateApplicationParams = Extract<AshbyParams, { operation: 'create_application'; }>; export type AshbyChangeApplicationStageParams = Extract<AshbyParams, { operation: 'change_application_stage'; }>; export type AshbyUpdateCandidateParams = Extract<AshbyParams, { operation: 'update_candidate'; }>; export type AshbyCreateNoteParams = Extract<AshbyParams, { operation: 'create_note'; }>; export type AshbyListNotesParams = Extract<AshbyParams, { operation: 'list_notes'; }>; export type AshbyListSourcesParams = Extract<AshbyParams, { operation: 'list_sources'; }>; export type AshbyListInterviewStagesParams = Extract<AshbyParams, { operation: 'list_interview_stages'; }>; export type AshbyGetFileUrlParams = Extract<AshbyParams, { operation: 'get_file_url'; }>; 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_jobs">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_job">; job_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_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_applications">; candidate_id: import("zod").ZodOptional<import("zod").ZodString>; job_id: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_application">; application_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_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_application">; candidate_id: import("zod").ZodString; job_id: import("zod").ZodString; interview_stage_id: import("zod").ZodOptional<import("zod").ZodString>; source_id: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"change_application_stage">; application_id: import("zod").ZodString; interview_stage_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_candidate">; candidate_id: import("zod").ZodString; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; 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>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; candidate_id: import("zod").ZodString; content: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_notes">; 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: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sources">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_interview_stages">; job_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_file_url">; file_handle: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; creditedToUser: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_jobs">; success: import("zod").ZodBoolean; jobs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_job">; success: import("zod").ZodBoolean; job: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_applications">; success: import("zod").ZodBoolean; applications: 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>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_application">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_application">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"change_application_stage">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_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: "update_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: "update_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_note">; success: import("zod").ZodBoolean; note: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; content: import("zod").ZodString; author: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", import("zod").ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_notes">; success: import("zod").ZodBoolean; notes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; content: import("zod").ZodString; author: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", import("zod").ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sources">; success: import("zod").ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_interview_stages">; success: import("zod").ZodBoolean; interview_stages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_file_url">; success: import("zod").ZodBoolean; file: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodOptional<import("zod").ZodString>; url: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | 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; private listJobs; private getJob; private listApplications; private getApplication; private createApplication; private changeApplicationStage; private updateCandidate; private createNote; private listNotes; private listSources; private listInterviewStages; private getFileUrl; }
1307
- 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>; export declare const AshbyJobSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>; export declare const AshbyInterviewStageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>; export declare const AshbyApplicationSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>; export declare const AshbyNoteSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>; export declare const AshbySourceSchema: 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 AshbyFileInfoSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; candidate_id: z.ZodOptional<z.ZodString>; job_id: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; application_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; candidate_id: z.ZodString; job_id: z.ZodString; interview_stage_id: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; application_id: z.ZodString; interview_stage_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_candidate">; candidate_id: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; candidate_id: z.ZodString; content: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; file_handle: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; success: z.ZodBoolean; jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; success: z.ZodBoolean; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; success: z.ZodBoolean; applications: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_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: "update_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: "update_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_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; success: z.ZodBoolean; notes: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; success: z.ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; success: z.ZodBoolean; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | 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 AshbyJob = z.output<typeof AshbyJobSchema>; export type AshbyApplication = z.output<typeof AshbyApplicationSchema>; export type AshbyInterviewStage = z.output<typeof AshbyInterviewStageSchema>; export type AshbyNote = z.output<typeof AshbyNoteSchema>; export type AshbySource = z.output<typeof AshbySourceSchema>; export type AshbyFileInfo = z.output<typeof AshbyFileInfoSchema>; 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 type AshbyListJobsParams = Extract<AshbyParams, { operation: 'list_jobs'; }>; export type AshbyGetJobParams = Extract<AshbyParams, { operation: 'get_job'; }>; export type AshbyListApplicationsParams = Extract<AshbyParams, { operation: 'list_applications'; }>; export type AshbyGetApplicationParams = Extract<AshbyParams, { operation: 'get_application'; }>; export type AshbyCreateApplicationParams = Extract<AshbyParams, { operation: 'create_application'; }>; export type AshbyChangeApplicationStageParams = Extract<AshbyParams, { operation: 'change_application_stage'; }>; export type AshbyUpdateCandidateParams = Extract<AshbyParams, { operation: 'update_candidate'; }>; export type AshbyCreateNoteParams = Extract<AshbyParams, { operation: 'create_note'; }>; export type AshbyListNotesParams = Extract<AshbyParams, { operation: 'list_notes'; }>; export type AshbyListSourcesParams = Extract<AshbyParams, { operation: 'list_sources'; }>; export type AshbyListInterviewStagesParams = Extract<AshbyParams, { operation: 'list_interview_stages'; }>; export type AshbyGetFileUrlParams = Extract<AshbyParams, { operation: 'get_file_url'; }>; 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
+ 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>; export declare const AshbyJobSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>; export declare const AshbyInterviewStageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>; export declare const AshbyApplicationSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>; export declare const AshbyNoteSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>; export declare const AshbySourceSchema: 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 AshbyProjectSchema: 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 AshbyFileInfoSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; candidate_id: z.ZodOptional<z.ZodString>; job_id: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; application_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; candidate_id: z.ZodString; job_id: z.ZodString; interview_stage_id: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; application_id: z.ZodString; interview_stage_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_candidate">; candidate_id: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; candidate_id: z.ZodString; content: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; file_handle: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_project">; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_candidate_projects">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_candidate_to_project">; candidate_id: z.ZodString; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_candidate_from_project">; candidate_id: z.ZodString; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; success: z.ZodBoolean; jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; success: z.ZodBoolean; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; success: z.ZodBoolean; applications: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_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: "update_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: "update_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_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; success: z.ZodBoolean; notes: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; success: z.ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; success: z.ZodBoolean; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: 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_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_project">; success: z.ZodBoolean; project: 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: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_candidate_projects">; success: z.ZodBoolean; projects: 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_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_candidate_to_project">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_candidate_to_project"; }, { error: string; success: boolean; operation: "add_candidate_to_project"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_candidate_from_project">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_candidate_from_project"; }, { error: string; success: boolean; operation: "remove_candidate_from_project"; }>]>; export
1306
+ 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 AshbyJob = z.output<typeof AshbyJobSchema>; export type AshbyApplication = z.output<typeof AshbyApplicationSchema>; export type AshbyInterviewStage = z.output<typeof AshbyInterviewStageSchema>; export type AshbyNote = z.output<typeof AshbyNoteSchema>; export type AshbySource = z.output<typeof AshbySourceSchema>; export type AshbyFileInfo = z.output<typeof AshbyFileInfoSchema>; 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 type AshbyListJobsParams = Extract<AshbyParams, { operation: 'list_jobs'; }>; export type AshbyGetJobParams = Extract<AshbyParams, { operation: 'get_job'; }>; export type AshbyListApplicationsParams = Extract<AshbyParams, { operation: 'list_applications'; }>; export type AshbyGetApplicationParams = Extract<AshbyParams, { operation: 'get_application'; }>; export type AshbyCreateApplicationParams = Extract<AshbyParams, { operation: 'create_application'; }>; export type AshbyChangeApplicationStageParams = Extract<AshbyParams, { operation: 'change_application_stage'; }>; export type AshbyUpdateCandidateParams = Extract<AshbyParams, { operation: 'update_candidate'; }>; export type AshbyCreateNoteParams = Extract<AshbyParams, { operation: 'create_note'; }>; export type AshbyListNotesParams = Extract<AshbyParams, { operation: 'list_notes'; }>; export type AshbyListSourcesParams = Extract<AshbyParams, { operation: 'list_sources'; }>; export type AshbyListInterviewStagesParams = Extract<AshbyParams, { operation: 'list_interview_stages'; }>; export type AshbyGetFileUrlParams = Extract<AshbyParams, { operation: 'get_file_url'; }>; export type AshbyListProjectsParams = Extract<AshbyParams, { operation: 'list_projects'; }>; export type AshbyGetProjectParams = Extract<AshbyParams, { operation: 'get_project'; }>; export type AshbyListCandidateProjectsParams = Extract<AshbyParams, { operation: 'list_candidate_projects'; }>; export type AshbyAddCandidateToProjectParams = Extract<AshbyParams, { operation: 'add_candidate_to_project'; }>; export type AshbyRemoveCandidateFromProjectParams = Extract<AshbyParams, { operation: 'remove_candidate_from_project'; }>; export type AshbyProject = z.output<typeof AshbyProjectSchema>; 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_jobs">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_job">; job_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_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_applications">; candidate_id: import("zod").ZodOptional<import("zod").ZodString>; job_id: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_application">; application_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_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_application">; candidate_id: import("zod").ZodString; job_id: import("zod").ZodString; interview_stage_id: import("zod").ZodOptional<import("zod").ZodString>; source_id: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"change_application_stage">; application_id: import("zod").ZodString; interview_stage_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_candidate">; candidate_id: import("zod").ZodString; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; 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>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; candidate_id: import("zod").ZodString; content: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_notes">; 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: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sources">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_interview_stages">; job_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_file_url">; file_handle: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_project">; project_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_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidate_projects">; 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: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_candidate_to_project">; candidate_id: import("zod").ZodString; project_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_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_candidate_from_project">; candidate_id: import("zod").ZodString; project_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; creditedToUser: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_jobs">; success: import("zod").ZodBoolean; jobs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_job">; success: import("zod").ZodBoolean; job: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_applications">; success: import("zod").ZodBoolean; applications: 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>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_application">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_application">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"change_application_stage">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_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: "update_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: "update_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_note">; success: import("zod").ZodBoolean; note: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; content: import("zod").ZodString; author: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", import("zod").ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_notes">; success: import("zod").ZodBoolean; notes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; content: import("zod").ZodString; author: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", import("zod").ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sources">; success: import("zod").ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_interview_stages">; success: import("zod").ZodBoolean; interview_stages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_file_url">; success: import("zod").ZodBoolean; file: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodOptional<import("zod").ZodString>; url: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; success: import("zod").ZodBoolean; projects: 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_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_project">; success: import("zod").ZodBoolean; project: 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: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidate_projects">; success: import("zod").ZodBoolean; projects: 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_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_candidate_to_project">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "add_candidate_to_project"; }, { error: string; success: boolean; operation: "add_candidate_to_project"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_candidate_from_project">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "remove_candidate_from_project"; }, { error: string; success: boolean; operation: "remove_candidate_from_project"; }>]>; 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; private listJobs; private getJob; private listApplications; private getApplication; private createApplication; private changeApplicationStage; private updateCandidate; private createNote; private listNotes; private listSources; private listInterviewStages; private getFileUrl; private listProjects; private getProject; private listCandidateProjects; private addCandidateToProject; private removeCandidateFromProject; }
1307
+ 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>; export declare const AshbyJobSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>; export declare const AshbyInterviewStageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>; export declare const AshbyApplicationSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>; export declare const AshbyNoteSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>; export declare const AshbySourceSchema: 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 AshbyProjectSchema: 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 AshbyFileInfoSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; candidate_id: z.ZodOptional<z.ZodString>; job_id: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; application_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; candidate_id: z.ZodString; job_id: z.ZodString; interview_stage_id: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; application_id: z.ZodString; interview_stage_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_candidate">; candidate_id: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; candidate_id: z.ZodString; content: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; file_handle: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_project">; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_candidate_projects">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_candidate_to_project">; candidate_id: z.ZodString; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_candidate_from_project">; candidate_id: z.ZodString; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; success: z.ZodBoolean; jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; success: z.ZodBoolean; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; success: z.ZodBoolean; applications: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_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: "update_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: "update_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_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; success: z.ZodBoolean; notes: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; success: z.ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; success: z.ZodBoolean; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: 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_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_project">; success: z.ZodBoolean; project: 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: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_candidate_projects">; success: z.ZodBoolean; projects: 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_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_candidate_to_project">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_candidate_to_project"; }, { error: string; success: boolean; operation: "add_candidate_to_project"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_candidate_from_project">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_candidate_from_project"; }, { error: string; success: boolean; operation: "remove_candidate_from_project"; }>]>; 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 AshbyJob = z.output<typeof AshbyJobSchema>; export type AshbyApplication = z.output<typeof AshbyApplicationSchema>; export type AshbyInterviewStage = z.output<typeof AshbyInterviewStageSchema>; export type AshbyNote = z.output<typeof AshbyNoteSchema>; export type AshbySource = z.output<typeof AshbySourceSchema>; export type AshbyFileInfo = z.output<typeof AshbyFileInfoSchema>; 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 type AshbyListJobsParams = Extract<AshbyParams, { operation: 'list_jobs'; }>; export type AshbyGetJobParams = Extract<AshbyParams, { operation: 'get_job'; }>; export type AshbyListApplicationsParams = Extract<AshbyParams, { operation: 'list_applications'; }>; export type AshbyGetApplicationParams = Extract<AshbyParams, { operation: 'get_application'; }>; export type AshbyCreateApplicationParams = Extract<AshbyParams, { operation: 'create_application'; }>; export type AshbyChangeApplicationStageParams = Extract<AshbyParams, { operation: 'change_application_stage'; }>; export type AshbyUpdateCandidateParams = Extract<AshbyParams, { operation: 'update_candidate'; }>; export type AshbyCreateNoteParams = Extract<AshbyParams, { operation: 'create_note'; }>; export type AshbyListNotesParams = Extract<AshbyParams, { operation: 'list_notes'; }>; export type AshbyListSourcesParams = Extract<AshbyParams, { operation: 'list_sources'; }>; export type AshbyListInterviewStagesParams = Extract<AshbyParams, { operation: 'list_interview_stages'; }>; export type AshbyGetFileUrlParams = Extract<AshbyParams, { operation: 'get_file_url'; }>; export type AshbyListProjectsParams = Extract<AshbyParams, { operation: 'list_projects'; }>; export type AshbyGetProjectParams = Extract<AshbyParams, { operation: 'get_project'; }>; export type AshbyListCandidateProjectsParams = Extract<AshbyParams, { operation: 'list_candidate_projects'; }>; export type AshbyAddCandidateToProjectParams = Extract<AshbyParams, { operation: 'add_candidate_to_project'; }>; export type AshbyRemoveCandidateFromProjectParams = Extract<AshbyParams, { operation: 'remove_candidate_from_project'; }>; export type AshbyProject = z.output<typeof AshbyProjectSchema>; 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>; }
1308
1308
  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; }
1309
1309
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1310
1310
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -1322,8 +1322,8 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1322
1322
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1323
1323
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1324
1324
  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; }
1325
- 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>; export declare const AshbyJobSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>; export declare const AshbyInterviewStageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>; export declare const AshbyApplicationSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>; export declare const AshbyNoteSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>; export declare const AshbySourceSchema: 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 AshbyFileInfoSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; candidate_id: z.ZodOptional<z.ZodString>; job_id: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; application_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; candidate_id: z.ZodString; job_id: z.ZodString; interview_stage_id: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; application_id: z.ZodString; interview_stage_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_candidate">; candidate_id: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; candidate_id: z.ZodString; content: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; file_handle: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; success: z.ZodBoolean; jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; success: z.ZodBoolean; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; success: z.ZodBoolean; applications: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_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: "update_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: "update_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_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; success: z.ZodBoolean; notes: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; success: z.ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; success: z.ZodBoolean; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | 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 AshbyJob = z.output<typeof AshbyJobSchema>; export type AshbyApplication = z.output<typeof AshbyApplicationSchema>; export type AshbyInterviewStage = z.output<typeof AshbyInterviewStageSchema>; export type AshbyNote = z.output<typeof AshbyNoteSchema>; export type AshbySource = z.output<typeof AshbySourceSchema>; export type AshbyFileInfo = z.output<typeof AshbyFileInfoSchema>; 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 type AshbyListJobsParams = Extract<AshbyParams, { operation: 'list_jobs'; }>; export type AshbyGetJobParams = Extract<AshbyParams, { operation: 'get_job'; }>; export type AshbyListApplicationsParams = Extract<AshbyParams, { operation: 'list_applications'; }>; export type AshbyGetApplicationParams = Extract<AshbyParams, { operation: 'get_application'; }>; export type AshbyCreateApplicationParams = Extract<AshbyParams, { operation: 'create_application'; }>; export type AshbyChangeApplicationStageParams = Extract<AshbyParams, { operation: 'change_application_stage'; }>; export type AshbyUpdateCandidateParams = Extract<AshbyParams, { operation: 'update_candidate'; }>; export type AshbyCreateNoteParams = Extract<AshbyParams, { operation: 'create_note'; }>; export type AshbyListNotesParams = Extract<AshbyParams, { operation: 'list_notes'; }>; export type AshbyListSourcesParams = Extract<AshbyParams, { operation: 'list_sources'; }>; export type AshbyListInterviewStagesParams = Extract<AshbyParams, { operation: 'list_interview_stages'; }>; export type AshbyGetFileUrlParams = Extract<AshbyParams, { operation: 'get_file_url'; }>; 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_jobs">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_job">; job_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_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_applications">; candidate_id: import("zod").ZodOptional<import("zod").ZodString>; job_id: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_application">; application_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_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_application">; candidate_id: import("zod").ZodString; job_id: import("zod").ZodString; interview_stage_id: import("zod").ZodOptional<import("zod").ZodString>; source_id: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"change_application_stage">; application_id: import("zod").ZodString; interview_stage_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_candidate">; candidate_id: import("zod").ZodString; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; 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>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; candidate_id: import("zod").ZodString; content: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_notes">; 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: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sources">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_interview_stages">; job_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_file_url">; file_handle: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; creditedToUser: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_jobs">; success: import("zod").ZodBoolean; jobs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_job">; success: import("zod").ZodBoolean; job: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_applications">; success: import("zod").ZodBoolean; applications: 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>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_application">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_application">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"change_application_stage">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_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: "update_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: "update_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_note">; success: import("zod").ZodBoolean; note: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; content: import("zod").ZodString; author: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", import("zod").ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_notes">; success: import("zod").ZodBoolean; notes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; content: import("zod").ZodString; author: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", import("zod").ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sources">; success: import("zod").ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_interview_stages">; success: import("zod").ZodBoolean; interview_stages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_file_url">; success: import("zod").ZodBoolean; file: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodOptional<import("zod").ZodString>; url: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | 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; private listJobs; private getJob; private listApplications; private getApplication; private createApplication; private changeApplicationStage; private updateCandidate; private createNote; private listNotes; private listSources; private listInterviewStages; private getFileUrl; }
1326
- 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>; export declare const AshbyJobSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>; export declare const AshbyInterviewStageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>; export declare const AshbyApplicationSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>; export declare const AshbyNoteSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>; export declare const AshbySourceSchema: 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 AshbyFileInfoSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; candidate_id: z.ZodOptional<z.ZodString>; job_id: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; application_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; candidate_id: z.ZodString; job_id: z.ZodString; interview_stage_id: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; application_id: z.ZodString; interview_stage_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_candidate">; candidate_id: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; candidate_id: z.ZodString; content: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; file_handle: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; success: z.ZodBoolean; jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; success: z.ZodBoolean; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; success: z.ZodBoolean; applications: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_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: "update_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: "update_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_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; success: z.ZodBoolean; notes: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; success: z.ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; success: z.ZodBoolean; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | 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 AshbyJob = z.output<typeof AshbyJobSchema>; export type AshbyApplication = z.output<typeof AshbyApplicationSchema>; export type AshbyInterviewStage = z.output<typeof AshbyInterviewStageSchema>; export type AshbyNote = z.output<typeof AshbyNoteSchema>; export type AshbySource = z.output<typeof AshbySourceSchema>; export type AshbyFileInfo = z.output<typeof AshbyFileInfoSchema>; 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 type AshbyListJobsParams = Extract<AshbyParams, { operation: 'list_jobs'; }>; export type AshbyGetJobParams = Extract<AshbyParams, { operation: 'get_job'; }>; export type AshbyListApplicationsParams = Extract<AshbyParams, { operation: 'list_applications'; }>; export type AshbyGetApplicationParams = Extract<AshbyParams, { operation: 'get_application'; }>; export type AshbyCreateApplicationParams = Extract<AshbyParams, { operation: 'create_application'; }>; export type AshbyChangeApplicationStageParams = Extract<AshbyParams, { operation: 'change_application_stage'; }>; export type AshbyUpdateCandidateParams = Extract<AshbyParams, { operation: 'update_candidate'; }>; export type AshbyCreateNoteParams = Extract<AshbyParams, { operation: 'create_note'; }>; export type AshbyListNotesParams = Extract<AshbyParams, { operation: 'list_notes'; }>; export type AshbyListSourcesParams = Extract<AshbyParams, { operation: 'list_sources'; }>; export type AshbyListInterviewStagesParams = Extract<AshbyParams, { operation: 'list_interview_stages'; }>; export type AshbyGetFileUrlParams = Extract<AshbyParams, { operation: 'get_file_url'; }>; 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>; }
1325
+ 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>; export declare const AshbyJobSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>; export declare const AshbyInterviewStageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>; export declare const AshbyApplicationSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>; export declare const AshbyNoteSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>; export declare const AshbySourceSchema: 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 AshbyProjectSchema: 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 AshbyFileInfoSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; candidate_id: z.ZodOptional<z.ZodString>; job_id: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; application_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; candidate_id: z.ZodString; job_id: z.ZodString; interview_stage_id: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; application_id: z.ZodString; interview_stage_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_candidate">; candidate_id: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; candidate_id: z.ZodString; content: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; file_handle: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_project">; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_candidate_projects">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_candidate_to_project">; candidate_id: z.ZodString; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_candidate_from_project">; candidate_id: z.ZodString; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; success: z.ZodBoolean; jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; success: z.ZodBoolean; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; success: z.ZodBoolean; applications: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_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: "update_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: "update_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_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; success: z.ZodBoolean; notes: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; success: z.ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; success: z.ZodBoolean; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: 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_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_project">; success: z.ZodBoolean; project: 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: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_candidate_projects">; success: z.ZodBoolean; projects: 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_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_candidate_to_project">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_candidate_to_project"; }, { error: string; success: boolean; operation: "add_candidate_to_project"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_candidate_from_project">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_candidate_from_project"; }, { error: string; success: boolean; operation: "remove_candidate_from_project"; }>]>; 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 AshbyJob = z.output<typeof AshbyJobSchema>; export type AshbyApplication = z.output<typeof AshbyApplicationSchema>; export type AshbyInterviewStage = z.output<typeof AshbyInterviewStageSchema>; export type AshbyNote = z.output<typeof AshbyNoteSchema>; export type AshbySource = z.output<typeof AshbySourceSchema>; export type AshbyFileInfo = z.output<typeof AshbyFileInfoSchema>; 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 type AshbyListJobsParams = Extract<AshbyParams, { operation: 'list_jobs'; }>; export type AshbyGetJobParams = Extract<AshbyParams, { operation: 'get_job'; }>; export type AshbyListApplicationsParams = Extract<AshbyParams, { operation: 'list_applications'; }>; export type AshbyGetApplicationParams = Extract<AshbyParams, { operation: 'get_application'; }>; export type AshbyCreateApplicationParams = Extract<AshbyParams, { operation: 'create_application'; }>; export type AshbyChangeApplicationStageParams = Extract<AshbyParams, { operation: 'change_application_stage'; }>; export type AshbyUpdateCandidateParams = Extract<AshbyParams, { operation: 'update_candidate'; }>; export type AshbyCreateNoteParams = Extract<AshbyParams, { operation: 'create_note'; }>; export type AshbyListNotesParams = Extract<AshbyParams, { operation: 'list_notes'; }>; export type AshbyListSourcesParams = Extract<AshbyParams, { operation: 'list_sources'; }>; export type AshbyListInterviewStagesParams = Extract<AshbyParams, { operation: 'list_interview_stages'; }>; export type AshbyGetFileUrlParams = Extract<AshbyParams, { operation: 'get_file_url'; }>; export type AshbyListProjectsParams = Extract<AshbyParams, { operation: 'list_projects'; }>; export type AshbyGetProjectParams = Extract<AshbyParams, { operation: 'get_project'; }>; export type AshbyListCandidateProjectsParams = Extract<AshbyParams, { operation: 'list_candidate_projects'; }>; export type AshbyAddCandidateToProjectParams = Extract<AshbyParams, { operation: 'add_candidate_to_project'; }>; export type AshbyRemoveCandidateFromProjectParams = Extract<AshbyParams, { operation: 'remove_candidate_from_project'; }>; export type AshbyProject = z.output<typeof AshbyProjectSchema>; 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_jobs">; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_job">; job_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_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_applications">; candidate_id: import("zod").ZodOptional<import("zod").ZodString>; job_id: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_application">; application_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_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_application">; candidate_id: import("zod").ZodString; job_id: import("zod").ZodString; interview_stage_id: import("zod").ZodOptional<import("zod").ZodString>; source_id: import("zod").ZodOptional<import("zod").ZodString>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"change_application_stage">; application_id: import("zod").ZodString; interview_stage_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_candidate">; candidate_id: import("zod").ZodString; name: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; 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>; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_note">; candidate_id: import("zod").ZodString; content: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_notes">; 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: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sources">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_interview_stages">; job_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_file_url">; file_handle: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_project">; project_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_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidate_projects">; 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: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_candidate_to_project">; candidate_id: import("zod").ZodString; project_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_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_candidate_from_project">; candidate_id: import("zod").ZodString; project_id: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; creditedToUser: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; }, "strip", import("zod").ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_jobs">; success: import("zod").ZodBoolean; jobs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_job">; success: import("zod").ZodBoolean; job: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_applications">; success: import("zod").ZodBoolean; applications: 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>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: import("zod").ZodOptional<import("zod").ZodString>; more_data_available: import("zod").ZodOptional<import("zod").ZodBoolean>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_application">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; status: import("zod").ZodOptional<import("zod").ZodString>; departmentId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; teamId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; locationIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "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">>; openedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; closedAt: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_application">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"change_application_stage">; success: import("zod").ZodBoolean; application: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; updatedAt: import("zod").ZodOptional<import("zod").ZodString>; status: import("zod").ZodOptional<import("zod").ZodString>; candidateId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; jobId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; currentInterviewStage: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; archiveReason: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnknown>>; 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">>; hiringTeam: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ userId: import("zod").ZodString; role: import("zod").ZodString; email: import("zod").ZodOptional<import("zod").ZodString>; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", import("zod").ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_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: "update_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: "update_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_note">; success: import("zod").ZodBoolean; note: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; content: import("zod").ZodString; author: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", import("zod").ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_notes">; success: import("zod").ZodBoolean; notes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; createdAt: import("zod").ZodOptional<import("zod").ZodString>; content: import("zod").ZodString; author: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodString; firstName: import("zod").ZodOptional<import("zod").ZodString>; lastName: import("zod").ZodOptional<import("zod").ZodString>; email: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", import("zod").ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sources">; success: import("zod").ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_interview_stages">; success: import("zod").ZodBoolean; interview_stages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; title: import("zod").ZodString; type: import("zod").ZodOptional<import("zod").ZodString>; orderInInterviewPlan: import("zod").ZodOptional<import("zod").ZodNumber>; interviewPlanId: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_file_url">; success: import("zod").ZodBoolean; file: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodOptional<import("zod").ZodString>; url: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; success: import("zod").ZodBoolean; projects: 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_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_project">; success: import("zod").ZodBoolean; project: 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: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_candidate_projects">; success: import("zod").ZodBoolean; projects: 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_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"add_candidate_to_project">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "add_candidate_to_project"; }, { error: string; success: boolean; operation: "add_candidate_to_project"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"remove_candidate_from_project">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "remove_candidate_from_project"; }, { error: string; success: boolean; operation: "remove_candidate_from_project"; }>]>; 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; private listJobs; private getJob; private listApplications; private getApplication; private createApplication; private changeApplicationStage; private updateCandidate; private createNote; private listNotes; private listSources; private listInterviewStages; private getFileUrl; private listProjects; private getProject; private listCandidateProjects; private addCandidateToProject; private removeCandidateFromProject; }
1326
+ 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>; export declare const AshbyJobSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>; export declare const AshbyInterviewStageSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>; export declare const AshbyApplicationSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>; export declare const AshbyNoteSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>; export declare const AshbySourceSchema: 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 AshbyProjectSchema: 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 AshbyFileInfoSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: 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; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; }, { operation: "search_candidates"; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Open", "Closed", "Draft", "Archived"]>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_jobs"; limit: number; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; cursor?: string | undefined; }, { operation: "list_jobs"; status?: "Archived" | "Open" | "Closed" | "Draft" | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; cursor?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_job"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; candidate_id: z.ZodOptional<z.ZodString>; job_id: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["Active", "Hired", "Archived", "Lead"]>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; cursor: 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_applications"; 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; candidate_id?: string | undefined; }, { operation: "list_applications"; 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; candidate_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; application_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_application"; application_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; candidate_id: z.ZodString; job_id: z.ZodString; interview_stage_id: z.ZodOptional<z.ZodString>; source_id: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }, { operation: "create_application"; job_id: string; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; source_id?: string | undefined; interview_stage_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; application_id: z.ZodString; interview_stage_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "change_application_stage"; application_id: string; interview_stage_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_candidate">; candidate_id: z.ZodString; name: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; phone_number: z.ZodOptional<z.ZodString>; linkedin_url: z.ZodOptional<z.ZodString>; github_url: z.ZodOptional<z.ZodString>; website: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }, { operation: "update_candidate"; candidate_id: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; email?: string | undefined; website?: string | undefined; phone_number?: string | undefined; linkedin_url?: string | undefined; github_url?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_note">; candidate_id: z.ZodString; content: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { content: string; operation: "create_note"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_notes"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_sources"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; job_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_interview_stages"; job_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; file_handle: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_file_url"; file_handle: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_project">; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_project"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_candidate_projects">; candidate_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_candidate_projects"; candidate_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_candidate_to_project">; candidate_id: z.ZodString; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "add_candidate_to_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_candidate_from_project">; candidate_id: z.ZodString; project_id: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "remove_candidate_from_project"; candidate_id: string; project_id: string; credentials?: Partial<Record<CredentialType, 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">>; profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }, { name: string; id: string; tags?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; position?: string | null | undefined; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }>, "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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; profileUrl?: string | null | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; primaryEmailAddress?: { value: string; type: "Personal" | "Work" | "Other"; isPrimary: boolean; } | 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; creditedToUser?: unknown; }[] | 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; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_jobs">; success: z.ZodBoolean; jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }, { error: string; success: boolean; operation: "list_jobs"; next_cursor?: string | undefined; jobs?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }[] | undefined; more_data_available?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_job">; success: z.ZodBoolean; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_job"; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_applications">; success: z.ZodBoolean; applications: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>, "many">>; next_cursor: z.ZodOptional<z.ZodString>; more_data_available: z.ZodOptional<z.ZodBoolean>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_applications"; next_cursor?: string | undefined; more_data_available?: boolean | undefined; applications?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; 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; }>>; job: z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; status: z.ZodOptional<z.ZodString>; departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>; teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>; locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "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">>; openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }, { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_application"; 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; job?: { title: string; id: string; status?: string | undefined; locationId?: string | null | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; teamId?: string | null | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; departmentId?: string | null | undefined; locationIds?: string[] | undefined; openedAt?: string | null | undefined; closedAt?: string | null | undefined; } | undefined; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_application">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_application"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"change_application_stage">; success: z.ZodBoolean; application: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodString>; candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>; jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>; currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>>>; source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>; 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">>; hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{ userId: z.ZodString; role: z.ZodString; email: z.ZodOptional<z.ZodString>; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }, { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "change_application_stage"; application?: { id: string; status?: string | undefined; source?: unknown; createdAt?: string | undefined; updatedAt?: string | undefined; customFields?: { title: string; id: string; value?: unknown; isPrivate?: boolean | undefined; }[] | undefined; candidateId?: string | null | undefined; jobId?: string | null | undefined; currentInterviewStage?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; } | null | undefined; archiveReason?: unknown; hiringTeam?: { role: string; userId: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_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: "update_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: "update_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_note">; success: z.ZodBoolean; note: z.ZodOptional<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_note"; note?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_notes">; success: z.ZodBoolean; notes: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; content: z.ZodString; author: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; email: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }, { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }, { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_notes"; notes?: { content: string; id: string; author?: { id: string; email?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; } | null | undefined; createdAt?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_sources">; success: z.ZodBoolean; sources: 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_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_sources"; sources?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_interview_stages">; success: z.ZodBoolean; interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodString>; orderInInterviewPlan: z.ZodOptional<z.ZodNumber>; interviewPlanId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }, { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_interview_stages"; interview_stages?: { title: string; id: string; type?: string | undefined; orderInInterviewPlan?: number | undefined; interviewPlanId?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_url">; success: z.ZodBoolean; file: z.ZodOptional<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; name?: string | undefined; id?: string | undefined; }, { url: string; name?: string | undefined; id?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_file_url"; file?: { url: string; name?: string | undefined; id?: string | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: 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_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_project">; success: z.ZodBoolean; project: 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: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_project"; project?: { title: string; id: string; isArchived?: boolean | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_candidate_projects">; success: z.ZodBoolean; projects: 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_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "list_candidate_projects"; projects?: { title: string; id: string; isArchived?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"add_candidate_to_project">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "add_candidate_to_project"; }, { error: string; success: boolean; operation: "add_candidate_to_project"; }>, z.ZodObject<{ operation: z.ZodLiteral<"remove_candidate_from_project">; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "remove_candidate_from_project"; }, { error: string; success: boolean; operation: "remove_candidate_from_project"; }>]>; 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 AshbyJob = z.output<typeof AshbyJobSchema>; export type AshbyApplication = z.output<typeof AshbyApplicationSchema>; export type AshbyInterviewStage = z.output<typeof AshbyInterviewStageSchema>; export type AshbyNote = z.output<typeof AshbyNoteSchema>; export type AshbySource = z.output<typeof AshbySourceSchema>; export type AshbyFileInfo = z.output<typeof AshbyFileInfoSchema>; 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 type AshbyListJobsParams = Extract<AshbyParams, { operation: 'list_jobs'; }>; export type AshbyGetJobParams = Extract<AshbyParams, { operation: 'get_job'; }>; export type AshbyListApplicationsParams = Extract<AshbyParams, { operation: 'list_applications'; }>; export type AshbyGetApplicationParams = Extract<AshbyParams, { operation: 'get_application'; }>; export type AshbyCreateApplicationParams = Extract<AshbyParams, { operation: 'create_application'; }>; export type AshbyChangeApplicationStageParams = Extract<AshbyParams, { operation: 'change_application_stage'; }>; export type AshbyUpdateCandidateParams = Extract<AshbyParams, { operation: 'update_candidate'; }>; export type AshbyCreateNoteParams = Extract<AshbyParams, { operation: 'create_note'; }>; export type AshbyListNotesParams = Extract<AshbyParams, { operation: 'list_notes'; }>; export type AshbyListSourcesParams = Extract<AshbyParams, { operation: 'list_sources'; }>; export type AshbyListInterviewStagesParams = Extract<AshbyParams, { operation: 'list_interview_stages'; }>; export type AshbyGetFileUrlParams = Extract<AshbyParams, { operation: 'get_file_url'; }>; export type AshbyListProjectsParams = Extract<AshbyParams, { operation: 'list_projects'; }>; export type AshbyGetProjectParams = Extract<AshbyParams, { operation: 'get_project'; }>; export type AshbyListCandidateProjectsParams = Extract<AshbyParams, { operation: 'list_candidate_projects'; }>; export type AshbyAddCandidateToProjectParams = Extract<AshbyParams, { operation: 'add_candidate_to_project'; }>; export type AshbyRemoveCandidateFromProjectParams = Extract<AshbyParams, { operation: 'remove_candidate_from_project'; }>; export type AshbyProject = z.output<typeof AshbyProjectSchema>; 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>; }
1327
1327
  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; }
1328
1328
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1329
1329
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -1562,9 +1562,9 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1562
1562
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1563
1563
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1564
1564
  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; }
1565
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const PosthogEventSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>; export declare const PosthogPersonSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>; export declare const PosthogInsightSchema: z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>; export declare const PosthogQueryResultSchema: z.ZodObject<{ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>; export declare const PosthogProjectSchema: z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>; export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; event: z.ZodOptional<z.ZodString>; person_id: z.ZodOptional<z.ZodString>; distinct_id: z.ZodOptional<z.ZodString>; after: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; limit: number; host: string; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; query: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "query"; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; distinct_id: z.ZodOptional<z.ZodString>; search: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_person"; limit: number; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; insight_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_insight"; host: string; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; success: z.ZodBoolean; columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; success: z.ZodBoolean; persons: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; success: z.ZodBoolean; insight: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; export
1566
- type PosthogParamsInput = z.input<typeof PosthogParamsSchema>;;;;; export type PosthogParams = z.output<typeof PosthogParamsSchema>; export type PosthogResult = z.output<typeof PosthogResultSchema>; export type PosthogEvent = z.output<typeof PosthogEventSchema>; export type PosthogPerson = z.output<typeof PosthogPersonSchema>; export type PosthogInsight = z.output<typeof PosthogInsightSchema>; export type PosthogQueryResult = z.output<typeof PosthogQueryResultSchema>; export type PosthogProject = z.output<typeof PosthogProjectSchema>; export type PosthogListProjectsParams = Extract<PosthogParams, { operation: 'list_projects'; }>; export type PosthogListEventsParams = Extract<PosthogParams, { operation: 'list_events'; }>; export type PosthogQueryParams = Extract<PosthogParams, { operation: 'query'; }>; export type PosthogGetPersonParams = Extract<PosthogParams, { operation: 'get_person'; }>; export type PosthogGetInsightParams = Extract<PosthogParams, { operation: 'get_insight'; }>; export declare class PosthogBubble<T extends PosthogParamsInput = PosthogParamsInput> extends ServiceBubble<T, Extract<PosthogResult, { operation: T['operation']; }>> { static readonly service = "posthog"; static readonly authType: "apikey"; static readonly bubbleName: "posthog"; static readonly type: "service"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; limit: 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_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_events">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; event: import("zod").ZodOptional<import("zod").ZodString>; person_id: import("zod").ZodOptional<import("zod").ZodString>; distinct_id: import("zod").ZodOptional<import("zod").ZodString>; after: import("zod").ZodOptional<import("zod").ZodString>; before: import("zod").ZodOptional<import("zod").ZodString>; properties: import("zod").ZodOptional<import("zod").ZodString>; limit: 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_events"; limit: number; host: string; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"query">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; query: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "query"; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_person">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; distinct_id: import("zod").ZodOptional<import("zod").ZodString>; search: import("zod").ZodOptional<import("zod").ZodString>; limit: 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: "get_person"; limit: number; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_insight">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; insight_id: import("zod").ZodNumber; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_insight"; host: string; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; success: import("zod").ZodBoolean; projects: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; uuid: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; organization: import("zod").ZodOptional<import("zod").ZodString>; created_at: import("zod").ZodOptional<import("zod").ZodString>; timezone: import("zod").ZodOptional<import("zod").ZodString>; is_demo: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_events">; success: import("zod").ZodBoolean; events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; uuid: import("zod").ZodOptional<import("zod").ZodString>; event: import("zod").ZodString; distinct_id: import("zod").ZodString; properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; timestamp: import("zod").ZodOptional<import("zod").ZodString>; created_at: import("zod").ZodOptional<import("zod").ZodString>; elements: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>; elements_chain: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"query">; success: import("zod").ZodBoolean; columns: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodUnknown, "many">, "many">>; types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>, "many">>; hasMore: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_person">; success: import("zod").ZodBoolean; persons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; uuid: import("zod").ZodOptional<import("zod").ZodString>; distinct_ids: import("zod").ZodArray<import("zod").ZodString, "many">; properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_insight">; success: import("zod").ZodBoolean; insight: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; short_id: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; result: import("zod").ZodOptional<import("zod").ZodUnknown>; filters: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; last_refresh: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; last_modified_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; static readonly shortDescription = "PostHog product analytics for events, persons, and insights"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "posthog-analytics"; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<PosthogResult, { operation: T['operation']; }>>; private makePosthogGetRequest; private makePosthogPostRequest; private listProjects; private listEvents; private executeQuery; private getPerson; private getInsight; }
1567
- export declare const PosthogEventSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>; export declare const PosthogPersonSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>; export declare const PosthogInsightSchema: z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>; export declare const PosthogQueryResultSchema: z.ZodObject<{ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>; export declare const PosthogProjectSchema: z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>; export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; event: z.ZodOptional<z.ZodString>; person_id: z.ZodOptional<z.ZodString>; distinct_id: z.ZodOptional<z.ZodString>; after: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; limit: number; host: string; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; query: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "query"; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; distinct_id: z.ZodOptional<z.ZodString>; search: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_person"; limit: number; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; insight_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_insight"; host: string; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; success: z.ZodBoolean; columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; success: z.ZodBoolean; persons: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; success: z.ZodBoolean; insight: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; export type PosthogParamsInput = z.input<typeof PosthogParamsSchema>; export type PosthogParams = z.output<typeof PosthogParamsSchema>; export type PosthogResult = z.output<typeof PosthogResultSchema>; export type PosthogEvent = z.output<typeof PosthogEventSchema>; export type PosthogPerson = z.output<typeof PosthogPersonSchema>; export type PosthogInsight = z.output<typeof PosthogInsightSchema>; export type PosthogQueryResult = z.output<typeof PosthogQueryResultSchema>; export type PosthogProject = z.output<typeof PosthogProjectSchema>; export type PosthogListProjectsParams = Extract<PosthogParams, { operation: 'list_projects'; }>; export type PosthogListEventsParams = Extract<PosthogParams, { operation: 'list_events'; }>; export type PosthogQueryParams = Extract<PosthogParams, { operation: 'query'; }>; export type PosthogGetPersonParams = Extract<PosthogParams, { operation: 'get_person'; }>; export type PosthogGetInsightParams = Extract<PosthogParams, { operation: 'get_insight'; }>; 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>; }
1565
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const PosthogEventSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>; export declare const PosthogPersonSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>; export declare const PosthogInsightSchema: z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>; export declare const PosthogQueryResultSchema: z.ZodObject<{ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>; export declare const PosthogProjectSchema: z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>; export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; event: z.ZodOptional<z.ZodString>; person_id: z.ZodOptional<z.ZodString>; distinct_id: z.ZodOptional<z.ZodString>; after: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; limit: number; project_id: string; host: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; query: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "query"; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; distinct_id: z.ZodOptional<z.ZodString>; search: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_person"; limit: number; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; insight_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_insight"; project_id: string; host: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; success: z.ZodBoolean; columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; success: z.ZodBoolean; persons: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; success: z.ZodBoolean; insight: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; export
1566
+ type PosthogParamsInput = z.input<typeof PosthogParamsSchema>;;;;; export type PosthogParams = z.output<typeof PosthogParamsSchema>; export type PosthogResult = z.output<typeof PosthogResultSchema>; export type PosthogEvent = z.output<typeof PosthogEventSchema>; export type PosthogPerson = z.output<typeof PosthogPersonSchema>; export type PosthogInsight = z.output<typeof PosthogInsightSchema>; export type PosthogQueryResult = z.output<typeof PosthogQueryResultSchema>; export type PosthogProject = z.output<typeof PosthogProjectSchema>; export type PosthogListProjectsParams = Extract<PosthogParams, { operation: 'list_projects'; }>; export type PosthogListEventsParams = Extract<PosthogParams, { operation: 'list_events'; }>; export type PosthogQueryParams = Extract<PosthogParams, { operation: 'query'; }>; export type PosthogGetPersonParams = Extract<PosthogParams, { operation: 'get_person'; }>; export type PosthogGetInsightParams = Extract<PosthogParams, { operation: 'get_insight'; }>; export declare class PosthogBubble<T extends PosthogParamsInput = PosthogParamsInput> extends ServiceBubble<T, Extract<PosthogResult, { operation: T['operation']; }>> { static readonly service = "posthog"; static readonly authType: "apikey"; static readonly bubbleName: "posthog"; static readonly type: "service"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; limit: 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_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_events">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; event: import("zod").ZodOptional<import("zod").ZodString>; person_id: import("zod").ZodOptional<import("zod").ZodString>; distinct_id: import("zod").ZodOptional<import("zod").ZodString>; after: import("zod").ZodOptional<import("zod").ZodString>; before: import("zod").ZodOptional<import("zod").ZodString>; properties: import("zod").ZodOptional<import("zod").ZodString>; limit: 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_events"; limit: number; project_id: string; host: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"query">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; query: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "query"; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_person">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; distinct_id: import("zod").ZodOptional<import("zod").ZodString>; search: import("zod").ZodOptional<import("zod").ZodString>; limit: 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: "get_person"; limit: number; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_insight">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; insight_id: import("zod").ZodNumber; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_insight"; project_id: string; host: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; success: import("zod").ZodBoolean; projects: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; uuid: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; organization: import("zod").ZodOptional<import("zod").ZodString>; created_at: import("zod").ZodOptional<import("zod").ZodString>; timezone: import("zod").ZodOptional<import("zod").ZodString>; is_demo: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_events">; success: import("zod").ZodBoolean; events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; uuid: import("zod").ZodOptional<import("zod").ZodString>; event: import("zod").ZodString; distinct_id: import("zod").ZodString; properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; timestamp: import("zod").ZodOptional<import("zod").ZodString>; created_at: import("zod").ZodOptional<import("zod").ZodString>; elements: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>; elements_chain: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"query">; success: import("zod").ZodBoolean; columns: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodUnknown, "many">, "many">>; types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>, "many">>; hasMore: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_person">; success: import("zod").ZodBoolean; persons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; uuid: import("zod").ZodOptional<import("zod").ZodString>; distinct_ids: import("zod").ZodArray<import("zod").ZodString, "many">; properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_insight">; success: import("zod").ZodBoolean; insight: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; short_id: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; result: import("zod").ZodOptional<import("zod").ZodUnknown>; filters: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; last_refresh: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; last_modified_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; static readonly shortDescription = "PostHog product analytics for events, persons, and insights"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "posthog-analytics"; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<PosthogResult, { operation: T['operation']; }>>; private makePosthogGetRequest; private makePosthogPostRequest; private listProjects; private listEvents; private executeQuery; private getPerson; private getInsight; }
1567
+ export declare const PosthogEventSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>; export declare const PosthogPersonSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>; export declare const PosthogInsightSchema: z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>; export declare const PosthogQueryResultSchema: z.ZodObject<{ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>; export declare const PosthogProjectSchema: z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>; export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; event: z.ZodOptional<z.ZodString>; person_id: z.ZodOptional<z.ZodString>; distinct_id: z.ZodOptional<z.ZodString>; after: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; limit: number; project_id: string; host: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; query: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "query"; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; distinct_id: z.ZodOptional<z.ZodString>; search: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_person"; limit: number; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; insight_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_insight"; project_id: string; host: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; success: z.ZodBoolean; columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; success: z.ZodBoolean; persons: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; success: z.ZodBoolean; insight: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; export type PosthogParamsInput = z.input<typeof PosthogParamsSchema>; export type PosthogParams = z.output<typeof PosthogParamsSchema>; export type PosthogResult = z.output<typeof PosthogResultSchema>; export type PosthogEvent = z.output<typeof PosthogEventSchema>; export type PosthogPerson = z.output<typeof PosthogPersonSchema>; export type PosthogInsight = z.output<typeof PosthogInsightSchema>; export type PosthogQueryResult = z.output<typeof PosthogQueryResultSchema>; export type PosthogProject = z.output<typeof PosthogProjectSchema>; export type PosthogListProjectsParams = Extract<PosthogParams, { operation: 'list_projects'; }>; export type PosthogListEventsParams = Extract<PosthogParams, { operation: 'list_events'; }>; export type PosthogQueryParams = Extract<PosthogParams, { operation: 'query'; }>; export type PosthogGetPersonParams = Extract<PosthogParams, { operation: 'get_person'; }>; export type PosthogGetInsightParams = Extract<PosthogParams, { operation: 'get_insight'; }>; 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>; }
1568
1568
  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; }
1569
1569
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1570
1570
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
@@ -1582,8 +1582,8 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
1582
1582
  export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
1583
1583
  export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
1584
1584
  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; }
1585
- export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const PosthogEventSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>; export declare const PosthogPersonSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>; export declare const PosthogInsightSchema: z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>; export declare const PosthogQueryResultSchema: z.ZodObject<{ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>; export declare const PosthogProjectSchema: z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>; export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; event: z.ZodOptional<z.ZodString>; person_id: z.ZodOptional<z.ZodString>; distinct_id: z.ZodOptional<z.ZodString>; after: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; limit: number; host: string; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; query: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "query"; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; distinct_id: z.ZodOptional<z.ZodString>; search: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_person"; limit: number; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; insight_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_insight"; host: string; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; success: z.ZodBoolean; columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; success: z.ZodBoolean; persons: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; success: z.ZodBoolean; insight: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; export type PosthogParamsInput = z.input<typeof PosthogParamsSchema>; export type PosthogParams = z.output<typeof PosthogParamsSchema>; export type PosthogResult = z.output<typeof PosthogResultSchema>; export type PosthogEvent = z.output<typeof PosthogEventSchema>; export type PosthogPerson = z.output<typeof PosthogPersonSchema>; export type PosthogInsight = z.output<typeof PosthogInsightSchema>; export type PosthogQueryResult = z.output<typeof PosthogQueryResultSchema>; export type PosthogProject = z.output<typeof PosthogProjectSchema>; export type PosthogListProjectsParams = Extract<PosthogParams, { operation: 'list_projects'; }>; export type PosthogListEventsParams = Extract<PosthogParams, { operation: 'list_events'; }>; export type PosthogQueryParams = Extract<PosthogParams, { operation: 'query'; }>; export type PosthogGetPersonParams = Extract<PosthogParams, { operation: 'get_person'; }>; export type PosthogGetInsightParams = Extract<PosthogParams, { operation: 'get_insight'; }>; export declare class PosthogBubble<T extends PosthogParamsInput = PosthogParamsInput> extends ServiceBubble<T, Extract<PosthogResult, { operation: T['operation']; }>> { static readonly service = "posthog"; static readonly authType: "apikey"; static readonly bubbleName: "posthog"; static readonly type: "service"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; limit: 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_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_events">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; event: import("zod").ZodOptional<import("zod").ZodString>; person_id: import("zod").ZodOptional<import("zod").ZodString>; distinct_id: import("zod").ZodOptional<import("zod").ZodString>; after: import("zod").ZodOptional<import("zod").ZodString>; before: import("zod").ZodOptional<import("zod").ZodString>; properties: import("zod").ZodOptional<import("zod").ZodString>; limit: 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_events"; limit: number; host: string; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"query">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; query: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "query"; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_person">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; distinct_id: import("zod").ZodOptional<import("zod").ZodString>; search: import("zod").ZodOptional<import("zod").ZodString>; limit: 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: "get_person"; limit: number; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_insight">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; insight_id: import("zod").ZodNumber; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_insight"; host: string; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; success: import("zod").ZodBoolean; projects: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; uuid: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; organization: import("zod").ZodOptional<import("zod").ZodString>; created_at: import("zod").ZodOptional<import("zod").ZodString>; timezone: import("zod").ZodOptional<import("zod").ZodString>; is_demo: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_events">; success: import("zod").ZodBoolean; events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; uuid: import("zod").ZodOptional<import("zod").ZodString>; event: import("zod").ZodString; distinct_id: import("zod").ZodString; properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; timestamp: import("zod").ZodOptional<import("zod").ZodString>; created_at: import("zod").ZodOptional<import("zod").ZodString>; elements: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>; elements_chain: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"query">; success: import("zod").ZodBoolean; columns: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodUnknown, "many">, "many">>; types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>, "many">>; hasMore: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_person">; success: import("zod").ZodBoolean; persons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; uuid: import("zod").ZodOptional<import("zod").ZodString>; distinct_ids: import("zod").ZodArray<import("zod").ZodString, "many">; properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_insight">; success: import("zod").ZodBoolean; insight: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; short_id: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; result: import("zod").ZodOptional<import("zod").ZodUnknown>; filters: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; last_refresh: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; last_modified_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; static readonly shortDescription = "PostHog product analytics for events, persons, and insights"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "posthog-analytics"; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<PosthogResult, { operation: T['operation']; }>>; private makePosthogGetRequest; private makePosthogPostRequest; private listProjects; private listEvents; private executeQuery; private getPerson; private getInsight; }
1586
- export declare const PosthogEventSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>; export declare const PosthogPersonSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>; export declare const PosthogInsightSchema: z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>; export declare const PosthogQueryResultSchema: z.ZodObject<{ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>; export declare const PosthogProjectSchema: z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>; export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; event: z.ZodOptional<z.ZodString>; person_id: z.ZodOptional<z.ZodString>; distinct_id: z.ZodOptional<z.ZodString>; after: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; limit: number; host: string; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; query: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "query"; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; distinct_id: z.ZodOptional<z.ZodString>; search: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_person"; limit: number; host: string; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; insight_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_insight"; host: string; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; success: z.ZodBoolean; columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; success: z.ZodBoolean; persons: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; success: z.ZodBoolean; insight: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; export type PosthogParamsInput = z.input<typeof PosthogParamsSchema>; export type PosthogParams = z.output<typeof PosthogParamsSchema>; export type PosthogResult = z.output<typeof PosthogResultSchema>; export type PosthogEvent = z.output<typeof PosthogEventSchema>; export type PosthogPerson = z.output<typeof PosthogPersonSchema>; export type PosthogInsight = z.output<typeof PosthogInsightSchema>; export type PosthogQueryResult = z.output<typeof PosthogQueryResultSchema>; export type PosthogProject = z.output<typeof PosthogProjectSchema>; export type PosthogListProjectsParams = Extract<PosthogParams, { operation: 'list_projects'; }>; export type PosthogListEventsParams = Extract<PosthogParams, { operation: 'list_events'; }>; export type PosthogQueryParams = Extract<PosthogParams, { operation: 'query'; }>; export type PosthogGetPersonParams = Extract<PosthogParams, { operation: 'get_person'; }>; export type PosthogGetInsightParams = Extract<PosthogParams, { operation: 'get_insight'; }>; 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>; }
1585
+ export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const PosthogEventSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>; export declare const PosthogPersonSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>; export declare const PosthogInsightSchema: z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>; export declare const PosthogQueryResultSchema: z.ZodObject<{ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>; export declare const PosthogProjectSchema: z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>; export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; event: z.ZodOptional<z.ZodString>; person_id: z.ZodOptional<z.ZodString>; distinct_id: z.ZodOptional<z.ZodString>; after: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; limit: number; project_id: string; host: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; query: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "query"; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; distinct_id: z.ZodOptional<z.ZodString>; search: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_person"; limit: number; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; insight_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_insight"; project_id: string; host: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; success: z.ZodBoolean; columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; success: z.ZodBoolean; persons: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; success: z.ZodBoolean; insight: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; export type PosthogParamsInput = z.input<typeof PosthogParamsSchema>; export type PosthogParams = z.output<typeof PosthogParamsSchema>; export type PosthogResult = z.output<typeof PosthogResultSchema>; export type PosthogEvent = z.output<typeof PosthogEventSchema>; export type PosthogPerson = z.output<typeof PosthogPersonSchema>; export type PosthogInsight = z.output<typeof PosthogInsightSchema>; export type PosthogQueryResult = z.output<typeof PosthogQueryResultSchema>; export type PosthogProject = z.output<typeof PosthogProjectSchema>; export type PosthogListProjectsParams = Extract<PosthogParams, { operation: 'list_projects'; }>; export type PosthogListEventsParams = Extract<PosthogParams, { operation: 'list_events'; }>; export type PosthogQueryParams = Extract<PosthogParams, { operation: 'query'; }>; export type PosthogGetPersonParams = Extract<PosthogParams, { operation: 'get_person'; }>; export type PosthogGetInsightParams = Extract<PosthogParams, { operation: 'get_insight'; }>; export declare class PosthogBubble<T extends PosthogParamsInput = PosthogParamsInput> extends ServiceBubble<T, Extract<PosthogResult, { operation: T['operation']; }>> { static readonly service = "posthog"; static readonly authType: "apikey"; static readonly bubbleName: "posthog"; static readonly type: "service"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; limit: 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_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_events">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; event: import("zod").ZodOptional<import("zod").ZodString>; person_id: import("zod").ZodOptional<import("zod").ZodString>; distinct_id: import("zod").ZodOptional<import("zod").ZodString>; after: import("zod").ZodOptional<import("zod").ZodString>; before: import("zod").ZodOptional<import("zod").ZodString>; properties: import("zod").ZodOptional<import("zod").ZodString>; limit: 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_events"; limit: number; project_id: string; host: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"query">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; query: import("zod").ZodString; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { query: string; operation: "query"; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_person">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; distinct_id: import("zod").ZodOptional<import("zod").ZodString>; search: import("zod").ZodOptional<import("zod").ZodString>; limit: 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: "get_person"; limit: number; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_insight">; project_id: import("zod").ZodString; host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>; insight_id: import("zod").ZodNumber; credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_insight"; project_id: string; host: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_projects">; success: import("zod").ZodBoolean; projects: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodNumber; uuid: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodString; organization: import("zod").ZodOptional<import("zod").ZodString>; created_at: import("zod").ZodOptional<import("zod").ZodString>; timezone: import("zod").ZodOptional<import("zod").ZodString>; is_demo: import("zod").ZodOptional<import("zod").ZodBoolean>; }, "strip", import("zod").ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_events">; success: import("zod").ZodBoolean; events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodOptional<import("zod").ZodString>; uuid: import("zod").ZodOptional<import("zod").ZodString>; event: import("zod").ZodString; distinct_id: import("zod").ZodString; properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; timestamp: import("zod").ZodOptional<import("zod").ZodString>; created_at: import("zod").ZodOptional<import("zod").ZodString>; elements: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>; elements_chain: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"query">; success: import("zod").ZodBoolean; columns: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodUnknown, "many">, "many">>; types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>, "many">>; hasMore: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_person">; success: import("zod").ZodBoolean; persons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{ id: import("zod").ZodString; uuid: import("zod").ZodOptional<import("zod").ZodString>; distinct_ids: import("zod").ZodArray<import("zod").ZodString, "many">; properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_insight">; success: import("zod").ZodBoolean; insight: import("zod").ZodOptional<import("zod").ZodObject<{ id: import("zod").ZodNumber; short_id: import("zod").ZodOptional<import("zod").ZodString>; name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; result: import("zod").ZodOptional<import("zod").ZodUnknown>; filters: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>; created_at: import("zod").ZodOptional<import("zod").ZodString>; last_refresh: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>; last_modified_at: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; static readonly shortDescription = "PostHog product analytics for events, persons, and insights"; static readonly longDescription = "See bubble documentation for details"; static readonly alias = "posthog-analytics"; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; testCredential(): Promise<boolean>; protected performAction(context?: BubbleContext): Promise<Extract<PosthogResult, { operation: T['operation']; }>>; private makePosthogGetRequest; private makePosthogPostRequest; private listProjects; private listEvents; private executeQuery; private getPerson; private getInsight; }
1586
+ export declare const PosthogEventSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>; export declare const PosthogPersonSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>; export declare const PosthogInsightSchema: z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>; export declare const PosthogQueryResultSchema: z.ZodObject<{ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { types?: (string | string[])[] | undefined; limit?: number | undefined; offset?: number | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>; export declare const PosthogProjectSchema: z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>; export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; limit: number; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "list_projects"; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; event: z.ZodOptional<z.ZodString>; person_id: z.ZodOptional<z.ZodString>; distinct_id: z.ZodOptional<z.ZodString>; after: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodString>; properties: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; limit: number; project_id: string; host: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }, { operation: "list_events"; project_id: string; properties?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; host?: string | undefined; before?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; query: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "query"; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; distinct_id: z.ZodOptional<z.ZodString>; search: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_person"; limit: number; project_id: string; host: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial<Record<CredentialType, string>> | undefined; search?: string | undefined; limit?: number | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; project_id: z.ZodString; host: z.ZodDefault<z.ZodOptional<z.ZodString>>; insight_id: z.ZodNumber; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_insight"; project_id: string; host: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial<Record<CredentialType, string>> | undefined; host?: string | undefined; }>]>; export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional<z.ZodString>; name: z.ZodString; organization: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; is_demo: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_projects"; projects?: { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; organization?: string | undefined; timezone?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; uuid: z.ZodOptional<z.ZodString>; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; timestamp: z.ZodOptional<z.ZodString>; created_at: z.ZodOptional<z.ZodString>; elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>; elements_chain: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }, { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record<string, unknown> | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; success: z.ZodBoolean; columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>; types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>; hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }, { error: string; success: boolean; operation: "query"; types?: (string | string[])[] | undefined; hasMore?: boolean | null | undefined; results?: unknown[][] | undefined; columns?: string[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; success: z.ZodBoolean; persons: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional<z.ZodString>; distinct_ids: z.ZodArray<z.ZodString, "many">; properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: z.ZodNullable<z.ZodOptional<z.ZodString>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_person"; next?: string | null | undefined; persons?: { id: string; distinct_ids: string[]; properties?: Record<string, unknown> | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; success: z.ZodBoolean; insight: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional<z.ZodString>; name: z.ZodNullable<z.ZodOptional<z.ZodString>>; description: z.ZodNullable<z.ZodOptional<z.ZodString>>; result: z.ZodOptional<z.ZodUnknown>; filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; created_at: z.ZodOptional<z.ZodString>; last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>; last_modified_at: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }, { error: string; success: boolean; operation: "get_insight"; insight?: { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record<string, unknown> | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; export type PosthogParamsInput = z.input<typeof PosthogParamsSchema>; export type PosthogParams = z.output<typeof PosthogParamsSchema>; export type PosthogResult = z.output<typeof PosthogResultSchema>; export type PosthogEvent = z.output<typeof PosthogEventSchema>; export type PosthogPerson = z.output<typeof PosthogPersonSchema>; export type PosthogInsight = z.output<typeof PosthogInsightSchema>; export type PosthogQueryResult = z.output<typeof PosthogQueryResultSchema>; export type PosthogProject = z.output<typeof PosthogProjectSchema>; export type PosthogListProjectsParams = Extract<PosthogParams, { operation: 'list_projects'; }>; export type PosthogListEventsParams = Extract<PosthogParams, { operation: 'list_events'; }>; export type PosthogQueryParams = Extract<PosthogParams, { operation: 'query'; }>; export type PosthogGetPersonParams = Extract<PosthogParams, { operation: 'get_person'; }>; export type PosthogGetInsightParams = Extract<PosthogParams, { operation: 'get_insight'; }>; 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>; }
1587
1587
  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; }
1588
1588
  export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
1589
1589
  export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }