@roxybrowser/openapi 1.0.5-beta.1 → 1.0.8
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 +222 -228
- package/lib/index.js +97 -1674
- package/lib/index.js.map +1 -1
- package/lib/modules/account.d.ts +491 -0
- package/lib/modules/account.d.ts.map +1 -0
- package/lib/modules/account.js +442 -0
- package/lib/modules/account.js.map +1 -0
- package/lib/modules/browser.d.ts +3011 -0
- package/lib/modules/browser.d.ts.map +1 -0
- package/lib/modules/browser.js +1501 -0
- package/lib/modules/browser.js.map +1 -0
- package/lib/modules/other.d.ts +102 -0
- package/lib/modules/other.d.ts.map +1 -0
- package/lib/modules/other.js +194 -0
- package/lib/modules/other.js.map +1 -0
- package/lib/modules/proxy.d.ts +576 -0
- package/lib/modules/proxy.d.ts.map +1 -0
- package/lib/modules/proxy.js +724 -0
- package/lib/modules/proxy.js.map +1 -0
- package/lib/types.d.ts +860 -155
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +4 -4
- package/lib/types.js.map +1 -1
- package/lib/utils/index.d.ts +24 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +45 -0
- package/lib/utils/index.js.map +1 -0
- package/package.json +50 -50
- package/lib/browser/browser-creator.d.ts +0 -54
- package/lib/browser/browser-creator.d.ts.map +0 -1
- package/lib/browser/browser-creator.js +0 -263
- package/lib/browser/browser-creator.js.map +0 -1
- package/lib/proxy/proxy-manager.d.ts +0 -67
- package/lib/proxy/proxy-manager.d.ts.map +0 -1
- package/lib/proxy/proxy-manager.js +0 -278
- package/lib/proxy/proxy-manager.js.map +0 -1
- package/lib/proxy/proxy-validator.d.ts +0 -66
- package/lib/proxy/proxy-validator.d.ts.map +0 -1
- package/lib/proxy/proxy-validator.js +0 -273
- package/lib/proxy/proxy-validator.js.map +0 -1
- package/lib/roxy-client.d.ts +0 -117
- package/lib/roxy-client.d.ts.map +0 -1
- package/lib/roxy-client.js +0 -467
- package/lib/roxy-client.js.map +0 -1
- package/lib/utils/error-analyzer.d.ts +0 -84
- package/lib/utils/error-analyzer.d.ts.map +0 -1
- package/lib/utils/error-analyzer.js +0 -387
- package/lib/utils/error-analyzer.js.map +0 -1
package/lib/types.d.ts
CHANGED
|
@@ -27,25 +27,62 @@ export interface WorkspaceListResponse {
|
|
|
27
27
|
}
|
|
28
28
|
/** Browser open result (single browser) */
|
|
29
29
|
export interface BrowserOpenResult {
|
|
30
|
+
/**
|
|
31
|
+
* WebSocket CDP endpoint
|
|
32
|
+
*/
|
|
30
33
|
ws: string;
|
|
31
|
-
http: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
http: string; /**
|
|
35
|
+
* HTTP endpoint
|
|
36
|
+
*/
|
|
37
|
+
coreVersion: string; /**
|
|
38
|
+
* Browser core version
|
|
39
|
+
*/
|
|
40
|
+
driver: string; /**
|
|
41
|
+
* WebDriver path
|
|
42
|
+
*/
|
|
43
|
+
sortNum: number; /**
|
|
44
|
+
* Window sort number
|
|
45
|
+
*/
|
|
46
|
+
windowName: string; /**
|
|
47
|
+
* Window name
|
|
48
|
+
*/
|
|
49
|
+
windowRemark: string; /**
|
|
50
|
+
* Window remark
|
|
51
|
+
*/
|
|
52
|
+
pid: number; /**
|
|
53
|
+
* Process ID
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* Browser directory ID
|
|
57
|
+
*/
|
|
38
58
|
dirId?: string;
|
|
39
59
|
}
|
|
40
60
|
/** Browser list item */
|
|
41
61
|
export interface BrowserListItem {
|
|
42
|
-
dirId: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
dirId: string; /**
|
|
63
|
+
* Browser directory ID
|
|
64
|
+
*/
|
|
65
|
+
workspaceId: number; /**
|
|
66
|
+
* Workspace ID
|
|
67
|
+
*/
|
|
68
|
+
projectId: number; /**
|
|
69
|
+
* Project ID
|
|
70
|
+
*/
|
|
71
|
+
windowName: string; /**
|
|
72
|
+
* Window name
|
|
73
|
+
*/
|
|
74
|
+
windowRemark: string; /**
|
|
75
|
+
* Window remark
|
|
76
|
+
*/
|
|
77
|
+
sortNum: number; /**
|
|
78
|
+
* Window sort number
|
|
79
|
+
*/
|
|
80
|
+
os: string; /**
|
|
81
|
+
* Operating system
|
|
82
|
+
*/
|
|
83
|
+
/**
|
|
84
|
+
* Browser status
|
|
85
|
+
*/
|
|
49
86
|
status: string;
|
|
50
87
|
}
|
|
51
88
|
/** Paginated browser list response */
|
|
@@ -56,23 +93,48 @@ export interface BrowserListResponse {
|
|
|
56
93
|
/** Browser list query parameters */
|
|
57
94
|
export interface BrowserListParams {
|
|
58
95
|
workspaceId: number;
|
|
59
|
-
dirIds?: string;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
96
|
+
dirIds?: string; /**
|
|
97
|
+
* Comma-separated browser IDs
|
|
98
|
+
*/
|
|
99
|
+
windowName?: string; /**
|
|
100
|
+
* Browser window name
|
|
101
|
+
*/
|
|
102
|
+
sortNums?: string; /**
|
|
103
|
+
* Comma-separated sort numbers
|
|
104
|
+
*/
|
|
105
|
+
os?: string; /**
|
|
106
|
+
* Operating system
|
|
107
|
+
*/
|
|
108
|
+
projectIds?: string; /**
|
|
109
|
+
* Comma-separated project IDs
|
|
110
|
+
*/
|
|
111
|
+
windowRemark?: string; /**
|
|
112
|
+
* Window remark
|
|
113
|
+
*/
|
|
114
|
+
page_index?: number; /**
|
|
115
|
+
* Page index (default: 1)
|
|
116
|
+
*/
|
|
117
|
+
/**
|
|
118
|
+
* Page size (default: 15)
|
|
119
|
+
*/
|
|
66
120
|
page_size?: number;
|
|
67
121
|
}
|
|
68
122
|
/** Browser open parameters */
|
|
69
123
|
export interface BrowserOpenParams {
|
|
70
124
|
workspaceId: number;
|
|
71
|
-
dirId: string;
|
|
125
|
+
dirId: string; /**
|
|
126
|
+
* Browser directory ID
|
|
127
|
+
*/
|
|
128
|
+
/**
|
|
129
|
+
* Browser startup arguments
|
|
130
|
+
*/
|
|
72
131
|
args?: string[];
|
|
73
132
|
}
|
|
74
133
|
/** Browser close parameters */
|
|
75
134
|
export interface BrowserCloseParams {
|
|
135
|
+
/**
|
|
136
|
+
* Browser directory ID
|
|
137
|
+
*/
|
|
76
138
|
dirId: string;
|
|
77
139
|
}
|
|
78
140
|
/** Workspace list tool response */
|
|
@@ -83,7 +145,9 @@ export interface WorkspaceListToolResponse {
|
|
|
83
145
|
/** Browser list tool parameters */
|
|
84
146
|
export interface BrowserListToolParams {
|
|
85
147
|
workspaceId: number;
|
|
86
|
-
projectIds?: string;
|
|
148
|
+
projectIds?: string; /**
|
|
149
|
+
* Comma-separated project IDs
|
|
150
|
+
*/
|
|
87
151
|
windowName?: string;
|
|
88
152
|
pageIndex?: number;
|
|
89
153
|
pageSize?: number;
|
|
@@ -97,15 +161,24 @@ export interface BrowserListToolResponse {
|
|
|
97
161
|
/** Browser open tool parameters */
|
|
98
162
|
export interface BrowserOpenToolParams {
|
|
99
163
|
workspaceId: number;
|
|
100
|
-
dirIds: string[];
|
|
164
|
+
dirIds: string[]; /**
|
|
165
|
+
* Array of browser directory IDs
|
|
166
|
+
*/
|
|
167
|
+
/**
|
|
168
|
+
* Optional browser startup arguments
|
|
169
|
+
*/
|
|
101
170
|
args?: string[];
|
|
102
171
|
}
|
|
103
172
|
/** Browser open tool response */
|
|
104
173
|
export interface BrowserOpenToolResponse {
|
|
105
174
|
results: {
|
|
106
175
|
dirId: string;
|
|
107
|
-
ws: string;
|
|
108
|
-
|
|
176
|
+
ws: string; /**
|
|
177
|
+
* CDP WebSocket endpoint
|
|
178
|
+
*/
|
|
179
|
+
http: string; /**
|
|
180
|
+
* HTTP endpoint
|
|
181
|
+
*/
|
|
109
182
|
pid: number;
|
|
110
183
|
success: boolean;
|
|
111
184
|
error?: string;
|
|
@@ -116,6 +189,9 @@ export interface BrowserOpenToolResponse {
|
|
|
116
189
|
}
|
|
117
190
|
/** Browser close tool parameters */
|
|
118
191
|
export interface BrowserCloseToolParams {
|
|
192
|
+
/**
|
|
193
|
+
* Array of browser directory IDs
|
|
194
|
+
*/
|
|
119
195
|
dirIds: string[];
|
|
120
196
|
}
|
|
121
197
|
/** Browser close tool response */
|
|
@@ -131,7 +207,12 @@ export interface BrowserCloseToolResponse {
|
|
|
131
207
|
}
|
|
132
208
|
/** Browser delete tool parameters */
|
|
133
209
|
export interface BrowserDeleteToolParams {
|
|
134
|
-
workspaceId: number;
|
|
210
|
+
workspaceId: number; /**
|
|
211
|
+
* Workspace ID
|
|
212
|
+
*/
|
|
213
|
+
/**
|
|
214
|
+
* Array of browser directory IDs to delete
|
|
215
|
+
*/
|
|
135
216
|
dirIds: string[];
|
|
136
217
|
}
|
|
137
218
|
/** Browser delete tool response */
|
|
@@ -147,8 +228,15 @@ export interface BrowserDeleteToolResponse {
|
|
|
147
228
|
}
|
|
148
229
|
/** RoxyBrowser client configuration */
|
|
149
230
|
export interface RoxyClientConfig {
|
|
150
|
-
apiHost: string;
|
|
151
|
-
|
|
231
|
+
apiHost: string; /**
|
|
232
|
+
* RoxyBrowser API host (default: http://127.0.0.1:50000)
|
|
233
|
+
*/
|
|
234
|
+
apiKey: string; /**
|
|
235
|
+
* RoxyBrowser API key
|
|
236
|
+
*/
|
|
237
|
+
/**
|
|
238
|
+
* Request timeout in milliseconds (default: 30000)
|
|
239
|
+
*/
|
|
152
240
|
timeout?: number;
|
|
153
241
|
}
|
|
154
242
|
/** Browser operating system types */
|
|
@@ -161,136 +249,409 @@ export declare const LATEST_CORE_VERSION: CoreVersion;
|
|
|
161
249
|
export type SearchEngine = 'Google' | 'Microsoft Bing' | 'Yahoo' | 'Yandex' | 'DuckDuckGo';
|
|
162
250
|
/** Window platform information */
|
|
163
251
|
export interface WindowPlatformInfo {
|
|
164
|
-
platformUrl?: string;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
252
|
+
platformUrl?: string; /**
|
|
253
|
+
* Business platform URL
|
|
254
|
+
*/
|
|
255
|
+
platformUserName?: string; /**
|
|
256
|
+
* Platform account
|
|
257
|
+
*/
|
|
258
|
+
platformPassword?: string; /**
|
|
259
|
+
* Platform password
|
|
260
|
+
*/
|
|
261
|
+
platformEfa?: string; /**
|
|
262
|
+
* EFA value
|
|
263
|
+
*/
|
|
264
|
+
/**
|
|
265
|
+
* Platform remarks
|
|
266
|
+
*/
|
|
168
267
|
platformRemarks?: string;
|
|
169
268
|
}
|
|
170
269
|
/** Proxy configuration details */
|
|
171
270
|
export interface ProxyInfo {
|
|
172
|
-
proxyMethod?: 'custom' | 'choose' | 'api';
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
271
|
+
proxyMethod?: 'custom' | 'choose' | 'api'; /**
|
|
272
|
+
* Proxy method
|
|
273
|
+
*/
|
|
274
|
+
proxyCategory?: 'noproxy' | 'HTTP' | 'HTTPS' | 'SOCKS5' | 'SSH'; /**
|
|
275
|
+
* Proxy type
|
|
276
|
+
*/
|
|
277
|
+
ipType?: 'IPV4' | 'IPV6'; /**
|
|
278
|
+
* Network protocol
|
|
279
|
+
*/
|
|
280
|
+
protocol?: 'HTTP' | 'HTTPS' | 'SOCKS5'; /**
|
|
281
|
+
* Proxy protocol
|
|
282
|
+
*/
|
|
283
|
+
host?: string; /**
|
|
284
|
+
* Proxy host
|
|
285
|
+
*/
|
|
286
|
+
port?: string; /**
|
|
287
|
+
* Proxy port
|
|
288
|
+
*/
|
|
289
|
+
proxyUserName?: string; /**
|
|
290
|
+
* Proxy username
|
|
291
|
+
*/
|
|
292
|
+
proxyPassword?: string; /**
|
|
293
|
+
* Proxy password
|
|
294
|
+
*/
|
|
295
|
+
refreshUrl?: string; /**
|
|
296
|
+
* Refresh URL
|
|
297
|
+
*/
|
|
298
|
+
/**
|
|
299
|
+
* IP query channel
|
|
300
|
+
*/
|
|
181
301
|
checkChannel?: 'IPRust.io' | 'IP-API' | 'IP123.in';
|
|
182
302
|
}
|
|
183
303
|
/** Fingerprint configuration */
|
|
184
304
|
export interface FingerInfo {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
305
|
+
/**
|
|
306
|
+
* Language settings
|
|
307
|
+
*/
|
|
308
|
+
isLanguageBaseIp?: boolean; /**
|
|
309
|
+
* Follow IP matching for browser language
|
|
310
|
+
*/
|
|
311
|
+
language?: string; /**
|
|
312
|
+
* Custom browser language
|
|
313
|
+
*/
|
|
314
|
+
isDisplayLanguageBaseIp?: boolean; /**
|
|
315
|
+
* Follow IP matching for display language
|
|
316
|
+
*/
|
|
317
|
+
/**
|
|
318
|
+
* Custom display language
|
|
319
|
+
*/
|
|
188
320
|
displayLanguage?: string;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
321
|
+
/**
|
|
322
|
+
* Location and timezone
|
|
323
|
+
*/
|
|
324
|
+
isTimeZone?: boolean; /**
|
|
325
|
+
* Follow IP matching for timezone
|
|
326
|
+
*/
|
|
327
|
+
timeZone?: string; /**
|
|
328
|
+
* Custom timezone
|
|
329
|
+
*/
|
|
330
|
+
position?: 0 | 1 | 2; /**
|
|
331
|
+
* Geolocation prompt: 0=ask, 1=allow, 2=deny
|
|
332
|
+
*/
|
|
333
|
+
isPositionBaseIp?: boolean; /**
|
|
334
|
+
* Follow IP matching for geolocation
|
|
335
|
+
*/
|
|
336
|
+
longitude?: string; /**
|
|
337
|
+
* Custom longitude
|
|
338
|
+
*/
|
|
339
|
+
latitude?: string; /**
|
|
340
|
+
* Custom latitude
|
|
341
|
+
*/
|
|
342
|
+
/**
|
|
343
|
+
* Precision in meters
|
|
344
|
+
*/
|
|
195
345
|
precisionPos?: string;
|
|
196
|
-
|
|
197
|
-
|
|
346
|
+
/**
|
|
347
|
+
* Media settings
|
|
348
|
+
*/
|
|
349
|
+
forbidAudio?: boolean; /**
|
|
350
|
+
* Enable/disable sound
|
|
351
|
+
*/
|
|
352
|
+
forbidImage?: boolean; /**
|
|
353
|
+
* Enable/disable image loading
|
|
354
|
+
*/
|
|
355
|
+
/**
|
|
356
|
+
* Enable/disable video playback
|
|
357
|
+
*/
|
|
198
358
|
forbidMedia?: boolean;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
359
|
+
/**
|
|
360
|
+
* Window settings
|
|
361
|
+
*/
|
|
362
|
+
openWidth?: string; /**
|
|
363
|
+
* Window width
|
|
364
|
+
*/
|
|
365
|
+
openHeight?: string; /**
|
|
366
|
+
* Window height
|
|
367
|
+
*/
|
|
368
|
+
openBookmarks?: boolean; /**
|
|
369
|
+
* Enable bookmarks
|
|
370
|
+
*/
|
|
371
|
+
positionSwitch?: boolean; /**
|
|
372
|
+
* Window position switch
|
|
373
|
+
*/
|
|
374
|
+
windowRatioPosition?: string; /**
|
|
375
|
+
* Window position ratio
|
|
376
|
+
*/
|
|
377
|
+
/**
|
|
378
|
+
* Show window name in title bar
|
|
379
|
+
*/
|
|
204
380
|
isDisplayName?: boolean;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
381
|
+
/**
|
|
382
|
+
* Sync settings
|
|
383
|
+
*/
|
|
384
|
+
syncBookmark?: boolean; /**
|
|
385
|
+
* Sync bookmarks
|
|
386
|
+
*/
|
|
387
|
+
syncHistory?: boolean; /**
|
|
388
|
+
* Sync history
|
|
389
|
+
*/
|
|
390
|
+
syncTab?: boolean; /**
|
|
391
|
+
* Sync tabs
|
|
392
|
+
*/
|
|
393
|
+
syncCookie?: boolean; /**
|
|
394
|
+
* Sync cookies
|
|
395
|
+
*/
|
|
396
|
+
syncExtensions?: boolean; /**
|
|
397
|
+
* Sync extensions
|
|
398
|
+
*/
|
|
399
|
+
syncPassword?: boolean; /**
|
|
400
|
+
* Sync saved passwords
|
|
401
|
+
*/
|
|
402
|
+
syncIndexedDb?: boolean; /**
|
|
403
|
+
* Sync IndexedDB
|
|
404
|
+
*/
|
|
405
|
+
/**
|
|
406
|
+
* Sync LocalStorage
|
|
407
|
+
*/
|
|
212
408
|
syncLocalStorage?: boolean;
|
|
213
|
-
|
|
214
|
-
|
|
409
|
+
/**
|
|
410
|
+
* Cleanup settings
|
|
411
|
+
*/
|
|
412
|
+
clearCacheFile?: boolean; /**
|
|
413
|
+
* Clear cache files on startup
|
|
414
|
+
*/
|
|
415
|
+
clearCookie?: boolean; /**
|
|
416
|
+
* Clear cookies on startup
|
|
417
|
+
*/
|
|
418
|
+
/**
|
|
419
|
+
* Clear LocalStorage on startup
|
|
420
|
+
*/
|
|
215
421
|
clearLocalStorage?: boolean;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
422
|
+
/**
|
|
423
|
+
* Advanced settings
|
|
424
|
+
*/
|
|
425
|
+
randomFingerprint?: boolean; /**
|
|
426
|
+
* Generate random fingerprint
|
|
427
|
+
*/
|
|
428
|
+
forbidSavePassword?: boolean; /**
|
|
429
|
+
* Disable password save prompts
|
|
430
|
+
*/
|
|
431
|
+
stopOpenNet?: boolean; /**
|
|
432
|
+
* Stop opening if network fails
|
|
433
|
+
*/
|
|
434
|
+
stopOpenIP?: boolean; /**
|
|
435
|
+
* Stop opening if IP changes
|
|
436
|
+
*/
|
|
437
|
+
stopOpenPosition?: boolean; /**
|
|
438
|
+
* Stop opening if IP location changes
|
|
439
|
+
*/
|
|
440
|
+
/**
|
|
441
|
+
* Open workbench: 0=close, 1=open, 2=follow app
|
|
442
|
+
*/
|
|
221
443
|
openWorkbench?: 0 | 1 | 2;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
444
|
+
/**
|
|
445
|
+
* Display settings
|
|
446
|
+
*/
|
|
447
|
+
resolutionType?: boolean; /**
|
|
448
|
+
* Custom resolution vs follow system
|
|
449
|
+
*/
|
|
450
|
+
resolutionX?: string; /**
|
|
451
|
+
* Custom resolution width
|
|
452
|
+
*/
|
|
453
|
+
resolutionY?: string; /**
|
|
454
|
+
* Custom resolution height
|
|
455
|
+
*/
|
|
456
|
+
/**
|
|
457
|
+
* Random fonts vs system fonts
|
|
458
|
+
*/
|
|
225
459
|
fontType?: boolean;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
460
|
+
/**
|
|
461
|
+
* Browser fingerprint settings
|
|
462
|
+
*/
|
|
463
|
+
webRTC?: 0 | 1 | 2; /**
|
|
464
|
+
* WebRTC: 0=replace, 1=real, 2=disable
|
|
465
|
+
*/
|
|
466
|
+
webGL?: boolean; /**
|
|
467
|
+
* WebGL: random vs real
|
|
468
|
+
*/
|
|
469
|
+
webGLInfo?: boolean; /**
|
|
470
|
+
* WebGL info: custom vs real
|
|
471
|
+
*/
|
|
472
|
+
webGLManufacturer?: string; /**
|
|
473
|
+
* Custom WebGL manufacturer
|
|
474
|
+
*/
|
|
475
|
+
webGLRender?: string; /**
|
|
476
|
+
* Custom WebGL renderer
|
|
477
|
+
*/
|
|
478
|
+
webGpu?: 'webgl' | 'real' | 'block'; /**
|
|
479
|
+
* WebGPU setting
|
|
480
|
+
*/
|
|
481
|
+
canvas?: boolean; /**
|
|
482
|
+
* Canvas: random vs real
|
|
483
|
+
*/
|
|
484
|
+
audioContext?: boolean; /**
|
|
485
|
+
* AudioContext: random vs real
|
|
486
|
+
*/
|
|
487
|
+
speechVoices?: boolean; /**
|
|
488
|
+
* Speech Voices: random vs real
|
|
489
|
+
*/
|
|
490
|
+
doNotTrack?: boolean; /**
|
|
491
|
+
* Enable Do Not Track
|
|
492
|
+
*/
|
|
493
|
+
clientRects?: boolean; /**
|
|
494
|
+
* ClientRects: random vs real
|
|
495
|
+
*/
|
|
496
|
+
deviceInfo?: boolean; /**
|
|
497
|
+
* Media devices: random vs real
|
|
498
|
+
*/
|
|
499
|
+
deviceNameSwitch?: boolean; /**
|
|
500
|
+
* Device names: random vs real
|
|
501
|
+
*/
|
|
502
|
+
macInfo?: boolean; /**
|
|
503
|
+
* MAC address: custom vs real
|
|
504
|
+
*/
|
|
505
|
+
hardwareConcurrent?: string; /**
|
|
506
|
+
* Hardware concurrency
|
|
507
|
+
*/
|
|
508
|
+
deviceMemory?: string; /**
|
|
509
|
+
* Device memory
|
|
510
|
+
*/
|
|
511
|
+
disableSsl?: boolean; /**
|
|
512
|
+
* SSL fingerprint settings
|
|
513
|
+
*/
|
|
514
|
+
disableSslList?: string[]; /**
|
|
515
|
+
* SSL feature list
|
|
516
|
+
*/
|
|
517
|
+
portScanProtect?: boolean; /**
|
|
518
|
+
* Port scan protection
|
|
519
|
+
*/
|
|
520
|
+
portScanList?: string; /**
|
|
521
|
+
* Port scan whitelist
|
|
522
|
+
*/
|
|
523
|
+
useGpu?: boolean; /**
|
|
524
|
+
* Use GPU acceleration
|
|
525
|
+
*/
|
|
526
|
+
sandboxPermission?: boolean; /**
|
|
527
|
+
* Disable sandbox
|
|
528
|
+
*/
|
|
529
|
+
/**
|
|
530
|
+
* Browser startup parameters
|
|
531
|
+
*/
|
|
248
532
|
startupParam?: string;
|
|
249
533
|
}
|
|
250
534
|
/** Complete browser creation configuration */
|
|
251
535
|
export interface BrowserCreateConfig {
|
|
252
|
-
workspaceId: number;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
536
|
+
workspaceId: number; /**
|
|
537
|
+
* Required: Workspace ID
|
|
538
|
+
*/
|
|
539
|
+
windowName?: string; /**
|
|
540
|
+
* Window name
|
|
541
|
+
*/
|
|
542
|
+
coreVersion?: CoreVersion; /**
|
|
543
|
+
* Browser core version
|
|
544
|
+
*/
|
|
545
|
+
os?: BrowserOS; /**
|
|
546
|
+
* Operating system
|
|
547
|
+
*/
|
|
548
|
+
osVersion?: string; /**
|
|
549
|
+
* OS version
|
|
550
|
+
*/
|
|
551
|
+
userAgent?: string; /**
|
|
552
|
+
* Custom user agent
|
|
553
|
+
*/
|
|
554
|
+
cookie?: unknown[]; /**
|
|
555
|
+
* Cookie list
|
|
556
|
+
*/
|
|
557
|
+
searchEngine?: SearchEngine; /**
|
|
558
|
+
* Default search engine
|
|
559
|
+
*/
|
|
560
|
+
labelIds?: number[]; /**
|
|
561
|
+
* Label IDs
|
|
562
|
+
*/
|
|
563
|
+
windowPlatformList?: WindowPlatformInfo[]; /**
|
|
564
|
+
* Platform account info
|
|
565
|
+
*/
|
|
566
|
+
defaultOpenUrl?: string[]; /**
|
|
567
|
+
* Default URLs to open
|
|
568
|
+
*/
|
|
569
|
+
windowRemark?: string; /**
|
|
570
|
+
* Window remarks
|
|
571
|
+
*/
|
|
572
|
+
projectId?: number; /**
|
|
573
|
+
* Project ID
|
|
574
|
+
*/
|
|
575
|
+
proxyInfo?: ProxyInfo; /**
|
|
576
|
+
* Proxy configuration
|
|
577
|
+
*/
|
|
578
|
+
/**
|
|
579
|
+
* Fingerprint configuration
|
|
580
|
+
*/
|
|
266
581
|
fingerInfo?: FingerInfo;
|
|
267
582
|
}
|
|
268
583
|
/** Simple browser creation parameters - for most common use cases */
|
|
269
584
|
export interface BrowserCreateSimpleParams {
|
|
270
|
-
workspaceId: number;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
585
|
+
workspaceId: number; /**
|
|
586
|
+
* Required: Workspace ID
|
|
587
|
+
*/
|
|
588
|
+
windowName?: string; /**
|
|
589
|
+
* Window name
|
|
590
|
+
*/
|
|
591
|
+
projectId?: number; /**
|
|
592
|
+
* Project ID
|
|
593
|
+
*/
|
|
594
|
+
windowRemark?: string; /**
|
|
595
|
+
* Window remarks
|
|
596
|
+
*/
|
|
597
|
+
proxyHost?: string; /**
|
|
598
|
+
* Simple proxy host
|
|
599
|
+
*/
|
|
600
|
+
proxyPort?: string; /**
|
|
601
|
+
* Simple proxy port
|
|
602
|
+
*/
|
|
603
|
+
proxyUserName?: string; /**
|
|
604
|
+
* Simple proxy username
|
|
605
|
+
*/
|
|
606
|
+
proxyPassword?: string; /**
|
|
607
|
+
* Simple proxy password
|
|
608
|
+
*/
|
|
609
|
+
/**
|
|
610
|
+
* Simple proxy type
|
|
611
|
+
*/
|
|
278
612
|
proxyType?: 'HTTP' | 'HTTPS' | 'SOCKS5';
|
|
279
613
|
}
|
|
280
614
|
/** Standard browser creation parameters - covers 80% of use cases */
|
|
281
615
|
export interface BrowserCreateStandardParams {
|
|
282
|
-
workspaceId: number;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
616
|
+
workspaceId: number; /**
|
|
617
|
+
* Required: Workspace ID
|
|
618
|
+
*/
|
|
619
|
+
windowName?: string; /**
|
|
620
|
+
* Window name
|
|
621
|
+
*/
|
|
622
|
+
projectId?: number; /**
|
|
623
|
+
* Project ID
|
|
624
|
+
*/
|
|
625
|
+
windowRemark?: string; /**
|
|
626
|
+
* Window remarks
|
|
627
|
+
*/
|
|
628
|
+
os?: BrowserOS; /**
|
|
629
|
+
* Operating system
|
|
630
|
+
*/
|
|
631
|
+
osVersion?: string; /**
|
|
632
|
+
* OS version
|
|
633
|
+
*/
|
|
634
|
+
coreVersion?: CoreVersion; /**
|
|
635
|
+
* Browser core version
|
|
636
|
+
*/
|
|
637
|
+
proxyInfo?: ProxyInfo; /**
|
|
638
|
+
* Complete proxy configuration
|
|
639
|
+
*/
|
|
640
|
+
openWidth?: string; /**
|
|
641
|
+
* Window width
|
|
642
|
+
*/
|
|
643
|
+
openHeight?: string; /**
|
|
644
|
+
* Window height
|
|
645
|
+
*/
|
|
646
|
+
language?: string; /**
|
|
647
|
+
* Browser language
|
|
648
|
+
*/
|
|
649
|
+
timeZone?: string; /**
|
|
650
|
+
* Timezone
|
|
651
|
+
*/
|
|
652
|
+
/**
|
|
653
|
+
* Default URLs
|
|
654
|
+
*/
|
|
294
655
|
defaultOpenUrl?: string[];
|
|
295
656
|
}
|
|
296
657
|
/** Advanced browser creation parameters - full control */
|
|
@@ -298,16 +659,34 @@ export interface BrowserCreateAdvancedParams extends BrowserCreateConfig {
|
|
|
298
659
|
}
|
|
299
660
|
/** Browser creation result */
|
|
300
661
|
export interface BrowserCreateResult {
|
|
301
|
-
dirId: string;
|
|
302
|
-
|
|
303
|
-
|
|
662
|
+
dirId: string; /**
|
|
663
|
+
* Browser directory ID
|
|
664
|
+
*/
|
|
665
|
+
windowName: string; /**
|
|
666
|
+
* Window name
|
|
667
|
+
*/
|
|
668
|
+
success: boolean; /**
|
|
669
|
+
* Creation success
|
|
670
|
+
*/
|
|
671
|
+
/**
|
|
672
|
+
* Error message if failed
|
|
673
|
+
*/
|
|
304
674
|
error?: string;
|
|
305
675
|
}
|
|
306
676
|
/** Batch browser creation result */
|
|
307
677
|
export interface BrowserCreateBatchResult {
|
|
308
|
-
results: BrowserCreateResult[];
|
|
309
|
-
|
|
310
|
-
|
|
678
|
+
results: BrowserCreateResult[]; /**
|
|
679
|
+
* Individual results
|
|
680
|
+
*/
|
|
681
|
+
successCount: number; /**
|
|
682
|
+
* Number of successful creations
|
|
683
|
+
*/
|
|
684
|
+
failureCount: number; /**
|
|
685
|
+
* Number of failed creations
|
|
686
|
+
*/
|
|
687
|
+
/**
|
|
688
|
+
* Total attempts
|
|
689
|
+
*/
|
|
311
690
|
total: number;
|
|
312
691
|
}
|
|
313
692
|
/** Simple browser creation tool response */
|
|
@@ -416,19 +795,38 @@ export declare class BrowserCreationError extends Error {
|
|
|
416
795
|
}
|
|
417
796
|
/** Account item */
|
|
418
797
|
export interface AccountItem {
|
|
419
|
-
id: number;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
798
|
+
id: number; /**
|
|
799
|
+
* Account ID
|
|
800
|
+
*/
|
|
801
|
+
platformUrl: string; /**
|
|
802
|
+
* Business platform URL
|
|
803
|
+
*/
|
|
804
|
+
platformUserName: string; /**
|
|
805
|
+
* Account username
|
|
806
|
+
*/
|
|
807
|
+
platformPassword: string; /**
|
|
808
|
+
* Account password
|
|
809
|
+
*/
|
|
810
|
+
platformEfa: string; /**
|
|
811
|
+
* Account EFA
|
|
812
|
+
*/
|
|
424
813
|
platformCookies: Array<{
|
|
425
814
|
name: string;
|
|
426
815
|
value: string;
|
|
427
816
|
domain: string;
|
|
428
817
|
}>;
|
|
429
|
-
platformName: string;
|
|
430
|
-
|
|
431
|
-
|
|
818
|
+
platformName: string; /**
|
|
819
|
+
* Platform name
|
|
820
|
+
*/
|
|
821
|
+
platformRemarks: string; /**
|
|
822
|
+
* Platform remarks
|
|
823
|
+
*/
|
|
824
|
+
createTime: string; /**
|
|
825
|
+
* Create time
|
|
826
|
+
*/
|
|
827
|
+
/**
|
|
828
|
+
* Update time
|
|
829
|
+
*/
|
|
432
830
|
updateTime: string;
|
|
433
831
|
}
|
|
434
832
|
/** Paginated account list response */
|
|
@@ -443,10 +841,76 @@ export interface AccountListParams {
|
|
|
443
841
|
page_index?: number;
|
|
444
842
|
page_size?: number;
|
|
445
843
|
}
|
|
844
|
+
/** Account create parameters */
|
|
845
|
+
export interface AccountCreateParams {
|
|
846
|
+
workspaceId: number;
|
|
847
|
+
/**
|
|
848
|
+
* Business platform URL (required)
|
|
849
|
+
*/
|
|
850
|
+
platformUrl: string;
|
|
851
|
+
/**
|
|
852
|
+
* Account username (required)
|
|
853
|
+
*/
|
|
854
|
+
platformUserName: string;
|
|
855
|
+
/**
|
|
856
|
+
* Account password (required)
|
|
857
|
+
*/
|
|
858
|
+
platformPassword: string;
|
|
859
|
+
/**
|
|
860
|
+
* Account EFA (optional)
|
|
861
|
+
*/
|
|
862
|
+
platformEfa?: string;
|
|
863
|
+
/**
|
|
864
|
+
* Account cookies (optional)
|
|
865
|
+
*/
|
|
866
|
+
platformCookies?: Array<{
|
|
867
|
+
name: string;
|
|
868
|
+
value: string;
|
|
869
|
+
domain: string;
|
|
870
|
+
}>;
|
|
871
|
+
/**
|
|
872
|
+
* Platform name (optional)
|
|
873
|
+
*/
|
|
874
|
+
platformName?: string;
|
|
875
|
+
/**
|
|
876
|
+
* Platform remarks/notes (optional)
|
|
877
|
+
*/
|
|
878
|
+
platformRemarks?: string;
|
|
879
|
+
}
|
|
880
|
+
/** Account modify parameters (same as create but with id) */
|
|
881
|
+
export interface AccountModifyParams extends AccountCreateParams {
|
|
882
|
+
/**
|
|
883
|
+
* Account ID (required for modify)
|
|
884
|
+
*/
|
|
885
|
+
id: number;
|
|
886
|
+
}
|
|
887
|
+
/** Account delete parameters */
|
|
888
|
+
export interface AccountDeleteParams {
|
|
889
|
+
workspaceId: number;
|
|
890
|
+
/**
|
|
891
|
+
* Array of account IDs to delete
|
|
892
|
+
*/
|
|
893
|
+
ids: number[];
|
|
894
|
+
}
|
|
895
|
+
/** Batch create account parameters */
|
|
896
|
+
export interface AccountBatchCreateParams {
|
|
897
|
+
workspaceId: number;
|
|
898
|
+
/**
|
|
899
|
+
* Array of account configurations
|
|
900
|
+
*/
|
|
901
|
+
accountList: AccountCreateParams[];
|
|
902
|
+
}
|
|
446
903
|
/** Label item */
|
|
447
904
|
export interface LabelItem {
|
|
448
|
-
id: number;
|
|
449
|
-
|
|
905
|
+
id: number; /**
|
|
906
|
+
* Label ID
|
|
907
|
+
*/
|
|
908
|
+
color: string; /**
|
|
909
|
+
* Label color
|
|
910
|
+
*/
|
|
911
|
+
/**
|
|
912
|
+
* Label name
|
|
913
|
+
*/
|
|
450
914
|
name: string;
|
|
451
915
|
}
|
|
452
916
|
/** Label list response */
|
|
@@ -455,14 +919,33 @@ export interface LabelListResponse {
|
|
|
455
919
|
}
|
|
456
920
|
/** Connection info item for opened browser */
|
|
457
921
|
export interface ConnectionInfoItem {
|
|
458
|
-
ws: string;
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
922
|
+
ws: string; /**
|
|
923
|
+
* WebSocket endpoint for automation tools
|
|
924
|
+
*/
|
|
925
|
+
http: string; /**
|
|
926
|
+
* HTTP endpoint for automation tools
|
|
927
|
+
*/
|
|
928
|
+
coreVersion: string; /**
|
|
929
|
+
* Core version
|
|
930
|
+
*/
|
|
931
|
+
driver: string; /**
|
|
932
|
+
* WebDriver path for automation tools
|
|
933
|
+
*/
|
|
934
|
+
sortNum: number; /**
|
|
935
|
+
* Window sort number
|
|
936
|
+
*/
|
|
937
|
+
windowName: string; /**
|
|
938
|
+
* Window name
|
|
939
|
+
*/
|
|
940
|
+
windowRemark: string; /**
|
|
941
|
+
* Window remark
|
|
942
|
+
*/
|
|
943
|
+
pid: number; /**
|
|
944
|
+
* Process ID
|
|
945
|
+
*/
|
|
946
|
+
/**
|
|
947
|
+
* Browser directory ID
|
|
948
|
+
*/
|
|
466
949
|
dirId: string;
|
|
467
950
|
}
|
|
468
951
|
/** Connection info response */
|
|
@@ -471,20 +954,242 @@ export interface ConnectionInfoResponse {
|
|
|
471
954
|
}
|
|
472
955
|
/** Browser update parameters (same as create but with dirId) */
|
|
473
956
|
export interface BrowserUpdateParams extends BrowserCreateConfig {
|
|
957
|
+
/**
|
|
958
|
+
* Browser directory ID (required for update)
|
|
959
|
+
*/
|
|
474
960
|
dirId: string;
|
|
475
961
|
}
|
|
476
962
|
/** Local cache clear parameters */
|
|
477
963
|
export interface ClearLocalCacheParams {
|
|
964
|
+
/**
|
|
965
|
+
* Array of browser directory IDs
|
|
966
|
+
*/
|
|
478
967
|
dirIds: string[];
|
|
479
968
|
}
|
|
480
969
|
/** Server cache clear parameters */
|
|
481
970
|
export interface ClearServerCacheParams {
|
|
482
971
|
workspaceId: number;
|
|
972
|
+
/**
|
|
973
|
+
* Array of browser directory IDs
|
|
974
|
+
*/
|
|
483
975
|
dirIds: string[];
|
|
484
976
|
}
|
|
485
977
|
/** Random fingerprint parameters */
|
|
486
978
|
export interface RandomFingerprintParams {
|
|
487
979
|
workspaceId: number;
|
|
980
|
+
/**
|
|
981
|
+
* Browser directory ID
|
|
982
|
+
*/
|
|
488
983
|
dirId: string;
|
|
489
984
|
}
|
|
985
|
+
/** Proxy list item */
|
|
986
|
+
export interface ProxyListItem {
|
|
987
|
+
id?: number;
|
|
988
|
+
/**
|
|
989
|
+
* Proxy check status: 0=未检测, 1=检测成功, 2=检测失败
|
|
990
|
+
*/
|
|
991
|
+
checkStatus?: number;
|
|
992
|
+
/**
|
|
993
|
+
* IP detection channel
|
|
994
|
+
*/
|
|
995
|
+
checkChannel?: string;
|
|
996
|
+
/**
|
|
997
|
+
* IP detection channel value
|
|
998
|
+
*/
|
|
999
|
+
checkChannelValue?: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* Last detected IP address
|
|
1002
|
+
*/
|
|
1003
|
+
lastIp?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Last detected country
|
|
1006
|
+
*/
|
|
1007
|
+
lastCountry?: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* Last detected state/region
|
|
1010
|
+
*/
|
|
1011
|
+
lastState?: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* Last detected city
|
|
1014
|
+
*/
|
|
1015
|
+
lastCity?: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* IP type: IPV4 or IPV6
|
|
1018
|
+
*/
|
|
1019
|
+
ipType?: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* Proxy protocol: HTTP, HTTPS, SOCKS5, SSH
|
|
1022
|
+
*/
|
|
1023
|
+
protocol?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* Proxy host/IP address
|
|
1026
|
+
*/
|
|
1027
|
+
host?: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* Proxy port
|
|
1030
|
+
*/
|
|
1031
|
+
port?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* Proxy username
|
|
1034
|
+
*/
|
|
1035
|
+
proxyUserName?: string;
|
|
1036
|
+
/**
|
|
1037
|
+
* Proxy password
|
|
1038
|
+
*/
|
|
1039
|
+
proxyPassword?: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* Refresh URL for dynamic proxies
|
|
1042
|
+
*/
|
|
1043
|
+
refreshUrl?: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* Proxy remark/notes
|
|
1046
|
+
*/
|
|
1047
|
+
remark?: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Last check time
|
|
1050
|
+
*/
|
|
1051
|
+
checkTime?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* Create time
|
|
1054
|
+
*/
|
|
1055
|
+
createTime?: string;
|
|
1056
|
+
/**
|
|
1057
|
+
* Update time
|
|
1058
|
+
*/
|
|
1059
|
+
updateTime?: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* Timezone
|
|
1062
|
+
*/
|
|
1063
|
+
timezone?: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* Error information if check failed
|
|
1066
|
+
*/
|
|
1067
|
+
error?: any;
|
|
1068
|
+
}
|
|
1069
|
+
/** Paginated proxy list response */
|
|
1070
|
+
export interface ProxyListResponse {
|
|
1071
|
+
total: number;
|
|
1072
|
+
rows: ProxyListItem[];
|
|
1073
|
+
}
|
|
1074
|
+
/** Proxy list query parameters */
|
|
1075
|
+
export interface ProxyListParams {
|
|
1076
|
+
workspaceId: number;
|
|
1077
|
+
id?: number;
|
|
1078
|
+
page_index?: number;
|
|
1079
|
+
page_size?: number;
|
|
1080
|
+
[key: string]: any;
|
|
1081
|
+
}
|
|
1082
|
+
/** Proxy create parameters */
|
|
1083
|
+
export interface ProxyCreateParams {
|
|
1084
|
+
workspaceId: number;
|
|
1085
|
+
/**
|
|
1086
|
+
* Proxy protocol: HTTP, HTTPS, SOCKS5, SSH
|
|
1087
|
+
*/
|
|
1088
|
+
protocol?: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* Proxy host/IP address
|
|
1091
|
+
*/
|
|
1092
|
+
host?: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* Proxy port
|
|
1095
|
+
*/
|
|
1096
|
+
port?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* Proxy username
|
|
1099
|
+
*/
|
|
1100
|
+
proxyUserName?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* Proxy password
|
|
1103
|
+
*/
|
|
1104
|
+
proxyPassword?: string;
|
|
1105
|
+
/**
|
|
1106
|
+
* IP type: IPV4 or IPV6
|
|
1107
|
+
*/
|
|
1108
|
+
ipType?: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* IP detection channel: IPRust.io, IP-API, IP123.in
|
|
1111
|
+
*/
|
|
1112
|
+
checkChannel?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* Refresh URL for dynamic proxies
|
|
1115
|
+
*/
|
|
1116
|
+
refreshUrl?: string;
|
|
1117
|
+
/**
|
|
1118
|
+
* Proxy remark/notes
|
|
1119
|
+
*/
|
|
1120
|
+
remark?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* Proxy category (same as protocol)
|
|
1123
|
+
*/
|
|
1124
|
+
proxyCategory?: string;
|
|
1125
|
+
[key: string]: any;
|
|
1126
|
+
}
|
|
1127
|
+
/** Proxy modify parameters (same as create but with id) */
|
|
1128
|
+
export interface ProxyModifyParams extends ProxyCreateParams {
|
|
1129
|
+
/**
|
|
1130
|
+
* Proxy ID (required for modify)
|
|
1131
|
+
*/
|
|
1132
|
+
id: number;
|
|
1133
|
+
}
|
|
1134
|
+
/** Proxy detect parameters */
|
|
1135
|
+
export interface ProxyDetectParams {
|
|
1136
|
+
workspaceId: number;
|
|
1137
|
+
/**
|
|
1138
|
+
* Proxy ID to detect
|
|
1139
|
+
*/
|
|
1140
|
+
id: number;
|
|
1141
|
+
}
|
|
1142
|
+
/** Proxy delete parameters */
|
|
1143
|
+
export interface ProxyDeleteParams {
|
|
1144
|
+
workspaceId: number;
|
|
1145
|
+
/**
|
|
1146
|
+
* Array of proxy IDs to delete
|
|
1147
|
+
*/
|
|
1148
|
+
ids: number[];
|
|
1149
|
+
}
|
|
1150
|
+
/** Batch create proxy parameters */
|
|
1151
|
+
export interface ProxyBatchCreateParams {
|
|
1152
|
+
workspaceId: number;
|
|
1153
|
+
/**
|
|
1154
|
+
* Default check channel for all proxies
|
|
1155
|
+
*/
|
|
1156
|
+
checkChannel?: string;
|
|
1157
|
+
/**
|
|
1158
|
+
* Array of proxy configurations
|
|
1159
|
+
*/
|
|
1160
|
+
proxyList: ProxyCreateParams[];
|
|
1161
|
+
}
|
|
1162
|
+
/** Detect channel item */
|
|
1163
|
+
export interface DetectChannelItem {
|
|
1164
|
+
label: string;
|
|
1165
|
+
value: string;
|
|
1166
|
+
}
|
|
1167
|
+
/** Detect channel response */
|
|
1168
|
+
export interface DetectChannelResponse {
|
|
1169
|
+
checkChannel: DetectChannelItem[];
|
|
1170
|
+
}
|
|
1171
|
+
export interface BoughtProxyListItem {
|
|
1172
|
+
id: number;
|
|
1173
|
+
orderNo: string;
|
|
1174
|
+
checkStatus: number;
|
|
1175
|
+
proxyCheckChannel: string;
|
|
1176
|
+
checkChannelValue: string;
|
|
1177
|
+
lastIp: string;
|
|
1178
|
+
lastCountry: string;
|
|
1179
|
+
lastState: string;
|
|
1180
|
+
lastCity: string;
|
|
1181
|
+
proxyProviderName: string;
|
|
1182
|
+
providerType: string;
|
|
1183
|
+
ipType: string;
|
|
1184
|
+
protocol: string;
|
|
1185
|
+
host: string;
|
|
1186
|
+
port: string;
|
|
1187
|
+
proxyUserName: string;
|
|
1188
|
+
proxyPassword: string;
|
|
1189
|
+
remark: string;
|
|
1190
|
+
checkTime: string;
|
|
1191
|
+
createTime: string;
|
|
1192
|
+
updateTime: string;
|
|
1193
|
+
expireDate: string;
|
|
1194
|
+
}
|
|
490
1195
|
//# sourceMappingURL=types.d.ts.map
|