@azure-rest/ai-vision-face 1.0.0-alpha.20241030.1 → 1.0.0-alpha.20241031.3

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.
Files changed (112) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/LICENSE +21 -0
  3. package/dist/browser/clientDefinitions.d.ts +401 -380
  4. package/dist/browser/clientDefinitions.d.ts.map +1 -1
  5. package/dist/browser/clientDefinitions.js.map +1 -1
  6. package/dist/browser/faceClient.d.ts +3 -1
  7. package/dist/browser/faceClient.d.ts.map +1 -1
  8. package/dist/browser/faceClient.js +4 -3
  9. package/dist/browser/faceClient.js.map +1 -1
  10. package/dist/browser/isUnexpected.d.ts +34 -32
  11. package/dist/browser/isUnexpected.d.ts.map +1 -1
  12. package/dist/browser/isUnexpected.js +30 -29
  13. package/dist/browser/isUnexpected.js.map +1 -1
  14. package/dist/browser/models.d.ts +92 -12
  15. package/dist/browser/models.d.ts.map +1 -1
  16. package/dist/browser/models.js.map +1 -1
  17. package/dist/browser/outputModels.d.ts +253 -161
  18. package/dist/browser/outputModels.d.ts.map +1 -1
  19. package/dist/browser/outputModels.js.map +1 -1
  20. package/dist/browser/parameters.d.ts +326 -297
  21. package/dist/browser/parameters.d.ts.map +1 -1
  22. package/dist/browser/parameters.js.map +1 -1
  23. package/dist/browser/pollingHelper.d.ts +5 -4
  24. package/dist/browser/pollingHelper.d.ts.map +1 -1
  25. package/dist/browser/pollingHelper.js +3 -3
  26. package/dist/browser/pollingHelper.js.map +1 -1
  27. package/dist/browser/responses.d.ts +573 -539
  28. package/dist/browser/responses.d.ts.map +1 -1
  29. package/dist/browser/responses.js.map +1 -1
  30. package/dist/commonjs/clientDefinitions.d.ts +401 -380
  31. package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
  32. package/dist/commonjs/clientDefinitions.js.map +1 -1
  33. package/dist/commonjs/faceClient.d.ts +3 -1
  34. package/dist/commonjs/faceClient.d.ts.map +1 -1
  35. package/dist/commonjs/faceClient.js +4 -3
  36. package/dist/commonjs/faceClient.js.map +1 -1
  37. package/dist/commonjs/isUnexpected.d.ts +34 -32
  38. package/dist/commonjs/isUnexpected.d.ts.map +1 -1
  39. package/dist/commonjs/isUnexpected.js +30 -29
  40. package/dist/commonjs/isUnexpected.js.map +1 -1
  41. package/dist/commonjs/models.d.ts +92 -12
  42. package/dist/commonjs/models.d.ts.map +1 -1
  43. package/dist/commonjs/models.js.map +1 -1
  44. package/dist/commonjs/outputModels.d.ts +253 -161
  45. package/dist/commonjs/outputModels.d.ts.map +1 -1
  46. package/dist/commonjs/outputModels.js.map +1 -1
  47. package/dist/commonjs/parameters.d.ts +326 -297
  48. package/dist/commonjs/parameters.d.ts.map +1 -1
  49. package/dist/commonjs/parameters.js.map +1 -1
  50. package/dist/commonjs/pollingHelper.d.ts +5 -4
  51. package/dist/commonjs/pollingHelper.d.ts.map +1 -1
  52. package/dist/commonjs/pollingHelper.js +3 -3
  53. package/dist/commonjs/pollingHelper.js.map +1 -1
  54. package/dist/commonjs/responses.d.ts +573 -539
  55. package/dist/commonjs/responses.d.ts.map +1 -1
  56. package/dist/commonjs/responses.js.map +1 -1
  57. package/dist/esm/clientDefinitions.d.ts +401 -380
  58. package/dist/esm/clientDefinitions.d.ts.map +1 -1
  59. package/dist/esm/clientDefinitions.js.map +1 -1
  60. package/dist/esm/faceClient.d.ts +3 -1
  61. package/dist/esm/faceClient.d.ts.map +1 -1
  62. package/dist/esm/faceClient.js +4 -3
  63. package/dist/esm/faceClient.js.map +1 -1
  64. package/dist/esm/isUnexpected.d.ts +34 -32
  65. package/dist/esm/isUnexpected.d.ts.map +1 -1
  66. package/dist/esm/isUnexpected.js +30 -29
  67. package/dist/esm/isUnexpected.js.map +1 -1
  68. package/dist/esm/models.d.ts +92 -12
  69. package/dist/esm/models.d.ts.map +1 -1
  70. package/dist/esm/models.js.map +1 -1
  71. package/dist/esm/outputModels.d.ts +253 -161
  72. package/dist/esm/outputModels.d.ts.map +1 -1
  73. package/dist/esm/outputModels.js.map +1 -1
  74. package/dist/esm/parameters.d.ts +326 -297
  75. package/dist/esm/parameters.d.ts.map +1 -1
  76. package/dist/esm/parameters.js.map +1 -1
  77. package/dist/esm/pollingHelper.d.ts +5 -4
  78. package/dist/esm/pollingHelper.d.ts.map +1 -1
  79. package/dist/esm/pollingHelper.js +3 -3
  80. package/dist/esm/pollingHelper.js.map +1 -1
  81. package/dist/esm/responses.d.ts +573 -539
  82. package/dist/esm/responses.d.ts.map +1 -1
  83. package/dist/esm/responses.js.map +1 -1
  84. package/dist/react-native/clientDefinitions.d.ts +401 -380
  85. package/dist/react-native/clientDefinitions.d.ts.map +1 -1
  86. package/dist/react-native/clientDefinitions.js.map +1 -1
  87. package/dist/react-native/faceClient.d.ts +3 -1
  88. package/dist/react-native/faceClient.d.ts.map +1 -1
  89. package/dist/react-native/faceClient.js +4 -3
  90. package/dist/react-native/faceClient.js.map +1 -1
  91. package/dist/react-native/isUnexpected.d.ts +34 -32
  92. package/dist/react-native/isUnexpected.d.ts.map +1 -1
  93. package/dist/react-native/isUnexpected.js +30 -29
  94. package/dist/react-native/isUnexpected.js.map +1 -1
  95. package/dist/react-native/models.d.ts +92 -12
  96. package/dist/react-native/models.d.ts.map +1 -1
  97. package/dist/react-native/models.js.map +1 -1
  98. package/dist/react-native/outputModels.d.ts +253 -161
  99. package/dist/react-native/outputModels.d.ts.map +1 -1
  100. package/dist/react-native/outputModels.js.map +1 -1
  101. package/dist/react-native/parameters.d.ts +326 -297
  102. package/dist/react-native/parameters.d.ts.map +1 -1
  103. package/dist/react-native/parameters.js.map +1 -1
  104. package/dist/react-native/pollingHelper.d.ts +5 -4
  105. package/dist/react-native/pollingHelper.d.ts.map +1 -1
  106. package/dist/react-native/pollingHelper.js +3 -3
  107. package/dist/react-native/pollingHelper.js.map +1 -1
  108. package/dist/react-native/responses.d.ts +573 -539
  109. package/dist/react-native/responses.d.ts.map +1 -1
  110. package/dist/react-native/responses.js.map +1 -1
  111. package/package.json +39 -33
  112. package/review/ai-vision-face.api.md +375 -296
package/CHANGELOG.md ADDED
@@ -0,0 +1,35 @@
1
+ # Release History
2
+
3
+ ## 1.0.0-beta.2 (2024-10-14)
4
+
5
+ This library now supports the Azure AI Face v1.2-preview.1 API.
6
+
7
+ ### Features Added
8
+
9
+ - Added support for latest Detect Liveness Session API
10
+ - New face detection operation: [Detect From Session Image Id](https://learn.microsoft.com/rest/api/face/face-detection-operations/detect-from-session-image-id?view=rest-face-v1.2-preview.1) using `DetectFromSessionImageIdParameters`.
11
+ - New liveness session operation: [Get Session Image](https://learn.microsoft.com/rest/api/face/liveness-session-operations/get-session-image?view=rest-face-v1.2-preview.1).
12
+ - New properties `enableSessionImage?: boolean`, `livenessSingleModalModel?: LivenessModel` to `CreateLivenessSessionContent`.
13
+ - New model `CreateLivenessWithVerifySessionJsonContent` for liveness session operations [Create Liveness With Verify Session](https://learn.microsoft.com/rest/api/face/liveness-session-operations/create-liveness-with-verify-session?view=rest-face-v1.2-preview.1) and [Create Liveness With Verify Session With Verify Image](https://learn.microsoft.com/rest/api/face/liveness-session-operations/create-liveness-with-verify-session-with-verify-image?view=rest-face-v1.2-preview.1).
14
+
15
+ ## 1.0.0-beta.1 (2024-05-23)
16
+
17
+ This is the first preview of the Azure Face Service client library `@azure-rest/ai-vision-face` that follows the [TypeScript Azure SDK Design Guidelines](https://azure.github.io/azure-sdk/typescript_introduction.html).
18
+ This library replaces the package [@azure/cognitiveservices-face](https://www.npmjs.com/package/@azure/cognitiveservices-face).
19
+
20
+ This package's [documentation](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/face/ai-vision-face-rest/README.md) and [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/face/ai-vision-face-rest/samples) demonstrate the new API.
21
+
22
+ ### Features Added
23
+
24
+ These are the new features not supported by the old package [@azure/cognitiveservices-face](https://www.npmjs.com/package/@azure/cognitiveservices-face).
25
+
26
+ - Added support for Liveness Detection.
27
+ - Added support for `Person` and `DynamicPersonGroup` operations.
28
+ - Added support for face recognition with `PersonDirectory` by passing `IdentifyFromPersonDirectoryParameters` or `IdentifyFromDynamicPersonGroupParameters` to `/identify`.
29
+ - Added support for authentication with Microsoft Entra ID using `DefaultAzureCredential` from `@azure/identity`.
30
+
31
+ ### Breaking Changes
32
+
33
+ - This library supports only the Azure AI Face v1.1-preview.1 API, whose data models are not compatible with the v1.0 API used by [@azure/cognitiveservices-face](https://www.npmjs.com/package/@azure/cognitiveservices-face).
34
+ - This library follows the design of [REST client](https://devblogs.microsoft.com/azure-sdk/azure-rest-libraries-for-javascript/), which is essentially different from [@azure/cognitiveservices-face](https://www.npmjs.com/package/@azure/cognitiveservices-face).
35
+ - The Snapshot operations are all removed as [the Snapshot API is no longer supported](https://azure.microsoft.com/updates/facelimitedaccess/).
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Microsoft
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.