import { z } from 'zod'; /** * Validates system metadata for an EventBridge WITH_METADATA delivery. * * Only `aws:DeliveryType` is required. All metadata values, including sequence * numbers that can exceed JavaScript's safe integer range, remain strings. * * @see https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-custom-bus-addressing.html */ declare const EventBridgeWithMetadataSystemMetadataSchema: z.ZodObject<{ 'aws:DeliveryType': z.ZodEnum<{ LIVE: "LIVE"; REPLAY: "REPLAY"; }>; ContentType: z.ZodOptional; EventGroupId: z.ZodOptional; DeduplicationId: z.ZodOptional; 'aws:EventId': z.ZodOptional; 'aws:IngestionTime': z.ZodOptional; 'aws:SequenceNumber': z.ZodOptional; 'aws:Source': z.ZodOptional; 'aws:DetailType': z.ZodOptional; 'aws:SchemaId': z.ZodOptional; 'aws:RegistryType': z.ZodOptional; }, z.core.$strip>; /** * Validates one WITH_METADATA record containing a standard EventBridge event. * * Use this schema directly for single-object delivery with `MaxBatchSize: 1`. * Arbitrary `PutRawEvents` payloads are outside this schema's scope. */ declare const EventBridgeWithMetadataRecordSchema: z.ZodObject<{ Data: z.ZodObject<{ version: z.ZodString; id: z.ZodString; source: z.ZodString; account: z.ZodString; time: z.ZodISODateTime; region: z.ZodString; resources: z.ZodArray; 'detail-type': z.ZodString; detail: z.ZodUnknown; 'replay-name': z.ZodOptional; }, z.core.$strip>; Metadata: z.ZodOptional>; SystemMetadata: z.ZodObject<{ 'aws:DeliveryType': z.ZodEnum<{ LIVE: "LIVE"; REPLAY: "REPLAY"; }>; ContentType: z.ZodOptional; EventGroupId: z.ZodOptional; DeduplicationId: z.ZodOptional; 'aws:EventId': z.ZodOptional; 'aws:IngestionTime': z.ZodOptional; 'aws:SequenceNumber': z.ZodOptional; 'aws:Source': z.ZodOptional; 'aws:DetailType': z.ZodOptional; 'aws:SchemaId': z.ZodOptional; 'aws:RegistryType': z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; /** * Validates a nonempty batch of WITH_METADATA records. * * Extend {@link EventBridgeWithMetadataRecordSchema | `EventBridgeWithMetadataRecordSchema`} * before creating an array schema to validate application details and retain metadata. */ declare const EventBridgeWithMetadataSchema: z.ZodArray; 'detail-type': z.ZodString; detail: z.ZodUnknown; 'replay-name': z.ZodOptional; }, z.core.$strip>; Metadata: z.ZodOptional>; SystemMetadata: z.ZodObject<{ 'aws:DeliveryType': z.ZodEnum<{ LIVE: "LIVE"; REPLAY: "REPLAY"; }>; ContentType: z.ZodOptional; EventGroupId: z.ZodOptional; DeduplicationId: z.ZodOptional; 'aws:EventId': z.ZodOptional; 'aws:IngestionTime': z.ZodOptional; 'aws:SequenceNumber': z.ZodOptional; 'aws:Source': z.ZodOptional; 'aws:DetailType': z.ZodOptional; 'aws:SchemaId': z.ZodOptional; 'aws:RegistryType': z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; export { EventBridgeWithMetadataRecordSchema, EventBridgeWithMetadataSchema, EventBridgeWithMetadataSystemMetadataSchema, }; //# sourceMappingURL=eventbridge-with-metadata.d.ts.map