Skip to content

Commit 5ed5c6d

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 60b9da0 commit 5ed5c6d

File tree

4 files changed

+145
-2
lines changed

4 files changed

+145
-2
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\FedCm;
4+
5+
/**
6+
* Corresponds to IdentityRequestAccount
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class Account implements \JsonSerializable
13+
{
14+
/** @var string */
15+
public $accountId;
16+
17+
/** @var string */
18+
public $email;
19+
20+
/** @var string */
21+
public $name;
22+
23+
/** @var string */
24+
public $givenName;
25+
26+
/** @var string */
27+
public $pictureUrl;
28+
29+
/** @var string */
30+
public $idpConfigUrl;
31+
32+
33+
/**
34+
* @param object $data
35+
* @return static
36+
*/
37+
public static function fromJson($data)
38+
{
39+
$instance = new static();
40+
if (isset($data->accountId)) {
41+
$instance->accountId = (string)$data->accountId;
42+
}
43+
if (isset($data->email)) {
44+
$instance->email = (string)$data->email;
45+
}
46+
if (isset($data->name)) {
47+
$instance->name = (string)$data->name;
48+
}
49+
if (isset($data->givenName)) {
50+
$instance->givenName = (string)$data->givenName;
51+
}
52+
if (isset($data->pictureUrl)) {
53+
$instance->pictureUrl = (string)$data->pictureUrl;
54+
}
55+
if (isset($data->idpConfigUrl)) {
56+
$instance->idpConfigUrl = (string)$data->idpConfigUrl;
57+
}
58+
return $instance;
59+
}
60+
61+
62+
public function jsonSerialize()
63+
{
64+
$data = new \stdClass();
65+
if ($this->accountId !== null) {
66+
$data->accountId = $this->accountId;
67+
}
68+
if ($this->email !== null) {
69+
$data->email = $this->email;
70+
}
71+
if ($this->name !== null) {
72+
$data->name = $this->name;
73+
}
74+
if ($this->givenName !== null) {
75+
$data->givenName = $this->givenName;
76+
}
77+
if ($this->pictureUrl !== null) {
78+
$data->pictureUrl = $this->pictureUrl;
79+
}
80+
if ($this->idpConfigUrl !== null) {
81+
$data->idpConfigUrl = $this->idpConfigUrl;
82+
}
83+
return $data;
84+
}
85+
}

gen-src/ChromeDevtoolsProtocol/Model/FedCm/DialogShownEvent.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,36 @@
1111
*/
1212
final class DialogShownEvent implements \JsonSerializable
1313
{
14+
/** @var Account[] */
15+
public $accounts;
16+
17+
1418
/**
1519
* @param object $data
1620
* @return static
1721
*/
1822
public static function fromJson($data)
1923
{
2024
$instance = new static();
25+
if (isset($data->accounts)) {
26+
$instance->accounts = [];
27+
foreach ($data->accounts as $item) {
28+
$instance->accounts[] = Account::fromJson($item);
29+
}
30+
}
2131
return $instance;
2232
}
2333

2434

2535
public function jsonSerialize()
2636
{
2737
$data = new \stdClass();
38+
if ($this->accounts !== null) {
39+
$data->accounts = [];
40+
foreach ($this->accounts as $item) {
41+
$data->accounts[] = $item->jsonSerialize();
42+
}
43+
}
2844
return $data;
2945
}
3046
}

protocol.json

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10084,9 +10084,51 @@
1008410084
"domain": "FedCm",
1008510085
"description": "This domain allows interacting with the FedCM dialog.",
1008610086
"experimental": true,
10087+
"types": [
10088+
{
10089+
"id": "Account",
10090+
"description": "Corresponds to IdentityRequestAccount",
10091+
"type": "object",
10092+
"properties": [
10093+
{
10094+
"name": "accountId",
10095+
"type": "string"
10096+
},
10097+
{
10098+
"name": "email",
10099+
"type": "string"
10100+
},
10101+
{
10102+
"name": "name",
10103+
"type": "string"
10104+
},
10105+
{
10106+
"name": "givenName",
10107+
"type": "string"
10108+
},
10109+
{
10110+
"name": "pictureUrl",
10111+
"type": "string"
10112+
},
10113+
{
10114+
"name": "idpConfigUrl",
10115+
"type": "string"
10116+
}
10117+
]
10118+
}
10119+
],
1008710120
"events": [
1008810121
{
10089-
"name": "dialogShown"
10122+
"name": "dialogShown",
10123+
"parameters": [
10124+
{
10125+
"name": "accounts",
10126+
"type": "array",
10127+
"items": {
10128+
"$ref": "Account"
10129+
}
10130+
}
10131+
]
1009010132
}
1009110133
],
1009210134
"commands": [

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
92ef2b49ace9d19e6b150c4f712876cc protocol.json
1+
4bd80aeb6252abad028777b8955f72ae protocol.json

0 commit comments

Comments
 (0)