@message-queue-toolkit/sns
Version:
SNS adapter for message-queue-toolkit
21 lines (20 loc) • 653 B
TypeScript
import z from 'zod/v4';
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.ZodAny;
}, z.core.$strip>>>;
Timestamp: z.ZodString;
SignatureVersion: z.ZodString;
Signature: z.ZodString;
SigningCertURL: z.ZodString;
UnsubscribeURL: z.ZodString;
}, z.core.$strip>;
export type SNS_MESSAGE_BODY_TYPE = z.output<typeof SNS_MESSAGE_BODY_SCHEMA>;