Skip to content

Commit cfa791e

Browse files
Merge pull request #96 from regulaforensics/15040-release-6-1
[Release 6.1]
2 parents 60b9a18 + 3216080 commit cfa791e

4 files changed

Lines changed: 68 additions & 4 deletions

File tree

identification.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ components:
6161
name:
6262
type: string
6363
description: "Person's name."
64+
externalId:
65+
type: string
66+
description: "Person's ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional."
6467
metadata:
6568
type: object
6669
additionalProperties: true
@@ -75,6 +78,9 @@ components:
7578
type: object
7679
description: "Person Request body: name and metadata."
7780
properties:
81+
externalId:
82+
type: string
83+
description: "Person's ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional."
7884
name:
7985
type: string
8086
description: "Person's name."

index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 6.1.0
3+
version: 6.2.0
44
title: Regula Face SDK Web API
55
x-logo:
66
url: 'https://static-content.regulaforensics.com/Icons/Logos/Regula-logo.svg'

liveness.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,22 @@ paths:
77
get:
88
tags:
99
- liveness 2.0
10-
summary: Liveness assessment
10+
summary: 'liveness check'
11+
description: "To verify the presence of a real person in front of a camera, use the GET `/api/v2/liveness` endpoint. When starting, you can specify `tag` which all attempts to read liveness will be bound to. If left unspecified, the application automatically generates one. The calling application returns `tag` and `transactionId`. One session may include many transactions, and from a transaction ID it is clear which session it belongs to.
12+
13+
14+
When specifying `tag`, note that only Latin uppercase and lowercase letters, digits, and symbols `-` and `_` are allowed. The maximum supported number of characters is 127.
15+
16+
17+
The metadata (device model, screen data, frame size, app ID and version, OS version, platform, SDK version, etc.), a person's selfie and video of the liveness detection session are stored on the backend at:
18+
`faceapi-session/year={year}/month={month}/day={day}/hour={hour}/minute={minute}/{tag}/transactionId`
19+
20+
21+
By default, liveness checks operate with eventual consistency. This means that when you submit a request and receive a response, the associated data (like the selfie and session video) may be saved after the response is sent. If this doesn't meet your requirements, you can switch to strong consistency; refer to the [Architecture page](https://docs.regulaforensics.com/develop/face-sdk/overview/architecture/#consistency-models) for details.
22+
23+
24+
To access the liveness transaction data, use GET `/api/v2/liveness?transactionId={transactionId}`.
25+
"
1126
operationId: get_liveness_transaction_info
1227
responses:
1328
200:
@@ -24,11 +39,11 @@ components:
2439
properties:
2540
code:
2641
type: integer
27-
description: "Result code, one of the FaceSDKResultCode enum values. See the enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/"
42+
description: "Result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/)."
2843
status:
2944
type: integer
3045
default: null
31-
description: "Whether the liveness detection is confirmed (0) or not (1)."
46+
description: "Whether the liveness detection is confirmed `0` or not `1`."
3247
tag:
3348
type: string
3449
description: "Session identificator, should be unique for each session."
@@ -51,3 +66,16 @@ components:
5166
type: object
5267
additionalProperties: true
5368
description: "A free-form object containing person's extended attributes."
69+
type:
70+
$ref: "#/components/schemas/LivenessType"
71+
72+
LivenessType:
73+
type: integer
74+
description: "Liveness detection can be performed in two modes: active `0` and passive `1`. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/liveness/#active-and-passive-modes)"
75+
default: 0
76+
enum:
77+
- 0
78+
- 1
79+
x-enum-varnames:
80+
- ACTIVE
81+
- PASSIVE

search.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,36 @@ definitions:
5959
items:
6060
type: string
6161
format: uuid
62+
filter:
63+
$ref: '#/definitions/FilterSearchRequest'
64+
65+
FilterSearchRequest:
66+
type: object
67+
description: "Allows to filter the search results based on the Person's `name`. If enabled, only the search results that meet the filter condition will be returned."
68+
properties:
69+
op:
70+
$ref: '#/definitions/FilterOp'
71+
field:
72+
type: string
73+
description: "`name` of the Person."
74+
value:
75+
type: array
76+
description: "The list of `name` values against which the `field` is compared."
77+
items:
78+
type: string
79+
80+
FilterOp:
81+
type: string
82+
description: "The filter condition, determines the type of comparison to be performed on the `name` values of the Person entity. <br><br>When set to `in`,
83+
the `name` values of the Person should match any of the values specified in the `value` list. <br><br>When set to `nin`,
84+
the `name` values of the Person should not match any of the values specified in the `value` list."
85+
enum:
86+
- "in"
87+
- "nin"
88+
x-enum-varnames:
89+
- IN
90+
- NOT_IN
91+
6292
RecognizeImage:
6393
allOf:
6494
- $ref: "./identification.yml#/components/schemas/Image"

0 commit comments

Comments
 (0)