import { z } from 'zod'; import { CredentialType } from '@bubblelab/shared-schemas'; /** * PostHog event object from events API */ export declare const PosthogEventSchema: z.ZodObject<{ id: z.ZodOptional; uuid: z.ZodOptional; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional>; timestamp: z.ZodOptional; created_at: z.ZodOptional; elements: z.ZodOptional>; elements_chain: z.ZodOptional; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record | 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 | undefined; id?: string | undefined; uuid?: string | undefined; elements?: unknown[] | undefined; timestamp?: string | undefined; created_at?: string | undefined; elements_chain?: string | undefined; }>; /** * PostHog person object from persons API */ export declare const PosthogPersonSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodOptional; distinct_ids: z.ZodArray; properties: z.ZodOptional>; created_at: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record | undefined; uuid?: string | undefined; created_at?: string | undefined; }>; /** * PostHog insight object from insights API */ export declare const PosthogInsightSchema: z.ZodObject<{ id: z.ZodNumber; short_id: z.ZodOptional; name: z.ZodNullable>; description: z.ZodNullable>; result: z.ZodOptional; filters: z.ZodOptional>; created_at: z.ZodOptional; last_refresh: z.ZodNullable>; last_modified_at: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record | 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 | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; }>; /** * HogQL query result */ export declare const PosthogQueryResultSchema: z.ZodObject<{ columns: z.ZodOptional>; results: z.ZodOptional, "many">>; types: z.ZodOptional]>, "many">>; hasMore: z.ZodOptional>; limit: z.ZodOptional; offset: z.ZodOptional; }, "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; }>; /** * PostHog project object from projects API */ export declare const PosthogProjectSchema: z.ZodObject<{ id: z.ZodNumber; uuid: z.ZodOptional; name: z.ZodString; organization: z.ZodOptional; created_at: z.ZodOptional; timezone: z.ZodOptional; is_demo: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; timezone?: string | undefined; organization?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; timezone?: string | undefined; organization?: string | undefined; is_demo?: boolean | undefined; }>; export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; host: z.ZodDefault>; limit: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_projects"; limit: number; host: string; credentials?: Partial> | undefined; }, { operation: "list_projects"; credentials?: Partial> | undefined; limit?: number | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; project_id: z.ZodString; host: z.ZodDefault>; event: z.ZodOptional; person_id: z.ZodOptional; distinct_id: z.ZodOptional; after: z.ZodOptional; before: z.ZodOptional; properties: z.ZodOptional; limit: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_events"; limit: number; project_id: string; host: string; properties?: string | undefined; credentials?: Partial> | 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> | undefined; limit?: number | undefined; event?: string | undefined; person_id?: string | undefined; after?: string | undefined; before?: string | undefined; host?: string | undefined; distinct_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"query">; project_id: z.ZodString; host: z.ZodDefault>; query: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { query: string; operation: "query"; project_id: string; host: string; credentials?: Partial> | undefined; }, { query: string; operation: "query"; project_id: string; credentials?: Partial> | undefined; host?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_person">; project_id: z.ZodString; host: z.ZodDefault>; distinct_id: z.ZodOptional; search: z.ZodOptional; limit: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_person"; limit: number; project_id: string; host: string; credentials?: Partial> | undefined; search?: string | undefined; distinct_id?: string | undefined; }, { operation: "get_person"; project_id: string; credentials?: Partial> | 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>; insight_id: z.ZodNumber; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_insight"; project_id: string; host: string; insight_id: number; credentials?: Partial> | undefined; }, { operation: "get_insight"; project_id: string; insight_id: number; credentials?: Partial> | undefined; host?: string | undefined; }>]>; export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list_projects">; success: z.ZodBoolean; projects: z.ZodOptional; name: z.ZodString; organization: z.ZodOptional; created_at: z.ZodOptional; timezone: z.ZodOptional; is_demo: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; timezone?: string | undefined; organization?: string | undefined; is_demo?: boolean | undefined; }, { name: string; id: number; uuid?: string | undefined; created_at?: string | undefined; timezone?: string | undefined; organization?: string | undefined; is_demo?: boolean | undefined; }>, "many">>; next: z.ZodNullable>; 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; timezone?: string | undefined; organization?: 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; timezone?: string | undefined; organization?: string | undefined; is_demo?: boolean | undefined; }[] | undefined; next?: string | null | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_events">; success: z.ZodBoolean; events: z.ZodOptional; uuid: z.ZodOptional; event: z.ZodString; distinct_id: z.ZodString; properties: z.ZodOptional>; timestamp: z.ZodOptional; created_at: z.ZodOptional; elements: z.ZodOptional>; elements_chain: z.ZodOptional; }, "strip", z.ZodTypeAny, { event: string; distinct_id: string; properties?: Record | 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 | 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>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_events"; events?: { event: string; distinct_id: string; properties?: Record | 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 | 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>; results: z.ZodOptional, "many">>; types: z.ZodOptional]>, "many">>; hasMore: z.ZodOptional>; 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; distinct_ids: z.ZodArray; properties: z.ZodOptional>; created_at: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; distinct_ids: string[]; properties?: Record | undefined; uuid?: string | undefined; created_at?: string | undefined; }, { id: string; distinct_ids: string[]; properties?: Record | undefined; uuid?: string | undefined; created_at?: string | undefined; }>, "many">>; next: z.ZodNullable>; 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 | 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 | undefined; uuid?: string | undefined; created_at?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_insight">; success: z.ZodBoolean; insight: z.ZodOptional; name: z.ZodNullable>; description: z.ZodNullable>; result: z.ZodOptional; filters: z.ZodOptional>; created_at: z.ZodOptional; last_refresh: z.ZodNullable>; last_modified_at: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: number; result?: unknown; description?: string | null | undefined; name?: string | null | undefined; created_at?: string | undefined; filters?: Record | 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 | 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 | 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 | undefined; short_id?: string | undefined; last_refresh?: string | null | undefined; last_modified_at?: string | undefined; } | undefined; }>]>; export type PosthogParamsInput = z.input; export type PosthogParams = z.output; export type PosthogResult = z.output; export type PosthogEvent = z.output; export type PosthogPerson = z.output; export type PosthogInsight = z.output; export type PosthogQueryResult = z.output; export type PosthogProject = z.output; export type PosthogListProjectsParams = Extract; export type PosthogListEventsParams = Extract; export type PosthogQueryParams = Extract; export type PosthogGetPersonParams = Extract; export type PosthogGetInsightParams = Extract; //# sourceMappingURL=posthog.schema.d.ts.map