UNPKG

@message-queue-toolkit/sns

Version:
55 lines (54 loc) 1.44 kB
import z from 'zod'; export type CommonMessage = { messageType: string; }; export declare const SNS_MESSAGE_BODY_SCHEMA: z.ZodObject<{ Type: z.ZodString; MessageId: z.ZodString; TopicArn: z.ZodString; Message: z.ZodString; MessageAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ Type: z.ZodString; Value: z.ZodUnknown; }, "strip", z.ZodTypeAny, { Type: string; Value?: unknown; }, { Type: string; Value?: unknown; }>>>; Timestamp: z.ZodString; SignatureVersion: z.ZodString; Signature: z.ZodString; SigningCertURL: z.ZodString; UnsubscribeURL: z.ZodString; }, "strip", z.ZodTypeAny, { Type: string; MessageId: string; TopicArn: string; Message: string; Timestamp: string; SignatureVersion: string; Signature: string; SigningCertURL: string; UnsubscribeURL: string; MessageAttributes?: Record<string, { Type: string; Value?: unknown; }> | undefined; }, { Type: string; MessageId: string; TopicArn: string; Message: string; Timestamp: string; SignatureVersion: string; Signature: string; SigningCertURL: string; UnsubscribeURL: string; MessageAttributes?: Record<string, { Type: string; Value?: unknown; }> | undefined; }>; export type SNS_MESSAGE_BODY_TYPE = z.infer<typeof SNS_MESSAGE_BODY_SCHEMA>;