Skip to content

Commit db6f116

Browse files
fix: re-generate types based on specifciation updates (GoogleChromeLabs#202)
1 parent 5659871 commit db6f116

File tree

2 files changed

+82
-14
lines changed

2 files changed

+82
-14
lines changed

out/gen/main.d.ts

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ export declare namespace BrowsingContext {
952952
export type EmulationCommand =
953953
| Emulation.SetGeolocationOverride
954954
| Emulation.SetLocaleOverride
955-
| Emulation.SetScreenOrientationOverride;
955+
| Emulation.SetScreenOrientationOverride
956+
| Emulation.SetTimezoneOverride;
956957
export declare namespace Emulation {
957958
type SetGeolocationOverride = {
958959
method: 'emulation.setGeolocationOverride';
@@ -1071,6 +1072,22 @@ export declare namespace Emulation {
10711072
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
10721073
};
10731074
}
1075+
export declare namespace Emulation {
1076+
type SetTimezoneOverride = {
1077+
method: 'emulation.setTimezoneOverride';
1078+
params: Emulation.SetTimezoneOverrideParameters;
1079+
};
1080+
}
1081+
export declare namespace Emulation {
1082+
type SetTimezoneOverrideParameters = {
1083+
timezone: string | null;
1084+
contexts?: [
1085+
BrowsingContext.BrowsingContext,
1086+
...BrowsingContext.BrowsingContext[],
1087+
];
1088+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1089+
};
1090+
}
10741091
export type NetworkCommand =
10751092
| Network.AddDataCollector
10761093
| Network.AddIntercept
@@ -1083,7 +1100,8 @@ export type NetworkCommand =
10831100
| Network.ProvideResponse
10841101
| Network.RemoveDataCollector
10851102
| Network.RemoveIntercept
1086-
| Network.SetCacheBehavior;
1103+
| Network.SetCacheBehavior
1104+
| Network.SetExtraHeaders;
10871105
export type NetworkEvent =
10881106
| Network.AuthRequired
10891107
| Network.BeforeRequestSent
@@ -1115,11 +1133,6 @@ export declare namespace Network {
11151133
intercepts?: [Network.Intercept, ...Network.Intercept[]];
11161134
};
11171135
}
1118-
export declare namespace Network {
1119-
const enum DataType {
1120-
Response = 'response',
1121-
}
1122-
}
11231136
export declare namespace Network {
11241137
type BytesValue = Network.StringValue | Network.Base64Value;
11251138
}
@@ -1170,6 +1183,11 @@ export declare namespace Network {
11701183
value: Network.BytesValue;
11711184
};
11721185
}
1186+
export declare namespace Network {
1187+
const enum DataType {
1188+
Response = 'response',
1189+
}
1190+
}
11731191
export declare namespace Network {
11741192
type FetchTimingInfo = {
11751193
timeOrigin: number;
@@ -1485,6 +1503,22 @@ export declare namespace Network {
14851503
];
14861504
};
14871505
}
1506+
export declare namespace Network {
1507+
type SetExtraHeaders = {
1508+
method: 'network.setExtraHeaders';
1509+
params: Network.SetExtraHeadersParameters;
1510+
};
1511+
}
1512+
export declare namespace Network {
1513+
type SetExtraHeadersParameters = {
1514+
headers: [Network.Header, ...Network.Header[]];
1515+
contexts?: [
1516+
BrowsingContext.BrowsingContext,
1517+
...BrowsingContext.BrowsingContext[],
1518+
];
1519+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1520+
};
1521+
}
14881522
export type ScriptEvent =
14891523
| Script.Message
14901524
| Script.RealmCreated

src/gen/main.ts

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,8 @@ export namespace BrowsingContext {
954954
export type EmulationCommand =
955955
| Emulation.SetGeolocationOverride
956956
| Emulation.SetLocaleOverride
957-
| Emulation.SetScreenOrientationOverride;
957+
| Emulation.SetScreenOrientationOverride
958+
| Emulation.SetTimezoneOverride;
958959
export namespace Emulation {
959960
export type SetGeolocationOverride = {
960961
method: 'emulation.setGeolocationOverride';
@@ -1073,6 +1074,22 @@ export namespace Emulation {
10731074
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
10741075
};
10751076
}
1077+
export namespace Emulation {
1078+
export type SetTimezoneOverride = {
1079+
method: 'emulation.setTimezoneOverride';
1080+
params: Emulation.SetTimezoneOverrideParameters;
1081+
};
1082+
}
1083+
export namespace Emulation {
1084+
export type SetTimezoneOverrideParameters = {
1085+
timezone: string | null;
1086+
contexts?: [
1087+
BrowsingContext.BrowsingContext,
1088+
...BrowsingContext.BrowsingContext[],
1089+
];
1090+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1091+
};
1092+
}
10761093
export type NetworkCommand =
10771094
| Network.AddDataCollector
10781095
| Network.AddIntercept
@@ -1085,7 +1102,8 @@ export type NetworkCommand =
10851102
| Network.ProvideResponse
10861103
| Network.RemoveDataCollector
10871104
| Network.RemoveIntercept
1088-
| Network.SetCacheBehavior;
1105+
| Network.SetCacheBehavior
1106+
| Network.SetExtraHeaders;
10891107
export type NetworkEvent =
10901108
| Network.AuthRequired
10911109
| Network.BeforeRequestSent
@@ -1117,11 +1135,6 @@ export namespace Network {
11171135
intercepts?: [Network.Intercept, ...Network.Intercept[]];
11181136
};
11191137
}
1120-
export namespace Network {
1121-
export const enum DataType {
1122-
Response = 'response',
1123-
}
1124-
}
11251138
export namespace Network {
11261139
export type BytesValue = Network.StringValue | Network.Base64Value;
11271140
}
@@ -1172,6 +1185,11 @@ export namespace Network {
11721185
value: Network.BytesValue;
11731186
};
11741187
}
1188+
export namespace Network {
1189+
export const enum DataType {
1190+
Response = 'response',
1191+
}
1192+
}
11751193
export namespace Network {
11761194
export type FetchTimingInfo = {
11771195
timeOrigin: number;
@@ -1487,6 +1505,22 @@ export namespace Network {
14871505
];
14881506
};
14891507
}
1508+
export namespace Network {
1509+
export type SetExtraHeaders = {
1510+
method: 'network.setExtraHeaders';
1511+
params: Network.SetExtraHeadersParameters;
1512+
};
1513+
}
1514+
export namespace Network {
1515+
export type SetExtraHeadersParameters = {
1516+
headers: [Network.Header, ...Network.Header[]];
1517+
contexts?: [
1518+
BrowsingContext.BrowsingContext,
1519+
...BrowsingContext.BrowsingContext[],
1520+
];
1521+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1522+
};
1523+
}
14901524
export type ScriptEvent =
14911525
| Script.Message
14921526
| Script.RealmCreated

0 commit comments

Comments
 (0)