browserscale-ts 1.2.1 → 1.3.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/dist/browser.d.ts +1 -1
- package/dist/browserscale.browser.js +303 -38
- package/dist/client.d.ts +141 -2
- package/dist/client.js +236 -1
- package/dist/errors.d.ts +33 -6
- package/dist/errors.js +11 -3
- package/dist/gen/wrc_pb.d.ts +559 -3
- package/dist/gen/wrc_pb.js +146 -66
- package/dist/index.d.ts +2 -2
- package/dist/internal/convert.js +20 -0
- package/dist/options.d.ts +31 -0
- package/dist/types.d.ts +59 -0
- package/package.json +1 -1
package/dist/gen/wrc_pb.d.ts
CHANGED
|
@@ -637,18 +637,298 @@ export type ClickResult = Message<"browserscale.v1.ClickResult"> & {
|
|
|
637
637
|
* Use `create(ClickResultSchema)` to create a new message.
|
|
638
638
|
*/
|
|
639
639
|
export declare const ClickResultSchema: GenMessage<ClickResult>;
|
|
640
|
+
/**
|
|
641
|
+
* ReactionInfo (WRC.pdl ReactionInfo) describes a still-pending reaction as
|
|
642
|
+
* returned by ListReactions. One-shot reactions that already fired are gone.
|
|
643
|
+
*
|
|
644
|
+
* @generated from message browserscale.v1.ReactionInfo
|
|
645
|
+
*/
|
|
646
|
+
export type ReactionInfo = Message<"browserscale.v1.ReactionInfo"> & {
|
|
647
|
+
/**
|
|
648
|
+
* Stable id assigned by AddReaction; pass to RemoveReaction.
|
|
649
|
+
*
|
|
650
|
+
* @generated from field: string reaction_id = 1;
|
|
651
|
+
*/
|
|
652
|
+
reactionId: string;
|
|
653
|
+
/**
|
|
654
|
+
* The match's CSS selector, if it matches by selector.
|
|
655
|
+
*
|
|
656
|
+
* @generated from field: optional string match_selector = 2;
|
|
657
|
+
*/
|
|
658
|
+
matchSelector?: string;
|
|
659
|
+
/**
|
|
660
|
+
* The match's JS expression, if it matches by expression.
|
|
661
|
+
*
|
|
662
|
+
* @generated from field: optional string match_js_expression = 3;
|
|
663
|
+
*/
|
|
664
|
+
matchJsExpression?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Click-target selector, if the action targets a different element.
|
|
667
|
+
*
|
|
668
|
+
* @generated from field: optional string action_selector = 4;
|
|
669
|
+
*/
|
|
670
|
+
actionSelector?: string;
|
|
671
|
+
/**
|
|
672
|
+
* Click-target JS expression, if the action targets a different element.
|
|
673
|
+
*
|
|
674
|
+
* @generated from field: optional string action_js_expression = 5;
|
|
675
|
+
*/
|
|
676
|
+
actionJsExpression?: string;
|
|
677
|
+
/**
|
|
678
|
+
* Frame scope: a specific frameId, empty for the main frame, or "ALL_FRAMES".
|
|
679
|
+
*
|
|
680
|
+
* @generated from field: string frame_id = 6;
|
|
681
|
+
*/
|
|
682
|
+
frameId: string;
|
|
683
|
+
/**
|
|
684
|
+
* Whether the match additionally requires the element to be visible.
|
|
685
|
+
*
|
|
686
|
+
* @generated from field: bool visible = 7;
|
|
687
|
+
*/
|
|
688
|
+
visible: boolean;
|
|
689
|
+
};
|
|
690
|
+
/**
|
|
691
|
+
* Describes the message browserscale.v1.ReactionInfo.
|
|
692
|
+
* Use `create(ReactionInfoSchema)` to create a new message.
|
|
693
|
+
*/
|
|
694
|
+
export declare const ReactionInfoSchema: GenMessage<ReactionInfo>;
|
|
695
|
+
/**
|
|
696
|
+
* @generated from message browserscale.v1.AddReactionRequest
|
|
697
|
+
*/
|
|
698
|
+
export type AddReactionRequest = Message<"browserscale.v1.AddReactionRequest"> & {
|
|
699
|
+
/**
|
|
700
|
+
* @generated from field: string session_id = 1;
|
|
701
|
+
*/
|
|
702
|
+
sessionId: string;
|
|
703
|
+
/**
|
|
704
|
+
* @generated from field: string api_key = 2;
|
|
705
|
+
*/
|
|
706
|
+
apiKey: string;
|
|
707
|
+
/**
|
|
708
|
+
* @generated from field: string page_id = 3;
|
|
709
|
+
*/
|
|
710
|
+
pageId: string;
|
|
711
|
+
/**
|
|
712
|
+
* Exactly one of match_selector / match_js_expression must be set.
|
|
713
|
+
*
|
|
714
|
+
* @generated from field: optional string match_selector = 4;
|
|
715
|
+
*/
|
|
716
|
+
matchSelector?: string;
|
|
717
|
+
/**
|
|
718
|
+
* @generated from field: optional string match_js_expression = 5;
|
|
719
|
+
*/
|
|
720
|
+
matchJsExpression?: string;
|
|
721
|
+
/**
|
|
722
|
+
* Where to watch: a specific frameId, empty/omitted for the main frame, or
|
|
723
|
+
* "ALL_FRAMES" to watch every frame.
|
|
724
|
+
*
|
|
725
|
+
* @generated from field: optional string frame_id = 6;
|
|
726
|
+
*/
|
|
727
|
+
frameId?: string;
|
|
728
|
+
/**
|
|
729
|
+
* Require the matched element to be visible before firing.
|
|
730
|
+
*
|
|
731
|
+
* @generated from field: optional bool visible = 7;
|
|
732
|
+
*/
|
|
733
|
+
visible?: boolean;
|
|
734
|
+
/**
|
|
735
|
+
* Optional click-target CSS selector, resolved in the matched element's
|
|
736
|
+
* frame. Omitted → click the matched element itself.
|
|
737
|
+
*
|
|
738
|
+
* @generated from field: optional string action_selector = 8;
|
|
739
|
+
*/
|
|
740
|
+
actionSelector?: string;
|
|
741
|
+
/**
|
|
742
|
+
* Optional click-target JS expression (mutually exclusive with
|
|
743
|
+
* action_selector).
|
|
744
|
+
*
|
|
745
|
+
* @generated from field: optional string action_js_expression = 9;
|
|
746
|
+
*/
|
|
747
|
+
actionJsExpression?: string;
|
|
748
|
+
/**
|
|
749
|
+
* "left" (default), "right", or "middle".
|
|
750
|
+
*
|
|
751
|
+
* @generated from field: optional string button = 10;
|
|
752
|
+
*/
|
|
753
|
+
button?: string;
|
|
754
|
+
/**
|
|
755
|
+
* 1 = single click (default), 2 = double click.
|
|
756
|
+
*
|
|
757
|
+
* @generated from field: optional int32 click_count = 11;
|
|
758
|
+
*/
|
|
759
|
+
clickCount?: number;
|
|
760
|
+
/**
|
|
761
|
+
* Poll cadence in ms for the shared page loop. Default 300.
|
|
762
|
+
*
|
|
763
|
+
* @generated from field: optional double interval = 12;
|
|
764
|
+
*/
|
|
765
|
+
interval?: number;
|
|
766
|
+
};
|
|
767
|
+
/**
|
|
768
|
+
* Describes the message browserscale.v1.AddReactionRequest.
|
|
769
|
+
* Use `create(AddReactionRequestSchema)` to create a new message.
|
|
770
|
+
*/
|
|
771
|
+
export declare const AddReactionRequestSchema: GenMessage<AddReactionRequest>;
|
|
772
|
+
/**
|
|
773
|
+
* @generated from message browserscale.v1.AddReactionResponse
|
|
774
|
+
*/
|
|
775
|
+
export type AddReactionResponse = Message<"browserscale.v1.AddReactionResponse"> & {
|
|
776
|
+
/**
|
|
777
|
+
* Id of the registered reaction (pass to RemoveReaction).
|
|
778
|
+
*
|
|
779
|
+
* @generated from field: string reaction_id = 1;
|
|
780
|
+
*/
|
|
781
|
+
reactionId: string;
|
|
782
|
+
};
|
|
783
|
+
/**
|
|
784
|
+
* Describes the message browserscale.v1.AddReactionResponse.
|
|
785
|
+
* Use `create(AddReactionResponseSchema)` to create a new message.
|
|
786
|
+
*/
|
|
787
|
+
export declare const AddReactionResponseSchema: GenMessage<AddReactionResponse>;
|
|
788
|
+
/**
|
|
789
|
+
* @generated from message browserscale.v1.RemoveReactionRequest
|
|
790
|
+
*/
|
|
791
|
+
export type RemoveReactionRequest = Message<"browserscale.v1.RemoveReactionRequest"> & {
|
|
792
|
+
/**
|
|
793
|
+
* @generated from field: string session_id = 1;
|
|
794
|
+
*/
|
|
795
|
+
sessionId: string;
|
|
796
|
+
/**
|
|
797
|
+
* @generated from field: string api_key = 2;
|
|
798
|
+
*/
|
|
799
|
+
apiKey: string;
|
|
800
|
+
/**
|
|
801
|
+
* Id returned by AddReaction.
|
|
802
|
+
*
|
|
803
|
+
* @generated from field: string reaction_id = 3;
|
|
804
|
+
*/
|
|
805
|
+
reactionId: string;
|
|
806
|
+
};
|
|
807
|
+
/**
|
|
808
|
+
* Describes the message browserscale.v1.RemoveReactionRequest.
|
|
809
|
+
* Use `create(RemoveReactionRequestSchema)` to create a new message.
|
|
810
|
+
*/
|
|
811
|
+
export declare const RemoveReactionRequestSchema: GenMessage<RemoveReactionRequest>;
|
|
812
|
+
/**
|
|
813
|
+
* @generated from message browserscale.v1.RemoveReactionResponse
|
|
814
|
+
*/
|
|
815
|
+
export type RemoveReactionResponse = Message<"browserscale.v1.RemoveReactionResponse"> & {
|
|
816
|
+
/**
|
|
817
|
+
* True if a pending reaction with this id existed and was removed.
|
|
818
|
+
*
|
|
819
|
+
* @generated from field: bool removed = 1;
|
|
820
|
+
*/
|
|
821
|
+
removed: boolean;
|
|
822
|
+
};
|
|
823
|
+
/**
|
|
824
|
+
* Describes the message browserscale.v1.RemoveReactionResponse.
|
|
825
|
+
* Use `create(RemoveReactionResponseSchema)` to create a new message.
|
|
826
|
+
*/
|
|
827
|
+
export declare const RemoveReactionResponseSchema: GenMessage<RemoveReactionResponse>;
|
|
828
|
+
/**
|
|
829
|
+
* @generated from message browserscale.v1.ListReactionsRequest
|
|
830
|
+
*/
|
|
831
|
+
export type ListReactionsRequest = Message<"browserscale.v1.ListReactionsRequest"> & {
|
|
832
|
+
/**
|
|
833
|
+
* @generated from field: string session_id = 1;
|
|
834
|
+
*/
|
|
835
|
+
sessionId: string;
|
|
836
|
+
/**
|
|
837
|
+
* @generated from field: string api_key = 2;
|
|
838
|
+
*/
|
|
839
|
+
apiKey: string;
|
|
840
|
+
/**
|
|
841
|
+
* @generated from field: string page_id = 3;
|
|
842
|
+
*/
|
|
843
|
+
pageId: string;
|
|
844
|
+
};
|
|
845
|
+
/**
|
|
846
|
+
* Describes the message browserscale.v1.ListReactionsRequest.
|
|
847
|
+
* Use `create(ListReactionsRequestSchema)` to create a new message.
|
|
848
|
+
*/
|
|
849
|
+
export declare const ListReactionsRequestSchema: GenMessage<ListReactionsRequest>;
|
|
850
|
+
/**
|
|
851
|
+
* @generated from message browserscale.v1.ListReactionsResponse
|
|
852
|
+
*/
|
|
853
|
+
export type ListReactionsResponse = Message<"browserscale.v1.ListReactionsResponse"> & {
|
|
854
|
+
/**
|
|
855
|
+
* @generated from field: repeated browserscale.v1.ReactionInfo reactions = 1;
|
|
856
|
+
*/
|
|
857
|
+
reactions: ReactionInfo[];
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* Describes the message browserscale.v1.ListReactionsResponse.
|
|
861
|
+
* Use `create(ListReactionsResponseSchema)` to create a new message.
|
|
862
|
+
*/
|
|
863
|
+
export declare const ListReactionsResponseSchema: GenMessage<ListReactionsResponse>;
|
|
640
864
|
/**
|
|
641
865
|
* Error detail for a Fill that did not complete. Present in FillResult iff
|
|
642
866
|
* success is false. Fill focuses the field with the exact same smart click as
|
|
643
867
|
* Click, so any pre-typing failure is a click failure: code/message mirror it
|
|
644
868
|
* and the full click diagnostics are nested under click_error.
|
|
869
|
+
* ElementRef is a lightweight descriptor of an element — enough for an agent to
|
|
870
|
+
* identify it (and decide what to do) without another DOM round-trip. Used to
|
|
871
|
+
* name the element that stole focus in a fill focus-loss failure.
|
|
645
872
|
*
|
|
873
|
+
* @generated from message browserscale.v1.ElementRef
|
|
874
|
+
*/
|
|
875
|
+
export type ElementRef = Message<"browserscale.v1.ElementRef"> & {
|
|
876
|
+
/**
|
|
877
|
+
* @generated from field: int32 backend_node_id = 1;
|
|
878
|
+
*/
|
|
879
|
+
backendNodeId: number;
|
|
880
|
+
/**
|
|
881
|
+
* Upper-case tag name, e.g. "INPUT", "BUTTON", "DIV".
|
|
882
|
+
*
|
|
883
|
+
* @generated from field: string tag_name = 2;
|
|
884
|
+
*/
|
|
885
|
+
tagName: string;
|
|
886
|
+
/**
|
|
887
|
+
* @generated from field: optional string id = 3;
|
|
888
|
+
*/
|
|
889
|
+
id?: string;
|
|
890
|
+
/**
|
|
891
|
+
* @generated from field: optional string name = 4;
|
|
892
|
+
*/
|
|
893
|
+
name?: string;
|
|
894
|
+
/**
|
|
895
|
+
* @generated from field: optional string class_name = 5;
|
|
896
|
+
*/
|
|
897
|
+
className?: string;
|
|
898
|
+
/**
|
|
899
|
+
* <input> type, if the element is an <input>.
|
|
900
|
+
*
|
|
901
|
+
* @generated from field: optional string input_type = 6;
|
|
902
|
+
*/
|
|
903
|
+
inputType?: string;
|
|
904
|
+
/**
|
|
905
|
+
* Whitespace-collapsed textContent/value snippet (max 120 chars).
|
|
906
|
+
*
|
|
907
|
+
* @generated from field: optional string text = 7;
|
|
908
|
+
*/
|
|
909
|
+
text?: string;
|
|
910
|
+
/**
|
|
911
|
+
* Whether this element is itself an editable text sink (input/textarea/
|
|
912
|
+
* contenteditable).
|
|
913
|
+
*
|
|
914
|
+
* @generated from field: bool editable = 8;
|
|
915
|
+
*/
|
|
916
|
+
editable: boolean;
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Describes the message browserscale.v1.ElementRef.
|
|
920
|
+
* Use `create(ElementRefSchema)` to create a new message.
|
|
921
|
+
*/
|
|
922
|
+
export declare const ElementRefSchema: GenMessage<ElementRef>;
|
|
923
|
+
/**
|
|
646
924
|
* @generated from message browserscale.v1.FillError
|
|
647
925
|
*/
|
|
648
926
|
export type FillError = Message<"browserscale.v1.FillError"> & {
|
|
649
927
|
/**
|
|
650
|
-
*
|
|
651
|
-
*
|
|
928
|
+
* "not_found", "occluded_no_reachable_point", "occluded_after_evade"
|
|
929
|
+
* (mirrored from the underlying focus click; diagnostics under click_error),
|
|
930
|
+
* "focus_stolen" (another element took focus; focused_element names it) or
|
|
931
|
+
* "focus_lost" (focus left the target and nothing is focused).
|
|
652
932
|
*
|
|
653
933
|
* @generated from field: string code = 1;
|
|
654
934
|
*/
|
|
@@ -658,11 +938,38 @@ export type FillError = Message<"browserscale.v1.FillError"> & {
|
|
|
658
938
|
*/
|
|
659
939
|
message: string;
|
|
660
940
|
/**
|
|
661
|
-
* The underlying click-core failure that prevented focusing/typing.
|
|
941
|
+
* The underlying click-core failure that prevented focusing/typing. Present
|
|
942
|
+
* for the click-phase codes; absent for "focus_stolen"/"focus_lost".
|
|
662
943
|
*
|
|
663
944
|
* @generated from field: optional browserscale.v1.ClickError click_error = 3;
|
|
664
945
|
*/
|
|
665
946
|
clickError?: ClickError;
|
|
947
|
+
/**
|
|
948
|
+
* For "focus_stolen"/"focus_lost": backendNodeId that held focus when fill
|
|
949
|
+
* gave up (0 if nothing was focused). Diagnostic only.
|
|
950
|
+
*
|
|
951
|
+
* @generated from field: optional int32 focused_backend_node_id = 4;
|
|
952
|
+
*/
|
|
953
|
+
focusedBackendNodeId?: number;
|
|
954
|
+
/**
|
|
955
|
+
* For "focus_stolen": full descriptor of the element that holds focus
|
|
956
|
+
* instead of the target, so the agent can act on it.
|
|
957
|
+
*
|
|
958
|
+
* @generated from field: optional browserscale.v1.ElementRef focused_element = 5;
|
|
959
|
+
*/
|
|
960
|
+
focusedElement?: ElementRef;
|
|
961
|
+
/**
|
|
962
|
+
* The fill target's own state at the point of failure: whether it is still an
|
|
963
|
+
* editable text sink, and its current text length. Present for the focus_*
|
|
964
|
+
* codes; lets the agent tell "field vanished/readonly" from "focus stolen".
|
|
965
|
+
*
|
|
966
|
+
* @generated from field: optional bool target_editable = 6;
|
|
967
|
+
*/
|
|
968
|
+
targetEditable?: boolean;
|
|
969
|
+
/**
|
|
970
|
+
* @generated from field: optional int32 target_value_length = 7;
|
|
971
|
+
*/
|
|
972
|
+
targetValueLength?: number;
|
|
666
973
|
};
|
|
667
974
|
/**
|
|
668
975
|
* Describes the message browserscale.v1.FillError.
|
|
@@ -1590,6 +1897,21 @@ export type FillRequest = Message<"browserscale.v1.FillRequest"> & {
|
|
|
1590
1897
|
* @generated from field: optional bool clear_first = 9;
|
|
1591
1898
|
*/
|
|
1592
1899
|
clearFirst?: boolean;
|
|
1900
|
+
/**
|
|
1901
|
+
* Budget in ms to make the field focusable+clickable before giving up
|
|
1902
|
+
* (locate, scroll, settle, un-occlude); mirrors Click's timeout. Omit for
|
|
1903
|
+
* the server default (5000). 0 = one-shot (no retry).
|
|
1904
|
+
*
|
|
1905
|
+
* @generated from field: optional double timeout = 10;
|
|
1906
|
+
*/
|
|
1907
|
+
timeout?: number;
|
|
1908
|
+
/**
|
|
1909
|
+
* Settle window in ms before the focus click; mirrors Click's steady_time.
|
|
1910
|
+
* Omit for the server default (750). 0 skips settling.
|
|
1911
|
+
*
|
|
1912
|
+
* @generated from field: optional double steady_time = 11;
|
|
1913
|
+
*/
|
|
1914
|
+
steadyTime?: number;
|
|
1593
1915
|
};
|
|
1594
1916
|
/**
|
|
1595
1917
|
* Describes the message browserscale.v1.FillRequest.
|
|
@@ -2288,6 +2610,44 @@ export type InsertTextRequest = Message<"browserscale.v1.InsertTextRequest"> & {
|
|
|
2288
2610
|
* Use `create(InsertTextRequestSchema)` to create a new message.
|
|
2289
2611
|
*/
|
|
2290
2612
|
export declare const InsertTextRequestSchema: GenMessage<InsertTextRequest>;
|
|
2613
|
+
/**
|
|
2614
|
+
* Type dispatches `text` as a per-key stream of real keyboard events to the
|
|
2615
|
+
* currently focused element (untargeted, no focus pinning) — unlike InsertText,
|
|
2616
|
+
* which is a single IME-style commit. Focus may move between fields mid-stream
|
|
2617
|
+
* (e.g. OTP inputs that auto-advance on each digit). For a strict, target-bound
|
|
2618
|
+
* value that must stay focused, use Fill instead.
|
|
2619
|
+
*
|
|
2620
|
+
* @generated from message browserscale.v1.TypeRequest
|
|
2621
|
+
*/
|
|
2622
|
+
export type TypeRequest = Message<"browserscale.v1.TypeRequest"> & {
|
|
2623
|
+
/**
|
|
2624
|
+
* @generated from field: string session_id = 1;
|
|
2625
|
+
*/
|
|
2626
|
+
sessionId: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* @generated from field: string api_key = 2;
|
|
2629
|
+
*/
|
|
2630
|
+
apiKey: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* @generated from field: string page_id = 3;
|
|
2633
|
+
*/
|
|
2634
|
+
pageId: string;
|
|
2635
|
+
/**
|
|
2636
|
+
* @generated from field: string text = 4;
|
|
2637
|
+
*/
|
|
2638
|
+
text: string;
|
|
2639
|
+
/**
|
|
2640
|
+
* Clear the currently focused field first (Ctrl+A, Delete). Default false.
|
|
2641
|
+
*
|
|
2642
|
+
* @generated from field: optional bool clear_first = 5;
|
|
2643
|
+
*/
|
|
2644
|
+
clearFirst?: boolean;
|
|
2645
|
+
};
|
|
2646
|
+
/**
|
|
2647
|
+
* Describes the message browserscale.v1.TypeRequest.
|
|
2648
|
+
* Use `create(TypeRequestSchema)` to create a new message.
|
|
2649
|
+
*/
|
|
2650
|
+
export declare const TypeRequestSchema: GenMessage<TypeRequest>;
|
|
2291
2651
|
/**
|
|
2292
2652
|
* Fires a single key-down (PressKey) or key-up (ReleaseKey) event. For
|
|
2293
2653
|
* full press cycles (down + char + up) call PressKey followed by ReleaseKey,
|
|
@@ -2659,6 +3019,136 @@ export type SolveCaptchaResponse = Message<"browserscale.v1.SolveCaptchaResponse
|
|
|
2659
3019
|
* Use `create(SolveCaptchaResponseSchema)` to create a new message.
|
|
2660
3020
|
*/
|
|
2661
3021
|
export declare const SolveCaptchaResponseSchema: GenMessage<SolveCaptchaResponse>;
|
|
3022
|
+
/**
|
|
3023
|
+
* IceServer is one entry for an RTCPeerConnection's iceServers config: a TURN
|
|
3024
|
+
* (or STUN) URL plus the short-lived REST credentials to authenticate with it.
|
|
3025
|
+
*
|
|
3026
|
+
* @generated from message browserscale.v1.IceServer
|
|
3027
|
+
*/
|
|
3028
|
+
export type IceServer = Message<"browserscale.v1.IceServer"> & {
|
|
3029
|
+
/**
|
|
3030
|
+
* @generated from field: repeated string urls = 1;
|
|
3031
|
+
*/
|
|
3032
|
+
urls: string[];
|
|
3033
|
+
/**
|
|
3034
|
+
* @generated from field: optional string username = 2;
|
|
3035
|
+
*/
|
|
3036
|
+
username?: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* @generated from field: optional string credential = 3;
|
|
3039
|
+
*/
|
|
3040
|
+
credential?: string;
|
|
3041
|
+
};
|
|
3042
|
+
/**
|
|
3043
|
+
* Describes the message browserscale.v1.IceServer.
|
|
3044
|
+
* Use `create(IceServerSchema)` to create a new message.
|
|
3045
|
+
*/
|
|
3046
|
+
export declare const IceServerSchema: GenMessage<IceServer>;
|
|
3047
|
+
/**
|
|
3048
|
+
* @generated from message browserscale.v1.GetStreamConfigRequest
|
|
3049
|
+
*/
|
|
3050
|
+
export type GetStreamConfigRequest = Message<"browserscale.v1.GetStreamConfigRequest"> & {
|
|
3051
|
+
/**
|
|
3052
|
+
* @generated from field: string session_id = 1;
|
|
3053
|
+
*/
|
|
3054
|
+
sessionId: string;
|
|
3055
|
+
/**
|
|
3056
|
+
* @generated from field: string api_key = 2;
|
|
3057
|
+
*/
|
|
3058
|
+
apiKey: string;
|
|
3059
|
+
};
|
|
3060
|
+
/**
|
|
3061
|
+
* Describes the message browserscale.v1.GetStreamConfigRequest.
|
|
3062
|
+
* Use `create(GetStreamConfigRequestSchema)` to create a new message.
|
|
3063
|
+
*/
|
|
3064
|
+
export declare const GetStreamConfigRequestSchema: GenMessage<GetStreamConfigRequest>;
|
|
3065
|
+
/**
|
|
3066
|
+
* @generated from message browserscale.v1.GetStreamConfigResponse
|
|
3067
|
+
*/
|
|
3068
|
+
export type GetStreamConfigResponse = Message<"browserscale.v1.GetStreamConfigResponse"> & {
|
|
3069
|
+
/**
|
|
3070
|
+
* TURN/STUN servers with short-lived credentials. Put these in the client's
|
|
3071
|
+
* RTCPeerConnection config BEFORE creating the offer, so it can gather relay
|
|
3072
|
+
* candidates.
|
|
3073
|
+
*
|
|
3074
|
+
* @generated from field: repeated browserscale.v1.IceServer ice_servers = 1;
|
|
3075
|
+
*/
|
|
3076
|
+
iceServers: IceServer[];
|
|
3077
|
+
};
|
|
3078
|
+
/**
|
|
3079
|
+
* Describes the message browserscale.v1.GetStreamConfigResponse.
|
|
3080
|
+
* Use `create(GetStreamConfigResponseSchema)` to create a new message.
|
|
3081
|
+
*/
|
|
3082
|
+
export declare const GetStreamConfigResponseSchema: GenMessage<GetStreamConfigResponse>;
|
|
3083
|
+
/**
|
|
3084
|
+
* @generated from message browserscale.v1.StartStreamRequest
|
|
3085
|
+
*/
|
|
3086
|
+
export type StartStreamRequest = Message<"browserscale.v1.StartStreamRequest"> & {
|
|
3087
|
+
/**
|
|
3088
|
+
* @generated from field: string session_id = 1;
|
|
3089
|
+
*/
|
|
3090
|
+
sessionId: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* @generated from field: string api_key = 2;
|
|
3093
|
+
*/
|
|
3094
|
+
apiKey: string;
|
|
3095
|
+
/**
|
|
3096
|
+
* The client's SDP offer. The browser sets it as the remote description and
|
|
3097
|
+
* returns its answer. Relay policy, frame rate and bitrate are decided by the
|
|
3098
|
+
* server — the client only offers.
|
|
3099
|
+
*
|
|
3100
|
+
* @generated from field: string offer_sdp = 3;
|
|
3101
|
+
*/
|
|
3102
|
+
offerSdp: string;
|
|
3103
|
+
};
|
|
3104
|
+
/**
|
|
3105
|
+
* Describes the message browserscale.v1.StartStreamRequest.
|
|
3106
|
+
* Use `create(StartStreamRequestSchema)` to create a new message.
|
|
3107
|
+
*/
|
|
3108
|
+
export declare const StartStreamRequestSchema: GenMessage<StartStreamRequest>;
|
|
3109
|
+
/**
|
|
3110
|
+
* @generated from message browserscale.v1.StartStreamResponse
|
|
3111
|
+
*/
|
|
3112
|
+
export type StartStreamResponse = Message<"browserscale.v1.StartStreamResponse"> & {
|
|
3113
|
+
/**
|
|
3114
|
+
* The browser's SDP answer to set as the client's remote description.
|
|
3115
|
+
*
|
|
3116
|
+
* @generated from field: string answer_sdp = 1;
|
|
3117
|
+
*/
|
|
3118
|
+
answerSdp: string;
|
|
3119
|
+
};
|
|
3120
|
+
/**
|
|
3121
|
+
* Describes the message browserscale.v1.StartStreamResponse.
|
|
3122
|
+
* Use `create(StartStreamResponseSchema)` to create a new message.
|
|
3123
|
+
*/
|
|
3124
|
+
export declare const StartStreamResponseSchema: GenMessage<StartStreamResponse>;
|
|
3125
|
+
/**
|
|
3126
|
+
* @generated from message browserscale.v1.StopStreamRequest
|
|
3127
|
+
*/
|
|
3128
|
+
export type StopStreamRequest = Message<"browserscale.v1.StopStreamRequest"> & {
|
|
3129
|
+
/**
|
|
3130
|
+
* @generated from field: string session_id = 1;
|
|
3131
|
+
*/
|
|
3132
|
+
sessionId: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* @generated from field: string api_key = 2;
|
|
3135
|
+
*/
|
|
3136
|
+
apiKey: string;
|
|
3137
|
+
};
|
|
3138
|
+
/**
|
|
3139
|
+
* Describes the message browserscale.v1.StopStreamRequest.
|
|
3140
|
+
* Use `create(StopStreamRequestSchema)` to create a new message.
|
|
3141
|
+
*/
|
|
3142
|
+
export declare const StopStreamRequestSchema: GenMessage<StopStreamRequest>;
|
|
3143
|
+
/**
|
|
3144
|
+
* @generated from message browserscale.v1.StopStreamResponse
|
|
3145
|
+
*/
|
|
3146
|
+
export type StopStreamResponse = Message<"browserscale.v1.StopStreamResponse"> & {};
|
|
3147
|
+
/**
|
|
3148
|
+
* Describes the message browserscale.v1.StopStreamResponse.
|
|
3149
|
+
* Use `create(StopStreamResponseSchema)` to create a new message.
|
|
3150
|
+
*/
|
|
3151
|
+
export declare const StopStreamResponseSchema: GenMessage<StopStreamResponse>;
|
|
2662
3152
|
/**
|
|
2663
3153
|
* @generated from service browserscale.v1.Browser
|
|
2664
3154
|
*/
|
|
@@ -2777,6 +3267,34 @@ export declare const Browser: GenService<{
|
|
|
2777
3267
|
input: typeof FillRequestSchema;
|
|
2778
3268
|
output: typeof FillResultSchema;
|
|
2779
3269
|
};
|
|
3270
|
+
/**
|
|
3271
|
+
* Reactions — one-shot background auto-click when a condition matches. A
|
|
3272
|
+
* shared per-page poller fires only while the pointer is idle, so a reaction
|
|
3273
|
+
* slots into the gaps of a retrying foreground action.
|
|
3274
|
+
*
|
|
3275
|
+
* @generated from rpc browserscale.v1.Browser.AddReaction
|
|
3276
|
+
*/
|
|
3277
|
+
addReaction: {
|
|
3278
|
+
methodKind: "unary";
|
|
3279
|
+
input: typeof AddReactionRequestSchema;
|
|
3280
|
+
output: typeof AddReactionResponseSchema;
|
|
3281
|
+
};
|
|
3282
|
+
/**
|
|
3283
|
+
* @generated from rpc browserscale.v1.Browser.RemoveReaction
|
|
3284
|
+
*/
|
|
3285
|
+
removeReaction: {
|
|
3286
|
+
methodKind: "unary";
|
|
3287
|
+
input: typeof RemoveReactionRequestSchema;
|
|
3288
|
+
output: typeof RemoveReactionResponseSchema;
|
|
3289
|
+
};
|
|
3290
|
+
/**
|
|
3291
|
+
* @generated from rpc browserscale.v1.Browser.ListReactions
|
|
3292
|
+
*/
|
|
3293
|
+
listReactions: {
|
|
3294
|
+
methodKind: "unary";
|
|
3295
|
+
input: typeof ListReactionsRequestSchema;
|
|
3296
|
+
output: typeof ListReactionsResponseSchema;
|
|
3297
|
+
};
|
|
2780
3298
|
/**
|
|
2781
3299
|
* Network interception
|
|
2782
3300
|
*
|
|
@@ -2941,6 +3459,14 @@ export declare const Browser: GenService<{
|
|
|
2941
3459
|
input: typeof InsertTextRequestSchema;
|
|
2942
3460
|
output: typeof EmptySchema;
|
|
2943
3461
|
};
|
|
3462
|
+
/**
|
|
3463
|
+
* @generated from rpc browserscale.v1.Browser.Type
|
|
3464
|
+
*/
|
|
3465
|
+
type: {
|
|
3466
|
+
methodKind: "unary";
|
|
3467
|
+
input: typeof TypeRequestSchema;
|
|
3468
|
+
output: typeof EmptySchema;
|
|
3469
|
+
};
|
|
2944
3470
|
/**
|
|
2945
3471
|
* @generated from rpc browserscale.v1.Browser.PressKey
|
|
2946
3472
|
*/
|
|
@@ -2975,4 +3501,34 @@ export declare const Browser: GenService<{
|
|
|
2975
3501
|
input: typeof SolveCaptchaRequestSchema;
|
|
2976
3502
|
output: typeof SolveCaptchaResponseSchema;
|
|
2977
3503
|
};
|
|
3504
|
+
/**
|
|
3505
|
+
* Live streaming (WebRTC). The page is streamed as a video track over a
|
|
3506
|
+
* WebRTC PeerConnection whose media is relayed through the TURN server. The
|
|
3507
|
+
* caller creates the offer (client-offerer); the browser answers it.
|
|
3508
|
+
* GetStreamConfig first hands out the ICE servers the client needs to build
|
|
3509
|
+
* that offer.
|
|
3510
|
+
*
|
|
3511
|
+
* @generated from rpc browserscale.v1.Browser.GetStreamConfig
|
|
3512
|
+
*/
|
|
3513
|
+
getStreamConfig: {
|
|
3514
|
+
methodKind: "unary";
|
|
3515
|
+
input: typeof GetStreamConfigRequestSchema;
|
|
3516
|
+
output: typeof GetStreamConfigResponseSchema;
|
|
3517
|
+
};
|
|
3518
|
+
/**
|
|
3519
|
+
* @generated from rpc browserscale.v1.Browser.StartStream
|
|
3520
|
+
*/
|
|
3521
|
+
startStream: {
|
|
3522
|
+
methodKind: "unary";
|
|
3523
|
+
input: typeof StartStreamRequestSchema;
|
|
3524
|
+
output: typeof StartStreamResponseSchema;
|
|
3525
|
+
};
|
|
3526
|
+
/**
|
|
3527
|
+
* @generated from rpc browserscale.v1.Browser.StopStream
|
|
3528
|
+
*/
|
|
3529
|
+
stopStream: {
|
|
3530
|
+
methodKind: "unary";
|
|
3531
|
+
input: typeof StopStreamRequestSchema;
|
|
3532
|
+
output: typeof StopStreamResponseSchema;
|
|
3533
|
+
};
|
|
2978
3534
|
}>;
|