import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Unify event source */ export declare const EventSource: { readonly Native: "native"; readonly Virtual: "virtual"; }; /** * Unify event source */ export type EventSource = ClosedEnum; /** * Unify event that is supported on the connector. Events are delivered via Webhooks. */ export type ConnectorEvent = { /** * Unify event type */ eventType?: string | undefined; /** * Unify event source */ eventSource?: EventSource | undefined; /** * Downstream event type */ downstreamEventType?: string | undefined; resources?: Array | undefined; /** * Unify entity type */ entityType?: string | undefined; }; /** @internal */ export declare const EventSource$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const EventSource$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace EventSource$ { /** @deprecated use `EventSource$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Native: "native"; readonly Virtual: "virtual"; }>; /** @deprecated use `EventSource$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Native: "native"; readonly Virtual: "virtual"; }>; } /** @internal */ export declare const ConnectorEvent$inboundSchema: z.ZodType; /** @internal */ export type ConnectorEvent$Outbound = { event_type?: string | undefined; event_source?: string | undefined; downstream_event_type?: string | undefined; resources?: Array | undefined; entity_type?: string | undefined; }; /** @internal */ export declare const ConnectorEvent$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ConnectorEvent$ { /** @deprecated use `ConnectorEvent$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ConnectorEvent$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ConnectorEvent$Outbound` instead. */ type Outbound = ConnectorEvent$Outbound; } export declare function connectorEventToJSON(connectorEvent: ConnectorEvent): string; export declare function connectorEventFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=connectorevent.d.ts.map