@facesignai/api 1.0.28 → 1.0.30
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.
package/build/package.json
CHANGED
|
@@ -3,21 +3,12 @@ export declare enum CriterionEvaluation {
|
|
|
3
3
|
suspicious = "suspicious",
|
|
4
4
|
highFraudRisk = "highFraudRisk"
|
|
5
5
|
}
|
|
6
|
+
export type Criterion = "behavioralAnomalies" | "environmentalConsistency" | "eyeAndHeadMovement" | "faceAuthenticity" | "facialExpressionAndMovement" | "interactionConfidence" | "lipSyncAccuracy" | "presenceOfSuspiciousObjectsOrPeople" | "useOfExternalDevices" | string;
|
|
6
7
|
export type CriterionAnalysis = {
|
|
8
|
+
criterion: Criterion;
|
|
7
9
|
observation: string;
|
|
8
10
|
confidence: number;
|
|
9
11
|
evaluation: CriterionEvaluation;
|
|
10
12
|
};
|
|
11
|
-
export
|
|
12
|
-
behavioralAnomalies = "behavioralAnomalies",
|
|
13
|
-
environmentalConsistency = "environmentalConsistency",
|
|
14
|
-
eyeAndHeadMovement = "eyeAndHeadMovement",
|
|
15
|
-
faceAuthenticity = "faceAuthenticity",
|
|
16
|
-
facialExpressionAndMovement = "facialExpressionAndMovement",
|
|
17
|
-
interactionConfidence = "interactionConfidence",
|
|
18
|
-
lipSyncAccuracy = "lipSyncAccuracy",
|
|
19
|
-
presenceOfSuspiciousObjectsOrPeople = "presenceOfSuspiciousObjectsOrPeople",
|
|
20
|
-
useOfExternalDevices = "useOfExternalDevices"
|
|
21
|
-
}
|
|
22
|
-
export type VideoAIAnalysis = Record<Criterion, CriterionAnalysis>;
|
|
13
|
+
export type VideoAIAnalysis = CriterionAnalysis[];
|
|
23
14
|
//# sourceMappingURL=videoAIAnalysis.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"videoAIAnalysis.d.ts","sourceRoot":"","sources":["../../../src/types/videoAIAnalysis.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,aAAa,kBAAkB;CAChC;AAED,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"videoAIAnalysis.d.ts","sourceRoot":"","sources":["../../../src/types/videoAIAnalysis.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,aAAa,kBAAkB;CAChC;AAED,MAAM,MAAM,SAAS,GACjB,qBAAqB,GACrB,0BAA0B,GAC1B,oBAAoB,GACpB,kBAAkB,GAClB,6BAA6B,GAC7B,uBAAuB,GACvB,iBAAiB,GACjB,qCAAqC,GACrC,sBAAsB,GACtB,MAAM,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,mBAAmB,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CriterionEvaluation = void 0;
|
|
4
4
|
var CriterionEvaluation;
|
|
5
5
|
(function (CriterionEvaluation) {
|
|
6
6
|
CriterionEvaluation["normal"] = "normal";
|
|
7
7
|
CriterionEvaluation["suspicious"] = "suspicious";
|
|
8
8
|
CriterionEvaluation["highFraudRisk"] = "highFraudRisk";
|
|
9
9
|
})(CriterionEvaluation = exports.CriterionEvaluation || (exports.CriterionEvaluation = {}));
|
|
10
|
-
var Criterion;
|
|
11
|
-
(function (Criterion) {
|
|
12
|
-
Criterion["behavioralAnomalies"] = "behavioralAnomalies";
|
|
13
|
-
Criterion["environmentalConsistency"] = "environmentalConsistency";
|
|
14
|
-
Criterion["eyeAndHeadMovement"] = "eyeAndHeadMovement";
|
|
15
|
-
Criterion["faceAuthenticity"] = "faceAuthenticity";
|
|
16
|
-
Criterion["facialExpressionAndMovement"] = "facialExpressionAndMovement";
|
|
17
|
-
Criterion["interactionConfidence"] = "interactionConfidence";
|
|
18
|
-
Criterion["lipSyncAccuracy"] = "lipSyncAccuracy";
|
|
19
|
-
Criterion["presenceOfSuspiciousObjectsOrPeople"] = "presenceOfSuspiciousObjectsOrPeople";
|
|
20
|
-
Criterion["useOfExternalDevices"] = "useOfExternalDevices";
|
|
21
|
-
})(Criterion = exports.Criterion || (exports.Criterion = {}));
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to the Facesign API will be documented in this file.
|
|
4
|
-
|
|
5
|
-
## [Unreleased]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## [1.0.16] - 2025-01-29
|
|
9
|
-
|
|
10
|
-
### Added
|
|
11
|
-
- Two-Factor Authentication node support:
|
|
12
|
-
- `FSTwoFactorChannel` enum with EMAIL and SMS channel options
|
|
13
|
-
- `FSTwoFactorContactSource` enum for session_data, module_settings, and recognition_match sources
|
|
14
|
-
- `FSTwoFactorOutcome` enum with verified, delivery_failed, failed_unverified, cancelled, and error outcomes
|
|
15
|
-
- `FSTwoFactorNode` interface with comprehensive configuration options including:
|
|
16
|
-
- Multi-channel delivery (Email via Resend, SMS via Twilio)
|
|
17
|
-
- Contact source configuration with field mapping
|
|
18
|
-
- Template system with variable support ({{userName}}, {{code}}, {{companyName}})
|
|
19
|
-
- Verification settings (OTP length, expiry, max attempts, resend delay)
|
|
20
|
-
- `FSPhraseAction.START_TWO_FACTOR_VERIFICATION` action for conversation flow integration
|
|
21
|
-
- `FSClientEvent.TWO_FACTOR_CODE_SPOKEN` event for spoken code verification
|
|
22
|
-
|
|
23
|
-
## [1.0.15] - 2025-01-28
|
|
24
|
-
|
|
25
|
-
### Added
|
|
26
|
-
|
|
27
|
-
- Advanced configuration options for Face Scan node:
|
|
28
|
-
- `captureDelay` - Configurable countdown before capture (0 for immediate)
|
|
29
|
-
- `detectionInterval` - How often to check for faces (performance tuning)
|
|
30
|
-
- `qualityThreshold` - Overall face quality score requirement
|
|
31
|
-
- `blurThreshold` - Clarity detection threshold (lower = stricter)
|
|
32
|
-
- `minFaceSize` / `maxFaceSize` - Acceptable face size range in pixels
|
|
33
|
-
- `enableSound` - Toggle audio feedback
|
|
34
|
-
- `enableHaptics` - Toggle haptic feedback on mobile
|
|
35
|
-
- `useWebGL` - Control WebGL acceleration usage
|
|
36
|
-
- `maxRetries` - Maximum capture attempts allowed
|
|
37
|
-
|
|
38
|
-
## [1.0.14] - 2025-01-28
|
|
39
|
-
|
|
40
|
-
### Added
|
|
41
|
-
|
|
42
|
-
- Localization support for permissions screen text:
|
|
43
|
-
- `permissionsButtonTextTranslates` - Localized button text per language
|
|
44
|
-
- `permissionsMainHeadingTranslates` - Localized main heading per language
|
|
45
|
-
- `permissionsSubheadingTranslates` - Localized subheading per language
|
|
46
|
-
|
|
47
|
-
### Changed
|
|
48
|
-
|
|
49
|
-
- Kept original non-localized fields for backward compatibility
|
|
50
|
-
|
|
51
|
-
## [1.0.13] - 2025-01-28
|
|
52
|
-
|
|
53
|
-
### Added
|
|
54
|
-
|
|
55
|
-
- Face Scan mode enum (`FSFaceScanMode`) with CAPTURE and COMPARE modes
|
|
56
|
-
- Enhanced `FSFaceScanNode` interface with mode-based configuration
|
|
57
|
-
- `saveToField` option for capture-only mode to store face image URL
|
|
58
|
-
- `CAPTURED` outcome for capture-only face scan mode
|
|
59
|
-
|
|
60
|
-
### Changed
|
|
61
|
-
|
|
62
|
-
- Reorganized `FSFaceScanOutcome` enum to separate capture and compare mode outcomes
|
|
63
|
-
- Updated `FSFaceScanNode` to support both capture-only and capture+compare modes
|
|
64
|
-
|
|
65
|
-
## [1.0.12] - 2025-01-27
|
|
66
|
-
|
|
67
|
-
### Added
|
|
68
|
-
|
|
69
|
-
- Face Scan node type (`FACE_SCAN`) for 1:1 biometric face matching
|
|
70
|
-
- `FSFaceScanOutcome` enum with match outcomes (match, noMatch, noFace, error)
|
|
71
|
-
- `FSFaceScanNode` interface with configuration for reference image sources and matching threshold
|
|
72
|
-
|
|
73
|
-
## [1.0.11] - 2025-01-27
|
|
74
|
-
|
|
75
|
-
### Added
|
|
76
|
-
|
|
77
|
-
- Permissions screen customization options to `SessionSettings`:
|
|
78
|
-
- `permissionsButtonText` - Custom text for the permissions request button
|
|
79
|
-
- `permissionsBackgroundType` - Choose between 'avatar' or 'color' background
|
|
80
|
-
- `permissionsBackgroundColor` - Custom color when using solid color background
|
|
81
|
-
- `permissionsMainHeading` - Custom main heading text (e.g., "You're about to chat with a digital assistant.")
|
|
82
|
-
- `permissionsSubheading` - Custom subheading text (e.g., "Allow FaceSign to use your camera and microphone?")
|
|
83
|
-
|
|
84
|
-
## [1.0.10] - 2024-05-20
|
|
85
|
-
|
|
86
|
-
### Added
|
|
87
|
-
|
|
88
|
-
- Document Scanning node type (`DOCUMENT_SCAN`) to support Microblink document scanning integration
|
|
89
|
-
- New `MicroblinkDocumentType` enum with supported document types
|
|
90
|
-
- `FSDocumentScanOutcome` enum for tracking scan outcomes
|
|
91
|
-
- `FSDocumentScanNode` interface with configuration options for document scanning
|
|
92
|
-
|
|
93
|
-
### Changed
|
|
94
|
-
|
|
95
|
-
- Updated `FSNode` union type to include the new DocumentScan node type
|
|
96
|
-
|
|
97
|
-
## [1.0.9] - Previous version
|
|
98
|
-
|
|
99
|
-
Initial version with support for:
|
|
100
|
-
|
|
101
|
-
- Start/End nodes
|
|
102
|
-
- Conversation nodes
|
|
103
|
-
- Liveness Detection nodes
|
|
104
|
-
- Email Input nodes
|
|
105
|
-
- Data Validation nodes
|