/** * Do not edit this file it is auto-generated by io-utils / gen-api-models. * See https://github.com/pagopa/io-utils */ /* eslint-disable */ import { NotificationMessage } from "./NotificationMessage"; import { SenderMetadata } from "./SenderMetadata"; import * as t from "io-ts"; /** * A received Notification. */ // required attributes const NotificationR = t.interface({ message: NotificationMessage, sender_metadata: SenderMetadata }); // optional attributes const NotificationO = t.partial({}); export const Notification = t.exact( t.intersection([NotificationR, NotificationO], "Notification") ); export type Notification = t.TypeOf;