import { OBJECT_IDENTIFIER, UTF8String } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { type ATTRIBUTE } from "../InformationFramework/ATTRIBUTE.oca.mjs"; import { type OBJECT_CLASS } from "../InformationFramework/OBJECT-CLASS.oca.mjs"; /** * @summary NAME_FORM * @description * * ### ASN.1 Definition: * * ```asn1 * NAME-FORM ::= CLASS { * &namedObjectClass OBJECT-CLASS, * &MandatoryAttributes ATTRIBUTE, * &OptionalAttributes ATTRIBUTE OPTIONAL, * &ldapName SEQUENCE SIZE(1..MAX) OF UTF8String OPTIONAL, * &ldapDesc UTF8String OPTIONAL, * &id OBJECT IDENTIFIER UNIQUE } * WITH SYNTAX { * NAMES &namedObjectClass * WITH ATTRIBUTES &MandatoryAttributes * [AND OPTIONALLY &OptionalAttributes] * [LDAP-NAME &ldapName] * [LDAP-DESC &ldapDesc] * ID &id } * ``` * * @interface */ export interface NAME_FORM { /** * @summary A fixed string that can be used for external programs to determine the object class of this object. */ readonly class: "NAME-FORM"; /** * @summary A map of type fields to their corresponding decoders. */ readonly decoderFor: Partial<{ [_K in keyof NAME_FORM]: $.ASN1Decoder; }>; /** * @summary A map of type fields to their corresponding encoders. */ readonly encoderFor: Partial<{ [_K in keyof NAME_FORM]: $.ASN1Encoder; }>; /** * @summary &namedObjectClass */ readonly "&namedObjectClass": OBJECT_CLASS; /** * @summary &MandatoryAttributes */ readonly "&MandatoryAttributes": ATTRIBUTE[]; /** * @summary &OptionalAttributes */ readonly "&OptionalAttributes"?: ATTRIBUTE[]; /** * @summary &ldapName */ readonly "&ldapName"?: UTF8String[]; /** * @summary &ldapDesc */ readonly "&ldapDesc"?: UTF8String; /** * @summary &id */ readonly "&id": OBJECT_IDENTIFIER; } //# sourceMappingURL=NAME-FORM.oca.d.mts.map