@facesignai/api 1.0.9 → 1.0.27

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.
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Criterion = exports.CriterionEvaluation = void 0;
4
+ var CriterionEvaluation;
5
+ (function (CriterionEvaluation) {
6
+ CriterionEvaluation["normal"] = "normal";
7
+ CriterionEvaluation["suspicious"] = "suspicious";
8
+ CriterionEvaluation["highFraudRisk"] = "highFraudRisk";
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 = {}));
@@ -0,0 +1,25 @@
1
+ export declare enum WebhookType {
2
+ SESSION_STATUS = "session.status",
3
+ MEDIA_USER_PHOTO = "media.user_photo",
4
+ MEDIA_DOCUMENT_PHOTO = "media.document_photo",
5
+ MEDIA_USER_VIDEO = "media.user_video",
6
+ ANALYSIS_VIDEO = "analysis.video",
7
+ ANALYSIS_SCREENSHOT = "analysis.screenshot",
8
+ SETTINGS_AVATARS = "settings.avatars",
9
+ SETTINGS_LANGS = "settings.langs"
10
+ }
11
+ export type WebhookMedia = {
12
+ id: string;
13
+ createdAt: number;
14
+ url: string;
15
+ expires: number;
16
+ contentType: string;
17
+ };
18
+ export type WebhookEvent = {
19
+ id: string;
20
+ type: WebhookType;
21
+ createdAt: number;
22
+ sessionId: string;
23
+ media?: WebhookMedia;
24
+ };
25
+ //# sourceMappingURL=webhooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/types/webhooks.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,oBAAoB,yBAAyB;IAC7C,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;CAClC;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,YAAY,CAAA;CACrB,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookType = void 0;
4
+ var WebhookType;
5
+ (function (WebhookType) {
6
+ WebhookType["SESSION_STATUS"] = "session.status";
7
+ WebhookType["MEDIA_USER_PHOTO"] = "media.user_photo";
8
+ WebhookType["MEDIA_DOCUMENT_PHOTO"] = "media.document_photo";
9
+ WebhookType["MEDIA_USER_VIDEO"] = "media.user_video";
10
+ WebhookType["ANALYSIS_VIDEO"] = "analysis.video";
11
+ WebhookType["ANALYSIS_SCREENSHOT"] = "analysis.screenshot";
12
+ WebhookType["SETTINGS_AVATARS"] = "settings.avatars";
13
+ WebhookType["SETTINGS_LANGS"] = "settings.langs";
14
+ })(WebhookType = exports.WebhookType || (exports.WebhookType = {}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@facesignai/api",
3
3
  "package-name": "@facesignai/api",
4
- "version": "1.0.9",
4
+ "version": "1.0.27",
5
5
  "description": "Facesign API wrapper",
6
6
  "repository": {
7
7
  "type": "git",