browserscale-ts 1.7.0 → 1.8.0
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.
- package/README.md +136 -78
- package/dist/browser.js +1 -1
- package/dist/browserscale.browser.js +427 -162
- package/dist/client.d.ts +241 -62
- package/dist/client.js +312 -83
- package/dist/defaults.d.ts +11 -9
- package/dist/defaults.js +15 -12
- package/dist/dom-mirror.d.ts +27 -0
- package/dist/dom-mirror.js +27 -0
- package/dist/errors.d.ts +43 -0
- package/dist/errors.js +37 -0
- package/dist/gen/wrc_pb.d.ts +348 -91
- package/dist/gen/wrc_pb.js +53 -58
- package/dist/index.d.ts +8 -5
- package/dist/index.js +8 -5
- package/dist/internal/convert.js +1 -0
- package/dist/locator.d.ts +12 -11
- package/dist/locator.js +14 -22
- package/dist/network-capture.d.ts +3 -2
- package/dist/network-capture.js +3 -2
- package/dist/options.d.ts +1 -1
- package/dist/scripts.d.ts +4 -3
- package/dist/scripts.js +4 -3
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
package/dist/gen/wrc_pb.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
3
2
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
3
|
/**
|
|
5
4
|
* Describes the file wrc.proto.
|
|
@@ -349,6 +348,13 @@ export type WaitResult = Message<"browserscale.v1.WaitResult"> & {
|
|
|
349
348
|
* @generated from field: browserscale.v1.Rect bounds = 5;
|
|
350
349
|
*/
|
|
351
350
|
bounds?: Rect;
|
|
351
|
+
/**
|
|
352
|
+
* False iff nothing matched before the deadline. Redundant with index -1, and
|
|
353
|
+
* carried anyway so every command answers the same question the same way.
|
|
354
|
+
*
|
|
355
|
+
* @generated from field: bool success = 7;
|
|
356
|
+
*/
|
|
357
|
+
success: boolean;
|
|
352
358
|
/**
|
|
353
359
|
* Present iff no condition matched before the deadline (index is -1): the
|
|
354
360
|
* per-condition breakdown of why nothing matched. A timeout is a normal
|
|
@@ -563,10 +569,62 @@ export type OccluderInfo = Message<"browserscale.v1.OccluderInfo"> & {
|
|
|
563
569
|
* Use `create(OccluderInfoSchema)` to create a new message.
|
|
564
570
|
*/
|
|
565
571
|
export declare const OccluderInfoSchema: GenMessage<OccluderInfo>;
|
|
572
|
+
/**
|
|
573
|
+
* The shape every error detail here shares, and the type used directly by
|
|
574
|
+
* commands with nothing to report beyond what went wrong. Present in a result
|
|
575
|
+
* iff that command's success is false.
|
|
576
|
+
*
|
|
577
|
+
* Genuine transport failures — a malformed request, a dead session, the page
|
|
578
|
+
* going away — stay gRPC errors and never arrive here. This only ever describes
|
|
579
|
+
* a semantic outcome: the browser worked and the page did not cooperate.
|
|
580
|
+
*
|
|
581
|
+
* @generated from message browserscale.v1.CommandError
|
|
582
|
+
*/
|
|
583
|
+
export type CommandError = Message<"browserscale.v1.CommandError"> & {
|
|
584
|
+
/**
|
|
585
|
+
* Machine-stable, lowercase, scoped to the command that returned it.
|
|
586
|
+
*
|
|
587
|
+
* @generated from field: string code = 1;
|
|
588
|
+
*/
|
|
589
|
+
code: string;
|
|
590
|
+
/**
|
|
591
|
+
* Human-readable detail, possibly empty. Never parse this; parse code.
|
|
592
|
+
*
|
|
593
|
+
* @generated from field: string message = 2;
|
|
594
|
+
*/
|
|
595
|
+
message: string;
|
|
596
|
+
};
|
|
597
|
+
/**
|
|
598
|
+
* Describes the message browserscale.v1.CommandError.
|
|
599
|
+
* Use `create(CommandErrorSchema)` to create a new message.
|
|
600
|
+
*/
|
|
601
|
+
export declare const CommandErrorSchema: GenMessage<CommandError>;
|
|
602
|
+
/**
|
|
603
|
+
* What the commands that have nothing else to report return, in place of the
|
|
604
|
+
* empty response they used to give. Every command answers whether it worked, so
|
|
605
|
+
* a semantic refusal never has to be inferred from the absence of an error, and
|
|
606
|
+
* a command that grows a failure mode later does not change shape.
|
|
607
|
+
*
|
|
608
|
+
* @generated from message browserscale.v1.CommandResult
|
|
609
|
+
*/
|
|
610
|
+
export type CommandResult = Message<"browserscale.v1.CommandResult"> & {
|
|
611
|
+
/**
|
|
612
|
+
* @generated from field: bool success = 1;
|
|
613
|
+
*/
|
|
614
|
+
success: boolean;
|
|
615
|
+
/**
|
|
616
|
+
* @generated from field: optional browserscale.v1.CommandError error = 2;
|
|
617
|
+
*/
|
|
618
|
+
error?: CommandError;
|
|
619
|
+
};
|
|
620
|
+
/**
|
|
621
|
+
* Describes the message browserscale.v1.CommandResult.
|
|
622
|
+
* Use `create(CommandResultSchema)` to create a new message.
|
|
623
|
+
*/
|
|
624
|
+
export declare const CommandResultSchema: GenMessage<CommandResult>;
|
|
566
625
|
/**
|
|
567
626
|
* Error detail for a Click that did not land. Present in ClickResult iff
|
|
568
|
-
* success is false.
|
|
569
|
-
* convention; other commands migrate to the same shape later.
|
|
627
|
+
* success is false. CommandError plus the occlusion specifics.
|
|
570
628
|
*
|
|
571
629
|
* @generated from message browserscale.v1.ClickError
|
|
572
630
|
*/
|
|
@@ -788,6 +846,18 @@ export type AddReactionResponse = Message<"browserscale.v1.AddReactionResponse">
|
|
|
788
846
|
* @generated from field: string reaction_id = 1;
|
|
789
847
|
*/
|
|
790
848
|
reactionId: string;
|
|
849
|
+
/**
|
|
850
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
851
|
+
* fields are carried so every response answers the same question the same
|
|
852
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
853
|
+
*
|
|
854
|
+
* @generated from field: bool success = 2;
|
|
855
|
+
*/
|
|
856
|
+
success: boolean;
|
|
857
|
+
/**
|
|
858
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
859
|
+
*/
|
|
860
|
+
error?: CommandError;
|
|
791
861
|
};
|
|
792
862
|
/**
|
|
793
863
|
* Describes the message browserscale.v1.AddReactionResponse.
|
|
@@ -828,6 +898,18 @@ export type RemoveReactionResponse = Message<"browserscale.v1.RemoveReactionResp
|
|
|
828
898
|
* @generated from field: bool removed = 1;
|
|
829
899
|
*/
|
|
830
900
|
removed: boolean;
|
|
901
|
+
/**
|
|
902
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
903
|
+
* fields are carried so every response answers the same question the same
|
|
904
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
905
|
+
*
|
|
906
|
+
* @generated from field: bool success = 2;
|
|
907
|
+
*/
|
|
908
|
+
success: boolean;
|
|
909
|
+
/**
|
|
910
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
911
|
+
*/
|
|
912
|
+
error?: CommandError;
|
|
831
913
|
};
|
|
832
914
|
/**
|
|
833
915
|
* Describes the message browserscale.v1.RemoveReactionResponse.
|
|
@@ -864,6 +946,18 @@ export type ListReactionsResponse = Message<"browserscale.v1.ListReactionsRespon
|
|
|
864
946
|
* @generated from field: repeated browserscale.v1.ReactionInfo reactions = 1;
|
|
865
947
|
*/
|
|
866
948
|
reactions: ReactionInfo[];
|
|
949
|
+
/**
|
|
950
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
951
|
+
* fields are carried so every response answers the same question the same
|
|
952
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
953
|
+
*
|
|
954
|
+
* @generated from field: bool success = 2;
|
|
955
|
+
*/
|
|
956
|
+
success: boolean;
|
|
957
|
+
/**
|
|
958
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
959
|
+
*/
|
|
960
|
+
error?: CommandError;
|
|
867
961
|
};
|
|
868
962
|
/**
|
|
869
963
|
* Describes the message browserscale.v1.ListReactionsResponse.
|
|
@@ -1341,6 +1435,18 @@ export type GetPagesResponse = Message<"browserscale.v1.GetPagesResponse"> & {
|
|
|
1341
1435
|
* @generated from field: repeated browserscale.v1.PageInfo pages = 1;
|
|
1342
1436
|
*/
|
|
1343
1437
|
pages: PageInfo[];
|
|
1438
|
+
/**
|
|
1439
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
1440
|
+
* fields are carried so every response answers the same question the same
|
|
1441
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
1442
|
+
*
|
|
1443
|
+
* @generated from field: bool success = 2;
|
|
1444
|
+
*/
|
|
1445
|
+
success: boolean;
|
|
1446
|
+
/**
|
|
1447
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
1448
|
+
*/
|
|
1449
|
+
error?: CommandError;
|
|
1344
1450
|
};
|
|
1345
1451
|
/**
|
|
1346
1452
|
* Describes the message browserscale.v1.GetPagesResponse.
|
|
@@ -1393,6 +1499,17 @@ export type NavigateResponse = Message<"browserscale.v1.NavigateResponse"> & {
|
|
|
1393
1499
|
* @generated from field: string url = 2;
|
|
1394
1500
|
*/
|
|
1395
1501
|
url: string;
|
|
1502
|
+
/**
|
|
1503
|
+
* False iff the command refused; then error carries the code. See the
|
|
1504
|
+
* protocol definition for which codes this command can return.
|
|
1505
|
+
*
|
|
1506
|
+
* @generated from field: bool success = 3;
|
|
1507
|
+
*/
|
|
1508
|
+
success: boolean;
|
|
1509
|
+
/**
|
|
1510
|
+
* @generated from field: optional browserscale.v1.CommandError error = 4;
|
|
1511
|
+
*/
|
|
1512
|
+
error?: CommandError;
|
|
1396
1513
|
};
|
|
1397
1514
|
/**
|
|
1398
1515
|
* Describes the message browserscale.v1.NavigateResponse.
|
|
@@ -1494,68 +1611,24 @@ export type EvaluateResponse = Message<"browserscale.v1.EvaluateResponse"> & {
|
|
|
1494
1611
|
* @generated from field: browserscale.v1.Rect bounds = 4;
|
|
1495
1612
|
*/
|
|
1496
1613
|
bounds?: Rect;
|
|
1497
|
-
};
|
|
1498
|
-
/**
|
|
1499
|
-
* Describes the message browserscale.v1.EvaluateResponse.
|
|
1500
|
-
* Use `create(EvaluateResponseSchema)` to create a new message.
|
|
1501
|
-
*/
|
|
1502
|
-
export declare const EvaluateResponseSchema: GenMessage<EvaluateResponse>;
|
|
1503
|
-
/**
|
|
1504
|
-
* Run executes a JavaScript automation script inside the God-VM — a bare V8
|
|
1505
|
-
* isolate that lives outside every renderer.
|
|
1506
|
-
*
|
|
1507
|
-
* @generated from message browserscale.v1.RunRequest
|
|
1508
|
-
*/
|
|
1509
|
-
export type RunRequest = Message<"browserscale.v1.RunRequest"> & {
|
|
1510
|
-
/**
|
|
1511
|
-
* @generated from field: string session_id = 1;
|
|
1512
|
-
*/
|
|
1513
|
-
sessionId: string;
|
|
1514
|
-
/**
|
|
1515
|
-
* @generated from field: string api_key = 2;
|
|
1516
|
-
*/
|
|
1517
|
-
apiKey: string;
|
|
1518
|
-
/**
|
|
1519
|
-
* JavaScript source to execute in the God-VM.
|
|
1520
|
-
*
|
|
1521
|
-
* @generated from field: string source = 3;
|
|
1522
|
-
*/
|
|
1523
|
-
source: string;
|
|
1524
|
-
/**
|
|
1525
|
-
* Page the script should be able to drive (reserved; frame bridge wired in a
|
|
1526
|
-
* follow-up). Optional for now — ignored server-side.
|
|
1527
|
-
*
|
|
1528
|
-
* @generated from field: optional string page_id = 4;
|
|
1529
|
-
*/
|
|
1530
|
-
pageId?: string;
|
|
1531
|
-
};
|
|
1532
|
-
/**
|
|
1533
|
-
* Describes the message browserscale.v1.RunRequest.
|
|
1534
|
-
* Use `create(RunRequestSchema)` to create a new message.
|
|
1535
|
-
*/
|
|
1536
|
-
export declare const RunRequestSchema: GenMessage<RunRequest>;
|
|
1537
|
-
/**
|
|
1538
|
-
* @generated from message browserscale.v1.RunResponse
|
|
1539
|
-
*/
|
|
1540
|
-
export type RunResponse = Message<"browserscale.v1.RunResponse"> & {
|
|
1541
1614
|
/**
|
|
1542
|
-
* False
|
|
1615
|
+
* False iff the expression never produced a value (then error is present).
|
|
1616
|
+
* An expression that answers falsy is a success, so a broken expression is
|
|
1617
|
+
* never mistaken for a false one.
|
|
1543
1618
|
*
|
|
1544
|
-
* @generated from field: bool success =
|
|
1619
|
+
* @generated from field: bool success = 5;
|
|
1545
1620
|
*/
|
|
1546
1621
|
success: boolean;
|
|
1547
1622
|
/**
|
|
1548
|
-
*
|
|
1549
|
-
*
|
|
1550
|
-
* @generated from field: string result = 2;
|
|
1623
|
+
* @generated from field: optional browserscale.v1.CommandError error = 6;
|
|
1551
1624
|
*/
|
|
1552
|
-
|
|
1625
|
+
error?: CommandError;
|
|
1553
1626
|
};
|
|
1554
1627
|
/**
|
|
1555
|
-
* Describes the message browserscale.v1.
|
|
1556
|
-
* Use `create(
|
|
1628
|
+
* Describes the message browserscale.v1.EvaluateResponse.
|
|
1629
|
+
* Use `create(EvaluateResponseSchema)` to create a new message.
|
|
1557
1630
|
*/
|
|
1558
|
-
export declare const
|
|
1631
|
+
export declare const EvaluateResponseSchema: GenMessage<EvaluateResponse>;
|
|
1559
1632
|
/**
|
|
1560
1633
|
* Note: named "WaitForAnyParams" instead of "WaitForAnyRequest" to avoid
|
|
1561
1634
|
* colliding with the rpc method name "WaitForAnyRequest" (network intercept).
|
|
@@ -2023,6 +2096,17 @@ export type WaitForAnyRequestResponse = Message<"browserscale.v1.WaitForAnyReque
|
|
|
2023
2096
|
* @generated from field: browserscale.v1.InterceptedRequest request = 2;
|
|
2024
2097
|
*/
|
|
2025
2098
|
request?: InterceptedRequest;
|
|
2099
|
+
/**
|
|
2100
|
+
* False iff the command refused; then error carries the code. See the
|
|
2101
|
+
* protocol definition for which codes this command can return.
|
|
2102
|
+
*
|
|
2103
|
+
* @generated from field: bool success = 3;
|
|
2104
|
+
*/
|
|
2105
|
+
success: boolean;
|
|
2106
|
+
/**
|
|
2107
|
+
* @generated from field: optional browserscale.v1.CommandError error = 4;
|
|
2108
|
+
*/
|
|
2109
|
+
error?: CommandError;
|
|
2026
2110
|
};
|
|
2027
2111
|
/**
|
|
2028
2112
|
* Describes the message browserscale.v1.WaitForAnyRequestResponse.
|
|
@@ -2073,6 +2157,17 @@ export type WaitForAnyResponseResponse = Message<"browserscale.v1.WaitForAnyResp
|
|
|
2073
2157
|
* @generated from field: browserscale.v1.InterceptedResponse response = 2;
|
|
2074
2158
|
*/
|
|
2075
2159
|
response?: InterceptedResponse;
|
|
2160
|
+
/**
|
|
2161
|
+
* False iff the command refused; then error carries the code. See the
|
|
2162
|
+
* protocol definition for which codes this command can return.
|
|
2163
|
+
*
|
|
2164
|
+
* @generated from field: bool success = 3;
|
|
2165
|
+
*/
|
|
2166
|
+
success: boolean;
|
|
2167
|
+
/**
|
|
2168
|
+
* @generated from field: optional browserscale.v1.CommandError error = 4;
|
|
2169
|
+
*/
|
|
2170
|
+
error?: CommandError;
|
|
2076
2171
|
};
|
|
2077
2172
|
/**
|
|
2078
2173
|
* Describes the message browserscale.v1.WaitForAnyResponseResponse.
|
|
@@ -2123,6 +2218,17 @@ export type ModifyRequestResponse = Message<"browserscale.v1.ModifyRequestRespon
|
|
|
2123
2218
|
* @generated from field: browserscale.v1.InterceptedRequest request = 1;
|
|
2124
2219
|
*/
|
|
2125
2220
|
request?: InterceptedRequest;
|
|
2221
|
+
/**
|
|
2222
|
+
* False iff the command refused; then error carries the code. See the
|
|
2223
|
+
* protocol definition for which codes this command can return.
|
|
2224
|
+
*
|
|
2225
|
+
* @generated from field: bool success = 2;
|
|
2226
|
+
*/
|
|
2227
|
+
success: boolean;
|
|
2228
|
+
/**
|
|
2229
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
2230
|
+
*/
|
|
2231
|
+
error?: CommandError;
|
|
2126
2232
|
};
|
|
2127
2233
|
/**
|
|
2128
2234
|
* Describes the message browserscale.v1.ModifyRequestResponse.
|
|
@@ -2195,6 +2301,18 @@ export type StopNetworkCaptureResponse = Message<"browserscale.v1.StopNetworkCap
|
|
|
2195
2301
|
* @generated from field: bool stopped = 1;
|
|
2196
2302
|
*/
|
|
2197
2303
|
stopped: boolean;
|
|
2304
|
+
/**
|
|
2305
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
2306
|
+
* fields are carried so every response answers the same question the same
|
|
2307
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
2308
|
+
*
|
|
2309
|
+
* @generated from field: bool success = 2;
|
|
2310
|
+
*/
|
|
2311
|
+
success: boolean;
|
|
2312
|
+
/**
|
|
2313
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
2314
|
+
*/
|
|
2315
|
+
error?: CommandError;
|
|
2198
2316
|
};
|
|
2199
2317
|
/**
|
|
2200
2318
|
* Describes the message browserscale.v1.StopNetworkCaptureResponse.
|
|
@@ -2425,6 +2543,18 @@ export type GetCookiesResponse = Message<"browserscale.v1.GetCookiesResponse"> &
|
|
|
2425
2543
|
* @generated from field: repeated browserscale.v1.CookieParam cookies = 1;
|
|
2426
2544
|
*/
|
|
2427
2545
|
cookies: CookieParam[];
|
|
2546
|
+
/**
|
|
2547
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
2548
|
+
* fields are carried so every response answers the same question the same
|
|
2549
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
2550
|
+
*
|
|
2551
|
+
* @generated from field: bool success = 2;
|
|
2552
|
+
*/
|
|
2553
|
+
success: boolean;
|
|
2554
|
+
/**
|
|
2555
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
2556
|
+
*/
|
|
2557
|
+
error?: CommandError;
|
|
2428
2558
|
};
|
|
2429
2559
|
/**
|
|
2430
2560
|
* Describes the message browserscale.v1.GetCookiesResponse.
|
|
@@ -2550,6 +2680,18 @@ export type GetStorageResponse = Message<"browserscale.v1.GetStorageResponse"> &
|
|
|
2550
2680
|
* @generated from field: repeated browserscale.v1.StorageOriginEntry storage = 1;
|
|
2551
2681
|
*/
|
|
2552
2682
|
storage: StorageOriginEntry[];
|
|
2683
|
+
/**
|
|
2684
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
2685
|
+
* fields are carried so every response answers the same question the same
|
|
2686
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
2687
|
+
*
|
|
2688
|
+
* @generated from field: bool success = 2;
|
|
2689
|
+
*/
|
|
2690
|
+
success: boolean;
|
|
2691
|
+
/**
|
|
2692
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
2693
|
+
*/
|
|
2694
|
+
error?: CommandError;
|
|
2553
2695
|
};
|
|
2554
2696
|
/**
|
|
2555
2697
|
* Describes the message browserscale.v1.GetStorageResponse.
|
|
@@ -2721,6 +2863,18 @@ export type GetAuthSessionResponse = Message<"browserscale.v1.GetAuthSessionResp
|
|
|
2721
2863
|
* @generated from field: optional browserscale.v1.AuthSession session = 1;
|
|
2722
2864
|
*/
|
|
2723
2865
|
session?: AuthSession;
|
|
2866
|
+
/**
|
|
2867
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
2868
|
+
* fields are carried so every response answers the same question the same
|
|
2869
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
2870
|
+
*
|
|
2871
|
+
* @generated from field: bool success = 2;
|
|
2872
|
+
*/
|
|
2873
|
+
success: boolean;
|
|
2874
|
+
/**
|
|
2875
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
2876
|
+
*/
|
|
2877
|
+
error?: CommandError;
|
|
2724
2878
|
};
|
|
2725
2879
|
/**
|
|
2726
2880
|
* Describes the message browserscale.v1.GetAuthSessionResponse.
|
|
@@ -2793,6 +2947,18 @@ export type GetDOMResponse = Message<"browserscale.v1.GetDOMResponse"> & {
|
|
|
2793
2947
|
* @generated from field: string dom = 1;
|
|
2794
2948
|
*/
|
|
2795
2949
|
dom: string;
|
|
2950
|
+
/**
|
|
2951
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
2952
|
+
* fields are carried so every response answers the same question the same
|
|
2953
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
2954
|
+
*
|
|
2955
|
+
* @generated from field: bool success = 2;
|
|
2956
|
+
*/
|
|
2957
|
+
success: boolean;
|
|
2958
|
+
/**
|
|
2959
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
2960
|
+
*/
|
|
2961
|
+
error?: CommandError;
|
|
2796
2962
|
};
|
|
2797
2963
|
/**
|
|
2798
2964
|
* Describes the message browserscale.v1.GetDOMResponse.
|
|
@@ -2900,6 +3066,17 @@ export type GetObservationResponse = Message<"browserscale.v1.GetObservationResp
|
|
|
2900
3066
|
* @generated from field: string observation = 1;
|
|
2901
3067
|
*/
|
|
2902
3068
|
observation: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* False iff the command refused; then error carries the code. See the
|
|
3071
|
+
* protocol definition for which codes this command can return.
|
|
3072
|
+
*
|
|
3073
|
+
* @generated from field: bool success = 3;
|
|
3074
|
+
*/
|
|
3075
|
+
success: boolean;
|
|
3076
|
+
/**
|
|
3077
|
+
* @generated from field: optional browserscale.v1.CommandError error = 4;
|
|
3078
|
+
*/
|
|
3079
|
+
error?: CommandError;
|
|
2903
3080
|
};
|
|
2904
3081
|
/**
|
|
2905
3082
|
* Describes the message browserscale.v1.GetObservationResponse.
|
|
@@ -3009,6 +3186,17 @@ export type StartDomMirrorResponse = Message<"browserscale.v1.StartDomMirrorResp
|
|
|
3009
3186
|
* @generated from field: uint64 seq = 3;
|
|
3010
3187
|
*/
|
|
3011
3188
|
seq: bigint;
|
|
3189
|
+
/**
|
|
3190
|
+
* False iff the command refused; then error carries the code. See the
|
|
3191
|
+
* protocol definition for which codes this command can return.
|
|
3192
|
+
*
|
|
3193
|
+
* @generated from field: bool success = 5;
|
|
3194
|
+
*/
|
|
3195
|
+
success: boolean;
|
|
3196
|
+
/**
|
|
3197
|
+
* @generated from field: optional browserscale.v1.CommandError error = 6;
|
|
3198
|
+
*/
|
|
3199
|
+
error?: CommandError;
|
|
3012
3200
|
};
|
|
3013
3201
|
/**
|
|
3014
3202
|
* Describes the message browserscale.v1.StartDomMirrorResponse.
|
|
@@ -3085,6 +3273,17 @@ export type GetDomChildrenResponse = Message<"browserscale.v1.GetDomChildrenResp
|
|
|
3085
3273
|
* @generated from field: uint64 seq = 2;
|
|
3086
3274
|
*/
|
|
3087
3275
|
seq: bigint;
|
|
3276
|
+
/**
|
|
3277
|
+
* False iff the command refused; then error carries the code. See the
|
|
3278
|
+
* protocol definition for which codes this command can return.
|
|
3279
|
+
*
|
|
3280
|
+
* @generated from field: bool success = 3;
|
|
3281
|
+
*/
|
|
3282
|
+
success: boolean;
|
|
3283
|
+
/**
|
|
3284
|
+
* @generated from field: optional browserscale.v1.CommandError error = 4;
|
|
3285
|
+
*/
|
|
3286
|
+
error?: CommandError;
|
|
3088
3287
|
};
|
|
3089
3288
|
/**
|
|
3090
3289
|
* Describes the message browserscale.v1.GetDomChildrenResponse.
|
|
@@ -3162,6 +3361,17 @@ export type RevealDomNodeResponse = Message<"browserscale.v1.RevealDomNodeRespon
|
|
|
3162
3361
|
* @generated from field: uint64 seq = 2;
|
|
3163
3362
|
*/
|
|
3164
3363
|
seq: bigint;
|
|
3364
|
+
/**
|
|
3365
|
+
* False iff the command refused; then error carries the code. See the
|
|
3366
|
+
* protocol definition for which codes this command can return.
|
|
3367
|
+
*
|
|
3368
|
+
* @generated from field: bool success = 3;
|
|
3369
|
+
*/
|
|
3370
|
+
success: boolean;
|
|
3371
|
+
/**
|
|
3372
|
+
* @generated from field: optional browserscale.v1.CommandError error = 4;
|
|
3373
|
+
*/
|
|
3374
|
+
error?: CommandError;
|
|
3165
3375
|
};
|
|
3166
3376
|
/**
|
|
3167
3377
|
* Describes the message browserscale.v1.RevealDomNodeResponse.
|
|
@@ -3200,6 +3410,18 @@ export type GetDomRevisionResponse = Message<"browserscale.v1.GetDomRevisionResp
|
|
|
3200
3410
|
* @generated from field: uint64 revision = 1;
|
|
3201
3411
|
*/
|
|
3202
3412
|
revision: bigint;
|
|
3413
|
+
/**
|
|
3414
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
3415
|
+
* fields are carried so every response answers the same question the same
|
|
3416
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
3417
|
+
*
|
|
3418
|
+
* @generated from field: bool success = 2;
|
|
3419
|
+
*/
|
|
3420
|
+
success: boolean;
|
|
3421
|
+
/**
|
|
3422
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
3423
|
+
*/
|
|
3424
|
+
error?: CommandError;
|
|
3203
3425
|
};
|
|
3204
3426
|
/**
|
|
3205
3427
|
* Describes the message browserscale.v1.GetDomRevisionResponse.
|
|
@@ -3392,6 +3614,18 @@ export type InspectAtPositionResponse = Message<"browserscale.v1.InspectAtPositi
|
|
|
3392
3614
|
* @generated from field: browserscale.v1.Rect bounds = 6;
|
|
3393
3615
|
*/
|
|
3394
3616
|
bounds?: Rect;
|
|
3617
|
+
/**
|
|
3618
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
3619
|
+
* fields are carried so every response answers the same question the same
|
|
3620
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
3621
|
+
*
|
|
3622
|
+
* @generated from field: bool success = 7;
|
|
3623
|
+
*/
|
|
3624
|
+
success: boolean;
|
|
3625
|
+
/**
|
|
3626
|
+
* @generated from field: optional browserscale.v1.CommandError error = 8;
|
|
3627
|
+
*/
|
|
3628
|
+
error?: CommandError;
|
|
3395
3629
|
};
|
|
3396
3630
|
/**
|
|
3397
3631
|
* Describes the message browserscale.v1.InspectAtPositionResponse.
|
|
@@ -3617,6 +3851,18 @@ export type GetSelectionResponse = Message<"browserscale.v1.GetSelectionResponse
|
|
|
3617
3851
|
* @generated from field: string text = 1;
|
|
3618
3852
|
*/
|
|
3619
3853
|
text: string;
|
|
3854
|
+
/**
|
|
3855
|
+
* Always true today: this command has no semantic failure of its own. Both
|
|
3856
|
+
* fields are carried so every response answers the same question the same
|
|
3857
|
+
* way, and so a future failure mode is an added code, not a new shape.
|
|
3858
|
+
*
|
|
3859
|
+
* @generated from field: bool success = 2;
|
|
3860
|
+
*/
|
|
3861
|
+
success: boolean;
|
|
3862
|
+
/**
|
|
3863
|
+
* @generated from field: optional browserscale.v1.CommandError error = 3;
|
|
3864
|
+
*/
|
|
3865
|
+
error?: CommandError;
|
|
3620
3866
|
};
|
|
3621
3867
|
/**
|
|
3622
3868
|
* Describes the message browserscale.v1.GetSelectionResponse.
|
|
@@ -3684,6 +3930,17 @@ export type ScreenshotResponse = Message<"browserscale.v1.ScreenshotResponse"> &
|
|
|
3684
3930
|
* @generated from field: int32 height = 3;
|
|
3685
3931
|
*/
|
|
3686
3932
|
height: number;
|
|
3933
|
+
/**
|
|
3934
|
+
* False iff the command refused; then error carries the code. See the
|
|
3935
|
+
* protocol definition for which codes this command can return.
|
|
3936
|
+
*
|
|
3937
|
+
* @generated from field: bool success = 4;
|
|
3938
|
+
*/
|
|
3939
|
+
success: boolean;
|
|
3940
|
+
/**
|
|
3941
|
+
* @generated from field: optional browserscale.v1.CommandError error = 5;
|
|
3942
|
+
*/
|
|
3943
|
+
error?: CommandError;
|
|
3687
3944
|
};
|
|
3688
3945
|
/**
|
|
3689
3946
|
* Describes the message browserscale.v1.ScreenshotResponse.
|
|
@@ -3812,6 +4069,12 @@ export type ReadCanvasResponse = Message<"browserscale.v1.ReadCanvasResponse"> &
|
|
|
3812
4069
|
* @generated from field: bool origin_clean = 7;
|
|
3813
4070
|
*/
|
|
3814
4071
|
originClean: boolean;
|
|
4072
|
+
/**
|
|
4073
|
+
* Present iff success is false: "not_found", "not_element" or "not_readable".
|
|
4074
|
+
*
|
|
4075
|
+
* @generated from field: optional browserscale.v1.CommandError error = 8;
|
|
4076
|
+
*/
|
|
4077
|
+
error?: CommandError;
|
|
3815
4078
|
};
|
|
3816
4079
|
/**
|
|
3817
4080
|
* Describes the message browserscale.v1.ReadCanvasResponse.
|
|
@@ -3973,6 +4236,17 @@ export type StartStreamResponse = Message<"browserscale.v1.StartStreamResponse">
|
|
|
3973
4236
|
* @generated from field: browserscale.v1.Rect viewport = 2;
|
|
3974
4237
|
*/
|
|
3975
4238
|
viewport?: Rect;
|
|
4239
|
+
/**
|
|
4240
|
+
* False iff the command refused; then error carries the code. See the
|
|
4241
|
+
* protocol definition for which codes this command can return.
|
|
4242
|
+
*
|
|
4243
|
+
* @generated from field: bool success = 3;
|
|
4244
|
+
*/
|
|
4245
|
+
success: boolean;
|
|
4246
|
+
/**
|
|
4247
|
+
* @generated from field: optional browserscale.v1.CommandError error = 4;
|
|
4248
|
+
*/
|
|
4249
|
+
error?: CommandError;
|
|
3976
4250
|
};
|
|
3977
4251
|
/**
|
|
3978
4252
|
* Describes the message browserscale.v1.StartStreamResponse.
|
|
@@ -3997,15 +4271,6 @@ export type StopStreamRequest = Message<"browserscale.v1.StopStreamRequest"> & {
|
|
|
3997
4271
|
* Use `create(StopStreamRequestSchema)` to create a new message.
|
|
3998
4272
|
*/
|
|
3999
4273
|
export declare const StopStreamRequestSchema: GenMessage<StopStreamRequest>;
|
|
4000
|
-
/**
|
|
4001
|
-
* @generated from message browserscale.v1.StopStreamResponse
|
|
4002
|
-
*/
|
|
4003
|
-
export type StopStreamResponse = Message<"browserscale.v1.StopStreamResponse"> & {};
|
|
4004
|
-
/**
|
|
4005
|
-
* Describes the message browserscale.v1.StopStreamResponse.
|
|
4006
|
-
* Use `create(StopStreamResponseSchema)` to create a new message.
|
|
4007
|
-
*/
|
|
4008
|
-
export declare const StopStreamResponseSchema: GenMessage<StopStreamResponse>;
|
|
4009
4274
|
/**
|
|
4010
4275
|
* One console line a script printed.
|
|
4011
4276
|
*
|
|
@@ -4366,7 +4631,7 @@ export declare const Browser: GenService<{
|
|
|
4366
4631
|
setProxy: {
|
|
4367
4632
|
methodKind: "unary";
|
|
4368
4633
|
input: typeof SetProxyRequestSchema;
|
|
4369
|
-
output: typeof
|
|
4634
|
+
output: typeof CommandResultSchema;
|
|
4370
4635
|
};
|
|
4371
4636
|
/**
|
|
4372
4637
|
* @generated from rpc browserscale.v1.Browser.GetPages
|
|
@@ -4392,7 +4657,7 @@ export declare const Browser: GenService<{
|
|
|
4392
4657
|
loadHTML: {
|
|
4393
4658
|
methodKind: "unary";
|
|
4394
4659
|
input: typeof LoadHTMLRequestSchema;
|
|
4395
|
-
output: typeof
|
|
4660
|
+
output: typeof CommandResultSchema;
|
|
4396
4661
|
};
|
|
4397
4662
|
/**
|
|
4398
4663
|
* Evaluation
|
|
@@ -4404,14 +4669,6 @@ export declare const Browser: GenService<{
|
|
|
4404
4669
|
input: typeof EvaluateRequestSchema;
|
|
4405
4670
|
output: typeof EvaluateResponseSchema;
|
|
4406
4671
|
};
|
|
4407
|
-
/**
|
|
4408
|
-
* @generated from rpc browserscale.v1.Browser.Run
|
|
4409
|
-
*/
|
|
4410
|
-
run: {
|
|
4411
|
-
methodKind: "unary";
|
|
4412
|
-
input: typeof RunRequestSchema;
|
|
4413
|
-
output: typeof RunResponseSchema;
|
|
4414
|
-
};
|
|
4415
4672
|
/**
|
|
4416
4673
|
* Waiting
|
|
4417
4674
|
*
|
|
@@ -4508,7 +4765,7 @@ export declare const Browser: GenService<{
|
|
|
4508
4765
|
setBlockList: {
|
|
4509
4766
|
methodKind: "unary";
|
|
4510
4767
|
input: typeof SetBlockListRequestSchema;
|
|
4511
|
-
output: typeof
|
|
4768
|
+
output: typeof CommandResultSchema;
|
|
4512
4769
|
};
|
|
4513
4770
|
/**
|
|
4514
4771
|
* @generated from rpc browserscale.v1.Browser.SetStaticPaths
|
|
@@ -4516,7 +4773,7 @@ export declare const Browser: GenService<{
|
|
|
4516
4773
|
setStaticPaths: {
|
|
4517
4774
|
methodKind: "unary";
|
|
4518
4775
|
input: typeof SetStaticPathsRequestSchema;
|
|
4519
|
-
output: typeof
|
|
4776
|
+
output: typeof CommandResultSchema;
|
|
4520
4777
|
};
|
|
4521
4778
|
/**
|
|
4522
4779
|
* @generated from rpc browserscale.v1.Browser.WaitForAnyRequest
|
|
@@ -4553,7 +4810,7 @@ export declare const Browser: GenService<{
|
|
|
4553
4810
|
startNetworkCapture: {
|
|
4554
4811
|
methodKind: "unary";
|
|
4555
4812
|
input: typeof StartNetworkCaptureRequestSchema;
|
|
4556
|
-
output: typeof
|
|
4813
|
+
output: typeof CommandResultSchema;
|
|
4557
4814
|
};
|
|
4558
4815
|
/**
|
|
4559
4816
|
* @generated from rpc browserscale.v1.Browser.StopNetworkCapture
|
|
@@ -4587,7 +4844,7 @@ export declare const Browser: GenService<{
|
|
|
4587
4844
|
setCookies: {
|
|
4588
4845
|
methodKind: "unary";
|
|
4589
4846
|
input: typeof SetCookiesRequestSchema;
|
|
4590
|
-
output: typeof
|
|
4847
|
+
output: typeof CommandResultSchema;
|
|
4591
4848
|
};
|
|
4592
4849
|
/**
|
|
4593
4850
|
* @generated from rpc browserscale.v1.Browser.ClearCookies
|
|
@@ -4595,7 +4852,7 @@ export declare const Browser: GenService<{
|
|
|
4595
4852
|
clearCookies: {
|
|
4596
4853
|
methodKind: "unary";
|
|
4597
4854
|
input: typeof ClearCookiesRequestSchema;
|
|
4598
|
-
output: typeof
|
|
4855
|
+
output: typeof CommandResultSchema;
|
|
4599
4856
|
};
|
|
4600
4857
|
/**
|
|
4601
4858
|
* Storage (localStorage)
|
|
@@ -4613,7 +4870,7 @@ export declare const Browser: GenService<{
|
|
|
4613
4870
|
setStorage: {
|
|
4614
4871
|
methodKind: "unary";
|
|
4615
4872
|
input: typeof SetStorageRequestSchema;
|
|
4616
|
-
output: typeof
|
|
4873
|
+
output: typeof CommandResultSchema;
|
|
4617
4874
|
};
|
|
4618
4875
|
/**
|
|
4619
4876
|
* @generated from rpc browserscale.v1.Browser.ClearStorage
|
|
@@ -4621,7 +4878,7 @@ export declare const Browser: GenService<{
|
|
|
4621
4878
|
clearStorage: {
|
|
4622
4879
|
methodKind: "unary";
|
|
4623
4880
|
input: typeof ClearStorageRequestSchema;
|
|
4624
|
-
output: typeof
|
|
4881
|
+
output: typeof CommandResultSchema;
|
|
4625
4882
|
};
|
|
4626
4883
|
/**
|
|
4627
4884
|
* Auth / DBSC (portable signed-in persona)
|
|
@@ -4639,7 +4896,7 @@ export declare const Browser: GenService<{
|
|
|
4639
4896
|
setAuthSession: {
|
|
4640
4897
|
methodKind: "unary";
|
|
4641
4898
|
input: typeof SetAuthSessionRequestSchema;
|
|
4642
|
-
output: typeof
|
|
4899
|
+
output: typeof CommandResultSchema;
|
|
4643
4900
|
};
|
|
4644
4901
|
/**
|
|
4645
4902
|
* DOM / observation
|
|
@@ -4681,7 +4938,7 @@ export declare const Browser: GenService<{
|
|
|
4681
4938
|
highlightNode: {
|
|
4682
4939
|
methodKind: "unary";
|
|
4683
4940
|
input: typeof HighlightNodeRequestSchema;
|
|
4684
|
-
output: typeof
|
|
4941
|
+
output: typeof CommandResultSchema;
|
|
4685
4942
|
};
|
|
4686
4943
|
/**
|
|
4687
4944
|
* DOM mirror — an incremental view of the page's DOM, as ONE tree.
|
|
@@ -4715,7 +4972,7 @@ export declare const Browser: GenService<{
|
|
|
4715
4972
|
stopDomMirror: {
|
|
4716
4973
|
methodKind: "unary";
|
|
4717
4974
|
input: typeof StopDomMirrorRequestSchema;
|
|
4718
|
-
output: typeof
|
|
4975
|
+
output: typeof CommandResultSchema;
|
|
4719
4976
|
};
|
|
4720
4977
|
/**
|
|
4721
4978
|
* @generated from rpc browserscale.v1.Browser.GetDomChildren
|
|
@@ -4731,7 +4988,7 @@ export declare const Browser: GenService<{
|
|
|
4731
4988
|
releaseDomSubtree: {
|
|
4732
4989
|
methodKind: "unary";
|
|
4733
4990
|
input: typeof ReleaseDomSubtreeRequestSchema;
|
|
4734
|
-
output: typeof
|
|
4991
|
+
output: typeof CommandResultSchema;
|
|
4735
4992
|
};
|
|
4736
4993
|
/**
|
|
4737
4994
|
* @generated from rpc browserscale.v1.Browser.RevealDomNode
|
|
@@ -4783,7 +5040,7 @@ export declare const Browser: GenService<{
|
|
|
4783
5040
|
insertText: {
|
|
4784
5041
|
methodKind: "unary";
|
|
4785
5042
|
input: typeof InsertTextRequestSchema;
|
|
4786
|
-
output: typeof
|
|
5043
|
+
output: typeof CommandResultSchema;
|
|
4787
5044
|
};
|
|
4788
5045
|
/**
|
|
4789
5046
|
* @generated from rpc browserscale.v1.Browser.Type
|
|
@@ -4791,7 +5048,7 @@ export declare const Browser: GenService<{
|
|
|
4791
5048
|
type: {
|
|
4792
5049
|
methodKind: "unary";
|
|
4793
5050
|
input: typeof TypeRequestSchema;
|
|
4794
|
-
output: typeof
|
|
5051
|
+
output: typeof CommandResultSchema;
|
|
4795
5052
|
};
|
|
4796
5053
|
/**
|
|
4797
5054
|
* @generated from rpc browserscale.v1.Browser.PressKey
|
|
@@ -4799,7 +5056,7 @@ export declare const Browser: GenService<{
|
|
|
4799
5056
|
pressKey: {
|
|
4800
5057
|
methodKind: "unary";
|
|
4801
5058
|
input: typeof PressKeyRequestSchema;
|
|
4802
|
-
output: typeof
|
|
5059
|
+
output: typeof CommandResultSchema;
|
|
4803
5060
|
};
|
|
4804
5061
|
/**
|
|
4805
5062
|
* @generated from rpc browserscale.v1.Browser.ReleaseKey
|
|
@@ -4807,7 +5064,7 @@ export declare const Browser: GenService<{
|
|
|
4807
5064
|
releaseKey: {
|
|
4808
5065
|
methodKind: "unary";
|
|
4809
5066
|
input: typeof ReleaseKeyRequestSchema;
|
|
4810
|
-
output: typeof
|
|
5067
|
+
output: typeof CommandResultSchema;
|
|
4811
5068
|
};
|
|
4812
5069
|
/**
|
|
4813
5070
|
* @generated from rpc browserscale.v1.Browser.GetSelection
|
|
@@ -4855,7 +5112,7 @@ export declare const Browser: GenService<{
|
|
|
4855
5112
|
stopStream: {
|
|
4856
5113
|
methodKind: "unary";
|
|
4857
5114
|
input: typeof StopStreamRequestSchema;
|
|
4858
|
-
output: typeof
|
|
5115
|
+
output: typeof CommandResultSchema;
|
|
4859
5116
|
};
|
|
4860
5117
|
/**
|
|
4861
5118
|
* Scripts — automation that runs inside the browser process rather than
|