@roxybrowser/openapi 1.0.13 → 1.0.14-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +352 -352
- package/lib/cli.cjs +127 -324
- package/lib/cli.cjs.map +1 -1
- package/lib/cli.js +127 -324
- package/lib/cli.js.map +1 -1
- package/lib/index.cjs +127 -324
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +186 -10
- package/lib/index.d.ts +186 -10
- package/lib/index.js +127 -324
- package/lib/index.js.map +1 -1
- package/package.json +67 -67
package/lib/index.d.cts
CHANGED
|
@@ -15,11 +15,16 @@ declare class CreateBrowser {
|
|
|
15
15
|
type: string;
|
|
16
16
|
description: string;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
browserCore: {
|
|
19
19
|
type: string;
|
|
20
20
|
enum: string[];
|
|
21
21
|
description: string;
|
|
22
22
|
};
|
|
23
|
+
useLatestCore: {
|
|
24
|
+
type: string;
|
|
25
|
+
enum: number[];
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
23
28
|
os: {
|
|
24
29
|
type: string;
|
|
25
30
|
enum: string[];
|
|
@@ -417,6 +422,26 @@ declare class CreateBrowser {
|
|
|
417
422
|
};
|
|
418
423
|
};
|
|
419
424
|
required: string[];
|
|
425
|
+
allOf: {
|
|
426
|
+
if: {
|
|
427
|
+
properties: {
|
|
428
|
+
browserCore: {
|
|
429
|
+
pattern: string;
|
|
430
|
+
};
|
|
431
|
+
os: {
|
|
432
|
+
const: string;
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
required: string[];
|
|
436
|
+
};
|
|
437
|
+
then: {
|
|
438
|
+
properties: {
|
|
439
|
+
osVersion: {
|
|
440
|
+
enum: string[];
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
}[];
|
|
420
445
|
};
|
|
421
446
|
get schema(): {
|
|
422
447
|
name: string;
|
|
@@ -432,11 +457,16 @@ declare class CreateBrowser {
|
|
|
432
457
|
type: string;
|
|
433
458
|
description: string;
|
|
434
459
|
};
|
|
435
|
-
|
|
460
|
+
browserCore: {
|
|
436
461
|
type: string;
|
|
437
462
|
enum: string[];
|
|
438
463
|
description: string;
|
|
439
464
|
};
|
|
465
|
+
useLatestCore: {
|
|
466
|
+
type: string;
|
|
467
|
+
enum: number[];
|
|
468
|
+
description: string;
|
|
469
|
+
};
|
|
440
470
|
os: {
|
|
441
471
|
type: string;
|
|
442
472
|
enum: string[];
|
|
@@ -834,6 +864,26 @@ declare class CreateBrowser {
|
|
|
834
864
|
};
|
|
835
865
|
};
|
|
836
866
|
required: string[];
|
|
867
|
+
allOf: {
|
|
868
|
+
if: {
|
|
869
|
+
properties: {
|
|
870
|
+
browserCore: {
|
|
871
|
+
pattern: string;
|
|
872
|
+
};
|
|
873
|
+
os: {
|
|
874
|
+
const: string;
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
required: string[];
|
|
878
|
+
};
|
|
879
|
+
then: {
|
|
880
|
+
properties: {
|
|
881
|
+
osVersion: {
|
|
882
|
+
enum: string[];
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
}[];
|
|
837
887
|
};
|
|
838
888
|
};
|
|
839
889
|
handle(params: any): Promise<{
|
|
@@ -864,11 +914,16 @@ declare class BatchCreateBrowsers {
|
|
|
864
914
|
type: string;
|
|
865
915
|
description: string;
|
|
866
916
|
};
|
|
867
|
-
|
|
917
|
+
browserCore: {
|
|
868
918
|
type: string;
|
|
869
919
|
enum: string[];
|
|
870
920
|
description: string;
|
|
871
921
|
};
|
|
922
|
+
useLatestCore: {
|
|
923
|
+
type: string;
|
|
924
|
+
enum: number[];
|
|
925
|
+
description: string;
|
|
926
|
+
};
|
|
872
927
|
os: {
|
|
873
928
|
type: string;
|
|
874
929
|
enum: string[];
|
|
@@ -1266,6 +1321,26 @@ declare class BatchCreateBrowsers {
|
|
|
1266
1321
|
};
|
|
1267
1322
|
};
|
|
1268
1323
|
required: string[];
|
|
1324
|
+
allOf: {
|
|
1325
|
+
if: {
|
|
1326
|
+
properties: {
|
|
1327
|
+
browserCore: {
|
|
1328
|
+
pattern: string;
|
|
1329
|
+
};
|
|
1330
|
+
os: {
|
|
1331
|
+
const: string;
|
|
1332
|
+
};
|
|
1333
|
+
};
|
|
1334
|
+
required: string[];
|
|
1335
|
+
};
|
|
1336
|
+
then: {
|
|
1337
|
+
properties: {
|
|
1338
|
+
osVersion: {
|
|
1339
|
+
enum: string[];
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1343
|
+
}[];
|
|
1269
1344
|
};
|
|
1270
1345
|
};
|
|
1271
1346
|
};
|
|
@@ -1291,11 +1366,16 @@ declare class BatchCreateBrowsers {
|
|
|
1291
1366
|
type: string;
|
|
1292
1367
|
description: string;
|
|
1293
1368
|
};
|
|
1294
|
-
|
|
1369
|
+
browserCore: {
|
|
1295
1370
|
type: string;
|
|
1296
1371
|
enum: string[];
|
|
1297
1372
|
description: string;
|
|
1298
1373
|
};
|
|
1374
|
+
useLatestCore: {
|
|
1375
|
+
type: string;
|
|
1376
|
+
enum: number[];
|
|
1377
|
+
description: string;
|
|
1378
|
+
};
|
|
1299
1379
|
os: {
|
|
1300
1380
|
type: string;
|
|
1301
1381
|
enum: string[];
|
|
@@ -1693,6 +1773,26 @@ declare class BatchCreateBrowsers {
|
|
|
1693
1773
|
};
|
|
1694
1774
|
};
|
|
1695
1775
|
required: string[];
|
|
1776
|
+
allOf: {
|
|
1777
|
+
if: {
|
|
1778
|
+
properties: {
|
|
1779
|
+
browserCore: {
|
|
1780
|
+
pattern: string;
|
|
1781
|
+
};
|
|
1782
|
+
os: {
|
|
1783
|
+
const: string;
|
|
1784
|
+
};
|
|
1785
|
+
};
|
|
1786
|
+
required: string[];
|
|
1787
|
+
};
|
|
1788
|
+
then: {
|
|
1789
|
+
properties: {
|
|
1790
|
+
osVersion: {
|
|
1791
|
+
enum: string[];
|
|
1792
|
+
};
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
}[];
|
|
1696
1796
|
};
|
|
1697
1797
|
};
|
|
1698
1798
|
};
|
|
@@ -1721,11 +1821,16 @@ declare class UpdateBrowser {
|
|
|
1721
1821
|
type: string;
|
|
1722
1822
|
description: string;
|
|
1723
1823
|
};
|
|
1724
|
-
|
|
1824
|
+
browserCore: {
|
|
1725
1825
|
type: string;
|
|
1726
1826
|
enum: string[];
|
|
1727
1827
|
description: string;
|
|
1728
1828
|
};
|
|
1829
|
+
useLatestCore: {
|
|
1830
|
+
type: string;
|
|
1831
|
+
enum: number[];
|
|
1832
|
+
description: string;
|
|
1833
|
+
};
|
|
1729
1834
|
os: {
|
|
1730
1835
|
type: string;
|
|
1731
1836
|
enum: string[];
|
|
@@ -2123,6 +2228,26 @@ declare class UpdateBrowser {
|
|
|
2123
2228
|
};
|
|
2124
2229
|
};
|
|
2125
2230
|
required: string[];
|
|
2231
|
+
allOf: {
|
|
2232
|
+
if: {
|
|
2233
|
+
properties: {
|
|
2234
|
+
browserCore: {
|
|
2235
|
+
pattern: string;
|
|
2236
|
+
};
|
|
2237
|
+
os: {
|
|
2238
|
+
const: string;
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
required: string[];
|
|
2242
|
+
};
|
|
2243
|
+
then: {
|
|
2244
|
+
properties: {
|
|
2245
|
+
osVersion: {
|
|
2246
|
+
enum: string[];
|
|
2247
|
+
};
|
|
2248
|
+
};
|
|
2249
|
+
};
|
|
2250
|
+
}[];
|
|
2126
2251
|
};
|
|
2127
2252
|
get schema(): {
|
|
2128
2253
|
name: string;
|
|
@@ -2138,11 +2263,16 @@ declare class UpdateBrowser {
|
|
|
2138
2263
|
type: string;
|
|
2139
2264
|
description: string;
|
|
2140
2265
|
};
|
|
2141
|
-
|
|
2266
|
+
browserCore: {
|
|
2142
2267
|
type: string;
|
|
2143
2268
|
enum: string[];
|
|
2144
2269
|
description: string;
|
|
2145
2270
|
};
|
|
2271
|
+
useLatestCore: {
|
|
2272
|
+
type: string;
|
|
2273
|
+
enum: number[];
|
|
2274
|
+
description: string;
|
|
2275
|
+
};
|
|
2146
2276
|
os: {
|
|
2147
2277
|
type: string;
|
|
2148
2278
|
enum: string[];
|
|
@@ -2540,6 +2670,26 @@ declare class UpdateBrowser {
|
|
|
2540
2670
|
};
|
|
2541
2671
|
};
|
|
2542
2672
|
required: string[];
|
|
2673
|
+
allOf: {
|
|
2674
|
+
if: {
|
|
2675
|
+
properties: {
|
|
2676
|
+
browserCore: {
|
|
2677
|
+
pattern: string;
|
|
2678
|
+
};
|
|
2679
|
+
os: {
|
|
2680
|
+
const: string;
|
|
2681
|
+
};
|
|
2682
|
+
};
|
|
2683
|
+
required: string[];
|
|
2684
|
+
};
|
|
2685
|
+
then: {
|
|
2686
|
+
properties: {
|
|
2687
|
+
osVersion: {
|
|
2688
|
+
enum: string[];
|
|
2689
|
+
};
|
|
2690
|
+
};
|
|
2691
|
+
};
|
|
2692
|
+
}[];
|
|
2543
2693
|
};
|
|
2544
2694
|
};
|
|
2545
2695
|
handle(params: any): Promise<{
|
|
@@ -4148,6 +4298,9 @@ interface BrowserOpenResult {
|
|
|
4148
4298
|
* Browser directory ID
|
|
4149
4299
|
*/
|
|
4150
4300
|
dirId?: string;
|
|
4301
|
+
coreType?: string; /**
|
|
4302
|
+
* Browser core type: Chrome or Firefox
|
|
4303
|
+
*/
|
|
4151
4304
|
}
|
|
4152
4305
|
/** Browser list item */
|
|
4153
4306
|
interface BrowserListItem {
|
|
@@ -4176,6 +4329,9 @@ interface BrowserListItem {
|
|
|
4176
4329
|
* Browser status
|
|
4177
4330
|
*/
|
|
4178
4331
|
status: string;
|
|
4332
|
+
coreType?: string; /**
|
|
4333
|
+
* Browser core type: Chrome or Firefox
|
|
4334
|
+
*/
|
|
4179
4335
|
}
|
|
4180
4336
|
/** Paginated browser list response */
|
|
4181
4337
|
interface BrowserListResponse {
|
|
@@ -4334,7 +4490,9 @@ interface RoxyClientConfig$1 {
|
|
|
4334
4490
|
/** Browser operating system types */
|
|
4335
4491
|
type BrowserOS = 'Windows' | 'macOS' | 'Linux' | 'IOS' | 'Android';
|
|
4336
4492
|
/** Browser core versions */
|
|
4337
|
-
type CoreVersion = '140' | '138' | '137' | '136' | '135' | '133' | '130' | '125' | '117' | '109';
|
|
4493
|
+
type CoreVersion = '146' | '144' | '143' | '142' | '141' | '140' | '139' | '138' | '137' | '136' | '135' | '133' | '130' | '125' | '117' | '109';
|
|
4494
|
+
/** Browser core type — Firefox or Chromium */
|
|
4495
|
+
type CoreType = 'Firefox' | 'Chrome';
|
|
4338
4496
|
/** Latest/recommended browser core version */
|
|
4339
4497
|
declare const LATEST_CORE_VERSION: CoreVersion;
|
|
4340
4498
|
/** Search engine options */
|
|
@@ -4634,6 +4792,12 @@ interface BrowserCreateConfig {
|
|
|
4634
4792
|
coreVersion?: CoreVersion; /**
|
|
4635
4793
|
* Browser core version
|
|
4636
4794
|
*/
|
|
4795
|
+
coreType?: CoreType; /**
|
|
4796
|
+
* Browser core type: Chrome or Firefox
|
|
4797
|
+
*/
|
|
4798
|
+
useLatestCore?: 0 | 1; /**
|
|
4799
|
+
* Whether to always use the latest core version: 1=yes, 0=no
|
|
4800
|
+
*/
|
|
4637
4801
|
os?: BrowserOS; /**
|
|
4638
4802
|
* Operating system
|
|
4639
4803
|
*/
|
|
@@ -4686,6 +4850,12 @@ interface BrowserCreateSimpleParams {
|
|
|
4686
4850
|
windowRemark?: string; /**
|
|
4687
4851
|
* Window remarks
|
|
4688
4852
|
*/
|
|
4853
|
+
coreType?: CoreType; /**
|
|
4854
|
+
* Browser core type: Chrome or Firefox
|
|
4855
|
+
*/
|
|
4856
|
+
useLatestCore?: 0 | 1; /**
|
|
4857
|
+
* Whether to always use the latest core version: 1=yes, 0=no
|
|
4858
|
+
*/
|
|
4689
4859
|
proxyHost?: string; /**
|
|
4690
4860
|
* Simple proxy host
|
|
4691
4861
|
*/
|
|
@@ -4726,6 +4896,12 @@ interface BrowserCreateStandardParams {
|
|
|
4726
4896
|
coreVersion?: CoreVersion; /**
|
|
4727
4897
|
* Browser core version
|
|
4728
4898
|
*/
|
|
4899
|
+
coreType?: CoreType; /**
|
|
4900
|
+
* Browser core type: Chrome or Firefox
|
|
4901
|
+
*/
|
|
4902
|
+
useLatestCore?: 0 | 1; /**
|
|
4903
|
+
* Whether to always use the latest core version: 1=yes, 0=no
|
|
4904
|
+
*/
|
|
4729
4905
|
proxyInfo?: ProxyInfo; /**
|
|
4730
4906
|
* Complete proxy configuration
|
|
4731
4907
|
*/
|
|
@@ -5036,9 +5212,9 @@ interface ConnectionInfoItem {
|
|
|
5036
5212
|
* Process ID
|
|
5037
5213
|
*/
|
|
5038
5214
|
/**
|
|
5039
|
-
* Browser
|
|
5215
|
+
* Browser core type: Chrome or Firefox
|
|
5040
5216
|
*/
|
|
5041
|
-
|
|
5217
|
+
coreType?: string;
|
|
5042
5218
|
}
|
|
5043
5219
|
/** Connection info response */
|
|
5044
5220
|
interface ConnectionInfoResponse {
|
|
@@ -5348,4 +5524,4 @@ declare class RoxyBrowserMCPServer {
|
|
|
5348
5524
|
*/
|
|
5349
5525
|
declare function runServer(): Promise<void>;
|
|
5350
5526
|
|
|
5351
|
-
export { type AccountBatchCreateParams, type AccountCreateParams, type AccountDeleteParams, type AccountItem, type AccountListParams, type AccountListResponse, type AccountModifyParams, type BoughtProxyListItem, type BrowserCloseParams, type BrowserCloseToolParams, type BrowserCloseToolResponse, type BrowserCreateAdvancedParams, type BrowserCreateAdvancedResponse, type BrowserCreateBatchResult, type BrowserCreateConfig, type BrowserCreateResult, type BrowserCreateSimpleParams, type BrowserCreateSimpleResponse, type BrowserCreateStandardParams, type BrowserCreateStandardResponse, BrowserCreationError, type BrowserDeleteToolParams, type BrowserDeleteToolResponse, type BrowserListItem, type BrowserListParams, type BrowserListResponse, type BrowserListToolParams, type BrowserListToolResponse, type BrowserOS, type BrowserOpenParams, type BrowserOpenResult, type BrowserOpenToolParams, type BrowserOpenToolResponse, type BrowserUpdateParams, type ClearLocalCacheParams, type ClearServerCacheParams, ConfigError, type ConnectionInfoItem, type ConnectionInfoResponse, type CoreVersion, DEFAULT_CONFIG, type DetectChannelItem, type DetectChannelResponse, type ErrorInfo, type FingerInfo, LATEST_CORE_VERSION, type LabelItem, type LabelListResponse, NETWORK_ERROR_PATTERNS, type ProjectDetails, type ProxyBatchCreateParams, type ProxyCreateParams, type ProxyDeleteParams, type ProxyDetectParams, type ProxyInfo, type ProxyListItem, type ProxyListParams, type ProxyListResponse, type ProxyModifyParams, ROXY_ERROR_MAP, type RandomFingerprintParams, RoxyApiError, RoxyApiErrorCode, type RoxyApiResponse, RoxyBrowserMCPServer, type RoxyClientConfig$1 as RoxyClientConfig, type SearchEngine, TOOLS, type WindowPlatformInfo, type Workspace, type WorkspaceListResponse, type WorkspaceListToolResponse, batchCreateAccounts, batchCreateBrowsers, clearLocalCache, clearServerCache, closeBrowsers, createAccount, createBrowser, createProxies, deleteAccounts, deleteBrowsers, deleteProxies, detectProxy, getBrowserDetail, getConnectionInfo, healthCheck, listAccounts, listBrowsers, listLabels, listWorkspaces, modifyAccount, modifyProxy, openBrowser, proxyDetail, proxyList, randomFingerprint, request, resolveConfig, runServer, updateBrowser };
|
|
5527
|
+
export { type AccountBatchCreateParams, type AccountCreateParams, type AccountDeleteParams, type AccountItem, type AccountListParams, type AccountListResponse, type AccountModifyParams, type BoughtProxyListItem, type BrowserCloseParams, type BrowserCloseToolParams, type BrowserCloseToolResponse, type BrowserCreateAdvancedParams, type BrowserCreateAdvancedResponse, type BrowserCreateBatchResult, type BrowserCreateConfig, type BrowserCreateResult, type BrowserCreateSimpleParams, type BrowserCreateSimpleResponse, type BrowserCreateStandardParams, type BrowserCreateStandardResponse, BrowserCreationError, type BrowserDeleteToolParams, type BrowserDeleteToolResponse, type BrowserListItem, type BrowserListParams, type BrowserListResponse, type BrowserListToolParams, type BrowserListToolResponse, type BrowserOS, type BrowserOpenParams, type BrowserOpenResult, type BrowserOpenToolParams, type BrowserOpenToolResponse, type BrowserUpdateParams, type ClearLocalCacheParams, type ClearServerCacheParams, ConfigError, type ConnectionInfoItem, type ConnectionInfoResponse, type CoreType, type CoreVersion, DEFAULT_CONFIG, type DetectChannelItem, type DetectChannelResponse, type ErrorInfo, type FingerInfo, LATEST_CORE_VERSION, type LabelItem, type LabelListResponse, NETWORK_ERROR_PATTERNS, type ProjectDetails, type ProxyBatchCreateParams, type ProxyCreateParams, type ProxyDeleteParams, type ProxyDetectParams, type ProxyInfo, type ProxyListItem, type ProxyListParams, type ProxyListResponse, type ProxyModifyParams, ROXY_ERROR_MAP, type RandomFingerprintParams, RoxyApiError, RoxyApiErrorCode, type RoxyApiResponse, RoxyBrowserMCPServer, type RoxyClientConfig$1 as RoxyClientConfig, type SearchEngine, TOOLS, type WindowPlatformInfo, type Workspace, type WorkspaceListResponse, type WorkspaceListToolResponse, batchCreateAccounts, batchCreateBrowsers, clearLocalCache, clearServerCache, closeBrowsers, createAccount, createBrowser, createProxies, deleteAccounts, deleteBrowsers, deleteProxies, detectProxy, getBrowserDetail, getConnectionInfo, healthCheck, listAccounts, listBrowsers, listLabels, listWorkspaces, modifyAccount, modifyProxy, openBrowser, proxyDetail, proxyList, randomFingerprint, request, resolveConfig, runServer, updateBrowser };
|