import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { GCPPubSubConfig, GCPPubSubConfig$Outbound } from "./gcppubsubconfig.js"; import { GCPPubSubCredentials, GCPPubSubCredentials$Outbound } from "./gcppubsubcredentials.js"; import { Topics, Topics$Outbound } from "./topics.js"; export type DestinationCreateGCPPubSub = { /** * Optional user-provided ID. A UUID will be generated if empty. */ id?: string | undefined; /** * Type of the destination. Must be 'gcp_pubsub'. */ type: "gcp_pubsub"; /** * "*" or an array of enabled topics. */ topics: Topics; /** * Optional JSON schema filter for event matching. Events must match this filter to be delivered to this destination. * * @remarks * Supports operators: $eq, $neq, $gt, $gte, $lt, $lte, $in, $nin, $startsWith, $endsWith, $exist, $or, $and, $not. * If null or empty, all events matching the topic filter will be delivered. * To remove an existing filter when updating a destination, set filter to an empty object `{}`. */ filter?: { [k: string]: any; } | null | undefined; config: GCPPubSubConfig; credentials: GCPPubSubCredentials; /** * Static key-value pairs merged into event metadata on every attempt. */ deliveryMetadata?: { [k: string]: string; } | null | undefined; /** * Arbitrary contextual information stored with the destination. */ metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const DestinationCreateGCPPubSub$inboundSchema: z.ZodType; /** @internal */ export type DestinationCreateGCPPubSub$Outbound = { id?: string | undefined; type: "gcp_pubsub"; topics: Topics$Outbound; filter?: { [k: string]: any; } | null | undefined; config: GCPPubSubConfig$Outbound; credentials: GCPPubSubCredentials$Outbound; delivery_metadata?: { [k: string]: string; } | null | undefined; metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const DestinationCreateGCPPubSub$outboundSchema: z.ZodType; export declare function destinationCreateGCPPubSubToJSON(destinationCreateGCPPubSub: DestinationCreateGCPPubSub): string; export declare function destinationCreateGCPPubSubFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=destinationcreategcppubsub.d.ts.map