@regulaforensics/vp-frontend-face-components 1.4.0 → 2.0.1

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.
Files changed (214) hide show
  1. package/README.md +60 -23
  2. package/dist/main.js +1 -1
  3. package/dist/main.js.LICENSE.txt +28 -19
  4. package/lib/common/Button.d.ts +2 -2
  5. package/lib/common/Icon.d.ts +58 -1
  6. package/lib/common/Message.d.ts +5 -4
  7. package/lib/common/NoGlareIconLivenessDetection.d.ts +5 -0
  8. package/lib/common/NoSmilingIconLivenessDetection.d.ts +5 -0
  9. package/lib/common/PortraitOrientationOnlyIcon.d.ts +6 -0
  10. package/lib/common/RegulaLogoLivenessDetection.d.ts +5 -0
  11. package/lib/components/ButtonFaceLiveness.d.ts +7 -0
  12. package/lib/components/CameraCapture.d.ts +9 -0
  13. package/lib/components/CameraSnapshot.d.ts +2 -0
  14. package/lib/components/CameraSnapshotFileCapture.d.ts +10 -0
  15. package/lib/components/DocumentCapture.d.ts +11 -0
  16. package/lib/components/DocumentContainer.d.ts +11 -0
  17. package/lib/components/DocumentReader.d.ts +2 -0
  18. package/lib/components/DocumentReaderFileCapture.d.ts +12 -0
  19. package/lib/components/DocumentReaderLayout.d.ts +22 -0
  20. package/lib/components/DocumentReaderStartScreen.d.ts +10 -0
  21. package/lib/components/ErrorBoundary.d.ts +10 -9
  22. package/lib/components/FaceCapture.d.ts +17 -9
  23. package/lib/components/FaceFullScreenOverlay.d.ts +2 -3
  24. package/lib/components/FaceHintAnimaition.d.ts +16 -0
  25. package/lib/components/FaceLayout.d.ts +16 -12
  26. package/lib/components/InfoScreen.d.ts +2 -1
  27. package/lib/components/InfoScreenFaceLiveness.d.ts +12 -0
  28. package/lib/components/InstructionVideoScreen.d.ts +9 -0
  29. package/lib/components/ProcessScreenFaceLiveness.d.ts +6 -0
  30. package/lib/components/RetryScreenFaceLiveness.d.ts +7 -0
  31. package/lib/components/SectorAnimationSvg.d.ts +11 -0
  32. package/lib/components/WebCamera.d.ts +8 -9
  33. package/lib/constants.d.ts +471 -169
  34. package/lib/contexts/DocumentAttributesContext.d.ts +25 -0
  35. package/lib/contexts/DocumentSDKContext.d.ts +8 -0
  36. package/lib/contexts/FaceAttributesContext.d.ts +14 -12
  37. package/lib/hoc/withDocumentAttributesContext.d.ts +4 -0
  38. package/lib/hoc/withDocumentSDKContext.d.ts +3 -0
  39. package/lib/hoc/withFaceAttributesContext.d.ts +2 -2
  40. package/lib/hoc/withLocalize.d.ts +6 -5
  41. package/lib/hooks/useDocumentReaderSeries.d.ts +19 -0
  42. package/lib/hooks/useDocumentReaderSingle.d.ts +14 -0
  43. package/lib/hooks/useFaceLiveness.d.ts +34 -26
  44. package/lib/hooks/useImageInputParam.d.ts +7 -0
  45. package/lib/hooks/useStateCallback.d.ts +1 -0
  46. package/lib/hooks/useStream.d.ts +3 -9
  47. package/lib/i18n/dictionaries/_dictionaries.d.ts +2212 -1988
  48. package/lib/index-document.d.ts +4 -0
  49. package/lib/media-resources/resourcesBase64.d.ts +7 -0
  50. package/lib/models/CameraModel.d.ts +2 -2
  51. package/lib/models/CustomError.d.ts +7 -0
  52. package/lib/models/DocReaderWebclient/ext/authenticity/authenticity.d.ts +32 -0
  53. package/lib/models/DocReaderWebclient/ext/authenticity/fiber.d.ts +7 -0
  54. package/lib/models/DocReaderWebclient/ext/authenticity/ident.d.ts +8 -0
  55. package/lib/models/DocReaderWebclient/ext/authenticity/image-ident.d.ts +7 -0
  56. package/lib/models/DocReaderWebclient/ext/authenticity/index.d.ts +5 -0
  57. package/lib/models/DocReaderWebclient/ext/authenticity/ocr-security-text.d.ts +7 -0
  58. package/lib/models/DocReaderWebclient/ext/authenticity/security-feature.d.ts +8 -0
  59. package/lib/models/DocReaderWebclient/ext/images.d.ts +16 -0
  60. package/lib/models/DocReaderWebclient/ext/index.d.ts +6 -0
  61. package/lib/models/DocReaderWebclient/ext/process-request-image.d.ts +5 -0
  62. package/lib/models/DocReaderWebclient/ext/process-request.d.ts +38 -0
  63. package/lib/models/DocReaderWebclient/ext/process-response.d.ts +36 -0
  64. package/lib/models/DocReaderWebclient/ext/text-field.d.ts +40 -0
  65. package/lib/models/DocReaderWebclient/ext/text.d.ts +14 -0
  66. package/lib/models/DocReaderWebclient/models/area-array.d.ts +32 -0
  67. package/lib/models/DocReaderWebclient/models/area-container.d.ts +38 -0
  68. package/lib/models/DocReaderWebclient/models/authenticity-check-list.d.ts +31 -0
  69. package/lib/models/DocReaderWebclient/models/authenticity-check-result-item.d.ts +38 -0
  70. package/lib/models/DocReaderWebclient/models/authenticity-check-result.d.ts +43 -0
  71. package/lib/models/DocReaderWebclient/models/authenticity-result-all-of.d.ts +25 -0
  72. package/lib/models/DocReaderWebclient/models/authenticity-result-type.d.ts +33 -0
  73. package/lib/models/DocReaderWebclient/models/authenticity-result.d.ts +18 -0
  74. package/lib/models/DocReaderWebclient/models/bc-pdf417-info.d.ts +54 -0
  75. package/lib/models/DocReaderWebclient/models/bc-roidetect.d.ts +42 -0
  76. package/lib/models/DocReaderWebclient/models/check-diagnose.d.ts +98 -0
  77. package/lib/models/DocReaderWebclient/models/check-result.d.ts +30 -0
  78. package/lib/models/DocReaderWebclient/models/chosen-document-type-result-all-of.d.ts +25 -0
  79. package/lib/models/DocReaderWebclient/models/chosen-document-type-result.d.ts +19 -0
  80. package/lib/models/DocReaderWebclient/models/chosen-document-type.d.ts +74 -0
  81. package/lib/models/DocReaderWebclient/models/container-list.d.ts +45 -0
  82. package/lib/models/DocReaderWebclient/models/critical.d.ts +26 -0
  83. package/lib/models/DocReaderWebclient/models/cross-source-value-comparison.d.ts +38 -0
  84. package/lib/models/DocReaderWebclient/models/data-module.d.ts +48 -0
  85. package/lib/models/DocReaderWebclient/models/details-optical.d.ts +67 -0
  86. package/lib/models/DocReaderWebclient/models/details-rfid.d.ts +61 -0
  87. package/lib/models/DocReaderWebclient/models/device-info.d.ts +54 -0
  88. package/lib/models/DocReaderWebclient/models/doc-bar-code-info-all-of.d.ts +31 -0
  89. package/lib/models/DocReaderWebclient/models/doc-bar-code-info.d.ts +19 -0
  90. package/lib/models/DocReaderWebclient/models/doc-visual-extended-field.d.ts +70 -0
  91. package/lib/models/DocReaderWebclient/models/doc-visual-extended-info.d.ts +25 -0
  92. package/lib/models/DocReaderWebclient/models/document-format.d.ts +70 -0
  93. package/lib/models/DocReaderWebclient/models/document-image-result-all-of.d.ts +25 -0
  94. package/lib/models/DocReaderWebclient/models/document-image-result.d.ts +18 -0
  95. package/lib/models/DocReaderWebclient/models/document-image.d.ts +24 -0
  96. package/lib/models/DocReaderWebclient/models/document-position-result-all-of.d.ts +25 -0
  97. package/lib/models/DocReaderWebclient/models/document-position-result.d.ts +19 -0
  98. package/lib/models/DocReaderWebclient/models/document-position.d.ts +80 -0
  99. package/lib/models/DocReaderWebclient/models/document-type-recognition-result.d.ts +30 -0
  100. package/lib/models/DocReaderWebclient/models/document-type.d.ts +246 -0
  101. package/lib/models/DocReaderWebclient/models/document-types-candidates-list.d.ts +32 -0
  102. package/lib/models/DocReaderWebclient/models/document-types-candidates-result-all-of.d.ts +25 -0
  103. package/lib/models/DocReaderWebclient/models/document-types-candidates-result.d.ts +18 -0
  104. package/lib/models/DocReaderWebclient/models/document-types-candidates.d.ts +32 -0
  105. package/lib/models/DocReaderWebclient/models/encrypted-rclresult-all-of.d.ts +24 -0
  106. package/lib/models/DocReaderWebclient/models/encrypted-rclresult.d.ts +18 -0
  107. package/lib/models/DocReaderWebclient/models/fdsidlist.d.ts +80 -0
  108. package/lib/models/DocReaderWebclient/models/fiber-result-all-of.d.ts +74 -0
  109. package/lib/models/DocReaderWebclient/models/fiber-result.d.ts +18 -0
  110. package/lib/models/DocReaderWebclient/models/graphic-field-type.d.ts +118 -0
  111. package/lib/models/DocReaderWebclient/models/graphic-field.d.ts +63 -0
  112. package/lib/models/DocReaderWebclient/models/graphic-fields-list.d.ts +25 -0
  113. package/lib/models/DocReaderWebclient/models/graphics-result-all-of.d.ts +25 -0
  114. package/lib/models/DocReaderWebclient/models/graphics-result.d.ts +19 -0
  115. package/lib/models/DocReaderWebclient/models/ident-result-all-of.d.ts +65 -0
  116. package/lib/models/DocReaderWebclient/models/ident-result.d.ts +18 -0
  117. package/lib/models/DocReaderWebclient/models/image-data.d.ts +24 -0
  118. package/lib/models/DocReaderWebclient/models/image-qa.d.ts +54 -0
  119. package/lib/models/DocReaderWebclient/models/image-quality-check-list.d.ts +32 -0
  120. package/lib/models/DocReaderWebclient/models/image-quality-check-type.d.ts +50 -0
  121. package/lib/models/DocReaderWebclient/models/image-quality-check.d.ts +64 -0
  122. package/lib/models/DocReaderWebclient/models/image-quality-result-all-of.d.ts +25 -0
  123. package/lib/models/DocReaderWebclient/models/image-quality-result.d.ts +18 -0
  124. package/lib/models/DocReaderWebclient/models/images-available-source.d.ts +31 -0
  125. package/lib/models/DocReaderWebclient/models/images-field-value.d.ts +70 -0
  126. package/lib/models/DocReaderWebclient/models/images-field.d.ts +38 -0
  127. package/lib/models/DocReaderWebclient/models/images-result-all-of.d.ts +25 -0
  128. package/lib/models/DocReaderWebclient/models/images-result.d.ts +18 -0
  129. package/lib/models/DocReaderWebclient/models/images.d.ts +32 -0
  130. package/lib/models/DocReaderWebclient/models/index.d.ts +123 -0
  131. package/lib/models/DocReaderWebclient/models/lcid.d.ts +582 -0
  132. package/lib/models/DocReaderWebclient/models/lexical-analysis-result-all-of.d.ts +25 -0
  133. package/lib/models/DocReaderWebclient/models/lexical-analysis-result.d.ts +19 -0
  134. package/lib/models/DocReaderWebclient/models/license-result-all-of.d.ts +24 -0
  135. package/lib/models/DocReaderWebclient/models/license-result.d.ts +18 -0
  136. package/lib/models/DocReaderWebclient/models/light.d.ts +34 -0
  137. package/lib/models/DocReaderWebclient/models/list-verified-fields.d.ts +25 -0
  138. package/lib/models/DocReaderWebclient/models/log-level.d.ts +23 -0
  139. package/lib/models/DocReaderWebclient/models/measure-system.d.ts +26 -0
  140. package/lib/models/DocReaderWebclient/models/mrzformat.d.ts +24 -0
  141. package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result-all-of.d.ts +81 -0
  142. package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result.d.ts +18 -0
  143. package/lib/models/DocReaderWebclient/models/one-candidate.d.ts +74 -0
  144. package/lib/models/DocReaderWebclient/models/original-symbol.d.ts +37 -0
  145. package/lib/models/DocReaderWebclient/models/parray-field.d.ts +81 -0
  146. package/lib/models/DocReaderWebclient/models/per-document-config.d.ts +30 -0
  147. package/lib/models/DocReaderWebclient/models/photo-ident-result-all-of.d.ts +76 -0
  148. package/lib/models/DocReaderWebclient/models/photo-ident-result.d.ts +18 -0
  149. package/lib/models/DocReaderWebclient/models/point-array.d.ts +25 -0
  150. package/lib/models/DocReaderWebclient/models/point.d.ts +30 -0
  151. package/lib/models/DocReaderWebclient/models/points-container.d.ts +31 -0
  152. package/lib/models/DocReaderWebclient/models/process-params.d.ts +254 -0
  153. package/lib/models/DocReaderWebclient/models/process-request-image.d.ts +38 -0
  154. package/lib/models/DocReaderWebclient/models/process-request.d.ts +60 -0
  155. package/lib/models/DocReaderWebclient/models/process-response.d.ts +66 -0
  156. package/lib/models/DocReaderWebclient/models/process-system-info.d.ts +30 -0
  157. package/lib/models/DocReaderWebclient/models/processing-status.d.ts +30 -0
  158. package/lib/models/DocReaderWebclient/models/raw-image-container-list.d.ts +31 -0
  159. package/lib/models/DocReaderWebclient/models/rectangle-coordinates.d.ts +42 -0
  160. package/lib/models/DocReaderWebclient/models/result-item.d.ts +48 -0
  161. package/lib/models/DocReaderWebclient/models/result.d.ts +98 -0
  162. package/lib/models/DocReaderWebclient/models/rfid-location.d.ts +30 -0
  163. package/lib/models/DocReaderWebclient/models/rfid-origin.d.ts +42 -0
  164. package/lib/models/DocReaderWebclient/models/scenario.d.ts +36 -0
  165. package/lib/models/DocReaderWebclient/models/security-feature-result-all-of.d.ts +59 -0
  166. package/lib/models/DocReaderWebclient/models/security-feature-result.d.ts +18 -0
  167. package/lib/models/DocReaderWebclient/models/security-feature-type.d.ts +49 -0
  168. package/lib/models/DocReaderWebclient/models/source-validity.d.ts +32 -0
  169. package/lib/models/DocReaderWebclient/models/source.d.ts +23 -0
  170. package/lib/models/DocReaderWebclient/models/status-result-all-of.d.ts +25 -0
  171. package/lib/models/DocReaderWebclient/models/status-result.d.ts +18 -0
  172. package/lib/models/DocReaderWebclient/models/status.d.ts +63 -0
  173. package/lib/models/DocReaderWebclient/models/string-recognition-result.d.ts +25 -0
  174. package/lib/models/DocReaderWebclient/models/symbol-candidate.d.ts +30 -0
  175. package/lib/models/DocReaderWebclient/models/symbol-recognition-result.d.ts +32 -0
  176. package/lib/models/DocReaderWebclient/models/text-available-source.d.ts +38 -0
  177. package/lib/models/DocReaderWebclient/models/text-data-result-all-of.d.ts +25 -0
  178. package/lib/models/DocReaderWebclient/models/text-data-result.d.ts +19 -0
  179. package/lib/models/DocReaderWebclient/models/text-field-type.d.ts +2386 -0
  180. package/lib/models/DocReaderWebclient/models/text-field-value.d.ts +70 -0
  181. package/lib/models/DocReaderWebclient/models/text-field.d.ts +84 -0
  182. package/lib/models/DocReaderWebclient/models/text-post-processing.d.ts +22 -0
  183. package/lib/models/DocReaderWebclient/models/text-result-all-of.d.ts +25 -0
  184. package/lib/models/DocReaderWebclient/models/text-result.d.ts +18 -0
  185. package/lib/models/DocReaderWebclient/models/text.d.ts +51 -0
  186. package/lib/models/DocReaderWebclient/models/transaction-info.d.ts +42 -0
  187. package/lib/models/DocReaderWebclient/models/verification-result.d.ts +38 -0
  188. package/lib/models/DocReaderWebclient/models/verified-field-map.d.ts +63 -0
  189. package/lib/models/DocReaderWebclient/models/visibility.d.ts +23 -0
  190. package/lib/services/DebugService.d.ts +4 -0
  191. package/lib/services/DeviceOrientationService.d.ts +18 -0
  192. package/lib/services/DocumentReaderProcessor.d.ts +43 -0
  193. package/lib/services/DocumentReaderService.d.ts +30 -32
  194. package/lib/services/FaceLivenessService.d.ts +43 -19
  195. package/lib/services/FaceService.d.ts +36 -8
  196. package/lib/services/StreamRecorderService.d.ts +24 -0
  197. package/lib/types.d.ts +261 -119
  198. package/lib/utils.d.ts +17 -52
  199. package/lib/web-components/CameraSnapshot.d.ts +14 -0
  200. package/lib/web-components/DocumentReader.d.ts +14 -0
  201. package/lib/web-components/FaceDetection.d.ts +3 -3
  202. package/lib/web-components/FaceLiveness.d.ts +7 -4
  203. package/lib/web-components/FullScreenContainer.d.ts +1 -1
  204. package/package.json +59 -62
  205. package/lib/common/InstructionIconFaceDetection.d.ts +0 -5
  206. package/lib/common/InstructionIconFaceLiveness.d.ts +0 -5
  207. package/lib/common/NoGlareIcon.d.ts +0 -5
  208. package/lib/common/NoSmilingIcon.d.ts +0 -5
  209. package/lib/components/InstructionScreen.d.ts +0 -9
  210. package/lib/components/RetryScreen.d.ts +0 -7
  211. package/lib/hooks/useDebounce.d.ts +0 -2
  212. package/lib/hooks/useInterval.d.ts +0 -3
  213. package/lib/services/WasmFeatureDetectService.d.ts +0 -4
  214. package/lib/web-components.d.ts +0 -47
@@ -0,0 +1,254 @@
1
+ /**
2
+ * Regula Document Reader Web API
3
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4
+ *
5
+ * The version of the OpenAPI document: 6.5.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AuthenticityResultType } from './authenticity-result-type';
13
+ import { DocumentFormat } from './document-format';
14
+ import { DocumentType } from './document-type';
15
+ import { ImageQA } from './image-qa';
16
+ import { LogLevel } from './log-level';
17
+ import { MRZFormat } from './mrzformat';
18
+ import { MeasureSystem } from './measure-system';
19
+ import { PerDocumentConfig } from './per-document-config';
20
+ import { Result } from './result';
21
+ import { Scenario } from './scenario';
22
+ import { TextFieldType } from './text-field-type';
23
+ import { TextPostProcessing } from './text-post-processing';
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProcessParams
28
+ */
29
+ export interface ProcessParams {
30
+ /**
31
+ *
32
+ * @type {Scenario}
33
+ * @memberof ProcessParams
34
+ */
35
+ scenario: Scenario;
36
+ /**
37
+ * Types of results to return in response. See \'Result\' enum for available options
38
+ * @type {Array<Result>}
39
+ * @memberof ProcessParams
40
+ */
41
+ resultTypeOutput?: Array<Result>;
42
+ /**
43
+ * Enable this option if the image you provide contains double page spread of the passport and you want to process both pages in one go. It makes sense to use it for documents that have meaningful information on both pages, like Russian domestic passport, or some others. Disabled by default.
44
+ * @type {boolean}
45
+ * @memberof ProcessParams
46
+ */
47
+ doublePageSpread?: boolean;
48
+ /**
49
+ * When enabled together with \"doublePageSpread\" and there is a passport with two pages spread in the image, pages will be cropped, straightened and aligned together, as if the document was captured on a flatbed scanner. Disabled by default.
50
+ * @type {boolean}
51
+ * @memberof ProcessParams
52
+ */
53
+ generateDoublePageSpreadImage?: boolean;
54
+ /**
55
+ * List of text field types to extract. If empty, all text fields from template will be extracted. Narrowing the list can shorten processing time. Empty by default.
56
+ * @type {Array<TextFieldType>}
57
+ * @memberof ProcessParams
58
+ */
59
+ fieldTypesFilter?: Array<TextFieldType>;
60
+ /**
61
+ * This option allows you to set dates format so that solution will return dates in this format. For example, if you supply \'MM/dd/yyyy\', and document have printed date \'09 JUL 2020\' for the date os issue, you will get \'07/09/2020\' as a result. By default it is set to system locale default (where the service is running).
62
+ * @type {string}
63
+ * @memberof ProcessParams
64
+ */
65
+ dateFormat?: string;
66
+ /**
67
+ *
68
+ * @type {MeasureSystem}
69
+ * @memberof ProcessParams
70
+ */
71
+ measureSystem?: MeasureSystem;
72
+ /**
73
+ * This option controls maximum resolution in dpi of output images. Resolution will remain original in case 0 is supplied. By default is set to return images in response with resolution not greater than 300 dpi.
74
+ * @type {number}
75
+ * @memberof ProcessParams
76
+ */
77
+ imageDpiOutMax?: number;
78
+ /**
79
+ * This option can be enabled if you know for sure that the image you provide contains already cropped document by its edges. This was designed to process on the server side images captured and cropped on mobile. Disabled by default.
80
+ * @type {boolean}
81
+ * @memberof ProcessParams
82
+ */
83
+ alreadyCropped?: boolean;
84
+ /**
85
+ * This option allows passing custom processing parameters that can be implemented in future without changing API.
86
+ * @type {{ [key: string]: object; }}
87
+ * @memberof ProcessParams
88
+ */
89
+ customParams?: {
90
+ [key: string]: object;
91
+ };
92
+ /**
93
+ * This option allows setting additional custom configuration per document type. If recognized document has ID specified in config, processing adjusts according to designated configuration.
94
+ * @type {Array<PerDocumentConfig>}
95
+ * @memberof ProcessParams
96
+ */
97
+ config?: Array<PerDocumentConfig>;
98
+ /**
99
+ * When enabled, results will contain transaction processing log. Disabled by default
100
+ * @type {boolean}
101
+ * @memberof ProcessParams
102
+ */
103
+ log?: boolean;
104
+ /**
105
+ *
106
+ * @type {LogLevel}
107
+ * @memberof ProcessParams
108
+ */
109
+ logLevel?: LogLevel;
110
+ /**
111
+ * Force use of specific template ID and skip document type identification step.
112
+ * @type {number}
113
+ * @memberof ProcessParams
114
+ */
115
+ forceDocID?: number;
116
+ /**
117
+ * When disabled, text field OCR will be done as is and then the recognized value will be matched to the field mask for validity. If enabled, we are trying to read a field value with maximum efforts to match the mask and provide a correctly formatted value, making assumptions based on the provided field mask in the template. Enabled by default.
118
+ * @type {boolean}
119
+ * @memberof ProcessParams
120
+ */
121
+ matchTextFieldMask?: boolean;
122
+ /**
123
+ * When enabled, shorten the list of candidates to process during document detection in a single image process mode. Reduces processing time for specific backgrounds. Enabled by default.
124
+ * @type {boolean}
125
+ * @memberof ProcessParams
126
+ */
127
+ fastDocDetect?: boolean;
128
+ /**
129
+ * When enabled, fail OCR field validity, if there is a glare over the text field on the image. Disabled by default.
130
+ * @type {boolean}
131
+ * @memberof ProcessParams
132
+ */
133
+ updateOCRValidityByGlare?: boolean;
134
+ /**
135
+ * When enabled, each field in template will be checked for value presence and if the field is marked as required, but has no value, it will have \'error\' in validity status. Disabled by default.
136
+ * @type {boolean}
137
+ * @memberof ProcessParams
138
+ */
139
+ checkRequiredTextFields?: boolean;
140
+ /**
141
+ * When enabled, returns cropped barcode images for unknown documents. Disabled by default.
142
+ * @type {boolean}
143
+ * @memberof ProcessParams
144
+ */
145
+ returnCroppedBarcode?: boolean;
146
+ /**
147
+ *
148
+ * @type {ImageQA}
149
+ * @memberof ProcessParams
150
+ */
151
+ imageQa?: ImageQA;
152
+ /**
153
+ * When enabled, image quality checks status affects document optical and overall status. Disabled by default.
154
+ * @type {boolean}
155
+ * @memberof ProcessParams
156
+ */
157
+ respectImageQuality?: boolean;
158
+ /**
159
+ *
160
+ * @type {DocumentFormat}
161
+ * @memberof ProcessParams
162
+ */
163
+ forceDocFormat?: DocumentFormat;
164
+ /**
165
+ * When enabled, no graphic fields will be cropped from document image. Disabled by default.
166
+ * @type {boolean}
167
+ * @memberof ProcessParams
168
+ */
169
+ noGraphics?: boolean;
170
+ /**
171
+ * Specifies minimal area of the image that document should cover to be treated as candidate when locating. Value should be in range from 0 to 1, where 1 is when document should fully cover the image.
172
+ * @type {number}
173
+ * @memberof ProcessParams
174
+ */
175
+ documentAreaMin?: number;
176
+ /**
177
+ * When enabled, all personal data will be forcibly removed from the logs. Disabled by default.
178
+ * @type {boolean}
179
+ * @memberof ProcessParams
180
+ */
181
+ depersonalizeLog?: boolean;
182
+ /**
183
+ * This option allows locating and cropping multiple documents from one image if enabled. Disabled by default.
184
+ * @type {boolean}
185
+ * @memberof ProcessParams
186
+ */
187
+ multiDocOnImage?: boolean;
188
+ /**
189
+ * This option allows shifting the date of expiry into the future or past for number of months specified. This is useful, for example, in some cases when document might be still valid for some period after original expiration date to prevent negative validity status for such documents. Or by shifting the date to the past will set negative validity for the documents that is about to expire in a specified number of months. 0 by default
190
+ * @type {number}
191
+ * @memberof ProcessParams
192
+ */
193
+ shiftExpiryDate?: number;
194
+ /**
195
+ * This options allows specifying the minimal age in years of the document holder for the document to be considered valid.
196
+ * @type {number}
197
+ * @memberof ProcessParams
198
+ */
199
+ minimalHolderAge?: number;
200
+ /**
201
+ * When enabled, returns input images in output. Disabled by default.
202
+ * @type {boolean}
203
+ * @memberof ProcessParams
204
+ */
205
+ returnUncroppedImage?: boolean;
206
+ /**
207
+ * This option allows limiting MRZ formats to be recognized by specifying them in array.
208
+ * @type {Array<MRZFormat>}
209
+ * @memberof ProcessParams
210
+ */
211
+ mrzFormatsFilter?: Array<MRZFormat>;
212
+ /**
213
+ * When enabled, make sure that in series processing MRZ is located fully inside the result document image, if present on the document. Enabling this option may add extra processing time, by disabling optimizations, but allows more stability in output image quality. Disabled by default.
214
+ * @type {boolean}
215
+ * @memberof ProcessParams
216
+ */
217
+ forceReadMrzBeforeLocate?: boolean;
218
+ /**
219
+ * This option can be disabled to stop parsing after barcode is read. Enabled by default.
220
+ * @type {boolean}
221
+ * @memberof ProcessParams
222
+ */
223
+ parseBarcodes?: boolean;
224
+ /**
225
+ *
226
+ * @type {TextPostProcessing}
227
+ * @memberof ProcessParams
228
+ */
229
+ convertCase?: TextPostProcessing;
230
+ /**
231
+ * When enabled, the Surname and GivenNames field will be divided into ft_First_Name, ft_Second_Name, ft_Third_Name, ft_Fourth_Name, ft_Last_Name fields. Disabled by default.
232
+ * @type {boolean}
233
+ * @memberof ProcessParams
234
+ */
235
+ splitNames?: boolean;
236
+ /**
237
+ * When enabled, OCR of perforated fields in the document template will not be performed. Disabled by default.
238
+ * @type {boolean}
239
+ * @memberof ProcessParams
240
+ */
241
+ disablePerforationOCR?: boolean;
242
+ /**
243
+ * List of specific eligible document types from DocumentType enum to recognize from. You may, for example, specify only passports to be recognized by setting this property. Empty by default.
244
+ * @type {Array<DocumentType>}
245
+ * @memberof ProcessParams
246
+ */
247
+ documentGroupFilter?: Array<DocumentType>;
248
+ /**
249
+ * Authenticity checks that should be performed regardless of the document type. The available checks are listed in the eRPRM_Authenticity enum. Note that only supported by your license checks can be added.
250
+ * @type {Array<AuthenticityResultType>}
251
+ * @memberof ProcessParams
252
+ */
253
+ processAuth?: Array<AuthenticityResultType>;
254
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Regula Document Reader Web API
3
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4
+ *
5
+ * The version of the OpenAPI document: 6.5.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ImageData } from './image-data';
13
+ import { Light } from './light';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ProcessRequestImage
18
+ */
19
+ export interface ProcessRequestImage {
20
+ /**
21
+ *
22
+ * @type {ImageData}
23
+ * @memberof ProcessRequestImage
24
+ */
25
+ ImageData: ImageData;
26
+ /**
27
+ *
28
+ * @type {Light}
29
+ * @memberof ProcessRequestImage
30
+ */
31
+ light?: Light;
32
+ /**
33
+ * page/image number
34
+ * @type {number}
35
+ * @memberof ProcessRequestImage
36
+ */
37
+ page_idx?: number;
38
+ }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Regula Document Reader Web API
3
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4
+ *
5
+ * The version of the OpenAPI document: 6.5.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ContainerList } from './container-list';
13
+ import { ProcessParams } from './process-params';
14
+ import { ProcessRequestImage } from './process-request-image';
15
+ import { ProcessSystemInfo } from './process-system-info';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProcessRequest
20
+ */
21
+ export interface ProcessRequest {
22
+ /**
23
+ * session id
24
+ * @type {string}
25
+ * @memberof ProcessRequest
26
+ */
27
+ tag?: string;
28
+ /**
29
+ *
30
+ * @type {ProcessParams}
31
+ * @memberof ProcessRequest
32
+ */
33
+ processParam: ProcessParams;
34
+ /**
35
+ *
36
+ * @type {Array<ProcessRequestImage>}
37
+ * @memberof ProcessRequest
38
+ */
39
+ List?: Array<ProcessRequestImage>;
40
+ /**
41
+ *
42
+ * @type {ContainerList}
43
+ * @memberof ProcessRequest
44
+ */
45
+ ContainerList?: ContainerList;
46
+ /**
47
+ *
48
+ * @type {ProcessSystemInfo}
49
+ * @memberof ProcessRequest
50
+ */
51
+ systemInfo?: ProcessSystemInfo;
52
+ /**
53
+ * Free-form object to be included in response. Must be object, not list or simple value. Do not affect document processing. Use it freely to pass your app params. Stored in process logs.
54
+ * @type {{ [key: string]: object; }}
55
+ * @memberof ProcessRequest
56
+ */
57
+ passBackObject?: {
58
+ [key: string]: object;
59
+ };
60
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Regula Document Reader Web API
3
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4
+ *
5
+ * The version of the OpenAPI document: 6.5.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ContainerList } from './container-list';
13
+ import { ProcessingStatus } from './processing-status';
14
+ import { RfidLocation } from './rfid-location';
15
+ import { TransactionInfo } from './transaction-info';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProcessResponse
20
+ */
21
+ export interface ProcessResponse {
22
+ /**
23
+ *
24
+ * @type {RfidLocation}
25
+ * @memberof ProcessResponse
26
+ */
27
+ ChipPage?: RfidLocation;
28
+ /**
29
+ *
30
+ * @type {ProcessingStatus}
31
+ * @memberof ProcessResponse
32
+ */
33
+ ProcessingFinished: ProcessingStatus;
34
+ /**
35
+ *
36
+ * @type {ContainerList}
37
+ * @memberof ProcessResponse
38
+ */
39
+ ContainerList: ContainerList;
40
+ /**
41
+ *
42
+ * @type {TransactionInfo}
43
+ * @memberof ProcessResponse
44
+ */
45
+ TransactionInfo: TransactionInfo;
46
+ /**
47
+ * Base64 encoded transaction processing log
48
+ * @type {string}
49
+ * @memberof ProcessResponse
50
+ */
51
+ log?: string;
52
+ /**
53
+ * Free-form object provided in request. See passBackObject property of ProcessRequest.
54
+ * @type {{ [key: string]: object; }}
55
+ * @memberof ProcessResponse
56
+ */
57
+ passBackObject?: {
58
+ [key: string]: object;
59
+ };
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ProcessResponse
64
+ */
65
+ morePagesAvailable?: number;
66
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Regula Document Reader Web API
3
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4
+ *
5
+ * The version of the OpenAPI document: 6.5.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ProcessSystemInfo
16
+ */
17
+ export interface ProcessSystemInfo {
18
+ /**
19
+ * Base64 encoded license file
20
+ * @type {string}
21
+ * @memberof ProcessSystemInfo
22
+ */
23
+ license?: string;
24
+ /**
25
+ * For internal use. Demo-sites recaptcha token.
26
+ * @type {string}
27
+ * @memberof ProcessSystemInfo
28
+ */
29
+ recaptcha_token?: string;
30
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Regula Document Reader Web API
3
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4
+ *
5
+ * The version of the OpenAPI document: 6.5.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum ProcessingStatus {
18
+ /**
19
+ * Processing was not finished
20
+ */
21
+ NOT_FINISHED = 0,
22
+ /**
23
+ * Processing finished
24
+ */
25
+ FINISHED = 1,
26
+ /**
27
+ * Processing finished by timeout
28
+ */
29
+ TIMEOUT = 2
30
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Regula Document Reader Web API
3
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4
+ *
5
+ * The version of the OpenAPI document: 6.5.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ImageData } from './image-data';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RawImageContainerList
17
+ */
18
+ export interface RawImageContainerList {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof RawImageContainerList
23
+ */
24
+ Count?: number;
25
+ /**
26
+ *
27
+ * @type {Array<ImageData>}
28
+ * @memberof RawImageContainerList
29
+ */
30
+ Images?: Array<ImageData>;
31
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Regula Document Reader Web API
3
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4
+ *
5
+ * The version of the OpenAPI document: 6.5.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Coordinates of the rectangle region on a document image(result type 1). Represented by two points - (left, top) + (right, bottom)
14
+ * @export
15
+ * @interface RectangleCoordinates
16
+ */
17
+ export interface RectangleCoordinates {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof RectangleCoordinates
22
+ */
23
+ left: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof RectangleCoordinates
28
+ */
29
+ top: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof RectangleCoordinates
34
+ */
35
+ right: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof RectangleCoordinates
40
+ */
41
+ bottom: number;
42
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Regula Document Reader Web API
3
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4
+ *
5
+ * The version of the OpenAPI document: 6.5.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Common fields for all result objects
14
+ * @export
15
+ * @interface ResultItem
16
+ */
17
+ export interface ResultItem {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ResultItem
22
+ */
23
+ buf_length?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ResultItem
28
+ */
29
+ light?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ResultItem
34
+ */
35
+ list_idx?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ResultItem
40
+ */
41
+ page_idx?: number;
42
+ /**
43
+ * Same as Result type, but used for safe parsing of not-described values. See Result type.
44
+ * @type {number}
45
+ * @memberof ResultItem
46
+ */
47
+ result_type: number;
48
+ }