@authme/identity-verification 2.4.7 → 2.4.10

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.
@@ -24,8 +24,6 @@ export interface ExtraDocumentConfig {
24
24
  }) => {
25
25
  [key: string]: string;
26
26
  };
27
- showCloseButton: boolean;
28
- continue?: boolean;
29
27
  extraText: {
30
28
  title: string;
31
29
  frontSide: string;
@@ -51,7 +49,6 @@ export interface IdRecognitionConfig {
51
49
  uploadFullFrame?: boolean;
52
50
  disablePassportConfirm?: boolean;
53
51
  antiFraudIMetalTagValidCountTh?: number | false;
54
- cardTypes?: string[];
55
52
  }
56
53
  export interface GetCardTypeAndCountryConfig {
57
54
  supportCountries: CountryCode[];
@@ -1,4 +1,5 @@
1
1
  import { MlEngine } from '@authme/engine';
2
+ import { EAuthMeCardClass } from '@authme/id-recognition';
2
3
  import { IdRecognitionConfig } from '../interface';
3
4
  import { AuthmeOCRResult } from '../interface/result.model';
4
5
  export declare class OCRModule {
@@ -12,5 +13,5 @@ export declare class OCRModule {
12
13
  preloadOcrAsync(): Promise<boolean>;
13
14
  preloadAntiFraudAsync(): Promise<boolean>;
14
15
  destroy(): Promise<void>;
15
- run(config: Required<IdRecognitionConfig>, cardTypes: string[]): Promise<AuthmeOCRResult>;
16
+ run(config: Required<IdRecognitionConfig>, acceptTypes: EAuthMeCardClass[]): Promise<AuthmeOCRResult>;
16
17
  }
@@ -5,7 +5,7 @@ export declare const limitFPS: (fps: number) => (source: Observable<any>) => Obs
5
5
  export declare const sendFrame: <T>(canvasSizeInfo: CanvasSizeInfo, canvas: HTMLCanvasElement, video: HTMLVideoElement, frameCallback: ((data: Uint8ClampedArray) => Promise<T>) | ((data: Uint8ClampedArray, base64: {
6
6
  jpg: string;
7
7
  png: string;
8
- }, cardType?: string, type?: EAuthMeCardClass) => Promise<T>), fps: number, bas64Format: boolean, imageType: 'jpg' | 'png' | 'all', cardType?: string, flags?: {
8
+ }, type?: EAuthMeCardClass) => Promise<T>), fps: number, bas64Format: boolean, imageType: 'jpg' | 'png' | 'all', flags?: {
9
9
  animating: boolean;
10
10
  }, type?: EAuthMeCardClass) => (source$: Observable<any>) => Observable<{
11
11
  imageData: {
@@ -22,14 +22,13 @@ export declare function startOCR(config: {
22
22
  number,
23
23
  number
24
24
  ]
25
- ], type: EAuthMeCardClass, cardType: string, retry?: boolean) => Promise<boolean>;
26
- cardTypes: string[];
25
+ ], type: EAuthMeCardClass, retry?: boolean) => Promise<boolean>;
27
26
  acceptTypes: EAuthMeCardClass[];
28
27
  recognition: (img: Uint8ClampedArray, base64: {
29
28
  jpg: string;
30
29
  png: string;
31
- }, cardType?: string, type?: EAuthMeCardClass) => Promise<CardOCRResult | PassportResult>;
32
- confirmImage: (type: EAuthMeCardClass, cardType: string) => Promise<boolean>;
30
+ }, type?: EAuthMeCardClass) => Promise<CardOCRResult | PassportResult>;
31
+ confirmImage: (type: EAuthMeCardClass) => Promise<boolean>;
33
32
  antiFraudStart: (points: [
34
33
  [
35
34
  number,