/** * 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 { ServiceName } from "./ServiceName"; import { OrganizationName } from "./OrganizationName"; import { DepartmentName } from "./DepartmentName"; import * as t from "io-ts"; /** * Metadata associated to a sender (service). */ // required attributes const SenderMetadataR = t.interface({ service_name: ServiceName, organization_name: OrganizationName, department_name: DepartmentName }); // optional attributes const SenderMetadataO = t.partial({}); export const SenderMetadata = t.exact( t.intersection([SenderMetadataR, SenderMetadataO], "SenderMetadata") ); export type SenderMetadata = t.TypeOf;