/** * 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 { CreatedMessageWithoutContent } from "./CreatedMessageWithoutContent"; import { MessageResponseNotificationStatus } from "./MessageResponseNotificationStatus"; import { MessageStatusValue } from "./MessageStatusValue"; import * as t from "io-ts"; // required attributes const MessageResponseWithoutContentR = t.interface({ message: CreatedMessageWithoutContent }); // optional attributes const MessageResponseWithoutContentO = t.partial({ notification: MessageResponseNotificationStatus, status: MessageStatusValue }); export const MessageResponseWithoutContent = t.exact( t.intersection( [MessageResponseWithoutContentR, MessageResponseWithoutContentO], "MessageResponseWithoutContent" ) ); export type MessageResponseWithoutContent = t.TypeOf< typeof MessageResponseWithoutContent >;