@azure-rest/ai-vision-face 1.0.0-alpha.20250411.1 → 1.0.0-alpha.20250418.1

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/README.md CHANGED
@@ -377,12 +377,13 @@ const client = FaceClient(endpoint, credential);
377
377
 
378
378
  console.log("Create a new liveness session.");
379
379
  const createLivenessSessionResponse = await client
380
- .path("/detectLiveness-sessions")
380
+ .path("/detectLiveness/singleModal/sessions")
381
381
  .post({
382
382
  body: {
383
383
  livenessOperationMode: "Passive",
384
384
  deviceCorrelationId: randomUUID(),
385
- enableSessionImage: true,
385
+ sendResultsToClient: false,
386
+ authTokenTimeToLiveInSeconds: 60,
386
387
  },
387
388
  });
388
389
 
@@ -395,7 +396,7 @@ const { sessionId } = createLivenessSessionResponse.body;
395
396
 
396
397
  console.log("Get liveness detection results.");
397
398
  const getLivenessSessionResponse = await client
398
- .path("/detectLiveness-sessions/{sessionId}", sessionId)
399
+ .path("/detectLiveness/singleModal/sessions/{sessionId}", sessionId)
399
400
  .get();
400
401
 
401
402
  if (isUnexpected(getLivenessSessionResponse)) {
@@ -418,26 +419,22 @@ const client = FaceClient(endpoint, credential);
418
419
 
419
420
  console.log("Create a new liveness with verify session with verify image.");
420
421
  const createLivenessSessionResponse = await client
421
- .path("/detectLivenessWithVerify-sessions")
422
+ .path("/detectLivenessWithVerify/singleModal/sessions")
422
423
  .post({
423
424
  contentType: "multipart/form-data",
424
425
  body: [
425
426
  {
426
- name: "verifyImage",
427
+ name: "VerifyImage",
427
428
  body: readFileSync("path/to/verify/image"),
428
- filename: "verifyImage.jpg",
429
429
  },
430
430
  {
431
- name: "livenessOperationMode",
432
- body: "Passive",
433
- },
434
- {
435
- name: "deviceCorrelationId",
436
- body: randomUUID(),
437
- },
438
- {
439
- name: "enableSessionImage",
440
- body: true,
431
+ name: "Parameters",
432
+ body: {
433
+ livenessOperationMode: "Passive",
434
+ sendResultsToClient: false,
435
+ authTokenTimeToLiveInSeconds: 60,
436
+ deviceCorrelationId: randomUUID(),
437
+ },
441
438
  },
442
439
  ],
443
440
  });
@@ -451,7 +448,7 @@ const { sessionId } = createLivenessSessionResponse.body;
451
448
 
452
449
  console.log("Get the liveness detection and verification result.");
453
450
  const getLivenessSessionResultResponse = await client
454
- .path("/detectLivenessWithVerify-sessions/{sessionId}", sessionId)
451
+ .path("/detectLivenessWithVerify/singleModal/sessions/{sessionId}", sessionId)
455
452
  .get();
456
453
 
457
454
  if (isUnexpected(getLivenessSessionResultResponse)) {
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.3"
8
+ "packageVersion": "7.52.4"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-rest/ai-vision-face",
3
- "version": "1.0.0-alpha.20250411.1",
3
+ "version": "1.0.0-alpha.20250418.1",
4
4
  "description": "Face API REST Client",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -97,9 +97,9 @@
97
97
  "integration-test:node": "dev-tool run test:vitest --esm",
98
98
  "lint": "eslint package.json api-extractor.json src test",
99
99
  "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
100
- "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
100
+ "minify": "echo skipped",
101
101
  "pack": "npm pack 2>&1",
102
- "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
102
+ "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run unit-test:browser && npm run integration-test",
103
103
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
104
104
  "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
105
105
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",