Skip to content

Commit 8a8f361

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 13132e5 commit 8a8f361

File tree

8 files changed

+80
-39
lines changed

8 files changed

+80
-39
lines changed

gen-src/ChromeDevtoolsProtocol/Model/Audits/AttributionReportingIssueDetails.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ final class AttributionReportingIssueDetails implements \JsonSerializable
1414
/** @var string */
1515
public $violationType;
1616

17-
/**
18-
* TODO(apaseltiner): Remove this once it is no longer referenced by the frontend.
19-
*
20-
* @var AffectedFrame|null
21-
*/
22-
public $frame;
23-
2417
/** @var AffectedRequest|null */
2518
public $request;
2619

@@ -41,9 +34,6 @@ public static function fromJson($data)
4134
if (isset($data->violationType)) {
4235
$instance->violationType = (string)$data->violationType;
4336
}
44-
if (isset($data->frame)) {
45-
$instance->frame = AffectedFrame::fromJson($data->frame);
46-
}
4737
if (isset($data->request)) {
4838
$instance->request = AffectedRequest::fromJson($data->request);
4939
}
@@ -63,9 +53,6 @@ public function jsonSerialize()
6353
if ($this->violationType !== null) {
6454
$data->violationType = $this->violationType;
6555
}
66-
if ($this->frame !== null) {
67-
$data->frame = $this->frame->jsonSerialize();
68-
}
6956
if ($this->request !== null) {
7057
$data->request = $this->request->jsonSerialize();
7158
}

gen-src/ChromeDevtoolsProtocol/Model/Audits/AttributionReportingIssueTypeEnum.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
final class AttributionReportingIssueTypeEnum
1313
{
1414
public const PERMISSION_POLICY_DISABLED = 'PermissionPolicyDisabled';
15-
public const ATTRIBUTION_SOURCE_UNTRUSTWORTHY_ORIGIN = 'AttributionSourceUntrustworthyOrigin';
16-
public const ATTRIBUTION_UNTRUSTWORTHY_ORIGIN = 'AttributionUntrustworthyOrigin';
1715
public const UNTRUSTWORTHY_REPORTING_ORIGIN = 'UntrustworthyReportingOrigin';
1816
public const INSECURE_CONTEXT = 'InsecureContext';
1917
public const INVALID_HEADER = 'InvalidHeader';
2018
public const INVALID_REGISTER_TRIGGER_HEADER = 'InvalidRegisterTriggerHeader';
19+
public const INVALID_ELIGIBLE_HEADER = 'InvalidEligibleHeader';
2120
}

gen-src/ChromeDevtoolsProtocol/Model/IndexedDB/RequestDataRequest.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212
final class RequestDataRequest implements \JsonSerializable
1313
{
1414
/**
15-
* Security origin.
15+
* At least and at most one of securityOrigin, storageKey must be specified. Security origin.
1616
*
17-
* @var string
17+
* @var string|null
1818
*/
1919
public $securityOrigin;
2020

21+
/**
22+
* Storage key.
23+
*
24+
* @var string|null
25+
*/
26+
public $storageKey;
27+
2128
/**
2229
* Database name.
2330
*
@@ -71,6 +78,9 @@ public static function fromJson($data)
7178
if (isset($data->securityOrigin)) {
7279
$instance->securityOrigin = (string)$data->securityOrigin;
7380
}
81+
if (isset($data->storageKey)) {
82+
$instance->storageKey = (string)$data->storageKey;
83+
}
7484
if (isset($data->databaseName)) {
7585
$instance->databaseName = (string)$data->databaseName;
7686
}
@@ -99,6 +109,9 @@ public function jsonSerialize()
99109
if ($this->securityOrigin !== null) {
100110
$data->securityOrigin = $this->securityOrigin;
101111
}
112+
if ($this->storageKey !== null) {
113+
$data->storageKey = $this->storageKey;
114+
}
102115
if ($this->databaseName !== null) {
103116
$data->databaseName = $this->databaseName;
104117
}

gen-src/ChromeDevtoolsProtocol/Model/IndexedDB/RequestDataRequestBuilder.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
final class RequestDataRequestBuilder
1313
{
1414
private $securityOrigin;
15+
private $storageKey;
1516
private $databaseName;
1617
private $objectStoreName;
1718
private $indexName;
@@ -26,10 +27,8 @@ final class RequestDataRequestBuilder
2627
public function build(): RequestDataRequest
2728
{
2829
$instance = new RequestDataRequest();
29-
if ($this->securityOrigin === null) {
30-
throw new BuilderException('Property [securityOrigin] is required.');
31-
}
3230
$instance->securityOrigin = $this->securityOrigin;
31+
$instance->storageKey = $this->storageKey;
3332
if ($this->databaseName === null) {
3433
throw new BuilderException('Property [databaseName] is required.');
3534
}
@@ -56,7 +55,7 @@ public function build(): RequestDataRequest
5655

5756

5857
/**
59-
* @param string $securityOrigin
58+
* @param string|null $securityOrigin
6059
*
6160
* @return self
6261
*/
@@ -67,6 +66,18 @@ public function setSecurityOrigin($securityOrigin): self
6766
}
6867

6968

69+
/**
70+
* @param string|null $storageKey
71+
*
72+
* @return self
73+
*/
74+
public function setStorageKey($storageKey): self
75+
{
76+
$this->storageKey = $storageKey;
77+
return $this;
78+
}
79+
80+
7081
/**
7182
* @param string $databaseName
7283
*

gen-src/ChromeDevtoolsProtocol/Model/IndexedDB/RequestDatabaseRequest.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212
final class RequestDatabaseRequest implements \JsonSerializable
1313
{
1414
/**
15-
* Security origin.
15+
* At least and at most one of securityOrigin, storageKey must be specified. Security origin.
1616
*
17-
* @var string
17+
* @var string|null
1818
*/
1919
public $securityOrigin;
2020

21+
/**
22+
* Storage key.
23+
*
24+
* @var string|null
25+
*/
26+
public $storageKey;
27+
2128
/**
2229
* Database name.
2330
*
@@ -36,6 +43,9 @@ public static function fromJson($data)
3643
if (isset($data->securityOrigin)) {
3744
$instance->securityOrigin = (string)$data->securityOrigin;
3845
}
46+
if (isset($data->storageKey)) {
47+
$instance->storageKey = (string)$data->storageKey;
48+
}
3949
if (isset($data->databaseName)) {
4050
$instance->databaseName = (string)$data->databaseName;
4151
}
@@ -49,6 +59,9 @@ public function jsonSerialize()
4959
if ($this->securityOrigin !== null) {
5060
$data->securityOrigin = $this->securityOrigin;
5161
}
62+
if ($this->storageKey !== null) {
63+
$data->storageKey = $this->storageKey;
64+
}
5265
if ($this->databaseName !== null) {
5366
$data->databaseName = $this->databaseName;
5467
}

gen-src/ChromeDevtoolsProtocol/Model/IndexedDB/RequestDatabaseRequestBuilder.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
final class RequestDatabaseRequestBuilder
1313
{
1414
private $securityOrigin;
15+
private $storageKey;
1516
private $databaseName;
1617

1718

@@ -21,10 +22,8 @@ final class RequestDatabaseRequestBuilder
2122
public function build(): RequestDatabaseRequest
2223
{
2324
$instance = new RequestDatabaseRequest();
24-
if ($this->securityOrigin === null) {
25-
throw new BuilderException('Property [securityOrigin] is required.');
26-
}
2725
$instance->securityOrigin = $this->securityOrigin;
26+
$instance->storageKey = $this->storageKey;
2827
if ($this->databaseName === null) {
2928
throw new BuilderException('Property [databaseName] is required.');
3029
}
@@ -34,7 +33,7 @@ public function build(): RequestDatabaseRequest
3433

3534

3635
/**
37-
* @param string $securityOrigin
36+
* @param string|null $securityOrigin
3837
*
3938
* @return self
4039
*/
@@ -45,6 +44,18 @@ public function setSecurityOrigin($securityOrigin): self
4544
}
4645

4746

47+
/**
48+
* @param string|null $storageKey
49+
*
50+
* @return self
51+
*/
52+
public function setStorageKey($storageKey): self
53+
{
54+
$this->storageKey = $storageKey;
55+
return $this;
56+
}
57+
58+
4859
/**
4960
* @param string $databaseName
5061
*

protocol.json

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,12 +1446,11 @@
14461446
"type": "string",
14471447
"enum": [
14481448
"PermissionPolicyDisabled",
1449-
"AttributionSourceUntrustworthyOrigin",
1450-
"AttributionUntrustworthyOrigin",
14511449
"UntrustworthyReportingOrigin",
14521450
"InsecureContext",
14531451
"InvalidHeader",
1454-
"InvalidRegisterTriggerHeader"
1452+
"InvalidRegisterTriggerHeader",
1453+
"InvalidEligibleHeader"
14551454
]
14561455
},
14571456
{
@@ -1463,12 +1462,6 @@
14631462
"name": "violationType",
14641463
"$ref": "AttributionReportingIssueType"
14651464
},
1466-
{
1467-
"name": "frame",
1468-
"description": "TODO(apaseltiner): Remove this once it is no longer referenced by the frontend.",
1469-
"optional": true,
1470-
"$ref": "AffectedFrame"
1471-
},
14721465
{
14731466
"name": "request",
14741467
"optional": true,
@@ -11169,7 +11162,14 @@
1116911162
"parameters": [
1117011163
{
1117111164
"name": "securityOrigin",
11172-
"description": "Security origin.",
11165+
"description": "At least and at most one of securityOrigin, storageKey must be specified. Security origin.",
11166+
"optional": true,
11167+
"type": "string"
11168+
},
11169+
{
11170+
"name": "storageKey",
11171+
"description": "Storage key.",
11172+
"optional": true,
1117311173
"type": "string"
1117411174
},
1117511175
{
@@ -11226,7 +11226,14 @@
1122611226
"parameters": [
1122711227
{
1122811228
"name": "securityOrigin",
11229-
"description": "Security origin.",
11229+
"description": "At least and at most one of securityOrigin, storageKey must be specified. Security origin.",
11230+
"optional": true,
11231+
"type": "string"
11232+
},
11233+
{
11234+
"name": "storageKey",
11235+
"description": "Storage key.",
11236+
"optional": true,
1123011237
"type": "string"
1123111238
},
1123211239
{

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8a54b1651445ceeff908b0060220a151 protocol.json
1+
4107d23307cbd798c508fdd48f8bd386 protocol.json

0 commit comments

Comments
 (0)