@regulaforensics/cordova-plugin-document-reader-api 5.7.0 → 6.1.2

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.
@@ -6,8 +6,6 @@ class DocumentReaderScenario {
6
6
  if (jsonObject == null) return null
7
7
  const result = new DocumentReaderScenario()
8
8
 
9
- result.uvTorch = jsonObject["uvTorch"]
10
- result.seriesProcessMode = jsonObject["seriesProcessMode"]
11
9
  result.name = jsonObject["name"]
12
10
  result.caption = jsonObject["caption"]
13
11
  result.description = jsonObject["description"]
@@ -16,10 +14,10 @@ class DocumentReaderScenario {
16
14
  }
17
15
  }
18
16
 
19
- class DocumentReaderScenarioFull {
17
+ class CoreDetailedScenario {
20
18
  static fromJson(jsonObject) {
21
19
  if (jsonObject == null) return null
22
- const result = new DocumentReaderScenarioFull()
20
+ const result = new CoreDetailedScenario()
23
21
 
24
22
  result.uvTorch = jsonObject["uvTorch"]
25
23
  result.frameOrientation = jsonObject["frameOrientation"]
@@ -718,6 +716,18 @@ class DocumentReaderCompletion {
718
716
  }
719
717
  }
720
718
 
719
+ class RfidNotificationCompletion {
720
+ static fromJson(jsonObject) {
721
+ if (jsonObject == null) return null
722
+ const result = new RfidNotificationCompletion()
723
+
724
+ result.notification = jsonObject["notification"]
725
+ result.value = jsonObject["value"]
726
+
727
+ return result
728
+ }
729
+ }
730
+
721
731
  class DocumentReaderException {
722
732
  static fromJson(jsonObject) {
723
733
  if (jsonObject == null) return null
@@ -844,6 +854,98 @@ class TAChallenge {
844
854
  }
845
855
  }
846
856
 
857
+ class DocumentReaderResultsStatus {
858
+ static fromJson(jsonObject) {
859
+ if (jsonObject == null) return null
860
+ const result = new DocumentReaderResultsStatus()
861
+
862
+ result.overallStatus = jsonObject["overallStatus"]
863
+ result.optical = jsonObject["optical"]
864
+ result.detailsOptical = DetailsOptical.fromJson(jsonObject["detailsOptical"])
865
+ result.rfid = jsonObject["rfid"]
866
+ result.detailsRFID = DetailsRFID.fromJson(jsonObject["detailsRFID"])
867
+ result.portrait = jsonObject["portrait"]
868
+ result.stopList = jsonObject["stopList"]
869
+
870
+ return result
871
+ }
872
+ }
873
+
874
+ class DetailsOptical {
875
+ static fromJson(jsonObject) {
876
+ if (jsonObject == null) return null
877
+ const result = new DetailsOptical()
878
+
879
+ result.overallStatus = jsonObject["overallStatus"]
880
+ result.mrz = jsonObject["mrz"]
881
+ result.text = jsonObject["text"]
882
+ result.docType = jsonObject["docType"]
883
+ result.security = jsonObject["security"]
884
+ result.imageQA = jsonObject["imageQA"]
885
+ result.expiry = jsonObject["expiry"]
886
+ result.vds = jsonObject["vds"]
887
+ result.pagesCount = jsonObject["pagesCount"]
888
+
889
+ return result
890
+ }
891
+ }
892
+
893
+ class DetailsRFID {
894
+ static fromJson(jsonObject) {
895
+ if (jsonObject == null) return null
896
+ const result = new DetailsRFID()
897
+
898
+ result.pa = jsonObject["pa"]
899
+ result.ca = jsonObject["ca"]
900
+ result.aa = jsonObject["aa"]
901
+ result.ta = jsonObject["ta"]
902
+ result.bac = jsonObject["bac"]
903
+ result.pace = jsonObject["pace"]
904
+ result.overallStatus = jsonObject["overallStatus"]
905
+
906
+ return result
907
+ }
908
+ }
909
+
910
+ class VDSNCData {
911
+ static fromJson(jsonObject) {
912
+ if (jsonObject == null) return null
913
+ const result = new VDSNCData()
914
+
915
+ result.type = jsonObject["type"]
916
+ result.version = jsonObject["version"]
917
+ result.issuingCountry = jsonObject["issuingCountry"]
918
+ result.message = jsonObject["message"]
919
+ result.signatureAlgorithm = jsonObject["signatureAlgorithm"]
920
+ result.signature = BytesData.fromJson(jsonObject["signature"])
921
+ result.certificate = BytesData.fromJson(jsonObject["certificate"])
922
+ result.certificateChain = []
923
+ if (jsonObject["certificateChain"] != null)
924
+ for (const i in jsonObject["certificateChain"])
925
+ result.certificateChain.push(CertificateChain.fromJson(jsonObject["certificateChain"][i]))
926
+ result.notifications = []
927
+ if (jsonObject["notifications"] != null)
928
+ for (const i in jsonObject["notifications"])
929
+ result.notifications.push(jsonObject["notifications"][i])
930
+
931
+ return result
932
+ }
933
+ }
934
+
935
+ class BytesData {
936
+ static fromJson(jsonObject) {
937
+ if (jsonObject == null) return null
938
+ const result = new BytesData()
939
+
940
+ result.data = jsonObject["data"]
941
+ result.length = jsonObject["length"]
942
+ result.status = jsonObject["status"]
943
+ result.type = jsonObject["type"]
944
+
945
+ return result
946
+ }
947
+ }
948
+
847
949
  class DocumentReaderResults {
848
950
  getTextFieldValueByType({ fieldType, lcid = 0, source = -1, original = false }) {
849
951
  if (this.textResult == null) return null
@@ -993,6 +1095,8 @@ class DocumentReaderResults {
993
1095
  if (jsonObject["documentType"] != null)
994
1096
  for (const i in jsonObject["documentType"])
995
1097
  result.documentType.push(DocumentReaderDocumentType.fromJson(jsonObject["documentType"][i]))
1098
+ result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
1099
+ result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
996
1100
 
997
1101
  return result
998
1102
  }
@@ -1598,6 +1702,10 @@ const eRFID_CertificateType = {
1598
1702
  CT_MLS: 4,
1599
1703
  CT_DEV_LS: 5,
1600
1704
  CT_DEF_LS: 6,
1705
+ CT_BLS: 7,
1706
+ CT_LDS2: 8,
1707
+ CT_BCS: 9,
1708
+ CT_BCSNC: 10,
1601
1709
  }
1602
1710
 
1603
1711
  const eRFID_DataFile_Type = {
@@ -1681,165 +1789,173 @@ const eRFID_DataFile_Type = {
1681
1789
  DFT_SESSION: 701,
1682
1790
  DFT_LOGDATA: 702,
1683
1791
  DFT_CHIP_PROPERTIES: 703,
1792
+ DFT_SAM_DATA: 800,
1793
+ DFT_SAM_DATA_MAX: 832,
1794
+ DFT_VDS: 900,
1795
+ DFT_VDSNC: 901,
1684
1796
  DFT_USERDEFINED: 1000,
1685
1797
 
1686
1798
  getTranslation: function (value) {
1687
1799
  switch (value) {
1688
- case this.DFT_MIFARE_DATA:
1689
- return "MIFARE data"
1690
- case this.DFT_DL_COM:
1691
- return "EF.COM"
1692
- case this.DFT_PASSPORT_DG1:
1800
+ case 0:
1801
+ return "DFT_UNSPECIFIED"
1802
+ case 1:
1693
1803
  return "Machine Readable Zone (DG1)"
1694
- case this.DFT_ID_DG1:
1695
- return "Document type" + " (DG1)"
1696
- case this.DFT_DL_DG1:
1697
- return "Text data elements (DG1)"
1698
- case this.DFT_PASSPORT_DG2:
1804
+ case 2:
1699
1805
  return "Biometry - Facial data (DG2)"
1700
- case this.DFT_ID_DG2:
1701
- return "Issuing state" + " (DG2)"
1702
- case this.DFT_DL_DG2:
1703
- return "License holder information (DG2)"
1704
- case this.DFT_PASSPORT_DG3:
1806
+ case 3:
1705
1807
  return "Biometry - Fingerprint(s) (DG3)"
1706
- case this.DFT_ID_DG3:
1707
- return "Date of expiry" + " (DG3)"
1708
- case this.DFT_DL_DG3:
1709
- return "Issuing authority details (DG3)"
1710
- case this.DFT_PASSPORT_DG4:
1808
+ case 4:
1711
1809
  return "Biometry - Iris Data (DG4)"
1712
- case this.DFT_ID_DG4:
1713
- return "Given name" + " (DG4)"
1714
- case this.DFT_DL_DG4:
1715
- return "Portrait image (DG4)"
1716
- case this.DFT_PASSPORT_DG5:
1810
+ case 5:
1717
1811
  return "Portrait(s) (DG5)"
1718
- case this.DFT_ID_DG5:
1719
- return "Surname/given name at birth" + " (DG5)"
1720
- case this.DFT_DL_DG5:
1721
- return "Signature / usual mark image (DG5)"
1722
- case this.DFT_PASSPORT_DG6:
1812
+ case 6:
1723
1813
  return "not defined (DG6)"
1724
- case this.DFT_ID_DG6:
1725
- return "Pseudonym" + " (DG6)"
1726
- case this.DFT_DL_DG6:
1727
- return "Biometry - Facial data (DG6)"
1728
- case this.DFT_PASSPORT_DG7:
1814
+ case 7:
1729
1815
  return "Signature / usual mark image (DG7)"
1730
- case this.DFT_ID_DG7:
1731
- return "Academic title" + " (DG7)"
1732
- case this.DFT_DL_DG7:
1733
- return "Biometry - Fingerprint(s) (DG7)"
1734
- case this.DFT_PASSPORT_DG8:
1816
+ case 8:
1735
1817
  return "not defined (DG8)"
1736
- case this.DFT_ID_DG8:
1737
- return "Date of birth" + " (DG8)"
1738
- case this.DFT_DL_DG8:
1739
- return "Biometry - Iris Data (DG8)"
1740
- case this.DFT_PASSPORT_DG9:
1818
+ case 9:
1741
1819
  return "not defined (DG9)"
1742
- case this.DFT_ID_DG9:
1743
- return "Place of birth" + " (DG9)"
1744
- case this.DFT_DL_DG9:
1745
- return "Biometry - Other (DG9)"
1746
- case this.DFT_PASSPORT_DG10:
1747
- return "not defined (DG10)"
1748
- case this.DFT_ID_DG10:
1749
- return "Nationality" + " (DG10)"
1750
- case this.DFT_DL_DG10:
1820
+ case 10:
1751
1821
  return "not defined (DG10)"
1752
- case this.DFT_PASSPORT_DG11:
1822
+ case 11:
1753
1823
  return "Additional personal detail(s) (DG11)"
1754
- case this.DFT_ID_DG11:
1755
- return "Sex" + " (DG11)"
1756
- case this.DFT_DL_DG11:
1757
- return "Optional domestic data (DG11)"
1758
- case this.DFT_PASSPORT_DG12:
1824
+ case 12:
1759
1825
  return "Additional document details (DG12)"
1760
- case this.DFT_ID_DG12:
1761
- return "Optional details" + " (DG12)"
1762
- case this.DFT_DL_DG12:
1763
- return "Non-match alert (DG12)"
1764
- case this.DFT_PASSPORT_DG13:
1826
+ case 13:
1765
1827
  return "Optional detail(s) (DG13)"
1766
- case this.DFT_ID_DG13:
1767
- return "Undefined" + " (DG13)"
1768
- case this.DFT_DL_DG13:
1769
- return "Active Authentication info (DG13)"
1770
- case this.DFT_PASSPORT_DG14:
1771
- return "EAC info (DG14)"
1772
- case this.DFT_ID_DG14:
1773
- return "Undefined" + " (DG14)"
1774
- case this.DFT_DL_DG14:
1828
+ case 14:
1775
1829
  return "EAC info (DG14)"
1776
- case this.DFT_PASSPORT_DG15:
1830
+ case 15:
1777
1831
  return "Active Authentication info (DG15)"
1778
- case this.DFT_ID_DG15:
1779
- return "Undefined" + " (DG15)"
1780
- case this.DFT_PASSPORT_DG16:
1832
+ case 16:
1781
1833
  return "Person(s) to notify (DG16)"
1782
- case this.DFT_ID_DG16:
1783
- return "Undefined" + " (DG16)"
1784
- case this.DFT_PASSPORT_DG17:
1834
+ case 17:
1785
1835
  return "DG17"
1786
- case this.DFT_ID_DG17:
1787
- return "Place of registration" + " (DG17)"
1788
- case this.DFT_PASSPORT_DG18:
1836
+ case 18:
1789
1837
  return "DG18"
1790
- case this.DFT_ID_DG18:
1791
- return "Place of registration" + " (DG18)"
1792
- case this.DFT_PASSPORT_DG19:
1838
+ case 19:
1793
1839
  return "DG19"
1794
- case this.DFT_ID_DG19:
1795
- return "Residence permit 1" + " (DG19)"
1796
- case this.DFT_PASSPORT_DG20:
1840
+ case 20:
1797
1841
  return "DG20"
1798
- case this.DFT_ID_DG20:
1799
- return "Residence permit 2" + " (DG20)"
1800
- case this.DFT_ID_DG21:
1801
- return "Optional details" + " (DG21)"
1802
- case this.DFT_DL_SOD:
1842
+ case 21:
1843
+ return "EF.SOD"
1844
+ case 165:
1803
1845
  return "EF.SOD"
1804
- case this.DFT_PASSPORT_CVCA:
1846
+ case 22:
1805
1847
  return "EF.CVCA"
1806
- case this.DFT_MIFARE_VALIDITY:
1807
- return "MIFARE validity"
1808
- case this.DFT_PACE_CARDACCESS:
1848
+ case 23:
1849
+ return "EF.COM"
1850
+ case 150:
1851
+ return "EF.COM"
1852
+ case 101:
1853
+ return "Document type" + " (DG1)"
1854
+ case 102:
1855
+ return "Issuing state" + " (DG2)"
1856
+ case 103:
1857
+ return "Date of expiry" + " (DG3)"
1858
+ case 104:
1859
+ return "Given name" + " (DG4)"
1860
+ case 105:
1861
+ return "Surname/given name at birth" + " (DG5)"
1862
+ case 106:
1863
+ return "Pseudonym" + " (DG6)"
1864
+ case 107:
1865
+ return "Academic title" + " (DG7)"
1866
+ case 108:
1867
+ return "Date of birth" + " (DG8)"
1868
+ case 109:
1869
+ return "Place of birth" + " (DG9)"
1870
+ case 110:
1871
+ return "Nationality" + " (DG10)"
1872
+ case 111:
1873
+ return "Sex" + " (DG11)"
1874
+ case 112:
1875
+ return "Optional details" + " (DG12)"
1876
+ case 113:
1877
+ return "Undefined" + " (DG13)"
1878
+ case 114:
1879
+ return "Undefined" + " (DG14)"
1880
+ case 115:
1881
+ return "Undefined" + " (DG15)"
1882
+ case 116:
1883
+ return "Undefined" + " (DG16)"
1884
+ case 117:
1885
+ return "Place of registration" + " (DG17)"
1886
+ case 118:
1887
+ return "Place of registration" + " (DG18)"
1888
+ case 119:
1889
+ return "Residence permit 1" + " (DG19)"
1890
+ case 120:
1891
+ return "Residence permit 2" + " (DG20)"
1892
+ case 121:
1893
+ return "Optional details" + " (DG21)"
1894
+ case 151:
1895
+ return "Text data elements (DG1)"
1896
+ case 152:
1897
+ return "License holder information (DG2)"
1898
+ case 153:
1899
+ return "Issuing authority details (DG3)"
1900
+ case 154:
1901
+ return "Portrait image (DG4)"
1902
+ case 155:
1903
+ return "Signature / usual mark image (DG5)"
1904
+ case 156:
1905
+ return "Biometry - Facial data (DG6)"
1906
+ case 157:
1907
+ return "Biometry - Fingerprint(s) (DG7)"
1908
+ case 158:
1909
+ return "Biometry - Iris Data (DG8)"
1910
+ case 159:
1911
+ return "Biometry - Other (DG9)"
1912
+ case 160:
1913
+ return "not defined (DG10)"
1914
+ case 161:
1915
+ return "Optional domestic data (DG11)"
1916
+ case 162:
1917
+ return "Non-match alert (DG12)"
1918
+ case 163:
1919
+ return "Active Authentication info (DG13)"
1920
+ case 164:
1921
+ return "EAC info (DG14)"
1922
+ case 166:
1923
+ return "DFT_DL_CE"
1924
+ case 167:
1925
+ return "DFT_DL_CVCA"
1926
+ case 200:
1809
1927
  return "EF.CardAccess"
1810
- case this.DFT_PACE_CARDSECURITY:
1928
+ case 201:
1811
1929
  return "EF.CardSecurity"
1812
- case this.DFT_PACE_CHIPSECURITY:
1930
+ case 202:
1813
1931
  return "EF.ChipSecurity"
1814
- case this.DFT_CERTIFICATE:
1815
- return "Certificate"
1816
- case this.DFT_APP_DIRECTORY:
1817
- return "App directory"
1818
- case this.DFT_ATR:
1932
+ case 300:
1933
+ return "MIFARE data"
1934
+ case 301:
1935
+ return "MIFARE validity"
1936
+ case 400:
1819
1937
  return "DFT_ATR"
1820
- case this.DFT_CHIP_PROPERTIES:
1821
- return "DFT_CHIP_PROPERTIES"
1822
- case this.DFT_DEFECTLIST:
1823
- return "DFT_DEFECTLIST"
1824
- case this.DFT_DEVIATIONLIST:
1825
- return "DFT_DEVIATIONLIST"
1826
- case this.DFT_DL_CE:
1827
- return "DFT_DL_CE"
1828
- case this.DFT_DL_CVCA:
1829
- return "DFT_DL_CVCA"
1830
- case this.DFT_ESIGN_PK:
1938
+ case 500:
1831
1939
  return "DFT_ESIGN_PK"
1832
- case this.DFT_ESIGN_SIGNEDDATA:
1940
+ case 501:
1833
1941
  return "DFT_ESIGN_SIGNEDDATA"
1834
- case this.DFT_LOGDATA:
1835
- return "DFT_LOGDATA"
1836
- case this.DFT_MASTERLIST:
1942
+ case 600:
1943
+ return "Certificate"
1944
+ case 601:
1837
1945
  return "DFT_MASTERLIST"
1838
- case this.DFT_SESSION:
1946
+ case 602:
1947
+ return "DFT_DEFECTLIST"
1948
+ case 603:
1949
+ return "DFT_DEVIATIONLIST"
1950
+ case 700:
1951
+ return "App directory"
1952
+ case 701:
1839
1953
  return "DFT_SESSION"
1840
- case this.DFT_UNSPECIFIED:
1841
- return "DFT_UNSPECIFIED"
1842
- case this.DFT_USERDEFINED:
1954
+ case 702:
1955
+ return "DFT_LOGDATA"
1956
+ case 703:
1957
+ return "DFT_CHIP_PROPERTIES"
1958
+ case 1000:
1843
1959
  return "DFT_USERDEFINED"
1844
1960
  default:
1845
1961
  return value
@@ -1904,6 +2020,7 @@ const eRFID_NotificationAndErrorCodes = {
1904
2020
  RFID_ERROR_INVALID_PARAMETER: -2147418108,
1905
2021
  RFID_ERROR_NOT_INITIALIZED: -2147418107,
1906
2022
  RFID_Error_NotEnoughMemory: -2147418106,
2023
+ RFID_ERROR_NOT_ENOUGH_DATA: -2147418105,
1907
2024
  RFID_ERROR_INVALID_DIRECTORY: -2147418104,
1908
2025
  RFID_ERROR_UNKNOWN_COMMAND: -2147418103,
1909
2026
  RFID_ERROR_FILE_IO_ERROR: -2147418102,
@@ -1982,11 +2099,25 @@ const eRFID_NotificationAndErrorCodes = {
1982
2099
  RFID_LAYER6_EXT_AUTH_FAILURE: -2046819576,
1983
2100
  RFID_LAYER6_GENERAL_AUTH_FAILURE: -2046819575,
1984
2101
  RFID_ERROR_FAILED: -1,
2102
+ RFID_ERROR_CODES_LAYER_34_NO_ERROR: -2080374784,
2103
+ RFID_ERROR_CODES_LAYER_34_TIMEOUT: -2080309248,
2104
+ RFID_ERROR_CODES_LAYER_34_COLLISION: -2080243712,
2105
+ RFID_ERROR_CODES_LAYER_34_CRC: -2080178176,
2106
+ RFID_ERROR_CODES_LAYER_34_DATA_INTEGRITY: -2080112640,
2107
+ RFID_ERROR_CODES_LAYER_34_DATA_LENGTH: -2080047104,
2108
+ RFID_ERROR_CODES_LAYER_34_RFU: -2079981568,
2109
+ RFID_ERROR_CODES_LAYER_34_COLLISION_TOO_MANY: -2079916032,
2110
+ RFID_ERROR_CODES_LAYER_34_PROTOCOL_B: -2079850496,
2111
+ RFID_ERROR_CODES_LAYER_34_DATA_CONTENTS: -2079784960,
2112
+ RFID_ERROR_CODES_LAYER_34_PROTOCOL: -2079719424,
2113
+ RFID_ERROR_CODES_LAYER_34_GLOBAL_TIMEOUT: -2079653888,
2114
+ RFID_ERROR_CODES_LAYER_34_MIFARE_AUTH: -2079588352,
2115
+ RFID_ERROR_CODES_LAYER_34_SAM_ERROR: -2079522816,
2116
+ RFID_ERROR_CODES_LAYER_34_SAM_COLLISION: -2079457280,
2117
+ RFID_ERROR_CODES_LAYER_34_SAM_ACKNOWLEDGE: -2079391744,
1985
2118
 
1986
2119
  getTranslation: function (value) {
1987
2120
  switch (value) {
1988
- case this.RFID_ERROR_NO_ERROR:
1989
- return "OK"
1990
2121
  case -2147483647:
1991
2122
  return "Error - ASN: Incorrect data"
1992
2123
  case -2147483646:
@@ -2001,6 +2132,8 @@ const eRFID_NotificationAndErrorCodes = {
2001
2132
  return "Error - ASN Signed data: Version incorrect data"
2002
2133
  case -2147483631:
2003
2134
  return "Error - ASN Signed data: Digest algorithms incorrect data"
2135
+ case -2147483630:
2136
+ return "Error - ASN LDS object: Version info incorrect data"
2004
2137
  case -2147483629:
2005
2138
  return "Error - ASN LDS object: Incorrect data"
2006
2139
  case -2147483628:
@@ -2009,8 +2142,6 @@ const eRFID_NotificationAndErrorCodes = {
2009
2142
  return "Error - ASN LDS object: Digest algorithm incorrect data"
2010
2143
  case -2147483626:
2011
2144
  return "Error - ASN LDS object: DG hashes incorrect data"
2012
- case -2147483630:
2013
- return "Error - ASN LDS object: Version info incorrect data"
2014
2145
  case -2147483625:
2015
2146
  return "Error - ASN Certificate: Incorrect data"
2016
2147
  case -2147483624:
@@ -2055,10 +2186,10 @@ const eRFID_NotificationAndErrorCodes = {
2055
2186
  return "Error - ICAO Signer info: Unsupported signature algorithm"
2056
2187
  case -2147483596:
2057
2188
  return "Error - ICAO Signer info: Message digest error"
2058
- case -2147483594:
2059
- return "Error - ICAO Signer info: Signed attributes missed"
2060
2189
  case -2147483595:
2061
2190
  return "Error - Auth: Signer info cannot find certificate"
2191
+ case -2147483594:
2192
+ return "Error - ICAO Signer info: Signed attributes missed"
2062
2193
  case -2147483568:
2063
2194
  return "Error - Auth: Error"
2064
2195
  case -2147483567:
@@ -2083,15 +2214,77 @@ const eRFID_NotificationAndErrorCodes = {
2083
2214
  return "Error - Auth: Signature check failed"
2084
2215
  case -2147483536:
2085
2216
  return "Error - DG: Wrong Tag"
2086
- case -2130706400:
2087
- return "Error - PACE: Info Not Available"
2088
- case -2130706399:
2089
- return "Error - PACE: Symmetric Cypher Cannot Initialize"
2090
- case -2130706398:
2091
- return "Error - PACE: Key Agreement Cannot Initialize"
2092
- case -2130706397:
2093
- return "Error - PACE: Ephemeral Keys Cannot Create"
2094
- case -2130706396:
2217
+ case -2147458430:
2218
+ return "LAYER6: Reading beyond EOF / Unexpected EOF"
2219
+ case -2147458429:
2220
+ return "LAYER6: PWD Deactivated"
2221
+ case -2147458112:
2222
+ return "LAYER6: PWD Blocked"
2223
+ case -2147458111:
2224
+ return "LAYER6: PWD Suspended"
2225
+ case -2147456637:
2226
+ return "LAYER6: PWD Blocked 2"
2227
+ case -2147456636:
2228
+ return "LAYER6: PWD Deactivated 2"
2229
+ case -2147456635:
2230
+ return "LAYER6: PWD Suspended 2"
2231
+ case -2147456384:
2232
+ return "LAYER6: Incorrect Params"
2233
+ case -2147456382:
2234
+ return "LAYER6: File selection failure / file not found"
2235
+ case -2147456376:
2236
+ return "LAYER6: No Reference Data"
2237
+ case -2147456256:
2238
+ return "LAYER6: Reading beyond EOF / Unexpected EOF"
2239
+ case -2147418112:
2240
+ return "RFID: Creation or connection to Graph Manager COM server failed"
2241
+ case -2147418111:
2242
+ return "RFID: No chip is detected"
2243
+ case -2147418110:
2244
+ return "RFID: Unavailable"
2245
+ case -2147418108:
2246
+ return "RFID: Invalid parameter in ExecuteCommand() call found"
2247
+ case -2147418107:
2248
+ return "RFID: Device is uninitialized"
2249
+ case -2147418106:
2250
+ return "RFID: Out of memory"
2251
+ case -2147418104:
2252
+ return "RFID: Invalid directory"
2253
+ case -2147418103:
2254
+ return "RFID: Unknown command"
2255
+ case -2147418102:
2256
+ return "RFID File: IO Error"
2257
+ case -2147418101:
2258
+ return "RFID: RFID is Busy"
2259
+ case -2147418100:
2260
+ return "RFID: Firmware need to be updated with newer version"
2261
+ case -2147352576:
2262
+ return "PCSC: Failed"
2263
+ case -2147352575:
2264
+ return "PCSC: Reader is unavailable"
2265
+ case -2147352574:
2266
+ return "PCSC: Card cannot be connected"
2267
+ case -2147352573:
2268
+ return "PCSC: Card is not connected"
2269
+ case -2147352572:
2270
+ return "PCSC: Operation is cancelled"
2271
+ case -2147352571:
2272
+ return "PCSC: Card Is Busy"
2273
+ case -2147352570:
2274
+ return "PCSC: Failed Smart Card"
2275
+ case -2147352560:
2276
+ return "PCSC: ExtLe Failed"
2277
+ case -2146409536:
2278
+ return "LAYER6: PWD Failed"
2279
+ case -2130706400:
2280
+ return "Error - PACE: Info Not Available"
2281
+ case -2130706399:
2282
+ return "Error - PACE: Symmetric Cypher Cannot Initialize"
2283
+ case -2130706398:
2284
+ return "Error - PACE: Key Agreement Cannot Initialize"
2285
+ case -2130706397:
2286
+ return "Error - PACE: Ephemeral Keys Cannot Create"
2287
+ case -2130706396:
2095
2288
  return "Error - PACE: Mapping Cannot Decode Nonce"
2096
2289
  case -2130706395:
2097
2290
  return "Error - PACE: Shared Secret Cannot Create"
@@ -2151,12 +2344,6 @@ const eRFID_NotificationAndErrorCodes = {
2151
2344
  return "Error - AA: Incorrect Trailer"
2152
2345
  case -2130706345:
2153
2346
  return "Error - AA: Unsupported Digest Algorithm"
2154
- case -2130706320:
2155
- return "Error - RI: Sector Key Cannot Find"
2156
- case -2130706319:
2157
- return "Error - RI: Sector Key Incorrect Data"
2158
- case -2130706318:
2159
- return "Error - RI: Sector Key Incomplete Data"
2160
2347
  case -2130706336:
2161
2348
  return "Error - CV Certificate: Missing mandatory data PK"
2162
2349
  case -2130706334:
@@ -2167,6 +2354,12 @@ const eRFID_NotificationAndErrorCodes = {
2167
2354
  return "Error - CV Certificate: Private key unsupported"
2168
2355
  case -2130706331:
2169
2356
  return "Error - CV Certificate: Private key invalid params"
2357
+ case -2130706320:
2358
+ return "Error - RI: Sector Key Cannot Find"
2359
+ case -2130706319:
2360
+ return "Error - RI: Sector Key Incorrect Data"
2361
+ case -2130706318:
2362
+ return "Error - RI: Sector Key Incomplete Data"
2170
2363
  case -2130706080:
2171
2364
  return "Error - CV Certificate: Incorrect data"
2172
2365
  case -2130706079:
@@ -2189,6 +2382,134 @@ const eRFID_NotificationAndErrorCodes = {
2189
2382
  return "Error - CV Certificate: Private key incorrect data"
2190
2383
  case -2130706070:
2191
2384
  return "Error - CV Certificate: Private key missing"
2385
+ case -2097152000:
2386
+ return "RFID: Not Performed"
2387
+ case -2097151999:
2388
+ return "RFID: Session Is Closed"
2389
+ case -2097151998:
2390
+ return "RFID: Terminal Unsupported Operation"
2391
+ case -2097151984:
2392
+ return "RFID: Terminal Type Unknown"
2393
+ case -2097151983:
2394
+ return "RFID: Terminal Type Bad Certificate"
2395
+ case -2097151982:
2396
+ return "RFID: Terminal Type Not Set"
2397
+ case -2097151981:
2398
+ return "RFID: Procedure Type Unknown"
2399
+ case -2097151980:
2400
+ return "RFID: Procedure Type Unsupported"
2401
+ case -2097151979:
2402
+ return "RFID: Procedure Type Not Set"
2403
+ case -2097151978:
2404
+ return "RFID: Access Key Unknown Type"
2405
+ case -2097151977:
2406
+ return "RFID: Access Key Unsupported SM Type"
2407
+ case -2097151976:
2408
+ return "RFID: Access Key Incorrect SM Type"
2409
+ case -2097151975:
2410
+ return "RFID: Access Key Restricted"
2411
+ case -2097151974:
2412
+ return "RFID: Access Key Incorrect Data"
2413
+ case -2097151973:
2414
+ return "RFID: Access Key Not Set"
2415
+ case -2097151972:
2416
+ return "RFID: Pwd Management Not Authorized"
2417
+ case -2097151968:
2418
+ return "RFID: Access Control UnknownType"
2419
+ case -2097151967:
2420
+ return "RFID: Requires SM"
2421
+ case -2097151966:
2422
+ return "RFID: Requires PACE"
2423
+ case -2097151965:
2424
+ return "RFID: Requires CA Keys"
2425
+ case -2097151964:
2426
+ return "RFID: Requires TA"
2427
+ case -2097151963:
2428
+ return "RFID: Requires CA"
2429
+ case -2097151962:
2430
+ return "RFID: Incorrect Option CA"
2431
+ case -2097151961:
2432
+ return "RFID: CA Failed"
2433
+ case -2097151960:
2434
+ return "RFID: TA Failed"
2435
+ case -2097151959:
2436
+ return "RFID: AA Failed"
2437
+ case -2097151958:
2438
+ return "RFID: RI Failed"
2439
+ case -2097151952:
2440
+ return "RFID: SO Signature Check Failed"
2441
+ case -2097151951:
2442
+ return "RFID: Hash Check Failed"
2443
+ case -2097151936:
2444
+ return "RFID: Invalid Aux Data Date Of Expiry"
2445
+ case -2097151935:
2446
+ return "RFID: Invalid Aux Data Date Of Birth"
2447
+ case -2097151934:
2448
+ return "RFID: Invalid Aux Data Community ID"
2449
+ case -2097151920:
2450
+ return "RFID: eSign Requires App Selection"
2451
+ case -2097151919:
2452
+ return "RFID: eSign PIN Not Set"
2453
+ case -2097151918:
2454
+ return "RFID: eSign PIN Not Verified"
2455
+ case -2097151904:
2456
+ return "RFID: Incorrect data"
2457
+ case -2097086464:
2458
+ return "RFID File: Not Enough Data"
2459
+ case -2097020928:
2460
+ return "RFID File: Incorrect Data"
2461
+ case -2096955392:
2462
+ return "RFID File: Unexpected Data"
2463
+ case -2096889856:
2464
+ return "RFID File: Contents Unexpected Data"
2465
+ case -2096824320:
2466
+ return "RFID File: Wrong Tag"
2467
+ case -2096758784:
2468
+ return "RFID File: Cannot Use Data"
2469
+ case -2096693248:
2470
+ return "RFID File: Cannot Read Data"
2471
+ case -2096627712:
2472
+ return "RFID File: Access Denied"
2473
+ case -2046820352:
2474
+ return "LAYER6: Secure Messaging was not activated"
2475
+ case -2046820351:
2476
+ return "LAYER6: ISO7816_A_03 \"Application selection failure\""
2477
+ case -2046820096:
2478
+ return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
2479
+ case -2046820095:
2480
+ return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
2481
+ case -2046820094:
2482
+ return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
2483
+ case -2046819840:
2484
+ return "LAYER6: SM failure – MAC missing"
2485
+ case -2046819839:
2486
+ return "LAYER6: SM failure – cryptogram missing"
2487
+ case -2046819838:
2488
+ return "LAYER6: SM failure – secured status bytes missing"
2489
+ case -2046819837:
2490
+ return "LAYER6: SM failure – incorrect MAC"
2491
+ case -2046819836:
2492
+ return "LAYER6: SM failure – incorrect cryptogram"
2493
+ case -2046819584:
2494
+ return "LAYER6: Not TLV response data"
2495
+ case -2046819583:
2496
+ return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
2497
+ case -2046819582:
2498
+ return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
2499
+ case -2046819581:
2500
+ return "LAYER6: MSE:Set KAT failure"
2501
+ case -2046819580:
2502
+ return "LAYER6: MSE:Set DST failure"
2503
+ case -2046819579:
2504
+ return "LAYER6: PSO CERTIFICATE failure"
2505
+ case -2046819578:
2506
+ return "LAYER6: MSE:Set AT failure"
2507
+ case -2046819577:
2508
+ return "LAYER6: GET CHALLENGE failure"
2509
+ case -2046819576:
2510
+ return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
2511
+ case -2046819575:
2512
+ return "LAYER6: General Authenticity Failure"
2192
2513
  case -1879048191:
2193
2514
  return "Notification - ASN certificate: Incorrect version"
2194
2515
  case -1879048190:
@@ -2211,6 +2532,94 @@ const eRFID_NotificationAndErrorCodes = {
2211
2532
  return "Notification - ASN certificate: Incorrect issuer subject DS"
2212
2533
  case -1879048169:
2213
2534
  return "Notification - ASN certificate: Duplicating extensions"
2535
+ case -1879048160:
2536
+ return "Notification - ICAO COM: LDS version incorrect"
2537
+ case -1879048159:
2538
+ return "Notification - ICAO COM: LDS version missing"
2539
+ case -1879048158:
2540
+ return "Notification - ICAO COM: Unicode version incorrect"
2541
+ case -1879048157:
2542
+ return "Notification - ICAO COM: Unicode version missing"
2543
+ case -1879048156:
2544
+ return "Notification - ICAO COM: DGPM incorrect"
2545
+ case -1879048155:
2546
+ return "Notification - ICAO COM: DGPM missing"
2547
+ case -1879048154:
2548
+ return "Notification - ICAO COM: DGPM unexpected"
2549
+ case -1879048144:
2550
+ return "Notification - ICAO application: LDS version unsupported"
2551
+ case -1879048143:
2552
+ return "Notification - ICAO application: Unicode version unsupported"
2553
+ case -1879048142:
2554
+ return "Notification - ICAO application: LDS version inconsistent"
2555
+ case -1879048141:
2556
+ return "Notification - ICAO application: Unicode version inconsistent"
2557
+ case -1879047936:
2558
+ return "Notification - ASN signed data: OID incorrect"
2559
+ case -1879047935:
2560
+ return "Notification - ICAO signed data: Version incorrect"
2561
+ case -1879047934:
2562
+ return "Notification - ICAO signed data: Digest algorithms empty"
2563
+ case -1879047933:
2564
+ return "Notification - ICAO signed data: Digest algorithms unsupported"
2565
+ case -1879047932:
2566
+ return "Notification - ICAO LDS object: Incorrect content OID"
2567
+ case -1879047931:
2568
+ return "Notification - ICAO LDS object: DG number incorrect"
2569
+ case -1879047930:
2570
+ return "Notification - ICAO LDS object: DG hash missing"
2571
+ case -1879047929:
2572
+ return "Notification - ICAO LDS object: DG hash extra"
2573
+ case -1879047928:
2574
+ return "Notification - ICAO LDS object: Version incorrect"
2575
+ case -1879047927:
2576
+ return "Notification - ICAO signed data: Signer infos multiple entries"
2577
+ case -1879047926:
2578
+ return "Notification - ASN signer info: Version incorrect"
2579
+ case -1879047925:
2580
+ return "Notification - ASN signer info: SID incorrect choice"
2581
+ case -1879047924:
2582
+ return "Notification - ASN signer info: SID digest algorithm not listed"
2583
+ case -1879047923:
2584
+ return "Notification - ASN signer info: Message digest attr missing"
2585
+ case -1879047922:
2586
+ return "Notification - ASN signer info: Message digest attr data"
2587
+ case -1879047921:
2588
+ return "Notification - ASN signer info: Message digest attr value"
2589
+ case -1879047920:
2590
+ return "Notification - ASN signer info: Content type attr missing"
2591
+ case -1879047919:
2592
+ return "Notification - ASN signer info: Content type attr data"
2593
+ case -1879047918:
2594
+ return "Notification - ASN signer info: Content type attr value"
2595
+ case -1879047915:
2596
+ return "Notification - Auth signer info: Certificate validity"
2597
+ case -1879047914:
2598
+ return "Notification - Auth signer info: Certificate root is not trusted"
2599
+ case -1879047913:
2600
+ return "Notification - Auth signer info: Certificate cannot find CSCA"
2601
+ case -1879047912:
2602
+ return "Notification - Auth signer info: Certificate revoked"
2603
+ case -1879047911:
2604
+ return "Notification - Auth signer info: Certificate signature invalid"
2605
+ case -1879047910:
2606
+ return "Notification: Unsupported image format"
2607
+ case -1879047909:
2608
+ return "Notification - ASN signer info: Signing time attr missing"
2609
+ case -1879047908:
2610
+ return "Notification - ASN signer info: Signing time attr data"
2611
+ case -1879047907:
2612
+ return "Notification - ASN signer info: Signing time attr value"
2613
+ case -1879047776:
2614
+ return "Notification - ASN signed data: Version incorrect"
2615
+ case -1879047760:
2616
+ return "Notification - ICAO signed data: Certificates missed"
2617
+ case -1879047759:
2618
+ return "Notification - ICAO signed data: Certificates empty"
2619
+ case -1879047758:
2620
+ return "Notification - ICAO signed data: CRLs incorrect usage"
2621
+ case -1879047744:
2622
+ return "Notification - ICAO master list: Version incorrect"
2214
2623
  case -1879047680:
2215
2624
  return "Notification - ICAO certificate: Version missed"
2216
2625
  case -1879047679:
@@ -2291,166 +2700,48 @@ const eRFID_NotificationAndErrorCodes = {
2291
2700
  return "Notification - ICAO certificate extension: Subject alt name non-compliant"
2292
2701
  case -1879047639:
2293
2702
  return "Notification - ICAO certificate extension: Subject alt name DN empty"
2294
- case -1879047638:
2295
- return "Notification - ICAO certificate extension: Subject alt name DN incorrect"
2296
- case -1879047637:
2297
- return "Notification - ICAO certificate extension: Subject alt name DN non-compliant"
2298
- case -1879047636:
2299
- return "Notification - ICAO certificate extension: Issuer alt name missed"
2300
- case -1879047635:
2301
- return "Notification - ICAO certificate extension: Issuer alt name incorrect data"
2302
- case -1879047634:
2303
- return "Notification - ICAO certificate extension: Issuer alt name empty"
2304
- case -1879047633:
2305
- return "Notification - ICAO certificate extension: Issuer alt name non-compliant"
2306
- case -1879047630:
2307
- return "Notification - ICAO certificate extension: Issuer alt name DN empty"
2308
- case -1879047629:
2309
- return "Notification - ICAO certificate extension: Issuer alt name DN incorrect"
2310
- case -1879047628:
2311
- return "Notification - ICAO certificate extension: Issuer alt name DN non-compliant"
2312
- case -1879047627:
2313
- return "Notification - ICAO certificate extension Doc type list: Missed"
2314
- case -1879047626:
2315
- return "Notification - ICAO certificate extension Doc type list: Incorrect data"
2316
- case -1879047625:
2317
- return "Notification - ICAO certificate extension Doc type list: Version"
2318
- case -1879047624:
2319
- return "Notification - ICAO certificate extension Doc type list: Doc types"
2320
- case -1879047623:
2321
- return "Notification - ICAO certificate extension Doc type list: Doc types empty"
2322
- case -1879047622:
2323
- return "Notification - ICAO certificate extension: Dert policies incorrect data"
2324
- case -1879047621:
2325
- return "Notification - ICAO certificate extension: Cert policies empty"
2326
- case -1879047620:
2327
- return "Notification - ICAO certificate extension: Cert policies policy ID missed"
2328
- case -1879047619:
2329
- return "Notification - ICAO certificate extension: CRL dist point missed"
2330
- case -1879047618:
2331
- return "Notification - ICAO certificate extension: CRL dist point incorrect data"
2332
- case -1879047617:
2333
- return "Notification - ICAO certificate extension: CRL dist point empty"
2334
- case -1879047616:
2335
- return "Notification - ICAO certificate extension: CRL dist point point missed"
2336
- case -1879048160:
2337
- return "Notification - ICAO COM: LDS version incorrect"
2338
- case -1879048159:
2339
- return "Notification - ICAO COM: LDS version missing"
2340
- case -1879048158:
2341
- return "Notification - ICAO COM: Unicode version incorrect"
2342
- case -1879048157:
2343
- return "Notification - ICAO COM: Unicode version missing"
2344
- case -1879048156:
2345
- return "Notification - ICAO COM: DGPM incorrect"
2346
- case -1879048155:
2347
- return "Notification - ICAO COM: DGPM missing"
2348
- case -1879048154:
2349
- return "Notification - ICAO COM: DGPM unexpected"
2350
- case -1879048144:
2351
- return "Notification - ICAO application: LDS version unsupported"
2352
- case -1879048143:
2353
- return "Notification - ICAO application: Unicode version unsupported"
2354
- case -1879048142:
2355
- return "Notification - ICAO application: LDS version inconsistent"
2356
- case -1879048141:
2357
- return "Notification - ICAO application: Unicode version inconsistent"
2358
- case -1879047936:
2359
- return "Notification - ASN signed data: OID incorrect"
2360
- case -1879047776:
2361
- return "Notification - ASN signed data: Version incorrect"
2362
- case -1879047935:
2363
- return "Notification - ICAO signed data: Version incorrect"
2364
- case -1879047934:
2365
- return "Notification - ICAO signed data: Digest algorithms empty"
2366
- case -1879047933:
2367
- return "Notification - ICAO signed data: Digest algorithms unsupported"
2368
- case -1879047927:
2369
- return "Notification - ICAO signed data: Signer infos multiple entries"
2370
- case -1879047760:
2371
- return "Notification - ICAO signed data: Certificates missed"
2372
- case -1879047759:
2373
- return "Notification - ICAO signed data: Certificates empty"
2374
- case -1879047758:
2375
- return "Notification - ICAO signed data: CRLs incorrect usage"
2376
- case -1879047932:
2377
- return "Notification - ICAO LDS object: Incorrect content OID"
2378
- case -1879047931:
2379
- return "Notification - ICAO LDS object: DG number incorrect"
2380
- case -1879047930:
2381
- return "Notification - ICAO LDS object: DG hash missing"
2382
- case -1879047929:
2383
- return "Notification - ICAO LDS object: DG hash extra"
2384
- case -1879047928:
2385
- return "Notification - ICAO LDS object: Version incorrect"
2386
- case -1879047744:
2387
- return "Notification - ICAO master list: Version incorrect"
2388
- case -1879047926:
2389
- return "Notification - ASN signer info: Version incorrect"
2390
- case -1879047925:
2391
- return "Notification - ASN signer info: SID incorrect choice"
2392
- case -1879047924:
2393
- return "Notification - ASN signer info: SID digest algorithm not listed"
2394
- case -1879047923:
2395
- return "Notification - ASN signer info: Message digest attr missing"
2396
- case -1879047922:
2397
- return "Notification - ASN signer info: Message digest attr data"
2398
- case -1879047921:
2399
- return "Notification - ASN signer info: Message digest attr value"
2400
- case -1879047920:
2401
- return "Notification - ASN signer info: Content type attr missing"
2402
- case -1879047919:
2403
- return "Notification - ASN signer info: Content type attr data"
2404
- case -1879047918:
2405
- return "Notification - ASN signer info: Content type attr value"
2406
- case -1879047909:
2407
- return "Notification - ASN signer info: Signing time attr missing"
2408
- case -1879047908:
2409
- return "Notification - ASN signer info: Signing time attr data"
2410
- case -1879047907:
2411
- return "Notification - ASN signer info: Signing time attr value"
2412
- case -1879047915:
2413
- return "Notification - Auth signer info: Certificate validity"
2414
- case -1879047914:
2415
- return "Notification - Auth signer info: Certificate root is not trusted"
2416
- case -1879047913:
2417
- return "Notification - Auth signer info: Certificate cannot find CSCA"
2418
- case -1879047912:
2419
- return "Notification - Auth signer info: Certificate revoked"
2420
- case -1879047911:
2421
- return "Notification - Auth signer info: Certificate signature invalid"
2422
- case -1879047910:
2423
- return "Notification: Unsupported image format"
2424
- case 139272:
2425
- return "Notification - MRZ: Document type unknown"
2426
- case 139273:
2427
- return "Notification - MRZ: Issuing state syntax error"
2428
- case 139274:
2429
- return "Notification - MRZ: Name is void"
2430
- case 139277:
2431
- return "Notification - MRZ: Number incorrect checksum"
2432
- case 139278:
2433
- return "Notification - MRZ: Nationality syntax error"
2434
- case 139279:
2435
- return "Notification - MRZ: DOB syntax error"
2436
- case 139280:
2437
- return "Notification - MRZ: DOB error"
2438
- case 139281:
2439
- return "Notification - MRZ: DOB incorrect checksum"
2440
- case 139282:
2441
- return "Notification - MRZ: Sex incorrect"
2442
- case 139283:
2443
- return "Notification - MRZ: DOE syntax error"
2444
- case 139284:
2445
- return "Notification - MRZ: DOE error"
2446
- case 139285:
2447
- return "Notification - MRZ: DOE incorrect checksum"
2448
- case 139286:
2449
- return "Notification - MRZ: Optional data incorrect checksum"
2450
- case 139287:
2451
- return "Notification - MRZ: Incorrect checksum"
2452
- case 139288:
2453
- return "Notification - MRZ: Incorrect"
2703
+ case -1879047638:
2704
+ return "Notification - ICAO certificate extension: Subject alt name DN incorrect"
2705
+ case -1879047637:
2706
+ return "Notification - ICAO certificate extension: Subject alt name DN non-compliant"
2707
+ case -1879047636:
2708
+ return "Notification - ICAO certificate extension: Issuer alt name missed"
2709
+ case -1879047635:
2710
+ return "Notification - ICAO certificate extension: Issuer alt name incorrect data"
2711
+ case -1879047634:
2712
+ return "Notification - ICAO certificate extension: Issuer alt name empty"
2713
+ case -1879047633:
2714
+ return "Notification - ICAO certificate extension: Issuer alt name non-compliant"
2715
+ case -1879047630:
2716
+ return "Notification - ICAO certificate extension: Issuer alt name DN empty"
2717
+ case -1879047629:
2718
+ return "Notification - ICAO certificate extension: Issuer alt name DN incorrect"
2719
+ case -1879047628:
2720
+ return "Notification - ICAO certificate extension: Issuer alt name DN non-compliant"
2721
+ case -1879047627:
2722
+ return "Notification - ICAO certificate extension Doc type list: Missed"
2723
+ case -1879047626:
2724
+ return "Notification - ICAO certificate extension Doc type list: Incorrect data"
2725
+ case -1879047625:
2726
+ return "Notification - ICAO certificate extension Doc type list: Version"
2727
+ case -1879047624:
2728
+ return "Notification - ICAO certificate extension Doc type list: Doc types"
2729
+ case -1879047623:
2730
+ return "Notification - ICAO certificate extension Doc type list: Doc types empty"
2731
+ case -1879047622:
2732
+ return "Notification - ICAO certificate extension: Dert policies incorrect data"
2733
+ case -1879047621:
2734
+ return "Notification - ICAO certificate extension: Cert policies empty"
2735
+ case -1879047620:
2736
+ return "Notification - ICAO certificate extension: Cert policies policy ID missed"
2737
+ case -1879047619:
2738
+ return "Notification - ICAO certificate extension: CRL dist point missed"
2739
+ case -1879047618:
2740
+ return "Notification - ICAO certificate extension: CRL dist point incorrect data"
2741
+ case -1879047617:
2742
+ return "Notification - ICAO certificate extension: CRL dist point empty"
2743
+ case -1879047616:
2744
+ return "Notification - ICAO certificate extension: CRL dist point point missed"
2454
2745
  case -1878982656:
2455
2746
  return "Notification - Biometrics: Format owner missing"
2456
2747
  case -1878917120:
@@ -2579,200 +2870,42 @@ const eRFID_NotificationAndErrorCodes = {
2579
2870
  return "Notification - Auth ML signer info: Certificate revoked"
2580
2871
  case -1845493479:
2581
2872
  return "Notification - Auth ML signer info: Certificate signature invalid"
2582
- case this.RFID_ERROR_ALREADY_DONE:
2583
- return "RFID: Requested operation is already done"
2584
- case this.RFID_ERROR_FAILED:
2873
+ case -1:
2585
2874
  return "RFID: Failed"
2586
- case this.RFID_Error_GraphManager:
2587
- return "RFID: Creation or connection to Graph Manager COM server failed"
2588
- case this.RFID_ERROR_NO_CHIP_DETECTED:
2589
- return "RFID: No chip is detected"
2590
- case this.RFID_ERROR_NOT_AVAILABLE:
2591
- return "RFID: Unavailable"
2592
- case this.RFID_ERROR_INVALID_PARAMETER:
2593
- return "RFID: Invalid parameter in ExecuteCommand() call found"
2594
- case this.RFID_ERROR_NOT_INITIALIZED:
2595
- return "RFID: Device is uninitialized"
2596
- case this.RFID_Error_NotEnoughMemory:
2597
- return "RFID: Out of memory"
2598
- case this.RFID_ERROR_INVALID_DIRECTORY:
2599
- return "RFID: Invalid directory"
2600
- case this.RFID_ERROR_UNKNOWN_COMMAND:
2601
- return "RFID: Unknown command"
2602
- case this.RFID_ERROR_FILE_IO_ERROR:
2603
- return "RFID File: IO Error"
2604
- case this.RFID_ERROR_BUSY:
2605
- return "RFID: RFID is Busy"
2606
- case -2147418100:
2607
- return "RFID: Firmware need to be updated with newer version"
2608
- case -2147352576:
2609
- return "PCSC: Failed"
2610
- case -2147352575:
2611
- return "PCSC: Reader is unavailable"
2612
- case -2147352574:
2613
- return "PCSC: Card cannot be connected"
2614
- case -2147352573:
2615
- return "PCSC: Card is not connected"
2616
- case -2147352572:
2617
- return "PCSC: Operation is cancelled"
2618
- case -2147352571:
2619
- return "PCSC: Card Is Busy"
2620
- case -2147352570:
2621
- return "PCSC: Failed Smart Card"
2622
- case -2147352560:
2623
- return "PCSC: ExtLe Failed"
2624
- case -2046820352:
2625
- return "LAYER6: Secure Messaging was not activated"
2626
- case -2046820351:
2627
- return "LAYER6: ISO7816_A_03 \"Application selection failure\""
2628
- case -2046820096:
2629
- return "LAYER6: ISO7816_B_01 \"Mutual authentication MAC failure\""
2630
- case -2046820095:
2631
- return "LAYER6: ISO7816_B_02 \"Mutual authentication encryption failure\""
2632
- case -2046820094:
2633
- return "LAYER6: ISO7816_B_03 \"Mutual authentication failure\""
2634
- case -2046819840:
2635
- return "LAYER6: SM failure – MAC missing"
2636
- case -2046819839:
2637
- return "LAYER6: SM failure – cryptogram missing"
2638
- case -2046819838:
2639
- return "LAYER6: SM failure – secured status bytes missing"
2640
- case -2046819837:
2641
- return "LAYER6: SM failure – incorrect MAC"
2642
- case -2046819836:
2643
- return "LAYER6: SM failure – incorrect cryptogram"
2644
- case -2046819584:
2645
- return "LAYER6: Not TLV response data"
2646
- case -2046819583:
2647
- return "LAYER6: Wrong data length (APDU_INS_GET_CHALLENGE)"
2648
- case -2046819582:
2649
- return "LAYER6: APDU_INS_INTERNAL_AUTHENTICATE failure"
2650
- case -2046819581:
2651
- return "LAYER6: MSE:Set KAT failure"
2652
- case -2046819580:
2653
- return "LAYER6: MSE:Set DST failure"
2654
- case -2046819579:
2655
- return "LAYER6: PSO CERTIFICATE failure"
2656
- case -2046819578:
2657
- return "LAYER6: MSE:Set AT failure"
2658
- case -2046819577:
2659
- return "LAYER6: GET CHALLENGE failure"
2660
- case -2046819576:
2661
- return "LAYER6: APDU_INS_EXTERNAL_AUTHENTICATE (External Authentication) failure"
2662
- case -2046819575:
2663
- return "LAYER6: General Authenticity Failure"
2664
- case -2147456382:
2665
- return "LAYER6: File selection failure / file not found"
2666
- case -2147458430:
2667
- return "LAYER6: Reading beyond EOF / Unexpected EOF"
2668
- case -2147456256:
2669
- return "LAYER6: Reading beyond EOF / Unexpected EOF"
2670
- case -2147456384:
2671
- return "LAYER6: Incorrect Params"
2672
- case -2147456376:
2673
- return "LAYER6: No Reference Data"
2674
- case -2147458111:
2675
- return "LAYER6: PWD Suspended"
2676
- case -2147458112:
2677
- return "LAYER6: PWD Blocked"
2678
- case -2147458429:
2679
- return "LAYER6: PWD Deactivated"
2680
- case -2147456637:
2681
- return "LAYER6: PWD Blocked 2"
2682
- case -2147456636:
2683
- return "LAYER6: PWD Deactivated 2"
2684
- case -2147456635:
2685
- return "LAYER6: PWD Suspended 2"
2686
- case -2146409536:
2687
- return "LAYER6: PWD Failed"
2688
- case -2097152000:
2689
- return "RFID: Not Performed"
2690
- case -2097151999:
2691
- return "RFID: Session Is Closed"
2692
- case -2097151998:
2693
- return "RFID: Terminal Unsupported Operation"
2694
- case -2097151984:
2695
- return "RFID: Terminal Type Unknown"
2696
- case -2097151983:
2697
- return "RFID: Terminal Type Bad Certificate"
2698
- case -2097151982:
2699
- return "RFID: Terminal Type Not Set"
2700
- case -2097151981:
2701
- return "RFID: Procedure Type Unknown"
2702
- case -2097151980:
2703
- return "RFID: Procedure Type Unsupported"
2704
- case -2097151979:
2705
- return "RFID: Procedure Type Not Set"
2706
- case -2097151978:
2707
- return "RFID: Access Key Unknown Type"
2708
- case -2097151977:
2709
- return "RFID: Access Key Unsupported SM Type"
2710
- case -2097151976:
2711
- return "RFID: Access Key Incorrect SM Type"
2712
- case -2097151975:
2713
- return "RFID: Access Key Restricted"
2714
- case -2097151974:
2715
- return "RFID: Access Key Incorrect Data"
2716
- case -2097151973:
2717
- return "RFID: Access Key Not Set"
2718
- case -2097151972:
2719
- return "RFID: Pwd Management Not Authorized"
2720
- case -2097151968:
2721
- return "RFID: Access Control UnknownType"
2722
- case -2097151967:
2723
- return "RFID: Requires SM"
2724
- case -2097151966:
2725
- return "RFID: Requires PACE"
2726
- case -2097151965:
2727
- return "RFID: Requires CA Keys"
2728
- case -2097151964:
2729
- return "RFID: Requires TA"
2730
- case -2097151963:
2731
- return "RFID: Requires CA"
2732
- case -2097151962:
2733
- return "RFID: Incorrect Option CA"
2734
- case -2097151961:
2735
- return "RFID: CA Failed"
2736
- case -2097151960:
2737
- return "RFID: TA Failed"
2738
- case -2097151959:
2739
- return "RFID: AA Failed"
2740
- case -2097151958:
2741
- return "RFID: RI Failed"
2742
- case -2097151952:
2743
- return "RFID: SO Signature Check Failed"
2744
- case -2097151951:
2745
- return "RFID: Hash Check Failed"
2746
- case -2097151936:
2747
- return "RFID: Invalid Aux Data Date Of Expiry"
2748
- case -2097151935:
2749
- return "RFID: Invalid Aux Data Date Of Birth"
2750
- case -2097151934:
2751
- return "RFID: Invalid Aux Data Community ID"
2752
- case -2097151920:
2753
- return "RFID: eSign Requires App Selection"
2754
- case -2097151919:
2755
- return "RFID: eSign PIN Not Set"
2756
- case -2097151918:
2757
- return "RFID: eSign PIN Not Verified"
2758
- case -2097151904:
2759
- return "RFID: Incorrect data"
2760
- case -2097086464:
2761
- return "RFID File: Not Enough Data"
2762
- case -2097020928:
2763
- return "RFID File: Incorrect Data"
2764
- case -2096955392:
2765
- return "RFID File: Unexpected Data"
2766
- case -2096889856:
2767
- return "RFID File: Contents Unexpected Data"
2768
- case -2096824320:
2769
- return "RFID File: Wrong Tag"
2770
- case -2096758784:
2771
- return "RFID File: Cannot Use Data"
2772
- case -2096693248:
2773
- return "RFID File: Cannot Read Data"
2774
- case this.RFID_ERROR_SESSION_FILE_ACCESS_DENIED:
2775
- return "RFID File: Access Denied"
2875
+ case 1:
2876
+ return "OK"
2877
+ case 2:
2878
+ return "RFID: Requested operation is already done"
2879
+ case 139272:
2880
+ return "Notification - MRZ: Document type unknown"
2881
+ case 139273:
2882
+ return "Notification - MRZ: Issuing state syntax error"
2883
+ case 139274:
2884
+ return "Notification - MRZ: Name is void"
2885
+ case 139277:
2886
+ return "Notification - MRZ: Number incorrect checksum"
2887
+ case 139278:
2888
+ return "Notification - MRZ: Nationality syntax error"
2889
+ case 139279:
2890
+ return "Notification - MRZ: DOB syntax error"
2891
+ case 139280:
2892
+ return "Notification - MRZ: DOB error"
2893
+ case 139281:
2894
+ return "Notification - MRZ: DOB incorrect checksum"
2895
+ case 139282:
2896
+ return "Notification - MRZ: Sex incorrect"
2897
+ case 139283:
2898
+ return "Notification - MRZ: DOE syntax error"
2899
+ case 139284:
2900
+ return "Notification - MRZ: DOE error"
2901
+ case 139285:
2902
+ return "Notification - MRZ: DOE incorrect checksum"
2903
+ case 139286:
2904
+ return "Notification - MRZ: Optional data incorrect checksum"
2905
+ case 139287:
2906
+ return "Notification - MRZ: Incorrect checksum"
2907
+ case 139288:
2908
+ return "Notification - MRZ: Incorrect"
2776
2909
  default:
2777
2910
  return value
2778
2911
  }
@@ -2872,6 +3005,8 @@ const eRPRM_ResultType = {
2872
3005
  RPRM_RESULT_TYPE_DATABASE_CHECK: 28,
2873
3006
  RPRM_RESULT_TYPE_FINGERPRINT_TEMPLATE_ISO: 29,
2874
3007
  RPRM_RESULT_TYPE_INPUT_IMAGE_QUALITY: 30,
3008
+ RPRM_RESULT_TYPE_IMAGES: 37,
3009
+ RPRM_RESULT_TYPE_HOLO_PARAMS: 47,
2875
3010
  RPRM_RESULT_TYPE_DOCUMENT_POSITION: 85,
2876
3011
  RPRM_RESULT_TYPE_CUSTOM: 100,
2877
3012
  RFID_RESULT_TYPE_RFID_RAW_DATA: 101,
@@ -2881,6 +3016,7 @@ const eRPRM_ResultType = {
2881
3016
  RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: 105,
2882
3017
  RPRM_RESULT_TYPE_BARCODE_POSITION: 62,
2883
3018
  RPRM_RESULT_TYPE_MRZ_POSITION: 61,
3019
+ RPRM_RESULT_TYPE_STATUS: 33,
2884
3020
  }
2885
3021
 
2886
3022
  const eRPRM_SecurityFeatureType = {
@@ -3515,6 +3651,14 @@ const eVisualFieldType = {
3515
3651
  FT_DLCLASSCODE_D3_TO: 635,
3516
3652
  FT_DLCLASSCODE_D3_NOTES: 636,
3517
3653
  FT_ALT_DATE_OF_EXPIRY: 637,
3654
+ FT_DLCLASSCODE_CD_FROM: 638,
3655
+ FT_DLCLASSCODE_CD_TO: 639,
3656
+ FT_DLCLASSCODE_CD_NOTES: 640,
3657
+ FT_PAYMENT_PERIOD_TO: 643,
3658
+ FT_PAYMENT_PERIOD_FROM: 642,
3659
+ FT_ISSUER_IDENTIFICATION_NUMBER: 641,
3660
+ FT_VACCINATION_CERTIFICATE_IDENTIFIER: 644,
3661
+ FT_FIRST_NAME: 645,
3518
3662
 
3519
3663
  getTranslation: function (value) {
3520
3664
  switch (value) {
@@ -3667,9 +3811,9 @@ const eVisualFieldType = {
3667
3811
  case 73:
3668
3812
  return "Issuing authority code"
3669
3813
  case 74:
3670
- return "Area of birthplace"
3814
+ return "Country/region of birth"
3671
3815
  case 75:
3672
- return "State code of birthplace"
3816
+ return "Birth state code"
3673
3817
  case 76:
3674
3818
  return "Street"
3675
3819
  case 77:
@@ -3943,15 +4087,15 @@ const eVisualFieldType = {
3943
4087
  case 259:
3944
4088
  return "Residence permit 2"
3945
4089
  case 260:
3946
- return "Place of Birth: Street"
4090
+ return "Place of birth: Street"
3947
4091
  case 261:
3948
- return "Place of Birth: City"
4092
+ return "Place of birth: City"
3949
4093
  case 262:
3950
- return "Place of Birth: State"
4094
+ return "Place of birth: State"
3951
4095
  case 263:
3952
- return "Place of Birth: Country"
4096
+ return "Place of birth: Country"
3953
4097
  case 264:
3954
- return "Place of Birth: Postal code"
4098
+ return "Place of birth: Postal code"
3955
4099
  case 265:
3956
4100
  return "CDL Class"
3957
4101
  case 266:
@@ -4692,6 +4836,22 @@ const eVisualFieldType = {
4692
4836
  return "DL category D3 codes"
4693
4837
  case 637:
4694
4838
  return "Alternative date of expiry"
4839
+ case 638:
4840
+ return "DL category CD valid from"
4841
+ case 639:
4842
+ return "DL category CD valid to"
4843
+ case 640:
4844
+ return "DL category CD codes"
4845
+ case 641:
4846
+ return "Issuer identification number"
4847
+ case 642:
4848
+ return "Payment period from"
4849
+ case 643:
4850
+ return "Payment period to"
4851
+ case 644:
4852
+ return "Unique vaccination certificate identifier"
4853
+ case 645:
4854
+ return "First name"
4695
4855
  default:
4696
4856
  return value
4697
4857
  }
@@ -5328,6 +5488,7 @@ const Enum = {
5328
5488
 
5329
5489
  const DocumentReader = {}
5330
5490
 
5491
+ DocumentReader.initializeReaderAutomatically = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderAutomatically"])
5331
5492
  DocumentReader.getAPIVersion = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAPIVersion"])
5332
5493
  DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAvailableScenarios"])
5333
5494
  DocumentReader.isRFIDAvailableForUse = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["isRFIDAvailableForUse"])
@@ -5380,6 +5541,7 @@ DocumentReader.setRfidSessionStatus = (status, successCallback, errorCallback) =
5380
5541
  DocumentReader.providePACertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["providePACertificates", certificates])
5381
5542
  DocumentReader.provideTACertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["provideTACertificates", certificates])
5382
5543
  DocumentReader.provideTASignature = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["provideTASignature", certificates])
5544
+ DocumentReader.parseCoreResults = (json, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["parseCoreResults", json])
5383
5545
  DocumentReader.initializeReaderWithDatabasePath = (license, path, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderWithDatabasePath", license, path])
5384
5546
  DocumentReader.initializeReaderWithDatabase = (license, db, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderWithDatabase", license, db])
5385
5547
  DocumentReader.recognizeImageFrame = (image, params, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImageFrame", image, params])