<?xml version="1.0" encoding="UTF-8"?>
<Manifest version="1"
    xmlns="https://cev.gouv.mc/cev/schemas/kmc/me/manifest.xsd"
    xmlns:ext="https://cev.gouv.mc/cev/schemas/kmc/me/manifest_extensions.xsd"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <Id>385010</Id>
    <Version>08</Version>
    <Name>
        <Value xml:lang="fr">Permis de Conduire de la Principauté de Monaco</Value>
        <Value xml:lang="en">Driving Licence of the Principality of Monaco</Value>
    </Name>
    <Description>
        <Value xml:lang="fr">Permis de Conduire de la Principauté de Monaco</Value>
        <Value xml:lang="en">Driving Licence of the Principality of Monaco</Value>
    </Description>
    <Schema>
        <Payload>
            <Fields>
                <String name="Nom de naissance">
                    <StringConstraints>
                        <MinLength>1</MinLength>
                        <MaxLength>29</MaxLength>
                    </StringConstraints>
                </String>
                <String name="Nom d’usage">
                    <StringConstraints>
                        <Nillable />
                        <MaxLength>29</MaxLength>
                    </StringConstraints>
                </String>
                <String name="Prénom">
                    <StringConstraints>
                        <MinLength>1</MinLength>
                        <MaxLength>45</MaxLength>
                    </StringConstraints>
                </String>
                <Date name="Date de naissance">
                    <DateConstraints>
                        <From>1900-01-01</From>
                    </DateConstraints>
                </Date>
                <String name="Lieu de naissance">
                    <StringConstraints>
                        <MinLength>1</MinLength>
                        <MaxLength>25</MaxLength>
                    </StringConstraints>
                </String>
                <Binary name="Identifiant numérique">
                    <BinaryConstraints>
                        <Nillable />
                        <MinLength>32</MinLength>
                        <MaxLength>32</MaxLength>
                    </BinaryConstraints>
                    <Extension xsi:type="ext:VisibilityExtensionType">
                        <ext:Condition xsi:type="ext:ApplicationConditionType">
                            <ext:Value>Never</ext:Value>
                        </ext:Condition>
                    </Extension>
                </Binary>
                <Date name="Délivré le">
                    <DateConstraints>
                        <From>1900-01-01</From>
                    </DateConstraints>
                </Date>
                <Date name="Expire le">
                    <DateConstraints>
                        <From>1900-01-01</From>
                    </DateConstraints>
                </Date>
                <String name="Numéro de permis">
                    <StringConstraints>
                        <Pattern>^[0-9]{12}$</Pattern>
                        <MinLength>12</MinLength>
                        <MaxLength>12</MaxLength>
                    </StringConstraints>
                </String>
                <ObjectArray name="Liste des catégories" type="permis">
                    <ArrayConstraints>
                        <MinSize>1</MinSize>
                        <MaxSize>15</MaxSize>
                    </ArrayConstraints>
                </ObjectArray>
                <String name="Restrictions toutes catégories">
                    <StringConstraints>
                        <Nillable />
                        <MaxLength>30</MaxLength>
                    </StringConstraints>
                </String>
                <Binary name="Photo">
                    <BinaryConstraints>
                        <MinLength>700</MinLength>
                    </BinaryConstraints>
                    <Extension xsi:type="ext:Portrait">
                        <ext:Format>WEBP</ext:Format>
                    </Extension>
                </Binary>
            </Fields>
        </Payload>
        <Types>
            <Type name="permis">
                <Fields>
                    <String name="Type de catégorie">
                        <StringConstraints>
                            <MinLength>1</MinLength>
                            <MaxLength>3</MaxLength>
                            <Pattern>^(A|A1|A2|AM|B|B1|BE|C|C1|CE|C1E|D|D1|DE|D1E){1}$</Pattern>
                        </StringConstraints>
                    </String>
                    <Date name="Jusqu’au">
                        <DateConstraints>
                            <From>1900-01-01</From>
                        </DateConstraints>
                    </Date>
                </Fields>
            </Type>
        </Types>
    </Schema>
    <Extensions>
        <Extension xsi:type="PoliciesExtensionType">
            <AuthorizedUsage>
                <oid>1.3.6.1.4.1.51528.1.1</oid>
                <uuid>7da401cc979f41689ef4dd30765f9001</uuid>
            </AuthorizedUsage>
        </Extension>
    </Extensions>
</Manifest>
