chromium-bidi 0.4.21 → 0.4.22

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.
@@ -19,7 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
19
19
  return (mod && mod.__esModule) ? mod : { "default": mod };
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.Input = exports.InputCommandSchema = exports.Log = exports.LogEventSchema = exports.Script = exports.ScriptEventSchema = exports.ScriptResultSchema = exports.ScriptCommandSchema = exports.Network = exports.NetworkEventSchema = exports.NetworkResultSchema = exports.NetworkCommandSchema = exports.BrowsingContext = exports.BrowsingContextEventSchema = exports.BrowsingContextResultSchema = exports.BrowsingContextCommandSchema = exports.Browser = exports.BrowserCommandSchema = exports.Session = exports.SessionResultSchema = exports.SessionCommandSchema = exports.ErrorCodeSchema = exports.JsUintSchema = exports.JsIntSchema = exports.ExtensibleSchema = exports.EventDataSchema = exports.EventSchema = exports.EmptyResultSchema = exports.ResultDataSchema = exports.ErrorResponseSchema = exports.CommandResponseSchema = exports.MessageSchema = exports.EmptyParamsSchema = exports.CommandDataSchema = exports.CommandSchema = void 0;
22
+ exports.Input = exports.InputCommandSchema = exports.Log = exports.LogEventSchema = exports.Script = exports.ScriptResultSchema = exports.ScriptCommandSchema = exports.ScriptEventSchema = exports.Network = exports.NetworkResultSchema = exports.NetworkEventSchema = exports.NetworkCommandSchema = exports.BrowsingContext = exports.BrowsingContextResultSchema = exports.BrowsingContextEventSchema = exports.BrowsingContextCommandSchema = exports.Browser = exports.BrowserCommandSchema = exports.Session = exports.SessionResultSchema = exports.SessionCommandSchema = exports.ErrorCodeSchema = exports.JsUintSchema = exports.JsIntSchema = exports.ExtensibleSchema = exports.EmptyResultSchema = exports.ErrorResponseSchema = exports.MessageSchema = exports.EmptyParamsSchema = exports.ResultDataSchema = exports.CommandDataSchema = exports.EventDataSchema = exports.CommandResponseSchema = exports.CommandSchema = exports.EventSchema = void 0;
23
23
  /**
24
24
  * THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate.
25
25
  * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs
@@ -27,12 +27,31 @@ exports.Input = exports.InputCommandSchema = exports.Log = exports.LogEventSchem
27
27
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
28
28
  // @ts-nocheck Some types may be circular.
29
29
  const zod_1 = __importDefault(require("zod"));
30
+ exports.EventSchema = zod_1.default.lazy(() => zod_1.default
31
+ .object({
32
+ type: zod_1.default.literal('event'),
33
+ })
34
+ .and(exports.EventDataSchema)
35
+ .and(exports.ExtensibleSchema));
30
36
  exports.CommandSchema = zod_1.default.lazy(() => zod_1.default
31
37
  .object({
32
38
  id: exports.JsUintSchema,
33
39
  })
34
40
  .and(exports.CommandDataSchema)
35
41
  .and(exports.ExtensibleSchema));
42
+ exports.CommandResponseSchema = zod_1.default.lazy(() => zod_1.default
43
+ .object({
44
+ type: zod_1.default.literal('success'),
45
+ id: exports.JsUintSchema,
46
+ result: exports.ResultDataSchema,
47
+ })
48
+ .and(exports.ExtensibleSchema));
49
+ exports.EventDataSchema = zod_1.default.lazy(() => zod_1.default.union([
50
+ exports.BrowsingContextEventSchema,
51
+ exports.LogEventSchema,
52
+ exports.NetworkEventSchema,
53
+ exports.ScriptEventSchema,
54
+ ]));
36
55
  exports.CommandDataSchema = zod_1.default.lazy(() => zod_1.default.union([
37
56
  exports.BrowserCommandSchema,
38
57
  exports.BrowsingContextCommandSchema,
@@ -41,15 +60,15 @@ exports.CommandDataSchema = zod_1.default.lazy(() => zod_1.default.union([
41
60
  exports.ScriptCommandSchema,
42
61
  exports.SessionCommandSchema,
43
62
  ]));
63
+ exports.ResultDataSchema = zod_1.default.lazy(() => zod_1.default.union([
64
+ exports.BrowsingContextResultSchema,
65
+ exports.EmptyResultSchema,
66
+ exports.NetworkResultSchema,
67
+ exports.ScriptResultSchema,
68
+ exports.SessionResultSchema,
69
+ ]));
44
70
  exports.EmptyParamsSchema = zod_1.default.lazy(() => exports.ExtensibleSchema);
45
71
  exports.MessageSchema = zod_1.default.lazy(() => zod_1.default.union([exports.CommandResponseSchema, exports.ErrorResponseSchema, exports.EventSchema]));
46
- exports.CommandResponseSchema = zod_1.default.lazy(() => zod_1.default
47
- .object({
48
- type: zod_1.default.literal('success'),
49
- id: exports.JsUintSchema,
50
- result: exports.ResultDataSchema,
51
- })
52
- .and(exports.ExtensibleSchema));
53
72
  exports.ErrorResponseSchema = zod_1.default.lazy(() => zod_1.default
54
73
  .object({
55
74
  type: zod_1.default.literal('error'),
@@ -59,26 +78,7 @@ exports.ErrorResponseSchema = zod_1.default.lazy(() => zod_1.default
59
78
  stacktrace: zod_1.default.string().optional(),
60
79
  })
61
80
  .and(exports.ExtensibleSchema));
62
- exports.ResultDataSchema = zod_1.default.lazy(() => zod_1.default.union([
63
- exports.BrowsingContextResultSchema,
64
- exports.EmptyResultSchema,
65
- exports.NetworkResultSchema,
66
- exports.ScriptResultSchema,
67
- exports.SessionResultSchema,
68
- ]));
69
81
  exports.EmptyResultSchema = zod_1.default.lazy(() => exports.ExtensibleSchema);
70
- exports.EventSchema = zod_1.default.lazy(() => zod_1.default
71
- .object({
72
- type: zod_1.default.literal('event'),
73
- })
74
- .and(exports.EventDataSchema)
75
- .and(exports.ExtensibleSchema));
76
- exports.EventDataSchema = zod_1.default.lazy(() => zod_1.default.union([
77
- exports.BrowsingContextEventSchema,
78
- exports.LogEventSchema,
79
- exports.NetworkEventSchema,
80
- exports.ScriptEventSchema,
81
- ]));
82
82
  exports.ExtensibleSchema = zod_1.default.lazy(() => zod_1.default.record(zod_1.default.string(), zod_1.default.any()));
83
83
  exports.JsIntSchema = zod_1.default.lazy(() => zod_1.default.number().int().gte(-9007199254740991).lte(9007199254740991));
84
84
  exports.JsUintSchema = zod_1.default.lazy(() => zod_1.default.number().int().nonnegative().gte(0).lte(9007199254740991));
@@ -245,13 +245,6 @@ exports.BrowsingContextCommandSchema = zod_1.default.lazy(() => zod_1.default.un
245
245
  BrowsingContext.ReloadSchema,
246
246
  BrowsingContext.SetViewportSchema,
247
247
  ]));
248
- exports.BrowsingContextResultSchema = zod_1.default.lazy(() => zod_1.default.union([
249
- BrowsingContext.CaptureScreenshotResultSchema,
250
- BrowsingContext.CreateResultSchema,
251
- BrowsingContext.GetTreeResultSchema,
252
- BrowsingContext.NavigateResultSchema,
253
- BrowsingContext.PrintResultSchema,
254
- ]));
255
248
  exports.BrowsingContextEventSchema = zod_1.default.lazy(() => zod_1.default.union([
256
249
  BrowsingContext.ContextCreatedSchema,
257
250
  BrowsingContext.ContextDestroyedSchema,
@@ -265,6 +258,13 @@ exports.BrowsingContextEventSchema = zod_1.default.lazy(() => zod_1.default.unio
265
258
  BrowsingContext.UserPromptClosedSchema,
266
259
  BrowsingContext.UserPromptOpenedSchema,
267
260
  ]));
261
+ exports.BrowsingContextResultSchema = zod_1.default.lazy(() => zod_1.default.union([
262
+ BrowsingContext.CaptureScreenshotResultSchema,
263
+ BrowsingContext.CreateResultSchema,
264
+ BrowsingContext.GetTreeResultSchema,
265
+ BrowsingContext.NavigateResultSchema,
266
+ BrowsingContext.PrintResultSchema,
267
+ ]));
268
268
  var BrowsingContext;
269
269
  (function (BrowsingContext) {
270
270
  BrowsingContext.BrowsingContextSchema = zod_1.default.lazy(() => zod_1.default.string());
@@ -307,18 +307,18 @@ var BrowsingContext;
307
307
  context: BrowsingContext.BrowsingContextSchema,
308
308
  }));
309
309
  })(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));
310
- (function (BrowsingContext) {
311
- BrowsingContext.CaptureScreenshotSchema = zod_1.default.lazy(() => zod_1.default.object({
312
- method: zod_1.default.literal('browsingContext.captureScreenshot'),
313
- params: BrowsingContext.CaptureScreenshotParametersSchema,
314
- }));
315
- })(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));
316
310
  (function (BrowsingContext) {
317
311
  BrowsingContext.CaptureScreenshotParametersSchema = zod_1.default.lazy(() => zod_1.default.object({
318
312
  context: BrowsingContext.BrowsingContextSchema,
319
313
  clip: BrowsingContext.ClipRectangleSchema.optional(),
320
314
  }));
321
315
  })(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));
316
+ (function (BrowsingContext) {
317
+ BrowsingContext.CaptureScreenshotSchema = zod_1.default.lazy(() => zod_1.default.object({
318
+ method: zod_1.default.literal('browsingContext.captureScreenshot'),
319
+ params: BrowsingContext.CaptureScreenshotParametersSchema,
320
+ }));
321
+ })(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));
322
322
  (function (BrowsingContext) {
323
323
  BrowsingContext.ClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.union([
324
324
  BrowsingContext.BoxClipRectangleSchema,
@@ -587,7 +587,6 @@ exports.NetworkCommandSchema = zod_1.default.lazy(() => zod_1.default.union([
587
587
  Network.ProvideResponseSchema,
588
588
  Network.RemoveInterceptSchema,
589
589
  ]));
590
- exports.NetworkResultSchema = zod_1.default.lazy(() => Network.AddInterceptResultSchema);
591
590
  exports.NetworkEventSchema = zod_1.default.lazy(() => zod_1.default.union([
592
591
  Network.AuthRequiredSchema,
593
592
  Network.BeforeRequestSentSchema,
@@ -595,6 +594,7 @@ exports.NetworkEventSchema = zod_1.default.lazy(() => zod_1.default.union([
595
594
  Network.ResponseCompletedSchema,
596
595
  Network.ResponseStartedSchema,
597
596
  ]));
597
+ exports.NetworkResultSchema = zod_1.default.lazy(() => Network.AddInterceptResultSchema);
598
598
  var Network;
599
599
  (function (Network) {
600
600
  Network.AuthChallengeSchema = zod_1.default.lazy(() => zod_1.default.object({
@@ -757,18 +757,18 @@ var Network;
757
757
  pattern: zod_1.default.string(),
758
758
  }));
759
759
  })(Network || (exports.Network = Network = {}));
760
- (function (Network) {
761
- Network.AddInterceptSchema = zod_1.default.lazy(() => zod_1.default.object({
762
- method: zod_1.default.literal('network.addIntercept'),
763
- params: Network.AddInterceptParametersSchema,
764
- }));
765
- })(Network || (exports.Network = Network = {}));
766
760
  (function (Network) {
767
761
  Network.AddInterceptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({
768
762
  phases: zod_1.default.array(Network.InterceptPhaseSchema),
769
763
  urlPatterns: zod_1.default.array(Network.UrlPatternSchema).optional(),
770
764
  }));
771
765
  })(Network || (exports.Network = Network = {}));
766
+ (function (Network) {
767
+ Network.AddInterceptSchema = zod_1.default.lazy(() => zod_1.default.object({
768
+ method: zod_1.default.literal('network.addIntercept'),
769
+ params: Network.AddInterceptParametersSchema,
770
+ }));
771
+ })(Network || (exports.Network = Network = {}));
772
772
  (function (Network) {
773
773
  Network.InterceptPhaseSchema = zod_1.default.lazy(() => zod_1.default.enum(['beforeRequestSent', 'responseStarted', 'authRequired']));
774
774
  })(Network || (exports.Network = Network = {}));
@@ -874,56 +874,31 @@ var Network;
874
874
  intercept: Network.InterceptSchema,
875
875
  }));
876
876
  })(Network || (exports.Network = Network = {}));
877
- (function (Network) {
878
- Network.AuthRequiredSchema = zod_1.default.lazy(() => zod_1.default.object({
879
- method: zod_1.default.literal('network.authRequired'),
880
- params: Network.AuthRequiredParametersSchema,
881
- }));
882
- })(Network || (exports.Network = Network = {}));
877
+ exports.ScriptEventSchema = zod_1.default.lazy(() => zod_1.default.union([
878
+ Script.MessageSchema,
879
+ Script.RealmCreatedSchema,
880
+ Script.RealmDestroyedSchema,
881
+ ]));
883
882
  (function (Network) {
884
883
  Network.AuthRequiredParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({
885
884
  response: Network.ResponseDataSchema,
886
885
  })));
887
886
  })(Network || (exports.Network = Network = {}));
888
- (function (Network) {
889
- Network.BeforeRequestSentSchema = zod_1.default.lazy(() => zod_1.default.object({
890
- method: zod_1.default.literal('network.beforeRequestSent'),
891
- params: Network.BeforeRequestSentParametersSchema,
892
- }));
893
- })(Network || (exports.Network = Network = {}));
894
887
  (function (Network) {
895
888
  Network.BeforeRequestSentParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({
896
889
  initiator: Network.InitiatorSchema,
897
890
  })));
898
891
  })(Network || (exports.Network = Network = {}));
899
- (function (Network) {
900
- Network.FetchErrorSchema = zod_1.default.lazy(() => zod_1.default.object({
901
- method: zod_1.default.literal('network.fetchError'),
902
- params: Network.FetchErrorParametersSchema,
903
- }));
904
- })(Network || (exports.Network = Network = {}));
905
892
  (function (Network) {
906
893
  Network.FetchErrorParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({
907
894
  errorText: zod_1.default.string(),
908
895
  })));
909
896
  })(Network || (exports.Network = Network = {}));
910
- (function (Network) {
911
- Network.ResponseCompletedSchema = zod_1.default.lazy(() => zod_1.default.object({
912
- method: zod_1.default.literal('network.responseCompleted'),
913
- params: Network.ResponseCompletedParametersSchema,
914
- }));
915
- })(Network || (exports.Network = Network = {}));
916
897
  (function (Network) {
917
898
  Network.ResponseCompletedParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({
918
899
  response: Network.ResponseDataSchema,
919
900
  })));
920
901
  })(Network || (exports.Network = Network = {}));
921
- (function (Network) {
922
- Network.ResponseStartedSchema = zod_1.default.lazy(() => zod_1.default.object({
923
- method: zod_1.default.literal('network.responseStarted'),
924
- params: Network.ResponseStartedParametersSchema,
925
- }));
926
- })(Network || (exports.Network = Network = {}));
927
902
  (function (Network) {
928
903
  Network.ResponseStartedParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({
929
904
  response: Network.ResponseDataSchema,
@@ -942,15 +917,56 @@ exports.ScriptResultSchema = zod_1.default.lazy(() => zod_1.default.union([
942
917
  Script.EvaluateResultSchema,
943
918
  Script.GetRealmsResultSchema,
944
919
  ]));
945
- exports.ScriptEventSchema = zod_1.default.lazy(() => zod_1.default.union([
946
- Script.MessageSchema,
947
- Script.RealmCreatedSchema,
948
- Script.RealmDestroyedSchema,
949
- ]));
920
+ (function (Network) {
921
+ Network.AuthRequiredSchema = zod_1.default.lazy(() => zod_1.default.object({
922
+ method: zod_1.default.literal('network.authRequired'),
923
+ params: Network.AuthRequiredParametersSchema,
924
+ }));
925
+ })(Network || (exports.Network = Network = {}));
926
+ (function (Network) {
927
+ Network.BeforeRequestSentSchema = zod_1.default.lazy(() => zod_1.default.object({
928
+ method: zod_1.default.literal('network.beforeRequestSent'),
929
+ params: Network.BeforeRequestSentParametersSchema,
930
+ }));
931
+ })(Network || (exports.Network = Network = {}));
932
+ (function (Network) {
933
+ Network.FetchErrorSchema = zod_1.default.lazy(() => zod_1.default.object({
934
+ method: zod_1.default.literal('network.fetchError'),
935
+ params: Network.FetchErrorParametersSchema,
936
+ }));
937
+ })(Network || (exports.Network = Network = {}));
938
+ (function (Network) {
939
+ Network.ResponseCompletedSchema = zod_1.default.lazy(() => zod_1.default.object({
940
+ method: zod_1.default.literal('network.responseCompleted'),
941
+ params: Network.ResponseCompletedParametersSchema,
942
+ }));
943
+ })(Network || (exports.Network = Network = {}));
944
+ (function (Network) {
945
+ Network.ResponseStartedSchema = zod_1.default.lazy(() => zod_1.default.object({
946
+ method: zod_1.default.literal('network.responseStarted'),
947
+ params: Network.ResponseStartedParametersSchema,
948
+ }));
949
+ })(Network || (exports.Network = Network = {}));
950
950
  var Script;
951
951
  (function (Script) {
952
952
  Script.ChannelSchema = zod_1.default.lazy(() => zod_1.default.string());
953
953
  })(Script || (exports.Script = Script = {}));
954
+ (function (Script) {
955
+ Script.EvaluateResultSuccessSchema = zod_1.default.lazy(() => zod_1.default.object({
956
+ type: zod_1.default.literal('success'),
957
+ result: Script.RemoteValueSchema,
958
+ realm: Script.RealmSchema,
959
+ }));
960
+ })(Script || (exports.Script = Script = {}));
961
+ (function (Script) {
962
+ Script.ExceptionDetailsSchema = zod_1.default.lazy(() => zod_1.default.object({
963
+ columnNumber: exports.JsUintSchema,
964
+ exception: Script.RemoteValueSchema,
965
+ lineNumber: exports.JsUintSchema,
966
+ stackTrace: Script.StackTraceSchema,
967
+ text: zod_1.default.string(),
968
+ }));
969
+ })(Script || (exports.Script = Script = {}));
954
970
  (function (Script) {
955
971
  Script.ChannelValueSchema = zod_1.default.lazy(() => zod_1.default.object({
956
972
  type: zod_1.default.literal('channel'),
@@ -970,13 +986,6 @@ var Script;
970
986
  Script.EvaluateResultExceptionSchema,
971
987
  ]));
972
988
  })(Script || (exports.Script = Script = {}));
973
- (function (Script) {
974
- Script.EvaluateResultSuccessSchema = zod_1.default.lazy(() => zod_1.default.object({
975
- type: zod_1.default.literal('success'),
976
- result: Script.RemoteValueSchema,
977
- realm: Script.RealmSchema,
978
- }));
979
- })(Script || (exports.Script = Script = {}));
980
989
  (function (Script) {
981
990
  Script.EvaluateResultExceptionSchema = zod_1.default.lazy(() => zod_1.default.object({
982
991
  type: zod_1.default.literal('exception'),
@@ -985,16 +994,10 @@ var Script;
985
994
  }));
986
995
  })(Script || (exports.Script = Script = {}));
987
996
  (function (Script) {
988
- Script.ExceptionDetailsSchema = zod_1.default.lazy(() => zod_1.default.object({
989
- columnNumber: exports.JsUintSchema,
990
- exception: Script.RemoteValueSchema,
991
- lineNumber: exports.JsUintSchema,
992
- stackTrace: Script.StackTraceSchema,
993
- text: zod_1.default.string(),
994
- }));
997
+ Script.HandleSchema = zod_1.default.lazy(() => zod_1.default.string());
995
998
  })(Script || (exports.Script = Script = {}));
996
999
  (function (Script) {
997
- Script.HandleSchema = zod_1.default.lazy(() => zod_1.default.string());
1000
+ Script.ListLocalValueSchema = zod_1.default.lazy(() => zod_1.default.array(Script.LocalValueSchema));
998
1001
  })(Script || (exports.Script = Script = {}));
999
1002
  (function (Script) {
1000
1003
  Script.LocalValueSchema = zod_1.default.lazy(() => zod_1.default.union([
@@ -1009,9 +1012,6 @@ var Script;
1009
1012
  Script.SetLocalValueSchema,
1010
1013
  ]));
1011
1014
  })(Script || (exports.Script = Script = {}));
1012
- (function (Script) {
1013
- Script.ListLocalValueSchema = zod_1.default.lazy(() => zod_1.default.array(Script.LocalValueSchema));
1014
- })(Script || (exports.Script = Script = {}));
1015
1015
  (function (Script) {
1016
1016
  Script.ArrayLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({
1017
1017
  type: zod_1.default.literal('array'),
@@ -1185,25 +1185,6 @@ var Script;
1185
1185
  'worklet',
1186
1186
  ]));
1187
1187
  })(Script || (exports.Script = Script = {}));
1188
- (function (Script) {
1189
- Script.RemoteReferenceSchema = zod_1.default.lazy(() => zod_1.default.union([Script.SharedReferenceSchema, Script.RemoteObjectReferenceSchema]));
1190
- })(Script || (exports.Script = Script = {}));
1191
- (function (Script) {
1192
- Script.SharedReferenceSchema = zod_1.default.lazy(() => zod_1.default
1193
- .object({
1194
- sharedId: Script.SharedIdSchema,
1195
- handle: Script.HandleSchema.optional(),
1196
- })
1197
- .and(exports.ExtensibleSchema));
1198
- })(Script || (exports.Script = Script = {}));
1199
- (function (Script) {
1200
- Script.RemoteObjectReferenceSchema = zod_1.default.lazy(() => zod_1.default
1201
- .object({
1202
- handle: Script.HandleSchema,
1203
- sharedId: Script.SharedIdSchema.optional(),
1204
- })
1205
- .and(exports.ExtensibleSchema));
1206
- })(Script || (exports.Script = Script = {}));
1207
1188
  (function (Script) {
1208
1189
  Script.RemoteValueSchema = zod_1.default.lazy(() => zod_1.default.union([
1209
1190
  Script.PrimitiveProtocolValueSchema,
@@ -1230,6 +1211,25 @@ var Script;
1230
1211
  Script.WindowProxyRemoteValueSchema,
1231
1212
  ]));
1232
1213
  })(Script || (exports.Script = Script = {}));
1214
+ (function (Script) {
1215
+ Script.RemoteReferenceSchema = zod_1.default.lazy(() => zod_1.default.union([Script.SharedReferenceSchema, Script.RemoteObjectReferenceSchema]));
1216
+ })(Script || (exports.Script = Script = {}));
1217
+ (function (Script) {
1218
+ Script.SharedReferenceSchema = zod_1.default.lazy(() => zod_1.default
1219
+ .object({
1220
+ sharedId: Script.SharedIdSchema,
1221
+ handle: Script.HandleSchema.optional(),
1222
+ })
1223
+ .and(exports.ExtensibleSchema));
1224
+ })(Script || (exports.Script = Script = {}));
1225
+ (function (Script) {
1226
+ Script.RemoteObjectReferenceSchema = zod_1.default.lazy(() => zod_1.default
1227
+ .object({
1228
+ handle: Script.HandleSchema,
1229
+ sharedId: Script.SharedIdSchema.optional(),
1230
+ })
1231
+ .and(exports.ExtensibleSchema));
1232
+ })(Script || (exports.Script = Script = {}));
1233
1233
  (function (Script) {
1234
1234
  Script.InternalIdSchema = zod_1.default.lazy(() => exports.JsUintSchema);
1235
1235
  })(Script || (exports.Script = Script = {}));
@@ -1500,12 +1500,6 @@ var Script;
1500
1500
  target: Script.TargetSchema,
1501
1501
  }));
1502
1502
  })(Script || (exports.Script = Script = {}));
1503
- (function (Script) {
1504
- Script.CallFunctionSchema = zod_1.default.lazy(() => zod_1.default.object({
1505
- method: zod_1.default.literal('script.callFunction'),
1506
- params: Script.CallFunctionParametersSchema,
1507
- }));
1508
- })(Script || (exports.Script = Script = {}));
1509
1503
  (function (Script) {
1510
1504
  Script.CallFunctionParametersSchema = zod_1.default.lazy(() => zod_1.default.object({
1511
1505
  functionDeclaration: zod_1.default.string(),
@@ -1518,6 +1512,12 @@ var Script;
1518
1512
  userActivation: zod_1.default.boolean().default(false).optional(),
1519
1513
  }));
1520
1514
  })(Script || (exports.Script = Script = {}));
1515
+ (function (Script) {
1516
+ Script.CallFunctionSchema = zod_1.default.lazy(() => zod_1.default.object({
1517
+ method: zod_1.default.literal('script.callFunction'),
1518
+ params: Script.CallFunctionParametersSchema,
1519
+ }));
1520
+ })(Script || (exports.Script = Script = {}));
1521
1521
  (function (Script) {
1522
1522
  Script.EvaluateSchema = zod_1.default.lazy(() => zod_1.default.object({
1523
1523
  method: zod_1.default.literal('script.evaluate'),
@@ -1562,12 +1562,6 @@ var Script;
1562
1562
  script: Script.PreloadScriptSchema,
1563
1563
  }));
1564
1564
  })(Script || (exports.Script = Script = {}));
1565
- (function (Script) {
1566
- Script.MessageSchema = zod_1.default.lazy(() => zod_1.default.object({
1567
- method: zod_1.default.literal('script.message'),
1568
- params: Script.MessageParametersSchema,
1569
- }));
1570
- })(Script || (exports.Script = Script = {}));
1571
1565
  (function (Script) {
1572
1566
  Script.MessageParametersSchema = zod_1.default.lazy(() => zod_1.default.object({
1573
1567
  channel: Script.ChannelSchema,
@@ -1581,6 +1575,12 @@ var Script;
1581
1575
  params: Script.RealmInfoSchema,
1582
1576
  }));
1583
1577
  })(Script || (exports.Script = Script = {}));
1578
+ (function (Script) {
1579
+ Script.MessageSchema = zod_1.default.lazy(() => zod_1.default.object({
1580
+ method: zod_1.default.literal('script.message'),
1581
+ params: Script.MessageParametersSchema,
1582
+ }));
1583
+ })(Script || (exports.Script = Script = {}));
1584
1584
  (function (Script) {
1585
1585
  Script.RealmDestroyedSchema = zod_1.default.lazy(() => zod_1.default.object({
1586
1586
  method: zod_1.default.literal('script.realmDestroyed'),
@@ -1644,26 +1644,12 @@ var Input;
1644
1644
  element: Script.SharedReferenceSchema,
1645
1645
  }));
1646
1646
  })(Input || (exports.Input = Input = {}));
1647
- (function (Input) {
1648
- Input.PerformActionsSchema = zod_1.default.lazy(() => zod_1.default.object({
1649
- method: zod_1.default.literal('input.performActions'),
1650
- params: Input.PerformActionsParametersSchema,
1651
- }));
1652
- })(Input || (exports.Input = Input = {}));
1653
1647
  (function (Input) {
1654
1648
  Input.PerformActionsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({
1655
1649
  context: BrowsingContext.BrowsingContextSchema,
1656
1650
  actions: zod_1.default.array(Input.SourceActionsSchema),
1657
1651
  }));
1658
1652
  })(Input || (exports.Input = Input = {}));
1659
- (function (Input) {
1660
- Input.SourceActionsSchema = zod_1.default.lazy(() => zod_1.default.union([
1661
- Input.NoneSourceActionsSchema,
1662
- Input.KeySourceActionsSchema,
1663
- Input.PointerSourceActionsSchema,
1664
- Input.WheelSourceActionsSchema,
1665
- ]));
1666
- })(Input || (exports.Input = Input = {}));
1667
1653
  (function (Input) {
1668
1654
  Input.NoneSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({
1669
1655
  type: zod_1.default.literal('none'),
@@ -1671,9 +1657,6 @@ var Input;
1671
1657
  actions: zod_1.default.array(Input.NoneSourceActionSchema),
1672
1658
  }));
1673
1659
  })(Input || (exports.Input = Input = {}));
1674
- (function (Input) {
1675
- Input.NoneSourceActionSchema = zod_1.default.lazy(() => Input.PauseActionSchema);
1676
- })(Input || (exports.Input = Input = {}));
1677
1660
  (function (Input) {
1678
1661
  Input.KeySourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({
1679
1662
  type: zod_1.default.literal('key'),
@@ -1681,13 +1664,6 @@ var Input;
1681
1664
  actions: zod_1.default.array(Input.KeySourceActionSchema),
1682
1665
  }));
1683
1666
  })(Input || (exports.Input = Input = {}));
1684
- (function (Input) {
1685
- Input.KeySourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([
1686
- Input.PauseActionSchema,
1687
- Input.KeyDownActionSchema,
1688
- Input.KeyUpActionSchema,
1689
- ]));
1690
- })(Input || (exports.Input = Input = {}));
1691
1667
  (function (Input) {
1692
1668
  Input.PointerSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({
1693
1669
  type: zod_1.default.literal('pointer'),
@@ -1696,6 +1672,30 @@ var Input;
1696
1672
  actions: zod_1.default.array(Input.PointerSourceActionSchema),
1697
1673
  }));
1698
1674
  })(Input || (exports.Input = Input = {}));
1675
+ (function (Input) {
1676
+ Input.PerformActionsSchema = zod_1.default.lazy(() => zod_1.default.object({
1677
+ method: zod_1.default.literal('input.performActions'),
1678
+ params: Input.PerformActionsParametersSchema,
1679
+ }));
1680
+ })(Input || (exports.Input = Input = {}));
1681
+ (function (Input) {
1682
+ Input.SourceActionsSchema = zod_1.default.lazy(() => zod_1.default.union([
1683
+ Input.NoneSourceActionsSchema,
1684
+ Input.KeySourceActionsSchema,
1685
+ Input.PointerSourceActionsSchema,
1686
+ Input.WheelSourceActionsSchema,
1687
+ ]));
1688
+ })(Input || (exports.Input = Input = {}));
1689
+ (function (Input) {
1690
+ Input.NoneSourceActionSchema = zod_1.default.lazy(() => Input.PauseActionSchema);
1691
+ })(Input || (exports.Input = Input = {}));
1692
+ (function (Input) {
1693
+ Input.KeySourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([
1694
+ Input.PauseActionSchema,
1695
+ Input.KeyDownActionSchema,
1696
+ Input.KeyUpActionSchema,
1697
+ ]));
1698
+ })(Input || (exports.Input = Input = {}));
1699
1699
  (function (Input) {
1700
1700
  Input.PointerTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['mouse', 'pen', 'touch']));
1701
1701
  })(Input || (exports.Input = Input = {}));
@@ -1704,6 +1704,13 @@ var Input;
1704
1704
  pointerType: Input.PointerTypeSchema.default('mouse').optional(),
1705
1705
  }));
1706
1706
  })(Input || (exports.Input = Input = {}));
1707
+ (function (Input) {
1708
+ Input.WheelSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({
1709
+ type: zod_1.default.literal('wheel'),
1710
+ id: zod_1.default.string(),
1711
+ actions: zod_1.default.array(Input.WheelSourceActionSchema),
1712
+ }));
1713
+ })(Input || (exports.Input = Input = {}));
1707
1714
  (function (Input) {
1708
1715
  Input.PointerSourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([
1709
1716
  Input.PauseActionSchema,
@@ -1712,13 +1719,6 @@ var Input;
1712
1719
  Input.PointerMoveActionSchema,
1713
1720
  ]));
1714
1721
  })(Input || (exports.Input = Input = {}));
1715
- (function (Input) {
1716
- Input.WheelSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({
1717
- type: zod_1.default.literal('wheel'),
1718
- id: zod_1.default.string(),
1719
- actions: zod_1.default.array(Input.WheelSourceActionSchema),
1720
- }));
1721
- })(Input || (exports.Input = Input = {}));
1722
1722
  (function (Input) {
1723
1723
  Input.WheelSourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([Input.PauseActionSchema, Input.WheelScrollActionSchema]));
1724
1724
  })(Input || (exports.Input = Input = {}));