diff --git a/external-schemata/xsd/etsi/ts_119612_extra.xsd b/external-schemata/xsd/etsi/ts_119612_extra.xsd new file mode 100644 index 00000000..756709e3 --- /dev/null +++ b/external-schemata/xsd/etsi/ts_119612_extra.xsd @@ -0,0 +1,66 @@ + + + + + + + + + Specified in TS 119 612 v2.1.1 clause 5.3.13 Pointers to other TSLs + + + + X509CertificateLocation element was specified in TS 102 231 v3.1.2 clause B.4.3 The + ServiceDigitalIdentityType. It is now deprecated and is not used + + + + + PublicKeyLocation element was specified in TS 102 231 v3.1.2 clause B.4.3 The + ServiceDigitalIdentityType. It is now deprecated and is not used + + + + + Specified in TS 119 612 v2.1.1 clause 5.5.9.2.2.3 OtherCriteria, bullet 1) ExtendedKeyUsage + + + + + + + + + + Specified in TS 119 612 v2.1.1 clause 5.5.9.3 TakenOverBy Extension + + + + + + + + + + + + + Specified in TS 119 612 v2.1.1 clause 5.5.9.2.2.3 OtherCriteria, bullet 2) + CertSubjectDNAttribute + + + + + + + + + diff --git a/pyhanko/generated/etsi/__init__.py b/pyhanko/generated/etsi/__init__.py index 6763a85e..bb24b46c 100644 --- a/pyhanko/generated/etsi/__init__.py +++ b/pyhanko/generated/etsi/__init__.py @@ -69,6 +69,17 @@ TSPServiceType, TSPType, ) +from .ts_119612_extra import ( + CertSubjectDNAttribute, + CertSubjectDNAttributeType, + ExtendedKeyUsage, + ExtendedKeyUsageType, + MimeType, + PublicKeyLocation, + TakenOverBy, + TakenOverByType, + X509CertificateLocation, +) from .ts_119612_sie import ( CriteriaListType, CriteriaListTypeassert, @@ -359,6 +370,15 @@ "TrustServiceProviderListType", "TrustServiceStatusList", "TrustStatusListType", + "CertSubjectDNAttribute", + "CertSubjectDNAttributeType", + "ExtendedKeyUsage", + "ExtendedKeyUsageType", + "MimeType", + "PublicKeyLocation", + "TakenOverBy", + "TakenOverByType", + "X509CertificateLocation", "CriteriaListType", "CriteriaListTypeassert", "KeyUsageBitType", diff --git a/pyhanko/generated/etsi/ts_119612_extra.py b/pyhanko/generated/etsi/ts_119612_extra.py new file mode 100644 index 00000000..4bf811f6 --- /dev/null +++ b/pyhanko/generated/etsi/ts_119612_extra.py @@ -0,0 +1,145 @@ +from dataclasses import dataclass, field +from typing import Optional, Tuple + +from .ts_119612 import ( + AnyType, + InternationalNamesType, + NonEmptyMultiLangURIType, + SchemeOperatorName, +) +from .xades import ObjectIdentifierType + +__NAMESPACE__ = "http://uri.etsi.org/02231/v2/additionaltypes#" + + +@dataclass(frozen=True) +class MimeType: + class Meta: + namespace = "http://uri.etsi.org/02231/v2/additionaltypes#" + + value: str = field( + default="", + metadata={ + "required": True, + }, + ) + + +@dataclass(frozen=True) +class PublicKeyLocation: + class Meta: + namespace = "http://uri.etsi.org/02231/v2/additionaltypes#" + + value: str = field( + default="", + metadata={ + "required": True, + "min_length": 1, + }, + ) + + +@dataclass(frozen=True) +class X509CertificateLocation: + class Meta: + namespace = "http://uri.etsi.org/02231/v2/additionaltypes#" + + value: str = field( + default="", + metadata={ + "required": True, + "min_length": 1, + }, + ) + + +@dataclass(frozen=True) +class CertSubjectDNAttributeType: + attribute_oid: Tuple[ObjectIdentifierType, ...] = field( + default_factory=tuple, + metadata={ + "name": "AttributeOID", + "type": "Element", + "namespace": "http://uri.etsi.org/02231/v2/additionaltypes#", + "min_occurs": 1, + }, + ) + + +@dataclass(frozen=True) +class ExtendedKeyUsageType: + key_purpose_id: Tuple[ObjectIdentifierType, ...] = field( + default_factory=tuple, + metadata={ + "name": "KeyPurposeId", + "type": "Element", + "namespace": "http://uri.etsi.org/02231/v2/additionaltypes#", + "min_occurs": 1, + }, + ) + + +@dataclass(frozen=True) +class TakenOverByType: + uri: Optional[NonEmptyMultiLangURIType] = field( + default=None, + metadata={ + "name": "URI", + "type": "Element", + "namespace": "http://uri.etsi.org/02231/v2/additionaltypes#", + "required": True, + }, + ) + tspname: Optional[InternationalNamesType] = field( + default=None, + metadata={ + "name": "TSPName", + "type": "Element", + "namespace": "http://uri.etsi.org/02231/v2/additionaltypes#", + "required": True, + }, + ) + scheme_operator_name: Optional[SchemeOperatorName] = field( + default=None, + metadata={ + "name": "SchemeOperatorName", + "type": "Element", + "namespace": "http://uri.etsi.org/02231/v2#", + "required": True, + }, + ) + scheme_territory: Optional[str] = field( + default=None, + metadata={ + "name": "SchemeTerritory", + "type": "Element", + "namespace": "http://uri.etsi.org/02231/v2#", + "required": True, + }, + ) + other_qualifier: Tuple[AnyType, ...] = field( + default_factory=tuple, + metadata={ + "name": "OtherQualifier", + "type": "Element", + "namespace": "http://uri.etsi.org/02231/v2/additionaltypes#", + }, + ) + + +@dataclass(frozen=True) +class CertSubjectDNAttribute(CertSubjectDNAttributeType): + class Meta: + namespace = "http://uri.etsi.org/02231/v2/additionaltypes#" + + +@dataclass(frozen=True) +class ExtendedKeyUsage(ExtendedKeyUsageType): + class Meta: + namespace = "http://uri.etsi.org/02231/v2/additionaltypes#" + + +@dataclass(frozen=True) +class TakenOverBy(TakenOverByType): + class Meta: + namespace = "http://uri.etsi.org/02231/v2/additionaltypes#"