Skip to content

Commit da56063

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 5a13632 commit da56063

File tree

7 files changed

+155
-2
lines changed

7 files changed

+155
-2
lines changed

gen-src/ChromeDevtoolsProtocol/Domain/WebAuthnDomain.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use ChromeDevtoolsProtocol\Model\WebAuthn\GetCredentialsRequest;
1212
use ChromeDevtoolsProtocol\Model\WebAuthn\GetCredentialsResponse;
1313
use ChromeDevtoolsProtocol\Model\WebAuthn\RemoveVirtualAuthenticatorRequest;
14+
use ChromeDevtoolsProtocol\Model\WebAuthn\SetUserVerifiedRequest;
1415

1516
class WebAuthnDomain implements WebAuthnDomainInterface
1617
{
@@ -68,4 +69,10 @@ public function removeVirtualAuthenticator(ContextInterface $ctx, RemoveVirtualA
6869
{
6970
$this->internalClient->executeCommand($ctx, 'WebAuthn.removeVirtualAuthenticator', $request);
7071
}
72+
73+
74+
public function setUserVerified(ContextInterface $ctx, SetUserVerifiedRequest $request): void
75+
{
76+
$this->internalClient->executeCommand($ctx, 'WebAuthn.setUserVerified', $request);
77+
}
7178
}

gen-src/ChromeDevtoolsProtocol/Domain/WebAuthnDomainInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use ChromeDevtoolsProtocol\Model\WebAuthn\GetCredentialsRequest;
1111
use ChromeDevtoolsProtocol\Model\WebAuthn\GetCredentialsResponse;
1212
use ChromeDevtoolsProtocol\Model\WebAuthn\RemoveVirtualAuthenticatorRequest;
13+
use ChromeDevtoolsProtocol\Model\WebAuthn\SetUserVerifiedRequest;
1314

1415
/**
1516
* This domain allows configuring virtual authenticators to test the WebAuthn API.
@@ -95,4 +96,15 @@ public function getCredentials(ContextInterface $ctx, GetCredentialsRequest $req
9596
* @return void
9697
*/
9798
public function removeVirtualAuthenticator(ContextInterface $ctx, RemoveVirtualAuthenticatorRequest $request): void;
99+
100+
101+
/**
102+
* Sets whether User Verification succeeds or fails for an authenticator. The default is true.
103+
*
104+
* @param ContextInterface $ctx
105+
* @param SetUserVerifiedRequest $request
106+
*
107+
* @return void
108+
*/
109+
public function setUserVerified(ContextInterface $ctx, SetUserVerifiedRequest $request): void;
98110
}

gen-src/ChromeDevtoolsProtocol/Model/Browser/PermissionTypeEnum.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ final class PermissionTypeEnum
2929
const SENSORS = 'sensors';
3030
const VIDEO_CAPTURE = 'videoCapture';
3131
const IDLE_DETECTION = 'idleDetection';
32+
const WAKE_LOCK_SCREEN = 'wakeLockScreen';
33+
const WAKE_LOCK_SYSTEM = 'wakeLockSystem';
3234
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\WebAuthn;
4+
5+
/**
6+
* Request for WebAuthn.setUserVerified command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class SetUserVerifiedRequest implements \JsonSerializable
13+
{
14+
/** @var string */
15+
public $authenticatorId;
16+
17+
/** @var bool */
18+
public $isUserVerified;
19+
20+
21+
public static function fromJson($data)
22+
{
23+
$instance = new static();
24+
if (isset($data->authenticatorId)) {
25+
$instance->authenticatorId = (string)$data->authenticatorId;
26+
}
27+
if (isset($data->isUserVerified)) {
28+
$instance->isUserVerified = (bool)$data->isUserVerified;
29+
}
30+
return $instance;
31+
}
32+
33+
34+
public function jsonSerialize()
35+
{
36+
$data = new \stdClass();
37+
if ($this->authenticatorId !== null) {
38+
$data->authenticatorId = $this->authenticatorId;
39+
}
40+
if ($this->isUserVerified !== null) {
41+
$data->isUserVerified = $this->isUserVerified;
42+
}
43+
return $data;
44+
}
45+
46+
47+
/**
48+
* Create new instance using builder.
49+
*
50+
* @return SetUserVerifiedRequestBuilder
51+
*/
52+
public static function builder(): SetUserVerifiedRequestBuilder
53+
{
54+
return new SetUserVerifiedRequestBuilder();
55+
}
56+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\WebAuthn;
4+
5+
use ChromeDevtoolsProtocol\Exception\BuilderException;
6+
7+
/**
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class SetUserVerifiedRequestBuilder
13+
{
14+
private $authenticatorId;
15+
16+
private $isUserVerified;
17+
18+
19+
/**
20+
* Validate non-optional parameters and return new instance.
21+
*/
22+
public function build(): SetUserVerifiedRequest
23+
{
24+
$instance = new SetUserVerifiedRequest();
25+
if ($this->authenticatorId === null) {
26+
throw new BuilderException('Property [authenticatorId] is required.');
27+
}
28+
$instance->authenticatorId = $this->authenticatorId;
29+
if ($this->isUserVerified === null) {
30+
throw new BuilderException('Property [isUserVerified] is required.');
31+
}
32+
$instance->isUserVerified = $this->isUserVerified;
33+
return $instance;
34+
}
35+
36+
37+
/**
38+
* @param string $authenticatorId
39+
*
40+
* @return self
41+
*/
42+
public function setAuthenticatorId($authenticatorId): self
43+
{
44+
$this->authenticatorId = $authenticatorId;
45+
return $this;
46+
}
47+
48+
49+
/**
50+
* @param bool $isUserVerified
51+
*
52+
* @return self
53+
*/
54+
public function setIsUserVerified($isUserVerified): self
55+
{
56+
$this->isUserVerified = $isUserVerified;
57+
return $this;
58+
}
59+
}

protocol.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,9 @@
12021202
"protectedMediaIdentifier",
12031203
"sensors",
12041204
"videoCapture",
1205-
"idleDetection"
1205+
"idleDetection",
1206+
"wakeLockScreen",
1207+
"wakeLockSystem"
12061208
]
12071209
},
12081210
{
@@ -16499,6 +16501,7 @@
1649916501
{
1650016502
"name": "schemeIsCryptographic",
1650116503
"description": "True if the page was loaded over cryptographic transport such as HTTPS.",
16504+
"deprecated": true,
1650216505
"type": "boolean"
1650316506
},
1650416507
{
@@ -18383,6 +18386,20 @@
1838318386
"$ref": "AuthenticatorId"
1838418387
}
1838518388
]
18389+
},
18390+
{
18391+
"name": "setUserVerified",
18392+
"description": "Sets whether User Verification succeeds or fails for an authenticator. The default is true.",
18393+
"parameters": [
18394+
{
18395+
"name": "authenticatorId",
18396+
"$ref": "AuthenticatorId"
18397+
},
18398+
{
18399+
"name": "isUserVerified",
18400+
"type": "boolean"
18401+
}
18402+
]
1838618403
}
1838718404
],
1838818405
"events": []

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f84d650218ecbb59e488c3dad8b340d8 protocol.json
1+
f1c51fb292b5fdad22e57dcb6ef6db92 protocol.json

0 commit comments

Comments
 (0)