export type YotiSignedTimeStamp = import("./../data_type/signed.timestamp").YotiSignedTimeStamp; /** * @typedef {import("./../data_type/signed.timestamp").YotiSignedTimeStamp} YotiSignedTimeStamp */ /** * A class to represent a Yoti anchor. Anchors are metadata associated * to the attribute, which describe how an attribute has been provided * to Yoti (SOURCE Anchor) and how it has been verified (VERIFIER Anchor). * * If an attribute has only one SOURCE Anchor with the value set to * "USER_PROVIDED" and zero VERIFIER Anchors, then the attribute * is a self-certified one. * * @class YotiAnchor */ export class YotiAnchor { /** * @param {string} type * @param {string} value * @param {string} subType * @param {YotiSignedTimeStamp} signedTimeStamp * @param {Object[]} originServerCerts */ constructor(type: string, value: string, subType: string, signedTimeStamp: YotiSignedTimeStamp, originServerCerts: any[]); /** @private */ private type; /** @private */ private value; /** @private */ private subType; /** @private */ private signedTimeStamp; /** @private */ private originServerCerts; /** * Gets the type of the given anchor * * @returns {string} */ getType(): string; /** * Gets the value of the given anchor. * * Among possible options for SOURCE are "USER_PROVIDED", "PASSPORT", * "DRIVING_LICENCE", "NATIONAL_ID" and "PASSCARD" * * Among possible options for VERIFIER are "YOTI_ADMIN", "YOTI_IDENTITY", * "YOTI_OTP", "PASSPORT_NFC_SIGNATURE", "ISSUING_AUTHORITY" and * "ISSUING_AUTHORITY_PKI". * * @returns {string} */ getValue(): string; /** * SubType is an indicator of any specific processing method, or subcategory, * pertaining to an artifact. * * Examples: * - For a passport, this would be either "NFC" or "OCR". * - For a national ID, this could be "AADHAAR" * * @returns {string} */ getSubType(): string; /** * Timestamp applied at the time of Anchor creation. * * @returns {YotiSignedTimeStamp} */ getSignedTimeStamp(): YotiSignedTimeStamp; /** * Certificate chain generated when this Anchor was created (attribute value was * sourced or verified). Securely encodes the Anchor type and value. * * @returns {Object[]} */ getOriginServerCerts(): any[]; }