Skip to content

Commit 42daa4a

Browse files
author
Nabil Lathiff
committed
Adding expectedClientIpAddress to response.
1 parent d74c095 commit 42daa4a

File tree

6 files changed

+44
-56
lines changed

6 files changed

+44
-56
lines changed

specification/ai/Face/examples/v1.3-preview.1/LivenessSessionOperations_CreateLivenessSession.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"status": "NotStarted",
2323
"modelVersion": "2024-11-15",
2424
"isAbuseMonitoringEnabled": true,
25+
"expectedClientIpAddress": "1.2.3.4",
2526
"results": {
2627
"attempts": []
2728
}

specification/ai/Face/examples/v1.3-preview.1/LivenessSessionOperations_GetLivenessWithVerifySessionResult.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"status": "NotStarted",
1414
"modelVersion": "2024-11-15",
1515
"isAbuseMonitoringEnabled": true,
16+
"expectedClientIpAddress": "1.2.3.4",
1617
"results": {
1718
"attempts": [
1819
{

specification/ai/Face/models.session.tsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ model LivenessSessionCommonData {
381381
@added(Versions.v1_3_preview_1)
382382
@doc("Denotes if the abuse monitoring feature was enabled during this session.")
383383
isAbuseMonitoringEnabled?: HttpPart<boolean>;
384+
385+
@added(Versions.v1_3_preview_1)
386+
@doc("The expected IP address or CIDR block of the client that runs the liveness check.")
387+
expectedClientIpAddress?: string;
384388
}
385389

386390
@added(Versions.v1_2)

specification/ai/data-plane/Face/preview/v1.3-preview.1/Face.json

Lines changed: 36 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@
322322
"type": "array",
323323
"items": {
324324
"$ref": "#/definitions/FaceDetectionResult"
325-
},
326-
"x-ms-identifiers": []
325+
}
327326
}
328327
},
329328
"default": {
@@ -711,8 +710,7 @@
711710
"type": "array",
712711
"items": {
713712
"$ref": "#/definitions/FaceListItem"
714-
},
715-
"x-ms-identifiers": []
713+
}
716714
}
717715
},
718716
"default": {
@@ -1099,8 +1097,7 @@
10991097
"type": "array",
11001098
"items": {
11011099
"$ref": "#/definitions/FindSimilarResult"
1102-
},
1103-
"x-ms-identifiers": []
1100+
}
11041101
}
11051102
},
11061103
"default": {
@@ -1233,8 +1230,7 @@
12331230
"type": "array",
12341231
"items": {
12351232
"$ref": "#/definitions/IdentificationResult"
1236-
},
1237-
"x-ms-identifiers": []
1233+
}
12381234
}
12391235
},
12401236
"default": {
@@ -1297,8 +1293,7 @@
12971293
"type": "array",
12981294
"items": {
12991295
"$ref": "#/definitions/LargeFaceList"
1300-
},
1301-
"x-ms-identifiers": []
1296+
}
13021297
}
13031298
},
13041299
"default": {
@@ -1546,8 +1541,7 @@
15461541
"type": "array",
15471542
"items": {
15481543
"$ref": "#/definitions/LargeFaceListFace"
1549-
},
1550-
"x-ms-identifiers": []
1544+
}
15511545
}
15521546
},
15531547
"default": {
@@ -1912,8 +1906,7 @@
19121906
"type": "array",
19131907
"items": {
19141908
"$ref": "#/definitions/LargePersonGroup"
1915-
},
1916-
"x-ms-identifiers": []
1909+
}
19171910
}
19181911
},
19191912
"default": {
@@ -2160,8 +2153,7 @@
21602153
"type": "array",
21612154
"items": {
21622155
"$ref": "#/definitions/LargePersonGroupPerson"
2163-
},
2164-
"x-ms-identifiers": []
2156+
}
21652157
}
21662158
},
21672159
"default": {
@@ -2763,8 +2755,7 @@
27632755
"type": "array",
27642756
"items": {
27652757
"$ref": "#/definitions/PersonGroup"
2766-
},
2767-
"x-ms-identifiers": []
2758+
}
27682759
}
27692760
},
27702761
"default": {
@@ -3011,8 +3002,7 @@
30113002
"type": "array",
30123003
"items": {
30133004
"$ref": "#/definitions/PersonGroupPerson"
3014-
},
3015-
"x-ms-identifiers": []
3005+
}
30163006
}
30173007
},
30183008
"default": {
@@ -4012,8 +4002,7 @@
40124002
"type": "array",
40134003
"items": {
40144004
"$ref": "#/definitions/FaceDetectionResult"
4015-
},
4016-
"x-ms-identifiers": []
4005+
}
40174006
}
40184007
},
40194008
"default": {
@@ -4273,8 +4262,7 @@
42734262
"type": "array",
42744263
"items": {
42754264
"$ref": "#/definitions/FaceDetectionResult"
4276-
},
4277-
"x-ms-identifiers": []
4265+
}
42784266
}
42794267
},
42804268
"default": {
@@ -4425,8 +4413,7 @@
44254413
"type": "array",
44264414
"items": {
44274415
"$ref": "#/definitions/FindSimilarResult"
4428-
},
4429-
"x-ms-identifiers": []
4416+
}
44304417
}
44314418
},
44324419
"default": {
@@ -4518,8 +4505,7 @@
45184505
"type": "array",
45194506
"items": {
45204507
"$ref": "#/definitions/FindSimilarResult"
4521-
},
4522-
"x-ms-identifiers": []
4508+
}
45234509
}
45244510
},
45254511
"default": {
@@ -4598,8 +4584,7 @@
45984584
"type": "array",
45994585
"items": {
46004586
"$ref": "#/definitions/IdentificationResult"
4601-
},
4602-
"x-ms-identifiers": []
4587+
}
46034588
}
46044589
},
46054590
"default": {
@@ -4678,8 +4663,7 @@
46784663
"type": "array",
46794664
"items": {
46804665
"$ref": "#/definitions/IdentificationResult"
4681-
},
4682-
"x-ms-identifiers": []
4666+
}
46834667
}
46844668
},
46854669
"default": {
@@ -4763,8 +4747,7 @@
47634747
"type": "array",
47644748
"items": {
47654749
"$ref": "#/definitions/IdentificationResult"
4766-
},
4767-
"x-ms-identifiers": []
4750+
}
47684751
}
47694752
},
47704753
"default": {
@@ -5173,8 +5156,7 @@
51735156
"description": "Denotes if abuse detection triggered during this liveness attempt.",
51745157
"items": {
51755158
"$ref": "#/definitions/OtherFlaggedSessions"
5176-
},
5177-
"x-ms-identifiers": []
5159+
}
51785160
}
51795161
},
51805162
"required": [
@@ -5610,8 +5592,7 @@
56105592
"description": "Properties describing any accessories on a given face.",
56115593
"items": {
56125594
"$ref": "#/definitions/AccessoryItem"
5613-
},
5614-
"x-ms-identifiers": []
5595+
}
56155596
},
56165597
"blur": {
56175598
"$ref": "#/definitions/BlurProperties",
@@ -5867,8 +5848,7 @@
58675848
"description": "Face ids of registered faces in the face list.",
58685849
"items": {
58695850
"$ref": "#/definitions/FaceListFace"
5870-
},
5871-
"x-ms-identifiers": []
5851+
}
58725852
}
58735853
},
58745854
"required": [
@@ -6071,8 +6051,7 @@
60716051
"items": {
60726052
"$ref": "#/definitions/Azure.Core.uuid"
60736053
}
6074-
},
6075-
"x-ms-identifiers": []
6054+
}
60766055
},
60776056
"messyGroup": {
60786057
"type": "array",
@@ -6188,8 +6167,7 @@
61886167
"description": "An array of candidate colors and confidence level in the presence of each.",
61896168
"items": {
61906169
"$ref": "#/definitions/HairColor"
6191-
},
6192-
"x-ms-identifiers": []
6170+
}
61936171
}
61946172
},
61956173
"required": [
@@ -6258,8 +6236,7 @@
62586236
"description": "Identified person candidates for that face (ranked by confidence). Array size should be no larger than input maxNumOfCandidatesReturned. If no person is identified, will return an empty array.",
62596237
"items": {
62606238
"$ref": "#/definitions/IdentificationCandidate"
6261-
},
6262-
"x-ms-identifiers": []
6239+
}
62636240
}
62646241
},
62656242
"required": [
@@ -6642,6 +6619,10 @@
66426619
"type": "object",
66436620
"description": "Denotes if the abuse monitoring feature was enabled during this session."
66446621
},
6622+
"expectedClientIpAddress": {
6623+
"type": "string",
6624+
"description": "The expected IP address or CIDR block of the client that runs the liveness check."
6625+
},
66456626
"results": {
66466627
"$ref": "#/definitions/LivenessSessionResults",
66476628
"description": "The results of the liveness session."
@@ -6680,8 +6661,7 @@
66806661
"description": "The client information gathered during the liveness attempt.",
66816662
"items": {
66826663
"$ref": "#/definitions/ClientInformation"
6683-
},
6684-
"x-ms-identifiers": []
6664+
}
66856665
},
66866666
"abuseMonitoringResult": {
66876667
"$ref": "#/definitions/AbuseMonitoringResult",
@@ -6702,8 +6682,7 @@
67026682
"description": "The attempts data of underlying liveness call with the session.",
67036683
"items": {
67046684
"$ref": "#/definitions/LivenessSessionAttempt"
6705-
},
6706-
"x-ms-identifiers": []
6685+
}
67076686
}
67086687
},
67096688
"required": [
@@ -6813,6 +6792,10 @@
68136792
"type": "object",
68146793
"description": "Denotes if the abuse monitoring feature was enabled during this session."
68156794
},
6795+
"expectedClientIpAddress": {
6796+
"type": "string",
6797+
"description": "The expected IP address or CIDR block of the client that runs the liveness check."
6798+
},
68166799
"results": {
68176800
"$ref": "#/definitions/LivenessWithVerifySessionResults",
68186801
"description": "The results of the liveness with verify session."
@@ -6851,8 +6834,7 @@
68516834
"description": "The client information gathered during the liveness attempt.",
68526835
"items": {
68536836
"$ref": "#/definitions/ClientInformation"
6854-
},
6855-
"x-ms-identifiers": []
6837+
}
68566838
},
68576839
"abuseMonitoringResult": {
68586840
"$ref": "#/definitions/AbuseMonitoringResult",
@@ -6873,16 +6855,14 @@
68736855
"description": "The references used for face verification.",
68746856
"items": {
68756857
"$ref": "#/definitions/LivenessWithVerifyReference"
6876-
},
6877-
"x-ms-identifiers": []
6858+
}
68786859
},
68796860
"attempts": {
68806861
"type": "array",
68816862
"description": "The attempts data of underlying liveness with verify call with the session.",
68826863
"items": {
68836864
"$ref": "#/definitions/LivenessWithVerifySessionAttempt"
6884-
},
6885-
"x-ms-identifiers": []
6865+
}
68866866
}
68876867
},
68886868
"required": [

specification/ai/data-plane/Face/preview/v1.3-preview.1/examples/LivenessSessionOperations_CreateLivenessSession.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"status": "NotStarted",
2323
"modelVersion": "2024-11-15",
2424
"isAbuseMonitoringEnabled": true,
25+
"expectedClientIpAddress": "1.2.3.4",
2526
"results": {
2627
"attempts": []
2728
}

specification/ai/data-plane/Face/preview/v1.3-preview.1/examples/LivenessSessionOperations_GetLivenessWithVerifySessionResult.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"status": "NotStarted",
1414
"modelVersion": "2024-11-15",
1515
"isAbuseMonitoringEnabled": true,
16+
"expectedClientIpAddress": "1.2.3.4",
1617
"results": {
1718
"attempts": [
1819
{

0 commit comments

Comments
 (0)