@innovatrics/dot-smile-liveness
Advanced tools
Comparing version 7.0.1 to 7.1.0
{ | ||
"name": "@innovatrics/dot-smile-liveness", | ||
"private": false, | ||
"version": "7.0.1", | ||
"version": "7.1.0", | ||
"license": "Innovatrics proprietary license", | ||
@@ -6,0 +6,0 @@ "types": "common/src/types/smileTypes.d.ts", |
@@ -72,2 +72,6 @@ type CustomEvents<K extends string> = { | ||
}; | ||
export type ThresholdInterval = { | ||
max: number; | ||
min: number; | ||
}; | ||
export {}; |
@@ -30,1 +30,2 @@ import type { DetectedCorners, ImageParameters, ObjectValues } from './common'; | ||
}; | ||
export type DocumentEscalatedInstructionCodes = typeof DocumentInstructionCodeValues.DOCUMENT_TOO_FAR | typeof DocumentInstructionCodeValues.BRIGHTNESS_TOO_HIGH | typeof DocumentInstructionCodeValues.BRIGHTNESS_TOO_LOW | typeof DocumentInstructionCodeValues.SHARPNESS_TOO_LOW; |
@@ -44,4 +44,10 @@ import type { DocumentCustomEvent } from './document'; | ||
instructionCode: T; | ||
isEscalated: boolean; | ||
}; | ||
} & Event; | ||
export type InstructionEscalatedEvent<T> = { | ||
detail?: { | ||
instructionCode: T; | ||
}; | ||
} & Event; | ||
export type InstructionChangeEventCodeMap = { | ||
@@ -48,0 +54,0 @@ [DocumentCustomEvent.INSTRUCTION_CHANGED]: DocumentInstructionCode; |
@@ -1,2 +0,2 @@ | ||
import type { InstructionChangeEvent } from './common'; | ||
import type { InstructionChangeEvent, InstructionEscalatedEvent } from './common'; | ||
import type { DetectedDocument, DocumentInstructionCode } from '../document'; | ||
@@ -9,2 +9,3 @@ export declare enum DocumentCustomEvent { | ||
INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", | ||
INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", | ||
STATE_CHANGED = "document-auto-capture:state-changed", | ||
@@ -23,1 +24,2 @@ VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size" | ||
}; | ||
export type DocumentInstructionEscalatedEvent = InstructionEscalatedEvent<DocumentInstructionCode>; |
@@ -0,3 +1,7 @@ | ||
import type { InstructionEscalatedEvent } from './common'; | ||
import type { SmileInstructionCode } from '../smile'; | ||
export declare enum SmileCustomEvent { | ||
INSTRUCTION_ESCALATED = "smile:instruction-escalated", | ||
STATUS_CHANGED = "smile-auto-capture:status-changed" | ||
} | ||
export type SmileInstructionEscalatedEvent = InstructionEscalatedEvent<SmileInstructionCode>; |
@@ -7,2 +7,3 @@ import type { DetectedCorners, ImageParameters, ObjectValues } from './common'; | ||
readonly PALM_TOO_FAR: "palm_too_far"; | ||
readonly PALM_TOO_CLOSE: "palm_too_close"; | ||
readonly SHARPNESS_TOO_LOW: "sharpness_too_low"; | ||
@@ -21,2 +22,3 @@ readonly BRIGHTNESS_TOO_LOW: "brightness_too_low"; | ||
isSharp: "sharpness_too_low"; | ||
isNotLarge: "palm_too_close"; | ||
}; | ||
@@ -23,0 +25,0 @@ export type PalmInstructionCode = ObjectValues<typeof PalmInstructionCodeValues>; |
@@ -36,1 +36,2 @@ import type { ObjectValues } from './common'; | ||
export type SmileState = ObjectValues<typeof SmileStateValues>; | ||
export type SmileEscalatedInstructionCodes = typeof SmileInstructionCodeValues.SMILE | typeof SmileInstructionCodeValues.KEEP_NEUTRAL_EXPRESSION; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
2353064
17977