@nimble-way/nimble-js 0.9.0 → 0.11.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/CHANGELOG.md +29 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +119 -1
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +119 -1
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +6 -0
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +6 -0
- package/resources/agent.mjs.map +1 -1
- package/resources/crawl.d.mts +1 -1
- package/resources/crawl.d.mts.map +1 -1
- package/resources/crawl.d.ts +1 -1
- package/resources/crawl.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/top-level.d.mts +205 -22
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +205 -22
- package/resources/top-level.d.ts.map +1 -1
- package/src/client.ts +5 -1
- package/src/resources/agent.ts +149 -0
- package/src/resources/crawl.ts +1 -1
- package/src/resources/index.ts +2 -0
- package/src/resources/top-level.ts +1135 -31
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -83,6 +83,11 @@ export namespace ExtractResponse {
|
|
|
83
83
|
*/
|
|
84
84
|
network_capture?: Array<Data.NetworkCapture>;
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Individual HTML content of each pagination page, before merging.
|
|
88
|
+
*/
|
|
89
|
+
pages_html?: Array<string>;
|
|
90
|
+
|
|
86
91
|
/**
|
|
87
92
|
* The parsing results extracted from the HTML & network content.
|
|
88
93
|
*/
|
|
@@ -986,7 +991,7 @@ export interface ExtractParams {
|
|
|
986
991
|
/**
|
|
987
992
|
* List of acceptable response formats in order of preference
|
|
988
993
|
*/
|
|
989
|
-
formats?: Array<'html' | 'markdown' | 'screenshot'>;
|
|
994
|
+
formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers'>;
|
|
990
995
|
|
|
991
996
|
/**
|
|
992
997
|
* Custom HTTP headers to include in the request
|
|
@@ -2067,7 +2072,7 @@ export interface ExtractAsyncParams {
|
|
|
2067
2072
|
/**
|
|
2068
2073
|
* List of acceptable response formats in order of preference
|
|
2069
2074
|
*/
|
|
2070
|
-
formats?: Array<'html' | 'markdown' | 'screenshot'>;
|
|
2075
|
+
formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers'>;
|
|
2071
2076
|
|
|
2072
2077
|
/**
|
|
2073
2078
|
* Custom HTTP headers to include in the request
|
|
@@ -2846,29 +2851,24 @@ export namespace ExtractAsyncParams {
|
|
|
2846
2851
|
|
|
2847
2852
|
export interface ExtractBatchParams {
|
|
2848
2853
|
/**
|
|
2849
|
-
* Array of extraction requests. Each object
|
|
2850
|
-
*
|
|
2854
|
+
* Array of extraction requests. Each object can include extraction parameters and
|
|
2855
|
+
* async/storage settings.
|
|
2851
2856
|
*/
|
|
2852
|
-
|
|
2857
|
+
inputs: Array<ExtractBatchParams.Input>;
|
|
2853
2858
|
|
|
2854
2859
|
/**
|
|
2855
|
-
* Shared parameters applied to the entire batch
|
|
2856
|
-
*
|
|
2860
|
+
* Shared parameters applied to the entire batch. Can include extraction parameters
|
|
2861
|
+
* and async/storage settings.
|
|
2857
2862
|
*/
|
|
2858
|
-
|
|
2863
|
+
shared_inputs?: ExtractBatchParams.SharedInputs;
|
|
2859
2864
|
}
|
|
2860
2865
|
|
|
2861
2866
|
export namespace ExtractBatchParams {
|
|
2862
|
-
export interface
|
|
2863
|
-
/**
|
|
2864
|
-
* Target URL to scrape
|
|
2865
|
-
*/
|
|
2866
|
-
url: string;
|
|
2867
|
-
|
|
2867
|
+
export interface Input {
|
|
2868
2868
|
/**
|
|
2869
2869
|
* Browser type to emulate
|
|
2870
2870
|
*/
|
|
2871
|
-
browser?: 'chrome' | 'firefox' |
|
|
2871
|
+
browser?: 'chrome' | 'firefox' | Input.UnionMember1;
|
|
2872
2872
|
|
|
2873
2873
|
/**
|
|
2874
2874
|
* Array of browser automation actions to execute sequentially
|
|
@@ -2889,6 +2889,11 @@ export namespace ExtractBatchParams {
|
|
|
2889
2889
|
| Shared.WaitForNavigationAction
|
|
2890
2890
|
>;
|
|
2891
2891
|
|
|
2892
|
+
/**
|
|
2893
|
+
* URL to call back when async operation completes
|
|
2894
|
+
*/
|
|
2895
|
+
callback_url?: string;
|
|
2896
|
+
|
|
2892
2897
|
/**
|
|
2893
2898
|
* City for geolocation
|
|
2894
2899
|
*/
|
|
@@ -2902,7 +2907,7 @@ export namespace ExtractBatchParams {
|
|
|
2902
2907
|
/**
|
|
2903
2908
|
* Browser cookies as array of cookie objects
|
|
2904
2909
|
*/
|
|
2905
|
-
cookies?: Array<
|
|
2910
|
+
cookies?: Array<Input.UnionMember0> | string;
|
|
2906
2911
|
|
|
2907
2912
|
/**
|
|
2908
2913
|
* Country code for geolocation and proxy selection
|
|
@@ -3178,7 +3183,7 @@ export namespace ExtractBatchParams {
|
|
|
3178
3183
|
/**
|
|
3179
3184
|
* List of acceptable response formats in order of preference
|
|
3180
3185
|
*/
|
|
3181
|
-
formats?: Array<'html' | 'markdown' | 'screenshot'>;
|
|
3186
|
+
formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers'>;
|
|
3182
3187
|
|
|
3183
3188
|
/**
|
|
3184
3189
|
* Custom HTTP headers to include in the request
|
|
@@ -3741,7 +3746,7 @@ export namespace ExtractBatchParams {
|
|
|
3741
3746
|
/**
|
|
3742
3747
|
* Filters for capturing network traffic
|
|
3743
3748
|
*/
|
|
3744
|
-
network_capture?: Array<
|
|
3749
|
+
network_capture?: Array<Input.NetworkCapture>;
|
|
3745
3750
|
|
|
3746
3751
|
/**
|
|
3747
3752
|
* Operating system to emulate
|
|
@@ -3781,7 +3786,7 @@ export namespace ExtractBatchParams {
|
|
|
3781
3786
|
*/
|
|
3782
3787
|
request_timeout?: number;
|
|
3783
3788
|
|
|
3784
|
-
session?:
|
|
3789
|
+
session?: Input.Session;
|
|
3785
3790
|
|
|
3786
3791
|
/**
|
|
3787
3792
|
* Skills or capabilities required for the request
|
|
@@ -3849,13 +3854,38 @@ export namespace ExtractBatchParams {
|
|
|
3849
3854
|
| 'WI'
|
|
3850
3855
|
| 'WY';
|
|
3851
3856
|
|
|
3857
|
+
/**
|
|
3858
|
+
* Whether to compress stored data
|
|
3859
|
+
*/
|
|
3860
|
+
storage_compress?: boolean;
|
|
3861
|
+
|
|
3862
|
+
/**
|
|
3863
|
+
* Custom name for the stored object
|
|
3864
|
+
*/
|
|
3865
|
+
storage_object_name?: string;
|
|
3866
|
+
|
|
3867
|
+
/**
|
|
3868
|
+
* Type of storage to use for results
|
|
3869
|
+
*/
|
|
3870
|
+
storage_type?: string;
|
|
3871
|
+
|
|
3872
|
+
/**
|
|
3873
|
+
* URL for storage location
|
|
3874
|
+
*/
|
|
3875
|
+
storage_url?: string;
|
|
3876
|
+
|
|
3852
3877
|
/**
|
|
3853
3878
|
* User-defined tag for request identification
|
|
3854
3879
|
*/
|
|
3855
3880
|
tag?: string;
|
|
3881
|
+
|
|
3882
|
+
/**
|
|
3883
|
+
* Target URL to scrape
|
|
3884
|
+
*/
|
|
3885
|
+
url?: string;
|
|
3856
3886
|
}
|
|
3857
3887
|
|
|
3858
|
-
export namespace
|
|
3888
|
+
export namespace Input {
|
|
3859
3889
|
export interface UnionMember1 {
|
|
3860
3890
|
name: 'chrome' | 'firefox';
|
|
3861
3891
|
|
|
@@ -3936,34 +3966,1108 @@ export namespace ExtractBatchParams {
|
|
|
3936
3966
|
}
|
|
3937
3967
|
|
|
3938
3968
|
/**
|
|
3939
|
-
* Shared parameters applied to the entire batch
|
|
3940
|
-
*
|
|
3969
|
+
* Shared parameters applied to the entire batch. Can include extraction parameters
|
|
3970
|
+
* and async/storage settings.
|
|
3941
3971
|
*/
|
|
3942
|
-
export interface
|
|
3972
|
+
export interface SharedInputs {
|
|
3973
|
+
/**
|
|
3974
|
+
* Browser type to emulate
|
|
3975
|
+
*/
|
|
3976
|
+
browser?: 'chrome' | 'firefox' | SharedInputs.UnionMember1;
|
|
3977
|
+
|
|
3978
|
+
/**
|
|
3979
|
+
* Array of browser automation actions to execute sequentially
|
|
3980
|
+
*/
|
|
3981
|
+
browser_actions?: Array<
|
|
3982
|
+
| Shared.AutoScrollAction
|
|
3983
|
+
| Shared.ClickAction
|
|
3984
|
+
| Shared.EvalAction
|
|
3985
|
+
| Shared.FetchAction
|
|
3986
|
+
| Shared.FillAction
|
|
3987
|
+
| Shared.GetCookiesAction
|
|
3988
|
+
| Shared.GotoAction
|
|
3989
|
+
| Shared.PressAction
|
|
3990
|
+
| Shared.ScreenshotAction
|
|
3991
|
+
| Shared.ScrollAction
|
|
3992
|
+
| Shared.WaitAction
|
|
3993
|
+
| Shared.WaitForElementAction
|
|
3994
|
+
| Shared.WaitForNavigationAction
|
|
3995
|
+
>;
|
|
3996
|
+
|
|
3943
3997
|
/**
|
|
3944
3998
|
* URL to call back when async operation completes
|
|
3945
3999
|
*/
|
|
3946
4000
|
callback_url?: string;
|
|
3947
4001
|
|
|
3948
4002
|
/**
|
|
3949
|
-
*
|
|
4003
|
+
* City for geolocation
|
|
3950
4004
|
*/
|
|
3951
|
-
|
|
4005
|
+
city?: string;
|
|
3952
4006
|
|
|
3953
4007
|
/**
|
|
3954
|
-
*
|
|
4008
|
+
* Whether to automatically handle cookie consent headers
|
|
3955
4009
|
*/
|
|
3956
|
-
|
|
4010
|
+
consent_header?: boolean;
|
|
3957
4011
|
|
|
3958
4012
|
/**
|
|
3959
|
-
*
|
|
4013
|
+
* Browser cookies as array of cookie objects
|
|
3960
4014
|
*/
|
|
3961
|
-
|
|
4015
|
+
cookies?: Array<SharedInputs.UnionMember0> | string;
|
|
3962
4016
|
|
|
3963
4017
|
/**
|
|
3964
|
-
*
|
|
4018
|
+
* Country code for geolocation and proxy selection
|
|
3965
4019
|
*/
|
|
3966
|
-
|
|
4020
|
+
country?:
|
|
4021
|
+
| 'AD'
|
|
4022
|
+
| 'AE'
|
|
4023
|
+
| 'AF'
|
|
4024
|
+
| 'AG'
|
|
4025
|
+
| 'AI'
|
|
4026
|
+
| 'AL'
|
|
4027
|
+
| 'AM'
|
|
4028
|
+
| 'AO'
|
|
4029
|
+
| 'AQ'
|
|
4030
|
+
| 'AR'
|
|
4031
|
+
| 'AS'
|
|
4032
|
+
| 'AT'
|
|
4033
|
+
| 'AU'
|
|
4034
|
+
| 'AW'
|
|
4035
|
+
| 'AX'
|
|
4036
|
+
| 'AZ'
|
|
4037
|
+
| 'BA'
|
|
4038
|
+
| 'BB'
|
|
4039
|
+
| 'BD'
|
|
4040
|
+
| 'BE'
|
|
4041
|
+
| 'BF'
|
|
4042
|
+
| 'BG'
|
|
4043
|
+
| 'BH'
|
|
4044
|
+
| 'BI'
|
|
4045
|
+
| 'BJ'
|
|
4046
|
+
| 'BL'
|
|
4047
|
+
| 'BM'
|
|
4048
|
+
| 'BN'
|
|
4049
|
+
| 'BO'
|
|
4050
|
+
| 'BQ'
|
|
4051
|
+
| 'BR'
|
|
4052
|
+
| 'BS'
|
|
4053
|
+
| 'BT'
|
|
4054
|
+
| 'BV'
|
|
4055
|
+
| 'BW'
|
|
4056
|
+
| 'BY'
|
|
4057
|
+
| 'BZ'
|
|
4058
|
+
| 'CA'
|
|
4059
|
+
| 'CC'
|
|
4060
|
+
| 'CD'
|
|
4061
|
+
| 'CF'
|
|
4062
|
+
| 'CG'
|
|
4063
|
+
| 'CH'
|
|
4064
|
+
| 'CI'
|
|
4065
|
+
| 'CK'
|
|
4066
|
+
| 'CL'
|
|
4067
|
+
| 'CM'
|
|
4068
|
+
| 'CN'
|
|
4069
|
+
| 'CO'
|
|
4070
|
+
| 'CR'
|
|
4071
|
+
| 'CU'
|
|
4072
|
+
| 'CV'
|
|
4073
|
+
| 'CW'
|
|
4074
|
+
| 'CX'
|
|
4075
|
+
| 'CY'
|
|
4076
|
+
| 'CZ'
|
|
4077
|
+
| 'DE'
|
|
4078
|
+
| 'DJ'
|
|
4079
|
+
| 'DK'
|
|
4080
|
+
| 'DM'
|
|
4081
|
+
| 'DO'
|
|
4082
|
+
| 'DZ'
|
|
4083
|
+
| 'EC'
|
|
4084
|
+
| 'EE'
|
|
4085
|
+
| 'EG'
|
|
4086
|
+
| 'EH'
|
|
4087
|
+
| 'ER'
|
|
4088
|
+
| 'ES'
|
|
4089
|
+
| 'ET'
|
|
4090
|
+
| 'FI'
|
|
4091
|
+
| 'FJ'
|
|
4092
|
+
| 'FK'
|
|
4093
|
+
| 'FM'
|
|
4094
|
+
| 'FO'
|
|
4095
|
+
| 'FR'
|
|
4096
|
+
| 'GA'
|
|
4097
|
+
| 'GB'
|
|
4098
|
+
| 'GD'
|
|
4099
|
+
| 'GE'
|
|
4100
|
+
| 'GF'
|
|
4101
|
+
| 'GG'
|
|
4102
|
+
| 'GH'
|
|
4103
|
+
| 'GI'
|
|
4104
|
+
| 'GL'
|
|
4105
|
+
| 'GM'
|
|
4106
|
+
| 'GN'
|
|
4107
|
+
| 'GP'
|
|
4108
|
+
| 'GQ'
|
|
4109
|
+
| 'GR'
|
|
4110
|
+
| 'GS'
|
|
4111
|
+
| 'GT'
|
|
4112
|
+
| 'GU'
|
|
4113
|
+
| 'GW'
|
|
4114
|
+
| 'GY'
|
|
4115
|
+
| 'HK'
|
|
4116
|
+
| 'HM'
|
|
4117
|
+
| 'HN'
|
|
4118
|
+
| 'HR'
|
|
4119
|
+
| 'HT'
|
|
4120
|
+
| 'HU'
|
|
4121
|
+
| 'ID'
|
|
4122
|
+
| 'IE'
|
|
4123
|
+
| 'IL'
|
|
4124
|
+
| 'IM'
|
|
4125
|
+
| 'IN'
|
|
4126
|
+
| 'IO'
|
|
4127
|
+
| 'IQ'
|
|
4128
|
+
| 'IR'
|
|
4129
|
+
| 'IS'
|
|
4130
|
+
| 'IT'
|
|
4131
|
+
| 'JE'
|
|
4132
|
+
| 'JM'
|
|
4133
|
+
| 'JO'
|
|
4134
|
+
| 'JP'
|
|
4135
|
+
| 'KE'
|
|
4136
|
+
| 'KG'
|
|
4137
|
+
| 'KH'
|
|
4138
|
+
| 'KI'
|
|
4139
|
+
| 'KM'
|
|
4140
|
+
| 'KN'
|
|
4141
|
+
| 'KP'
|
|
4142
|
+
| 'KR'
|
|
4143
|
+
| 'KW'
|
|
4144
|
+
| 'KY'
|
|
4145
|
+
| 'KZ'
|
|
4146
|
+
| 'LA'
|
|
4147
|
+
| 'LB'
|
|
4148
|
+
| 'LC'
|
|
4149
|
+
| 'LI'
|
|
4150
|
+
| 'LK'
|
|
4151
|
+
| 'LR'
|
|
4152
|
+
| 'LS'
|
|
4153
|
+
| 'LT'
|
|
4154
|
+
| 'LU'
|
|
4155
|
+
| 'LV'
|
|
4156
|
+
| 'LY'
|
|
4157
|
+
| 'MA'
|
|
4158
|
+
| 'MC'
|
|
4159
|
+
| 'MD'
|
|
4160
|
+
| 'ME'
|
|
4161
|
+
| 'MF'
|
|
4162
|
+
| 'MG'
|
|
4163
|
+
| 'MH'
|
|
4164
|
+
| 'MK'
|
|
4165
|
+
| 'ML'
|
|
4166
|
+
| 'MM'
|
|
4167
|
+
| 'MN'
|
|
4168
|
+
| 'MO'
|
|
4169
|
+
| 'MP'
|
|
4170
|
+
| 'MQ'
|
|
4171
|
+
| 'MR'
|
|
4172
|
+
| 'MS'
|
|
4173
|
+
| 'MT'
|
|
4174
|
+
| 'MU'
|
|
4175
|
+
| 'MV'
|
|
4176
|
+
| 'MW'
|
|
4177
|
+
| 'MX'
|
|
4178
|
+
| 'MY'
|
|
4179
|
+
| 'MZ'
|
|
4180
|
+
| 'NA'
|
|
4181
|
+
| 'NC'
|
|
4182
|
+
| 'NE'
|
|
4183
|
+
| 'NF'
|
|
4184
|
+
| 'NG'
|
|
4185
|
+
| 'NI'
|
|
4186
|
+
| 'NL'
|
|
4187
|
+
| 'NO'
|
|
4188
|
+
| 'NP'
|
|
4189
|
+
| 'NR'
|
|
4190
|
+
| 'NU'
|
|
4191
|
+
| 'NZ'
|
|
4192
|
+
| 'OM'
|
|
4193
|
+
| 'PA'
|
|
4194
|
+
| 'PE'
|
|
4195
|
+
| 'PF'
|
|
4196
|
+
| 'PG'
|
|
4197
|
+
| 'PH'
|
|
4198
|
+
| 'PK'
|
|
4199
|
+
| 'PL'
|
|
4200
|
+
| 'PM'
|
|
4201
|
+
| 'PN'
|
|
4202
|
+
| 'PR'
|
|
4203
|
+
| 'PS'
|
|
4204
|
+
| 'PT'
|
|
4205
|
+
| 'PW'
|
|
4206
|
+
| 'PY'
|
|
4207
|
+
| 'QA'
|
|
4208
|
+
| 'RE'
|
|
4209
|
+
| 'RO'
|
|
4210
|
+
| 'RS'
|
|
4211
|
+
| 'RU'
|
|
4212
|
+
| 'RW'
|
|
4213
|
+
| 'SA'
|
|
4214
|
+
| 'SB'
|
|
4215
|
+
| 'SC'
|
|
4216
|
+
| 'SD'
|
|
4217
|
+
| 'SE'
|
|
4218
|
+
| 'SG'
|
|
4219
|
+
| 'SH'
|
|
4220
|
+
| 'SI'
|
|
4221
|
+
| 'SJ'
|
|
4222
|
+
| 'SK'
|
|
4223
|
+
| 'SL'
|
|
4224
|
+
| 'SM'
|
|
4225
|
+
| 'SN'
|
|
4226
|
+
| 'SO'
|
|
4227
|
+
| 'SR'
|
|
4228
|
+
| 'SS'
|
|
4229
|
+
| 'ST'
|
|
4230
|
+
| 'SV'
|
|
4231
|
+
| 'SX'
|
|
4232
|
+
| 'SY'
|
|
4233
|
+
| 'SZ'
|
|
4234
|
+
| 'TC'
|
|
4235
|
+
| 'TD'
|
|
4236
|
+
| 'TF'
|
|
4237
|
+
| 'TG'
|
|
4238
|
+
| 'TH'
|
|
4239
|
+
| 'TJ'
|
|
4240
|
+
| 'TK'
|
|
4241
|
+
| 'TL'
|
|
4242
|
+
| 'TM'
|
|
4243
|
+
| 'TN'
|
|
4244
|
+
| 'TO'
|
|
4245
|
+
| 'TR'
|
|
4246
|
+
| 'TT'
|
|
4247
|
+
| 'TV'
|
|
4248
|
+
| 'TW'
|
|
4249
|
+
| 'TZ'
|
|
4250
|
+
| 'UA'
|
|
4251
|
+
| 'UG'
|
|
4252
|
+
| 'UM'
|
|
4253
|
+
| 'US'
|
|
4254
|
+
| 'UY'
|
|
4255
|
+
| 'UZ'
|
|
4256
|
+
| 'VA'
|
|
4257
|
+
| 'VC'
|
|
4258
|
+
| 'VE'
|
|
4259
|
+
| 'VG'
|
|
4260
|
+
| 'VI'
|
|
4261
|
+
| 'VN'
|
|
4262
|
+
| 'VU'
|
|
4263
|
+
| 'WF'
|
|
4264
|
+
| 'WS'
|
|
4265
|
+
| 'XK'
|
|
4266
|
+
| 'YE'
|
|
4267
|
+
| 'YT'
|
|
4268
|
+
| 'ZA'
|
|
4269
|
+
| 'ZM'
|
|
4270
|
+
| 'ZW'
|
|
4271
|
+
| 'ALL';
|
|
4272
|
+
|
|
4273
|
+
/**
|
|
4274
|
+
* Device type for browser emulation
|
|
4275
|
+
*/
|
|
4276
|
+
device?: 'desktop' | 'mobile' | 'tablet';
|
|
4277
|
+
|
|
4278
|
+
/**
|
|
4279
|
+
* Browser driver to use
|
|
4280
|
+
*/
|
|
4281
|
+
driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro';
|
|
4282
|
+
|
|
4283
|
+
/**
|
|
4284
|
+
* Expected HTTP status codes for successful requests
|
|
4285
|
+
*/
|
|
4286
|
+
expected_status_codes?: Array<number>;
|
|
4287
|
+
|
|
4288
|
+
/**
|
|
4289
|
+
* List of acceptable response formats in order of preference
|
|
4290
|
+
*/
|
|
4291
|
+
formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers'>;
|
|
4292
|
+
|
|
4293
|
+
/**
|
|
4294
|
+
* Custom HTTP headers to include in the request
|
|
4295
|
+
*/
|
|
4296
|
+
headers?: { [key: string]: string | Array<string> | null };
|
|
4297
|
+
|
|
4298
|
+
/**
|
|
4299
|
+
* Whether to use HTTP/2 protocol
|
|
4300
|
+
*/
|
|
4301
|
+
http2?: boolean;
|
|
4302
|
+
|
|
4303
|
+
/**
|
|
4304
|
+
* Whether to emulate XMLHttpRequest behavior
|
|
4305
|
+
*/
|
|
4306
|
+
is_xhr?: boolean;
|
|
4307
|
+
|
|
4308
|
+
/**
|
|
4309
|
+
* Locale for browser language and region settings
|
|
4310
|
+
*/
|
|
4311
|
+
locale?:
|
|
4312
|
+
| 'aa-DJ'
|
|
4313
|
+
| 'aa-ER'
|
|
4314
|
+
| 'aa-ET'
|
|
4315
|
+
| 'af'
|
|
4316
|
+
| 'af-NA'
|
|
4317
|
+
| 'af-ZA'
|
|
4318
|
+
| 'ak'
|
|
4319
|
+
| 'ak-GH'
|
|
4320
|
+
| 'am'
|
|
4321
|
+
| 'am-ET'
|
|
4322
|
+
| 'an-ES'
|
|
4323
|
+
| 'ar'
|
|
4324
|
+
| 'ar-AE'
|
|
4325
|
+
| 'ar-BH'
|
|
4326
|
+
| 'ar-DZ'
|
|
4327
|
+
| 'ar-EG'
|
|
4328
|
+
| 'ar-IN'
|
|
4329
|
+
| 'ar-IQ'
|
|
4330
|
+
| 'ar-JO'
|
|
4331
|
+
| 'ar-KW'
|
|
4332
|
+
| 'ar-LB'
|
|
4333
|
+
| 'ar-LY'
|
|
4334
|
+
| 'ar-MA'
|
|
4335
|
+
| 'ar-OM'
|
|
4336
|
+
| 'ar-QA'
|
|
4337
|
+
| 'ar-SA'
|
|
4338
|
+
| 'ar-SD'
|
|
4339
|
+
| 'ar-SY'
|
|
4340
|
+
| 'ar-TN'
|
|
4341
|
+
| 'ar-YE'
|
|
4342
|
+
| 'as'
|
|
4343
|
+
| 'as-IN'
|
|
4344
|
+
| 'asa'
|
|
4345
|
+
| 'asa-TZ'
|
|
4346
|
+
| 'ast-ES'
|
|
4347
|
+
| 'az'
|
|
4348
|
+
| 'az-AZ'
|
|
4349
|
+
| 'az-Cyrl'
|
|
4350
|
+
| 'az-Cyrl-AZ'
|
|
4351
|
+
| 'az-Latn'
|
|
4352
|
+
| 'az-Latn-AZ'
|
|
4353
|
+
| 'be'
|
|
4354
|
+
| 'be-BY'
|
|
4355
|
+
| 'bem'
|
|
4356
|
+
| 'bem-ZM'
|
|
4357
|
+
| 'ber-DZ'
|
|
4358
|
+
| 'ber-MA'
|
|
4359
|
+
| 'bez'
|
|
4360
|
+
| 'bez-TZ'
|
|
4361
|
+
| 'bg'
|
|
4362
|
+
| 'bg-BG'
|
|
4363
|
+
| 'bho-IN'
|
|
4364
|
+
| 'bm'
|
|
4365
|
+
| 'bm-ML'
|
|
4366
|
+
| 'bn'
|
|
4367
|
+
| 'bn-BD'
|
|
4368
|
+
| 'bn-IN'
|
|
4369
|
+
| 'bo'
|
|
4370
|
+
| 'bo-CN'
|
|
4371
|
+
| 'bo-IN'
|
|
4372
|
+
| 'br-FR'
|
|
4373
|
+
| 'brx-IN'
|
|
4374
|
+
| 'bs'
|
|
4375
|
+
| 'bs-BA'
|
|
4376
|
+
| 'byn-ER'
|
|
4377
|
+
| 'ca'
|
|
4378
|
+
| 'ca-AD'
|
|
4379
|
+
| 'ca-ES'
|
|
4380
|
+
| 'ca-FR'
|
|
4381
|
+
| 'ca-IT'
|
|
4382
|
+
| 'cgg'
|
|
4383
|
+
| 'cgg-UG'
|
|
4384
|
+
| 'chr'
|
|
4385
|
+
| 'chr-US'
|
|
4386
|
+
| 'crh-UA'
|
|
4387
|
+
| 'cs'
|
|
4388
|
+
| 'cs-CZ'
|
|
4389
|
+
| 'csb-PL'
|
|
4390
|
+
| 'cv-RU'
|
|
4391
|
+
| 'cy'
|
|
4392
|
+
| 'cy-GB'
|
|
4393
|
+
| 'da'
|
|
4394
|
+
| 'da-DK'
|
|
4395
|
+
| 'dav'
|
|
4396
|
+
| 'dav-KE'
|
|
4397
|
+
| 'de'
|
|
4398
|
+
| 'de-AT'
|
|
4399
|
+
| 'de-BE'
|
|
4400
|
+
| 'de-CH'
|
|
4401
|
+
| 'de-DE'
|
|
4402
|
+
| 'de-LI'
|
|
4403
|
+
| 'de-LU'
|
|
4404
|
+
| 'dv-MV'
|
|
4405
|
+
| 'dz-BT'
|
|
4406
|
+
| 'ebu'
|
|
4407
|
+
| 'ebu-KE'
|
|
4408
|
+
| 'ee'
|
|
4409
|
+
| 'ee-GH'
|
|
4410
|
+
| 'ee-TG'
|
|
4411
|
+
| 'el'
|
|
4412
|
+
| 'el-CY'
|
|
4413
|
+
| 'el-GR'
|
|
4414
|
+
| 'en'
|
|
4415
|
+
| 'en-AG'
|
|
4416
|
+
| 'en-AS'
|
|
4417
|
+
| 'en-AU'
|
|
4418
|
+
| 'en-BE'
|
|
4419
|
+
| 'en-BW'
|
|
4420
|
+
| 'en-BZ'
|
|
4421
|
+
| 'en-CA'
|
|
4422
|
+
| 'en-DK'
|
|
4423
|
+
| 'en-GB'
|
|
4424
|
+
| 'en-GU'
|
|
4425
|
+
| 'en-HK'
|
|
4426
|
+
| 'en-IE'
|
|
4427
|
+
| 'en-IN'
|
|
4428
|
+
| 'en-JM'
|
|
4429
|
+
| 'en-MH'
|
|
4430
|
+
| 'en-MP'
|
|
4431
|
+
| 'en-MT'
|
|
4432
|
+
| 'en-MU'
|
|
4433
|
+
| 'en-NA'
|
|
4434
|
+
| 'en-NG'
|
|
4435
|
+
| 'en-NZ'
|
|
4436
|
+
| 'en-PH'
|
|
4437
|
+
| 'en-PK'
|
|
4438
|
+
| 'en-SG'
|
|
4439
|
+
| 'en-TT'
|
|
4440
|
+
| 'en-UM'
|
|
4441
|
+
| 'en-US'
|
|
4442
|
+
| 'en-VI'
|
|
4443
|
+
| 'en-ZA'
|
|
4444
|
+
| 'en-ZM'
|
|
4445
|
+
| 'en-ZW'
|
|
4446
|
+
| 'eo'
|
|
4447
|
+
| 'es'
|
|
4448
|
+
| 'es-419'
|
|
4449
|
+
| 'es-AR'
|
|
4450
|
+
| 'es-BO'
|
|
4451
|
+
| 'es-CL'
|
|
4452
|
+
| 'es-CO'
|
|
4453
|
+
| 'es-CR'
|
|
4454
|
+
| 'es-CU'
|
|
4455
|
+
| 'es-DO'
|
|
4456
|
+
| 'es-EC'
|
|
4457
|
+
| 'es-ES'
|
|
4458
|
+
| 'es-GQ'
|
|
4459
|
+
| 'es-GT'
|
|
4460
|
+
| 'es-HN'
|
|
4461
|
+
| 'es-MX'
|
|
4462
|
+
| 'es-NI'
|
|
4463
|
+
| 'es-PA'
|
|
4464
|
+
| 'es-PE'
|
|
4465
|
+
| 'es-PR'
|
|
4466
|
+
| 'es-PY'
|
|
4467
|
+
| 'es-SV'
|
|
4468
|
+
| 'es-US'
|
|
4469
|
+
| 'es-UY'
|
|
4470
|
+
| 'es-VE'
|
|
4471
|
+
| 'et'
|
|
4472
|
+
| 'et-EE'
|
|
4473
|
+
| 'eu'
|
|
4474
|
+
| 'eu-ES'
|
|
4475
|
+
| 'fa'
|
|
4476
|
+
| 'fa-AF'
|
|
4477
|
+
| 'fa-IR'
|
|
4478
|
+
| 'ff'
|
|
4479
|
+
| 'ff-SN'
|
|
4480
|
+
| 'fi'
|
|
4481
|
+
| 'fi-FI'
|
|
4482
|
+
| 'fil'
|
|
4483
|
+
| 'fil-PH'
|
|
4484
|
+
| 'fo'
|
|
4485
|
+
| 'fo-FO'
|
|
4486
|
+
| 'fr'
|
|
4487
|
+
| 'fr-BE'
|
|
4488
|
+
| 'fr-BF'
|
|
4489
|
+
| 'fr-BI'
|
|
4490
|
+
| 'fr-BJ'
|
|
4491
|
+
| 'fr-BL'
|
|
4492
|
+
| 'fr-CA'
|
|
4493
|
+
| 'fr-CD'
|
|
4494
|
+
| 'fr-CF'
|
|
4495
|
+
| 'fr-CG'
|
|
4496
|
+
| 'fr-CH'
|
|
4497
|
+
| 'fr-CI'
|
|
4498
|
+
| 'fr-CM'
|
|
4499
|
+
| 'fr-DJ'
|
|
4500
|
+
| 'fr-FR'
|
|
4501
|
+
| 'fr-GA'
|
|
4502
|
+
| 'fr-GN'
|
|
4503
|
+
| 'fr-GP'
|
|
4504
|
+
| 'fr-GQ'
|
|
4505
|
+
| 'fr-KM'
|
|
4506
|
+
| 'fr-LU'
|
|
4507
|
+
| 'fr-MC'
|
|
4508
|
+
| 'fr-MF'
|
|
4509
|
+
| 'fr-MG'
|
|
4510
|
+
| 'fr-ML'
|
|
4511
|
+
| 'fr-MQ'
|
|
4512
|
+
| 'fr-NE'
|
|
4513
|
+
| 'fr-RE'
|
|
4514
|
+
| 'fr-RW'
|
|
4515
|
+
| 'fr-SN'
|
|
4516
|
+
| 'fr-TD'
|
|
4517
|
+
| 'fr-TG'
|
|
4518
|
+
| 'fur-IT'
|
|
4519
|
+
| 'fy-DE'
|
|
4520
|
+
| 'fy-NL'
|
|
4521
|
+
| 'ga'
|
|
4522
|
+
| 'ga-IE'
|
|
4523
|
+
| 'gd-GB'
|
|
4524
|
+
| 'gez-ER'
|
|
4525
|
+
| 'gez-ET'
|
|
4526
|
+
| 'gl'
|
|
4527
|
+
| 'gl-ES'
|
|
4528
|
+
| 'gsw'
|
|
4529
|
+
| 'gsw-CH'
|
|
4530
|
+
| 'gu'
|
|
4531
|
+
| 'gu-IN'
|
|
4532
|
+
| 'guz'
|
|
4533
|
+
| 'guz-KE'
|
|
4534
|
+
| 'gv'
|
|
4535
|
+
| 'gv-GB'
|
|
4536
|
+
| 'ha'
|
|
4537
|
+
| 'ha-Latn'
|
|
4538
|
+
| 'ha-Latn-GH'
|
|
4539
|
+
| 'ha-Latn-NE'
|
|
4540
|
+
| 'ha-Latn-NG'
|
|
4541
|
+
| 'ha-NG'
|
|
4542
|
+
| 'haw'
|
|
4543
|
+
| 'haw-US'
|
|
4544
|
+
| 'he'
|
|
4545
|
+
| 'he-IL'
|
|
4546
|
+
| 'hi'
|
|
4547
|
+
| 'hi-IN'
|
|
4548
|
+
| 'hne-IN'
|
|
4549
|
+
| 'hr'
|
|
4550
|
+
| 'hr-HR'
|
|
4551
|
+
| 'hsb-DE'
|
|
4552
|
+
| 'ht-HT'
|
|
4553
|
+
| 'hu'
|
|
4554
|
+
| 'hu-HU'
|
|
4555
|
+
| 'hy'
|
|
4556
|
+
| 'hy-AM'
|
|
4557
|
+
| 'id'
|
|
4558
|
+
| 'id-ID'
|
|
4559
|
+
| 'ig'
|
|
4560
|
+
| 'ig-NG'
|
|
4561
|
+
| 'ii'
|
|
4562
|
+
| 'ii-CN'
|
|
4563
|
+
| 'ik-CA'
|
|
4564
|
+
| 'is'
|
|
4565
|
+
| 'is-IS'
|
|
4566
|
+
| 'it'
|
|
4567
|
+
| 'it-CH'
|
|
4568
|
+
| 'it-IT'
|
|
4569
|
+
| 'iu-CA'
|
|
4570
|
+
| 'iw-IL'
|
|
4571
|
+
| 'ja'
|
|
4572
|
+
| 'ja-JP'
|
|
4573
|
+
| 'jmc'
|
|
4574
|
+
| 'jmc-TZ'
|
|
4575
|
+
| 'ka'
|
|
4576
|
+
| 'ka-GE'
|
|
4577
|
+
| 'kab'
|
|
4578
|
+
| 'kab-DZ'
|
|
4579
|
+
| 'kam'
|
|
4580
|
+
| 'kam-KE'
|
|
4581
|
+
| 'kde'
|
|
4582
|
+
| 'kde-TZ'
|
|
4583
|
+
| 'kea'
|
|
4584
|
+
| 'kea-CV'
|
|
4585
|
+
| 'khq'
|
|
4586
|
+
| 'khq-ML'
|
|
4587
|
+
| 'ki'
|
|
4588
|
+
| 'ki-KE'
|
|
4589
|
+
| 'kk'
|
|
4590
|
+
| 'kk-Cyrl'
|
|
4591
|
+
| 'kk-Cyrl-KZ'
|
|
4592
|
+
| 'kk-KZ'
|
|
4593
|
+
| 'kl'
|
|
4594
|
+
| 'kl-GL'
|
|
4595
|
+
| 'kln'
|
|
4596
|
+
| 'kln-KE'
|
|
4597
|
+
| 'km'
|
|
4598
|
+
| 'km-KH'
|
|
4599
|
+
| 'kn'
|
|
4600
|
+
| 'kn-IN'
|
|
4601
|
+
| 'ko'
|
|
4602
|
+
| 'ko-KR'
|
|
4603
|
+
| 'kok'
|
|
4604
|
+
| 'kok-IN'
|
|
4605
|
+
| 'ks-IN'
|
|
4606
|
+
| 'ku-TR'
|
|
4607
|
+
| 'kw'
|
|
4608
|
+
| 'kw-GB'
|
|
4609
|
+
| 'ky-KG'
|
|
4610
|
+
| 'lag'
|
|
4611
|
+
| 'lag-TZ'
|
|
4612
|
+
| 'lb-LU'
|
|
4613
|
+
| 'lg'
|
|
4614
|
+
| 'lg-UG'
|
|
4615
|
+
| 'li-BE'
|
|
4616
|
+
| 'li-NL'
|
|
4617
|
+
| 'lij-IT'
|
|
4618
|
+
| 'lo-LA'
|
|
4619
|
+
| 'lt'
|
|
4620
|
+
| 'lt-LT'
|
|
4621
|
+
| 'luo'
|
|
4622
|
+
| 'luo-KE'
|
|
4623
|
+
| 'luy'
|
|
4624
|
+
| 'luy-KE'
|
|
4625
|
+
| 'lv'
|
|
4626
|
+
| 'lv-LV'
|
|
4627
|
+
| 'mag-IN'
|
|
4628
|
+
| 'mai-IN'
|
|
4629
|
+
| 'mas'
|
|
4630
|
+
| 'mas-KE'
|
|
4631
|
+
| 'mas-TZ'
|
|
4632
|
+
| 'mer'
|
|
4633
|
+
| 'mer-KE'
|
|
4634
|
+
| 'mfe'
|
|
4635
|
+
| 'mfe-MU'
|
|
4636
|
+
| 'mg'
|
|
4637
|
+
| 'mg-MG'
|
|
4638
|
+
| 'mhr-RU'
|
|
4639
|
+
| 'mi-NZ'
|
|
4640
|
+
| 'mk'
|
|
4641
|
+
| 'mk-MK'
|
|
4642
|
+
| 'ml'
|
|
4643
|
+
| 'ml-IN'
|
|
4644
|
+
| 'mn-MN'
|
|
4645
|
+
| 'mr'
|
|
4646
|
+
| 'mr-IN'
|
|
4647
|
+
| 'ms'
|
|
4648
|
+
| 'ms-BN'
|
|
4649
|
+
| 'ms-MY'
|
|
4650
|
+
| 'mt'
|
|
4651
|
+
| 'mt-MT'
|
|
4652
|
+
| 'my'
|
|
4653
|
+
| 'my-MM'
|
|
4654
|
+
| 'nan-TW'
|
|
4655
|
+
| 'naq'
|
|
4656
|
+
| 'naq-NA'
|
|
4657
|
+
| 'nb'
|
|
4658
|
+
| 'nb-NO'
|
|
4659
|
+
| 'nd'
|
|
4660
|
+
| 'nd-ZW'
|
|
4661
|
+
| 'nds-DE'
|
|
4662
|
+
| 'nds-NL'
|
|
4663
|
+
| 'ne'
|
|
4664
|
+
| 'ne-IN'
|
|
4665
|
+
| 'ne-NP'
|
|
4666
|
+
| 'nl'
|
|
4667
|
+
| 'nl-AW'
|
|
4668
|
+
| 'nl-BE'
|
|
4669
|
+
| 'nl-NL'
|
|
4670
|
+
| 'nn'
|
|
4671
|
+
| 'nn-NO'
|
|
4672
|
+
| 'nr-ZA'
|
|
4673
|
+
| 'nso-ZA'
|
|
4674
|
+
| 'nyn'
|
|
4675
|
+
| 'nyn-UG'
|
|
4676
|
+
| 'oc-FR'
|
|
4677
|
+
| 'om'
|
|
4678
|
+
| 'om-ET'
|
|
4679
|
+
| 'om-KE'
|
|
4680
|
+
| 'or'
|
|
4681
|
+
| 'or-IN'
|
|
4682
|
+
| 'os-RU'
|
|
4683
|
+
| 'pa'
|
|
4684
|
+
| 'pa-Arab'
|
|
4685
|
+
| 'pa-Arab-PK'
|
|
4686
|
+
| 'pa-Guru'
|
|
4687
|
+
| 'pa-Guru-IN'
|
|
4688
|
+
| 'pa-IN'
|
|
4689
|
+
| 'pa-PK'
|
|
4690
|
+
| 'pap-AN'
|
|
4691
|
+
| 'pl'
|
|
4692
|
+
| 'pl-PL'
|
|
4693
|
+
| 'ps'
|
|
4694
|
+
| 'ps-AF'
|
|
4695
|
+
| 'pt'
|
|
4696
|
+
| 'pt-BR'
|
|
4697
|
+
| 'pt-GW'
|
|
4698
|
+
| 'pt-MZ'
|
|
4699
|
+
| 'pt-PT'
|
|
4700
|
+
| 'rm'
|
|
4701
|
+
| 'rm-CH'
|
|
4702
|
+
| 'ro'
|
|
4703
|
+
| 'ro-MD'
|
|
4704
|
+
| 'ro-RO'
|
|
4705
|
+
| 'rof'
|
|
4706
|
+
| 'rof-TZ'
|
|
4707
|
+
| 'ru'
|
|
4708
|
+
| 'ru-MD'
|
|
4709
|
+
| 'ru-RU'
|
|
4710
|
+
| 'ru-UA'
|
|
4711
|
+
| 'rw'
|
|
4712
|
+
| 'rw-RW'
|
|
4713
|
+
| 'rwk'
|
|
4714
|
+
| 'rwk-TZ'
|
|
4715
|
+
| 'sa-IN'
|
|
4716
|
+
| 'saq'
|
|
4717
|
+
| 'saq-KE'
|
|
4718
|
+
| 'sc-IT'
|
|
4719
|
+
| 'sd-IN'
|
|
4720
|
+
| 'se-NO'
|
|
4721
|
+
| 'seh'
|
|
4722
|
+
| 'seh-MZ'
|
|
4723
|
+
| 'ses'
|
|
4724
|
+
| 'ses-ML'
|
|
4725
|
+
| 'sg'
|
|
4726
|
+
| 'sg-CF'
|
|
4727
|
+
| 'shi'
|
|
4728
|
+
| 'shi-Latn'
|
|
4729
|
+
| 'shi-Latn-MA'
|
|
4730
|
+
| 'shi-Tfng'
|
|
4731
|
+
| 'shi-Tfng-MA'
|
|
4732
|
+
| 'shs-CA'
|
|
4733
|
+
| 'si'
|
|
4734
|
+
| 'si-LK'
|
|
4735
|
+
| 'sid-ET'
|
|
4736
|
+
| 'sk'
|
|
4737
|
+
| 'sk-SK'
|
|
4738
|
+
| 'sl'
|
|
4739
|
+
| 'sl-SI'
|
|
4740
|
+
| 'sn'
|
|
4741
|
+
| 'sn-ZW'
|
|
4742
|
+
| 'so'
|
|
4743
|
+
| 'so-DJ'
|
|
4744
|
+
| 'so-ET'
|
|
4745
|
+
| 'so-KE'
|
|
4746
|
+
| 'so-SO'
|
|
4747
|
+
| 'sq'
|
|
4748
|
+
| 'sq-AL'
|
|
4749
|
+
| 'sq-MK'
|
|
4750
|
+
| 'sr'
|
|
4751
|
+
| 'sr-Cyrl'
|
|
4752
|
+
| 'sr-Cyrl-BA'
|
|
4753
|
+
| 'sr-Cyrl-ME'
|
|
4754
|
+
| 'sr-Cyrl-RS'
|
|
4755
|
+
| 'sr-Latn'
|
|
4756
|
+
| 'sr-Latn-BA'
|
|
4757
|
+
| 'sr-Latn-ME'
|
|
4758
|
+
| 'sr-Latn-RS'
|
|
4759
|
+
| 'sr-ME'
|
|
4760
|
+
| 'sr-RS'
|
|
4761
|
+
| 'ss-ZA'
|
|
4762
|
+
| 'st-ZA'
|
|
4763
|
+
| 'sv'
|
|
4764
|
+
| 'sv-FI'
|
|
4765
|
+
| 'sv-SE'
|
|
4766
|
+
| 'sw'
|
|
4767
|
+
| 'sw-KE'
|
|
4768
|
+
| 'sw-TZ'
|
|
4769
|
+
| 'ta'
|
|
4770
|
+
| 'ta-IN'
|
|
4771
|
+
| 'ta-LK'
|
|
4772
|
+
| 'te'
|
|
4773
|
+
| 'te-IN'
|
|
4774
|
+
| 'teo'
|
|
4775
|
+
| 'teo-KE'
|
|
4776
|
+
| 'teo-UG'
|
|
4777
|
+
| 'tg-TJ'
|
|
4778
|
+
| 'th'
|
|
4779
|
+
| 'th-TH'
|
|
4780
|
+
| 'ti'
|
|
4781
|
+
| 'ti-ER'
|
|
4782
|
+
| 'ti-ET'
|
|
4783
|
+
| 'tig-ER'
|
|
4784
|
+
| 'tk-TM'
|
|
4785
|
+
| 'tl-PH'
|
|
4786
|
+
| 'tn-ZA'
|
|
4787
|
+
| 'to'
|
|
4788
|
+
| 'to-TO'
|
|
4789
|
+
| 'tr'
|
|
4790
|
+
| 'tr-CY'
|
|
4791
|
+
| 'tr-TR'
|
|
4792
|
+
| 'ts-ZA'
|
|
4793
|
+
| 'tt-RU'
|
|
4794
|
+
| 'tzm'
|
|
4795
|
+
| 'tzm-Latn'
|
|
4796
|
+
| 'tzm-Latn-MA'
|
|
4797
|
+
| 'ug-CN'
|
|
4798
|
+
| 'uk'
|
|
4799
|
+
| 'uk-UA'
|
|
4800
|
+
| 'unm-US'
|
|
4801
|
+
| 'ur'
|
|
4802
|
+
| 'ur-IN'
|
|
4803
|
+
| 'ur-PK'
|
|
4804
|
+
| 'uz'
|
|
4805
|
+
| 'uz-Arab'
|
|
4806
|
+
| 'uz-Arab-AF'
|
|
4807
|
+
| 'uz-Cyrl'
|
|
4808
|
+
| 'uz-Cyrl-UZ'
|
|
4809
|
+
| 'uz-Latn'
|
|
4810
|
+
| 'uz-Latn-UZ'
|
|
4811
|
+
| 'uz-UZ'
|
|
4812
|
+
| 've-ZA'
|
|
4813
|
+
| 'vi'
|
|
4814
|
+
| 'vi-VN'
|
|
4815
|
+
| 'vun'
|
|
4816
|
+
| 'vun-TZ'
|
|
4817
|
+
| 'wa-BE'
|
|
4818
|
+
| 'wae-CH'
|
|
4819
|
+
| 'wal-ET'
|
|
4820
|
+
| 'wo-SN'
|
|
4821
|
+
| 'xh-ZA'
|
|
4822
|
+
| 'xog'
|
|
4823
|
+
| 'xog-UG'
|
|
4824
|
+
| 'yi-US'
|
|
4825
|
+
| 'yo'
|
|
4826
|
+
| 'yo-NG'
|
|
4827
|
+
| 'yue-HK'
|
|
4828
|
+
| 'zh'
|
|
4829
|
+
| 'zh-CN'
|
|
4830
|
+
| 'zh-HK'
|
|
4831
|
+
| 'zh-Hans'
|
|
4832
|
+
| 'zh-Hans-CN'
|
|
4833
|
+
| 'zh-Hans-HK'
|
|
4834
|
+
| 'zh-Hans-MO'
|
|
4835
|
+
| 'zh-Hans-SG'
|
|
4836
|
+
| 'zh-Hant'
|
|
4837
|
+
| 'zh-Hant-HK'
|
|
4838
|
+
| 'zh-Hant-MO'
|
|
4839
|
+
| 'zh-Hant-TW'
|
|
4840
|
+
| 'zh-SG'
|
|
4841
|
+
| 'zh-TW'
|
|
4842
|
+
| 'zu'
|
|
4843
|
+
| 'zu-ZA'
|
|
4844
|
+
| 'auto';
|
|
4845
|
+
|
|
4846
|
+
/**
|
|
4847
|
+
* HTTP method for the request
|
|
4848
|
+
*/
|
|
4849
|
+
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
4850
|
+
|
|
4851
|
+
/**
|
|
4852
|
+
* Filters for capturing network traffic
|
|
4853
|
+
*/
|
|
4854
|
+
network_capture?: Array<SharedInputs.NetworkCapture>;
|
|
4855
|
+
|
|
4856
|
+
/**
|
|
4857
|
+
* Operating system to emulate
|
|
4858
|
+
*/
|
|
4859
|
+
os?: 'windows' | 'mac os' | 'linux' | 'android' | 'ios';
|
|
4860
|
+
|
|
4861
|
+
/**
|
|
4862
|
+
* Whether to parse the response content
|
|
4863
|
+
*/
|
|
4864
|
+
parse?: boolean;
|
|
4865
|
+
|
|
4866
|
+
/**
|
|
4867
|
+
* Custom parser configuration as a key-value map
|
|
4868
|
+
*/
|
|
4869
|
+
parser?: { [key: string]: unknown } | string;
|
|
4870
|
+
|
|
4871
|
+
/**
|
|
4872
|
+
* Referrer policy for the request
|
|
4873
|
+
*/
|
|
4874
|
+
referrer_type?:
|
|
4875
|
+
| 'random'
|
|
4876
|
+
| 'no-referer'
|
|
4877
|
+
| 'same-origin'
|
|
4878
|
+
| 'google'
|
|
4879
|
+
| 'bing'
|
|
4880
|
+
| 'facebook'
|
|
4881
|
+
| 'twitter'
|
|
4882
|
+
| 'instagram';
|
|
4883
|
+
|
|
4884
|
+
/**
|
|
4885
|
+
* Whether to render JavaScript content using a browser
|
|
4886
|
+
*/
|
|
4887
|
+
render?: boolean;
|
|
4888
|
+
|
|
4889
|
+
/**
|
|
4890
|
+
* Request timeout in milliseconds
|
|
4891
|
+
*/
|
|
4892
|
+
request_timeout?: number;
|
|
4893
|
+
|
|
4894
|
+
session?: SharedInputs.Session;
|
|
4895
|
+
|
|
4896
|
+
/**
|
|
4897
|
+
* Skills or capabilities required for the request
|
|
4898
|
+
*/
|
|
4899
|
+
skill?: string | Array<string>;
|
|
4900
|
+
|
|
4901
|
+
/**
|
|
4902
|
+
* US state for geolocation (only valid when country is US)
|
|
4903
|
+
*/
|
|
4904
|
+
state?:
|
|
4905
|
+
| 'AL'
|
|
4906
|
+
| 'AK'
|
|
4907
|
+
| 'AS'
|
|
4908
|
+
| 'AZ'
|
|
4909
|
+
| 'AR'
|
|
4910
|
+
| 'CA'
|
|
4911
|
+
| 'CO'
|
|
4912
|
+
| 'CT'
|
|
4913
|
+
| 'DE'
|
|
4914
|
+
| 'DC'
|
|
4915
|
+
| 'FL'
|
|
4916
|
+
| 'GA'
|
|
4917
|
+
| 'GU'
|
|
4918
|
+
| 'HI'
|
|
4919
|
+
| 'ID'
|
|
4920
|
+
| 'IL'
|
|
4921
|
+
| 'IN'
|
|
4922
|
+
| 'IA'
|
|
4923
|
+
| 'KS'
|
|
4924
|
+
| 'KY'
|
|
4925
|
+
| 'LA'
|
|
4926
|
+
| 'ME'
|
|
4927
|
+
| 'MD'
|
|
4928
|
+
| 'MA'
|
|
4929
|
+
| 'MI'
|
|
4930
|
+
| 'MN'
|
|
4931
|
+
| 'MS'
|
|
4932
|
+
| 'MO'
|
|
4933
|
+
| 'MT'
|
|
4934
|
+
| 'NE'
|
|
4935
|
+
| 'NV'
|
|
4936
|
+
| 'NH'
|
|
4937
|
+
| 'NJ'
|
|
4938
|
+
| 'NM'
|
|
4939
|
+
| 'NY'
|
|
4940
|
+
| 'NC'
|
|
4941
|
+
| 'ND'
|
|
4942
|
+
| 'MP'
|
|
4943
|
+
| 'OH'
|
|
4944
|
+
| 'OK'
|
|
4945
|
+
| 'OR'
|
|
4946
|
+
| 'PA'
|
|
4947
|
+
| 'PR'
|
|
4948
|
+
| 'RI'
|
|
4949
|
+
| 'SC'
|
|
4950
|
+
| 'SD'
|
|
4951
|
+
| 'TN'
|
|
4952
|
+
| 'TX'
|
|
4953
|
+
| 'UT'
|
|
4954
|
+
| 'VT'
|
|
4955
|
+
| 'VA'
|
|
4956
|
+
| 'VI'
|
|
4957
|
+
| 'WA'
|
|
4958
|
+
| 'WV'
|
|
4959
|
+
| 'WI'
|
|
4960
|
+
| 'WY';
|
|
4961
|
+
|
|
4962
|
+
/**
|
|
4963
|
+
* Whether to compress stored data
|
|
4964
|
+
*/
|
|
4965
|
+
storage_compress?: boolean;
|
|
4966
|
+
|
|
4967
|
+
/**
|
|
4968
|
+
* Custom name for the stored object
|
|
4969
|
+
*/
|
|
4970
|
+
storage_object_name?: string;
|
|
4971
|
+
|
|
4972
|
+
/**
|
|
4973
|
+
* Type of storage to use for results
|
|
4974
|
+
*/
|
|
4975
|
+
storage_type?: string;
|
|
4976
|
+
|
|
4977
|
+
/**
|
|
4978
|
+
* URL for storage location
|
|
4979
|
+
*/
|
|
4980
|
+
storage_url?: string;
|
|
4981
|
+
|
|
4982
|
+
/**
|
|
4983
|
+
* User-defined tag for request identification
|
|
4984
|
+
*/
|
|
4985
|
+
tag?: string;
|
|
4986
|
+
|
|
4987
|
+
/**
|
|
4988
|
+
* Target URL to scrape
|
|
4989
|
+
*/
|
|
4990
|
+
url?: string;
|
|
4991
|
+
}
|
|
4992
|
+
|
|
4993
|
+
export namespace SharedInputs {
|
|
4994
|
+
export interface UnionMember1 {
|
|
4995
|
+
name: 'chrome' | 'firefox';
|
|
4996
|
+
|
|
4997
|
+
/**
|
|
4998
|
+
* Specific browser version to emulate
|
|
4999
|
+
*/
|
|
5000
|
+
version?: string;
|
|
5001
|
+
}
|
|
5002
|
+
|
|
5003
|
+
export interface UnionMember0 {
|
|
5004
|
+
creation?: string | null;
|
|
5005
|
+
|
|
5006
|
+
domain?: string | null;
|
|
5007
|
+
|
|
5008
|
+
expires?: string;
|
|
5009
|
+
|
|
5010
|
+
extensions?: Array<string> | null;
|
|
5011
|
+
|
|
5012
|
+
hostOnly?: boolean | null;
|
|
5013
|
+
|
|
5014
|
+
httpOnly?: boolean | null;
|
|
5015
|
+
|
|
5016
|
+
lastAccessed?: string | null;
|
|
5017
|
+
|
|
5018
|
+
maxAge?: 'Infinity' | '-Infinity' | number | null;
|
|
5019
|
+
|
|
5020
|
+
name?: string;
|
|
5021
|
+
|
|
5022
|
+
path?: string | null;
|
|
5023
|
+
|
|
5024
|
+
pathIsDefault?: boolean | null;
|
|
5025
|
+
|
|
5026
|
+
sameSite?: 'strict' | 'lax' | 'none';
|
|
5027
|
+
|
|
5028
|
+
secure?: boolean;
|
|
5029
|
+
|
|
5030
|
+
value?: string;
|
|
5031
|
+
|
|
5032
|
+
[k: string]: unknown;
|
|
5033
|
+
}
|
|
5034
|
+
|
|
5035
|
+
export interface NetworkCapture {
|
|
5036
|
+
method?: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
|
|
5037
|
+
|
|
5038
|
+
/**
|
|
5039
|
+
* Resource type for network capture filtering
|
|
5040
|
+
*/
|
|
5041
|
+
resource_type?: string | Array<string>;
|
|
5042
|
+
|
|
5043
|
+
status_code?: number | Array<number>;
|
|
5044
|
+
|
|
5045
|
+
url?: NetworkCapture.URL;
|
|
5046
|
+
|
|
5047
|
+
validation?: boolean;
|
|
5048
|
+
|
|
5049
|
+
wait_for_requests_count?: number;
|
|
5050
|
+
|
|
5051
|
+
wait_for_requests_count_timeout?: number;
|
|
5052
|
+
}
|
|
5053
|
+
|
|
5054
|
+
export namespace NetworkCapture {
|
|
5055
|
+
export interface URL {
|
|
5056
|
+
value: string;
|
|
5057
|
+
|
|
5058
|
+
type?: 'exact' | 'contains';
|
|
5059
|
+
}
|
|
5060
|
+
}
|
|
5061
|
+
|
|
5062
|
+
export interface Session {
|
|
5063
|
+
id?: string;
|
|
5064
|
+
|
|
5065
|
+
prefetch_userbrowser?: boolean;
|
|
5066
|
+
|
|
5067
|
+
retry?: boolean;
|
|
5068
|
+
|
|
5069
|
+
timeout?: number;
|
|
5070
|
+
}
|
|
3967
5071
|
}
|
|
3968
5072
|
}
|
|
3969
5073
|
|