/** * 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 { RCClientCert } from "./RCClientCert"; import * as t from "io-ts"; import { NonEmptyString } from "@pagopa/ts-commons/lib/strings"; // required attributes const RCAuthenticationConfigR = t.interface({ header_key_name: NonEmptyString, key: NonEmptyString, type: NonEmptyString }); // optional attributes const RCAuthenticationConfigO = t.partial({ cert: RCClientCert }); export const RCAuthenticationConfig = t.exact( t.intersection( [RCAuthenticationConfigR, RCAuthenticationConfigO], "RCAuthenticationConfig" ) ); export type RCAuthenticationConfig = t.TypeOf;