@gerege-systems/eid-mongolia-sdk 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,8 +60,12 @@ interface PdfReport {
60
60
  signatures: SignatureReport[];
61
61
  }
62
62
 
63
- /** validatePdf-ийн алдааны кодууд (CA: too_large / not_pdf / no_signature / too_many_signatures). */
64
- type ValidatePdfErrorCode = "PDF_TOO_LARGE" | "PDF_INVALID" | "PDF_NO_SIGNATURE" | "PDF_TOO_MANY_SIGNATURES" | "REQUEST_INVALID";
63
+ /**
64
+ * validatePdf-ийн алдааны кодууд (CA: too_large / not_pdf / encrypted / no_signature / too_many_signatures).
65
+ * - `PDF_ENCRYPTED` (0.20.1) — `/Encrypt`-тэй баримт (RC4 / AES, хоосон нууц үгтэй ч): шалгахгүй.
66
+ * - `UNSUPPORTED_ENVIRONMENT` (0.20.1) — Web Crypto (`crypto.subtle`) алга: http (secure биш) хуудас эсвэл хуучин хөтөч.
67
+ */
68
+ type ValidatePdfErrorCode = "PDF_TOO_LARGE" | "PDF_INVALID" | "PDF_ENCRYPTED" | "PDF_NO_SIGNATURE" | "PDF_TOO_MANY_SIGNATURES" | "REQUEST_INVALID" | "UNSUPPORTED_ENVIRONMENT";
65
69
  declare class ValidatePdfError extends EidError {
66
70
  readonly code: ValidatePdfErrorCode;
67
71
  constructor(code: ValidatePdfErrorCode, message: string);
@@ -60,8 +60,12 @@ interface PdfReport {
60
60
  signatures: SignatureReport[];
61
61
  }
62
62
 
63
- /** validatePdf-ийн алдааны кодууд (CA: too_large / not_pdf / no_signature / too_many_signatures). */
64
- type ValidatePdfErrorCode = "PDF_TOO_LARGE" | "PDF_INVALID" | "PDF_NO_SIGNATURE" | "PDF_TOO_MANY_SIGNATURES" | "REQUEST_INVALID";
63
+ /**
64
+ * validatePdf-ийн алдааны кодууд (CA: too_large / not_pdf / encrypted / no_signature / too_many_signatures).
65
+ * - `PDF_ENCRYPTED` (0.20.1) — `/Encrypt`-тэй баримт (RC4 / AES, хоосон нууц үгтэй ч): шалгахгүй.
66
+ * - `UNSUPPORTED_ENVIRONMENT` (0.20.1) — Web Crypto (`crypto.subtle`) алга: http (secure биш) хуудас эсвэл хуучин хөтөч.
67
+ */
68
+ type ValidatePdfErrorCode = "PDF_TOO_LARGE" | "PDF_INVALID" | "PDF_ENCRYPTED" | "PDF_NO_SIGNATURE" | "PDF_TOO_MANY_SIGNATURES" | "REQUEST_INVALID" | "UNSUPPORTED_ENVIRONMENT";
65
69
  declare class ValidatePdfError extends EidError {
66
70
  readonly code: ValidatePdfErrorCode;
67
71
  constructor(code: ValidatePdfErrorCode, message: string);