@roxybrowser/openapi 1.0.10-beta.1 → 1.0.10-beta.2

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.
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  declare class CreateBrowser {
2
3
  name: string;
3
4
  description: string;
@@ -846,7 +847,7 @@ declare class CreateBrowser {
846
847
  }[];
847
848
  }>;
848
849
  }
849
- export declare const createBrowser: CreateBrowser;
850
+ declare const createBrowser: CreateBrowser;
850
851
  declare class BatchCreateBrowsers {
851
852
  name: string;
852
853
  description: string;
@@ -1715,7 +1716,7 @@ declare class BatchCreateBrowsers {
1715
1716
  }[];
1716
1717
  }>;
1717
1718
  }
1718
- export declare const batchCreateBrowsers: BatchCreateBrowsers;
1719
+ declare const batchCreateBrowsers: BatchCreateBrowsers;
1719
1720
  declare class UpdateBrowser {
1720
1721
  name: string;
1721
1722
  description: string;
@@ -3038,16 +3039,2925 @@ declare class GetConnectionInfo {
3038
3039
  }[];
3039
3040
  }>;
3040
3041
  }
3041
- export declare const openBrowser: OpenBrowser;
3042
- export declare const updateBrowser: UpdateBrowser;
3043
- export declare const listBrowsers: ListBrowsers;
3044
- export declare const closeBrowsers: CloseBrowsers;
3045
- export declare const deleteBrowsers: DeleteBrowsers;
3046
- export declare const getBrowserDetail: GetBrowserDetail;
3047
- export declare const clearLocalCache: ClearLocalCache;
3048
- export declare const clearServerCache: ClearServerCache;
3049
- export declare const randomFingerprint: RandomFingerprint;
3050
- export declare const listLabels: ListLabels;
3051
- export declare const getConnectionInfo: GetConnectionInfo;
3052
- export {};
3053
- //# sourceMappingURL=browser.d.ts.map
3042
+ declare const openBrowser: OpenBrowser;
3043
+ declare const updateBrowser: UpdateBrowser;
3044
+ declare const listBrowsers: ListBrowsers;
3045
+ declare const closeBrowsers: CloseBrowsers;
3046
+ declare const deleteBrowsers: DeleteBrowsers;
3047
+ declare const getBrowserDetail: GetBrowserDetail;
3048
+ declare const clearLocalCache: ClearLocalCache;
3049
+ declare const clearServerCache: ClearServerCache;
3050
+ declare const randomFingerprint: RandomFingerprint;
3051
+ declare const listLabels: ListLabels;
3052
+ declare const getConnectionInfo: GetConnectionInfo;
3053
+
3054
+ /** 代理列表 */
3055
+ declare class ProxyList {
3056
+ name: string;
3057
+ /**
3058
+ * 仅当用户没有指定商店时调用
3059
+ */
3060
+ description: string;
3061
+ inputSchema: {
3062
+ type: string;
3063
+ properties: {
3064
+ workspaceId: {
3065
+ type: string;
3066
+ description: string;
3067
+ };
3068
+ id: {
3069
+ type: string;
3070
+ description: string;
3071
+ };
3072
+ pageIndex: {
3073
+ type: string;
3074
+ description: string;
3075
+ default: number;
3076
+ };
3077
+ pageSize: {
3078
+ type: string;
3079
+ description: string;
3080
+ default: number;
3081
+ };
3082
+ };
3083
+ required: string[];
3084
+ };
3085
+ get schema(): {
3086
+ name: string;
3087
+ description: string;
3088
+ inputSchema: {
3089
+ type: string;
3090
+ properties: {
3091
+ workspaceId: {
3092
+ type: string;
3093
+ description: string;
3094
+ };
3095
+ id: {
3096
+ type: string;
3097
+ description: string;
3098
+ };
3099
+ pageIndex: {
3100
+ type: string;
3101
+ description: string;
3102
+ default: number;
3103
+ };
3104
+ pageSize: {
3105
+ type: string;
3106
+ description: string;
3107
+ default: number;
3108
+ };
3109
+ };
3110
+ required: string[];
3111
+ };
3112
+ };
3113
+ handle(params: any): Promise<{
3114
+ content: {
3115
+ type: string;
3116
+ text: string;
3117
+ }[];
3118
+ }>;
3119
+ }
3120
+ /** 代理商店 */
3121
+ declare class ProxyStore {
3122
+ name: string;
3123
+ description: string;
3124
+ inputSchema: {
3125
+ type: string;
3126
+ properties: {
3127
+ workspaceId: {
3128
+ type: string;
3129
+ description: string;
3130
+ };
3131
+ pageIndex: {
3132
+ type: string;
3133
+ description: string;
3134
+ default: number;
3135
+ };
3136
+ pageSize: {
3137
+ type: string;
3138
+ description: string;
3139
+ default: number;
3140
+ };
3141
+ type: {
3142
+ type: string;
3143
+ description: string;
3144
+ default: number;
3145
+ };
3146
+ };
3147
+ required: string[];
3148
+ };
3149
+ get schema(): {
3150
+ name: string;
3151
+ description: string;
3152
+ inputSchema: {
3153
+ type: string;
3154
+ properties: {
3155
+ workspaceId: {
3156
+ type: string;
3157
+ description: string;
3158
+ };
3159
+ pageIndex: {
3160
+ type: string;
3161
+ description: string;
3162
+ default: number;
3163
+ };
3164
+ pageSize: {
3165
+ type: string;
3166
+ description: string;
3167
+ default: number;
3168
+ };
3169
+ type: {
3170
+ type: string;
3171
+ description: string;
3172
+ default: number;
3173
+ };
3174
+ };
3175
+ required: string[];
3176
+ };
3177
+ };
3178
+ handle(params: any): Promise<{
3179
+ content: {
3180
+ type: string;
3181
+ text: string;
3182
+ }[];
3183
+ }>;
3184
+ }
3185
+ declare class CreateProxy {
3186
+ name: string;
3187
+ description: string;
3188
+ inputSchema: {
3189
+ type: string;
3190
+ properties: {
3191
+ workspaceId: {
3192
+ type: string;
3193
+ description: string;
3194
+ };
3195
+ protocol: {
3196
+ type: string;
3197
+ enum: string[];
3198
+ description: string;
3199
+ };
3200
+ host: {
3201
+ type: string;
3202
+ description: string;
3203
+ };
3204
+ port: {
3205
+ type: string;
3206
+ description: string;
3207
+ };
3208
+ proxyUserName: {
3209
+ type: string;
3210
+ description: string;
3211
+ };
3212
+ proxyPassword: {
3213
+ type: string;
3214
+ description: string;
3215
+ };
3216
+ ipType: {
3217
+ type: string;
3218
+ enum: string[];
3219
+ description: string;
3220
+ };
3221
+ checkChannel: {
3222
+ type: string;
3223
+ enum: string[];
3224
+ description: string;
3225
+ };
3226
+ refreshUrl: {
3227
+ type: string;
3228
+ description: string;
3229
+ };
3230
+ remark: {
3231
+ type: string;
3232
+ description: string;
3233
+ };
3234
+ };
3235
+ required: string[];
3236
+ };
3237
+ get schema(): {
3238
+ name: string;
3239
+ description: string;
3240
+ inputSchema: {
3241
+ type: string;
3242
+ properties: {
3243
+ workspaceId: {
3244
+ type: string;
3245
+ description: string;
3246
+ };
3247
+ protocol: {
3248
+ type: string;
3249
+ enum: string[];
3250
+ description: string;
3251
+ };
3252
+ host: {
3253
+ type: string;
3254
+ description: string;
3255
+ };
3256
+ port: {
3257
+ type: string;
3258
+ description: string;
3259
+ };
3260
+ proxyUserName: {
3261
+ type: string;
3262
+ description: string;
3263
+ };
3264
+ proxyPassword: {
3265
+ type: string;
3266
+ description: string;
3267
+ };
3268
+ ipType: {
3269
+ type: string;
3270
+ enum: string[];
3271
+ description: string;
3272
+ };
3273
+ checkChannel: {
3274
+ type: string;
3275
+ enum: string[];
3276
+ description: string;
3277
+ };
3278
+ refreshUrl: {
3279
+ type: string;
3280
+ description: string;
3281
+ };
3282
+ remark: {
3283
+ type: string;
3284
+ description: string;
3285
+ };
3286
+ };
3287
+ required: string[];
3288
+ };
3289
+ };
3290
+ handle(params: any): Promise<{
3291
+ content: {
3292
+ type: string;
3293
+ text: string;
3294
+ }[];
3295
+ }>;
3296
+ }
3297
+ declare class BatchCreateProxies {
3298
+ name: string;
3299
+ description: string;
3300
+ inputSchema: {
3301
+ type: string;
3302
+ properties: {
3303
+ workspaceId: {
3304
+ type: string;
3305
+ description: string;
3306
+ };
3307
+ proxyList: {
3308
+ type: string;
3309
+ description: string;
3310
+ items: {
3311
+ type: string;
3312
+ properties: {
3313
+ protocol: {
3314
+ type: string;
3315
+ enum: string[];
3316
+ };
3317
+ host: {
3318
+ type: string;
3319
+ };
3320
+ port: {
3321
+ type: string;
3322
+ };
3323
+ proxyUserName: {
3324
+ type: string;
3325
+ };
3326
+ proxyPassword: {
3327
+ type: string;
3328
+ };
3329
+ ipType: {
3330
+ type: string;
3331
+ enum: string[];
3332
+ };
3333
+ checkChannel: {
3334
+ type: string;
3335
+ enum: string[];
3336
+ };
3337
+ refreshUrl: {
3338
+ type: string;
3339
+ };
3340
+ remark: {
3341
+ type: string;
3342
+ };
3343
+ };
3344
+ required: string[];
3345
+ };
3346
+ };
3347
+ };
3348
+ required: string[];
3349
+ };
3350
+ get schema(): {
3351
+ name: string;
3352
+ description: string;
3353
+ inputSchema: {
3354
+ type: string;
3355
+ properties: {
3356
+ workspaceId: {
3357
+ type: string;
3358
+ description: string;
3359
+ };
3360
+ proxyList: {
3361
+ type: string;
3362
+ description: string;
3363
+ items: {
3364
+ type: string;
3365
+ properties: {
3366
+ protocol: {
3367
+ type: string;
3368
+ enum: string[];
3369
+ };
3370
+ host: {
3371
+ type: string;
3372
+ };
3373
+ port: {
3374
+ type: string;
3375
+ };
3376
+ proxyUserName: {
3377
+ type: string;
3378
+ };
3379
+ proxyPassword: {
3380
+ type: string;
3381
+ };
3382
+ ipType: {
3383
+ type: string;
3384
+ enum: string[];
3385
+ };
3386
+ checkChannel: {
3387
+ type: string;
3388
+ enum: string[];
3389
+ };
3390
+ refreshUrl: {
3391
+ type: string;
3392
+ };
3393
+ remark: {
3394
+ type: string;
3395
+ };
3396
+ };
3397
+ required: string[];
3398
+ };
3399
+ };
3400
+ };
3401
+ required: string[];
3402
+ };
3403
+ };
3404
+ handle(params: any): Promise<{
3405
+ content: {
3406
+ type: string;
3407
+ text: string;
3408
+ }[];
3409
+ }>;
3410
+ }
3411
+ declare class DetectProxy {
3412
+ name: string;
3413
+ description: string;
3414
+ inputSchema: {
3415
+ type: string;
3416
+ properties: {
3417
+ workspaceId: {
3418
+ type: string;
3419
+ description: string;
3420
+ };
3421
+ id: {
3422
+ type: string;
3423
+ description: string;
3424
+ };
3425
+ };
3426
+ required: string[];
3427
+ };
3428
+ get schema(): {
3429
+ name: string;
3430
+ description: string;
3431
+ inputSchema: {
3432
+ type: string;
3433
+ properties: {
3434
+ workspaceId: {
3435
+ type: string;
3436
+ description: string;
3437
+ };
3438
+ id: {
3439
+ type: string;
3440
+ description: string;
3441
+ };
3442
+ };
3443
+ required: string[];
3444
+ };
3445
+ };
3446
+ handle(params: any): Promise<{
3447
+ content: {
3448
+ type: string;
3449
+ text: string;
3450
+ }[];
3451
+ }>;
3452
+ }
3453
+ declare class ModifyProxy {
3454
+ name: string;
3455
+ description: string;
3456
+ inputSchema: {
3457
+ type: string;
3458
+ properties: {
3459
+ workspaceId: {
3460
+ type: string;
3461
+ description: string;
3462
+ };
3463
+ id: {
3464
+ type: string;
3465
+ description: string;
3466
+ };
3467
+ protocol: {
3468
+ type: string;
3469
+ enum: string[];
3470
+ description: string;
3471
+ };
3472
+ host: {
3473
+ type: string;
3474
+ description: string;
3475
+ };
3476
+ port: {
3477
+ type: string;
3478
+ description: string;
3479
+ };
3480
+ proxyUserName: {
3481
+ type: string;
3482
+ description: string;
3483
+ };
3484
+ proxyPassword: {
3485
+ type: string;
3486
+ description: string;
3487
+ };
3488
+ ipType: {
3489
+ type: string;
3490
+ enum: string[];
3491
+ description: string;
3492
+ };
3493
+ checkChannel: {
3494
+ type: string;
3495
+ enum: string[];
3496
+ description: string;
3497
+ };
3498
+ refreshUrl: {
3499
+ type: string;
3500
+ description: string;
3501
+ };
3502
+ remark: {
3503
+ type: string;
3504
+ description: string;
3505
+ };
3506
+ };
3507
+ required: string[];
3508
+ };
3509
+ get schema(): {
3510
+ name: string;
3511
+ description: string;
3512
+ inputSchema: {
3513
+ type: string;
3514
+ properties: {
3515
+ workspaceId: {
3516
+ type: string;
3517
+ description: string;
3518
+ };
3519
+ id: {
3520
+ type: string;
3521
+ description: string;
3522
+ };
3523
+ protocol: {
3524
+ type: string;
3525
+ enum: string[];
3526
+ description: string;
3527
+ };
3528
+ host: {
3529
+ type: string;
3530
+ description: string;
3531
+ };
3532
+ port: {
3533
+ type: string;
3534
+ description: string;
3535
+ };
3536
+ proxyUserName: {
3537
+ type: string;
3538
+ description: string;
3539
+ };
3540
+ proxyPassword: {
3541
+ type: string;
3542
+ description: string;
3543
+ };
3544
+ ipType: {
3545
+ type: string;
3546
+ enum: string[];
3547
+ description: string;
3548
+ };
3549
+ checkChannel: {
3550
+ type: string;
3551
+ enum: string[];
3552
+ description: string;
3553
+ };
3554
+ refreshUrl: {
3555
+ type: string;
3556
+ description: string;
3557
+ };
3558
+ remark: {
3559
+ type: string;
3560
+ description: string;
3561
+ };
3562
+ };
3563
+ required: string[];
3564
+ };
3565
+ };
3566
+ handle(params: any): Promise<{
3567
+ content: {
3568
+ type: string;
3569
+ text: string;
3570
+ }[];
3571
+ }>;
3572
+ }
3573
+ declare class DeleteProxies {
3574
+ name: string;
3575
+ description: string;
3576
+ inputSchema: {
3577
+ type: string;
3578
+ properties: {
3579
+ workspaceId: {
3580
+ type: string;
3581
+ description: string;
3582
+ };
3583
+ ids: {
3584
+ type: string;
3585
+ items: {
3586
+ type: string;
3587
+ };
3588
+ description: string;
3589
+ };
3590
+ };
3591
+ required: string[];
3592
+ };
3593
+ get schema(): {
3594
+ name: string;
3595
+ description: string;
3596
+ inputSchema: {
3597
+ type: string;
3598
+ properties: {
3599
+ workspaceId: {
3600
+ type: string;
3601
+ description: string;
3602
+ };
3603
+ ids: {
3604
+ type: string;
3605
+ items: {
3606
+ type: string;
3607
+ };
3608
+ description: string;
3609
+ };
3610
+ };
3611
+ required: string[];
3612
+ };
3613
+ };
3614
+ handle(params: any): Promise<{
3615
+ content: {
3616
+ type: string;
3617
+ text: string;
3618
+ }[];
3619
+ }>;
3620
+ }
3621
+ declare const proxyList: ProxyList;
3622
+ declare const proxyStore: ProxyStore;
3623
+ declare const createProxy: CreateProxy;
3624
+ declare const batchCreateProxies: BatchCreateProxies;
3625
+ declare const detectProxy: DetectProxy;
3626
+ declare const modifyProxy: ModifyProxy;
3627
+ declare const deleteProxies: DeleteProxies;
3628
+
3629
+ declare class ListAccounts {
3630
+ name: string;
3631
+ description: string;
3632
+ inputSchema: {
3633
+ type: string;
3634
+ properties: {
3635
+ workspaceId: {
3636
+ type: string;
3637
+ description: string;
3638
+ };
3639
+ accountId: {
3640
+ type: string;
3641
+ description: string;
3642
+ };
3643
+ pageIndex: {
3644
+ type: string;
3645
+ description: string;
3646
+ default: number;
3647
+ };
3648
+ pageSize: {
3649
+ type: string;
3650
+ description: string;
3651
+ default: number;
3652
+ };
3653
+ };
3654
+ required: string[];
3655
+ };
3656
+ get schema(): {
3657
+ name: string;
3658
+ description: string;
3659
+ inputSchema: {
3660
+ type: string;
3661
+ properties: {
3662
+ workspaceId: {
3663
+ type: string;
3664
+ description: string;
3665
+ };
3666
+ accountId: {
3667
+ type: string;
3668
+ description: string;
3669
+ };
3670
+ pageIndex: {
3671
+ type: string;
3672
+ description: string;
3673
+ default: number;
3674
+ };
3675
+ pageSize: {
3676
+ type: string;
3677
+ description: string;
3678
+ default: number;
3679
+ };
3680
+ };
3681
+ required: string[];
3682
+ };
3683
+ };
3684
+ handle(params: any): Promise<{
3685
+ content: {
3686
+ type: string;
3687
+ text: string;
3688
+ }[];
3689
+ }>;
3690
+ }
3691
+ declare class CreateAccount {
3692
+ name: string;
3693
+ description: string;
3694
+ inputSchema: {
3695
+ type: string;
3696
+ properties: {
3697
+ workspaceId: {
3698
+ type: string;
3699
+ description: string;
3700
+ };
3701
+ platformUrl: {
3702
+ type: string;
3703
+ description: string;
3704
+ };
3705
+ platformUserName: {
3706
+ type: string;
3707
+ description: string;
3708
+ };
3709
+ platformPassword: {
3710
+ type: string;
3711
+ description: string;
3712
+ };
3713
+ platformEfa: {
3714
+ type: string;
3715
+ description: string;
3716
+ };
3717
+ platformCookies: {
3718
+ type: string;
3719
+ description: string;
3720
+ items: {
3721
+ type: string;
3722
+ properties: {
3723
+ name: {
3724
+ type: string;
3725
+ };
3726
+ value: {
3727
+ type: string;
3728
+ };
3729
+ domain: {
3730
+ type: string;
3731
+ };
3732
+ };
3733
+ required: string[];
3734
+ };
3735
+ };
3736
+ platformName: {
3737
+ type: string;
3738
+ description: string;
3739
+ };
3740
+ platformRemarks: {
3741
+ type: string;
3742
+ description: string;
3743
+ };
3744
+ };
3745
+ required: string[];
3746
+ };
3747
+ get schema(): {
3748
+ name: string;
3749
+ description: string;
3750
+ inputSchema: {
3751
+ type: string;
3752
+ properties: {
3753
+ workspaceId: {
3754
+ type: string;
3755
+ description: string;
3756
+ };
3757
+ platformUrl: {
3758
+ type: string;
3759
+ description: string;
3760
+ };
3761
+ platformUserName: {
3762
+ type: string;
3763
+ description: string;
3764
+ };
3765
+ platformPassword: {
3766
+ type: string;
3767
+ description: string;
3768
+ };
3769
+ platformEfa: {
3770
+ type: string;
3771
+ description: string;
3772
+ };
3773
+ platformCookies: {
3774
+ type: string;
3775
+ description: string;
3776
+ items: {
3777
+ type: string;
3778
+ properties: {
3779
+ name: {
3780
+ type: string;
3781
+ };
3782
+ value: {
3783
+ type: string;
3784
+ };
3785
+ domain: {
3786
+ type: string;
3787
+ };
3788
+ };
3789
+ required: string[];
3790
+ };
3791
+ };
3792
+ platformName: {
3793
+ type: string;
3794
+ description: string;
3795
+ };
3796
+ platformRemarks: {
3797
+ type: string;
3798
+ description: string;
3799
+ };
3800
+ };
3801
+ required: string[];
3802
+ };
3803
+ };
3804
+ handle(params: any): Promise<{
3805
+ content: {
3806
+ type: string;
3807
+ text: string;
3808
+ }[];
3809
+ }>;
3810
+ }
3811
+ declare class BatchCreateAccounts {
3812
+ name: string;
3813
+ description: string;
3814
+ inputSchema: {
3815
+ type: string;
3816
+ properties: {
3817
+ workspaceId: {
3818
+ type: string;
3819
+ description: string;
3820
+ };
3821
+ accountList: {
3822
+ type: string;
3823
+ description: string;
3824
+ items: {
3825
+ type: string;
3826
+ properties: {
3827
+ platformUrl: {
3828
+ type: string;
3829
+ };
3830
+ platformUserName: {
3831
+ type: string;
3832
+ };
3833
+ platformPassword: {
3834
+ type: string;
3835
+ };
3836
+ platformEfa: {
3837
+ type: string;
3838
+ };
3839
+ platformCookies: {
3840
+ type: string;
3841
+ items: {
3842
+ type: string;
3843
+ properties: {
3844
+ name: {
3845
+ type: string;
3846
+ };
3847
+ value: {
3848
+ type: string;
3849
+ };
3850
+ domain: {
3851
+ type: string;
3852
+ };
3853
+ };
3854
+ required: string[];
3855
+ };
3856
+ };
3857
+ platformName: {
3858
+ type: string;
3859
+ };
3860
+ platformRemarks: {
3861
+ type: string;
3862
+ };
3863
+ };
3864
+ required: string[];
3865
+ };
3866
+ };
3867
+ };
3868
+ required: string[];
3869
+ };
3870
+ get schema(): {
3871
+ name: string;
3872
+ description: string;
3873
+ inputSchema: {
3874
+ type: string;
3875
+ properties: {
3876
+ workspaceId: {
3877
+ type: string;
3878
+ description: string;
3879
+ };
3880
+ accountList: {
3881
+ type: string;
3882
+ description: string;
3883
+ items: {
3884
+ type: string;
3885
+ properties: {
3886
+ platformUrl: {
3887
+ type: string;
3888
+ };
3889
+ platformUserName: {
3890
+ type: string;
3891
+ };
3892
+ platformPassword: {
3893
+ type: string;
3894
+ };
3895
+ platformEfa: {
3896
+ type: string;
3897
+ };
3898
+ platformCookies: {
3899
+ type: string;
3900
+ items: {
3901
+ type: string;
3902
+ properties: {
3903
+ name: {
3904
+ type: string;
3905
+ };
3906
+ value: {
3907
+ type: string;
3908
+ };
3909
+ domain: {
3910
+ type: string;
3911
+ };
3912
+ };
3913
+ required: string[];
3914
+ };
3915
+ };
3916
+ platformName: {
3917
+ type: string;
3918
+ };
3919
+ platformRemarks: {
3920
+ type: string;
3921
+ };
3922
+ };
3923
+ required: string[];
3924
+ };
3925
+ };
3926
+ };
3927
+ required: string[];
3928
+ };
3929
+ };
3930
+ handle(params: any): Promise<{
3931
+ content: {
3932
+ type: string;
3933
+ text: string;
3934
+ }[];
3935
+ }>;
3936
+ }
3937
+ declare class ModifyAccount {
3938
+ name: string;
3939
+ description: string;
3940
+ inputSchema: {
3941
+ type: string;
3942
+ properties: {
3943
+ workspaceId: {
3944
+ type: string;
3945
+ description: string;
3946
+ };
3947
+ id: {
3948
+ type: string;
3949
+ description: string;
3950
+ };
3951
+ platformUrl: {
3952
+ type: string;
3953
+ description: string;
3954
+ };
3955
+ platformUserName: {
3956
+ type: string;
3957
+ description: string;
3958
+ };
3959
+ platformPassword: {
3960
+ type: string;
3961
+ description: string;
3962
+ };
3963
+ platformEfa: {
3964
+ type: string;
3965
+ description: string;
3966
+ };
3967
+ platformCookies: {
3968
+ type: string;
3969
+ description: string;
3970
+ items: {
3971
+ type: string;
3972
+ properties: {
3973
+ name: {
3974
+ type: string;
3975
+ };
3976
+ value: {
3977
+ type: string;
3978
+ };
3979
+ domain: {
3980
+ type: string;
3981
+ };
3982
+ };
3983
+ required: string[];
3984
+ };
3985
+ };
3986
+ platformName: {
3987
+ type: string;
3988
+ description: string;
3989
+ };
3990
+ platformRemarks: {
3991
+ type: string;
3992
+ description: string;
3993
+ };
3994
+ };
3995
+ required: string[];
3996
+ };
3997
+ get schema(): {
3998
+ name: string;
3999
+ description: string;
4000
+ inputSchema: {
4001
+ type: string;
4002
+ properties: {
4003
+ workspaceId: {
4004
+ type: string;
4005
+ description: string;
4006
+ };
4007
+ id: {
4008
+ type: string;
4009
+ description: string;
4010
+ };
4011
+ platformUrl: {
4012
+ type: string;
4013
+ description: string;
4014
+ };
4015
+ platformUserName: {
4016
+ type: string;
4017
+ description: string;
4018
+ };
4019
+ platformPassword: {
4020
+ type: string;
4021
+ description: string;
4022
+ };
4023
+ platformEfa: {
4024
+ type: string;
4025
+ description: string;
4026
+ };
4027
+ platformCookies: {
4028
+ type: string;
4029
+ description: string;
4030
+ items: {
4031
+ type: string;
4032
+ properties: {
4033
+ name: {
4034
+ type: string;
4035
+ };
4036
+ value: {
4037
+ type: string;
4038
+ };
4039
+ domain: {
4040
+ type: string;
4041
+ };
4042
+ };
4043
+ required: string[];
4044
+ };
4045
+ };
4046
+ platformName: {
4047
+ type: string;
4048
+ description: string;
4049
+ };
4050
+ platformRemarks: {
4051
+ type: string;
4052
+ description: string;
4053
+ };
4054
+ };
4055
+ required: string[];
4056
+ };
4057
+ };
4058
+ handle(params: any): Promise<{
4059
+ content: {
4060
+ type: string;
4061
+ text: string;
4062
+ }[];
4063
+ }>;
4064
+ }
4065
+ declare class DeleteAccounts {
4066
+ name: string;
4067
+ description: string;
4068
+ inputSchema: {
4069
+ type: string;
4070
+ properties: {
4071
+ workspaceId: {
4072
+ type: string;
4073
+ description: string;
4074
+ };
4075
+ ids: {
4076
+ type: string;
4077
+ items: {
4078
+ type: string;
4079
+ };
4080
+ description: string;
4081
+ };
4082
+ };
4083
+ required: string[];
4084
+ };
4085
+ get schema(): {
4086
+ name: string;
4087
+ description: string;
4088
+ inputSchema: {
4089
+ type: string;
4090
+ properties: {
4091
+ workspaceId: {
4092
+ type: string;
4093
+ description: string;
4094
+ };
4095
+ ids: {
4096
+ type: string;
4097
+ items: {
4098
+ type: string;
4099
+ };
4100
+ description: string;
4101
+ };
4102
+ };
4103
+ required: string[];
4104
+ };
4105
+ };
4106
+ handle(params: any): Promise<{
4107
+ content: {
4108
+ type: string;
4109
+ text: string;
4110
+ }[];
4111
+ }>;
4112
+ }
4113
+ declare const listAccounts: ListAccounts;
4114
+ declare const createAccount: CreateAccount;
4115
+ declare const batchCreateAccounts: BatchCreateAccounts;
4116
+ declare const modifyAccount: ModifyAccount;
4117
+ declare const deleteAccounts: DeleteAccounts;
4118
+
4119
+ declare class ListWorkspaces {
4120
+ name: string;
4121
+ description: string;
4122
+ inputSchema: {
4123
+ type: string;
4124
+ properties: {
4125
+ pageIndex: {
4126
+ type: string;
4127
+ description: string;
4128
+ default: number;
4129
+ };
4130
+ pageSize: {
4131
+ type: string;
4132
+ description: string;
4133
+ default: number;
4134
+ };
4135
+ };
4136
+ };
4137
+ get schema(): {
4138
+ name: string;
4139
+ description: string;
4140
+ inputSchema: {
4141
+ type: string;
4142
+ properties: {
4143
+ pageIndex: {
4144
+ type: string;
4145
+ description: string;
4146
+ default: number;
4147
+ };
4148
+ pageSize: {
4149
+ type: string;
4150
+ description: string;
4151
+ default: number;
4152
+ };
4153
+ };
4154
+ };
4155
+ };
4156
+ handle(params: any): Promise<{
4157
+ content: {
4158
+ type: string;
4159
+ text: string;
4160
+ }[];
4161
+ }>;
4162
+ }
4163
+ declare class HealthCheck {
4164
+ name: string;
4165
+ description: string;
4166
+ inputSchema: {
4167
+ type: string;
4168
+ properties: {
4169
+ includeWorkspaceCheck: {
4170
+ type: string;
4171
+ description: string;
4172
+ default: boolean;
4173
+ };
4174
+ includeBrowserCheck: {
4175
+ type: string;
4176
+ description: string;
4177
+ default: boolean;
4178
+ };
4179
+ verbose: {
4180
+ type: string;
4181
+ description: string;
4182
+ default: boolean;
4183
+ };
4184
+ };
4185
+ };
4186
+ get schema(): {
4187
+ name: string;
4188
+ description: string;
4189
+ inputSchema: {
4190
+ type: string;
4191
+ properties: {
4192
+ includeWorkspaceCheck: {
4193
+ type: string;
4194
+ description: string;
4195
+ default: boolean;
4196
+ };
4197
+ includeBrowserCheck: {
4198
+ type: string;
4199
+ description: string;
4200
+ default: boolean;
4201
+ };
4202
+ verbose: {
4203
+ type: string;
4204
+ description: string;
4205
+ default: boolean;
4206
+ };
4207
+ };
4208
+ };
4209
+ };
4210
+ handle(params: any): Promise<{
4211
+ content: {
4212
+ type: string;
4213
+ text: string;
4214
+ }[];
4215
+ }>;
4216
+ }
4217
+ declare const listWorkspaces: ListWorkspaces;
4218
+ declare const healthCheck: HealthCheck;
4219
+
4220
+ /**
4221
+ * RoxyBrowser MCP Server Types
4222
+ *
4223
+ * TypeScript type definitions for RoxyBrowser API and MCP server functionality
4224
+ */
4225
+ /** Base API response structure */
4226
+ interface RoxyApiResponse<T = unknown> {
4227
+ code: number;
4228
+ msg: string;
4229
+ data?: T;
4230
+ }
4231
+ /** Workspace project details */
4232
+ interface ProjectDetails {
4233
+ projectId: number;
4234
+ projectName: string;
4235
+ }
4236
+ /** Workspace information */
4237
+ interface Workspace {
4238
+ id: number;
4239
+ workspaceName: string;
4240
+ project_details: ProjectDetails[];
4241
+ }
4242
+ /** Paginated workspace response */
4243
+ interface WorkspaceListResponse {
4244
+ total: number;
4245
+ rows: Workspace[];
4246
+ }
4247
+ /** Browser open result (single browser) */
4248
+ interface BrowserOpenResult {
4249
+ /**
4250
+ * WebSocket CDP endpoint
4251
+ */
4252
+ ws: string;
4253
+ http: string; /**
4254
+ * HTTP endpoint
4255
+ */
4256
+ coreVersion: string; /**
4257
+ * Browser core version
4258
+ */
4259
+ driver: string; /**
4260
+ * WebDriver path
4261
+ */
4262
+ sortNum: number; /**
4263
+ * Window sort number
4264
+ */
4265
+ windowName: string; /**
4266
+ * Window name
4267
+ */
4268
+ windowRemark: string; /**
4269
+ * Window remark
4270
+ */
4271
+ pid: number; /**
4272
+ * Process ID
4273
+ */
4274
+ /**
4275
+ * Browser directory ID
4276
+ */
4277
+ dirId?: string;
4278
+ }
4279
+ /** Browser list item */
4280
+ interface BrowserListItem {
4281
+ dirId: string; /**
4282
+ * Browser directory ID
4283
+ */
4284
+ workspaceId: number; /**
4285
+ * Workspace ID
4286
+ */
4287
+ projectId: number; /**
4288
+ * Project ID
4289
+ */
4290
+ windowName: string; /**
4291
+ * Window name
4292
+ */
4293
+ windowRemark: string; /**
4294
+ * Window remark
4295
+ */
4296
+ sortNum: number; /**
4297
+ * Window sort number
4298
+ */
4299
+ os: string; /**
4300
+ * Operating system
4301
+ */
4302
+ /**
4303
+ * Browser status
4304
+ */
4305
+ status: string;
4306
+ }
4307
+ /** Paginated browser list response */
4308
+ interface BrowserListResponse {
4309
+ total: number;
4310
+ rows: BrowserListItem[];
4311
+ }
4312
+ /** Browser list query parameters */
4313
+ interface BrowserListParams {
4314
+ workspaceId: number;
4315
+ dirIds?: string; /**
4316
+ * Comma-separated browser IDs
4317
+ */
4318
+ windowName?: string; /**
4319
+ * Browser window name
4320
+ */
4321
+ sortNums?: string; /**
4322
+ * Comma-separated sort numbers
4323
+ */
4324
+ os?: string; /**
4325
+ * Operating system
4326
+ */
4327
+ projectIds?: string; /**
4328
+ * Comma-separated project IDs
4329
+ */
4330
+ windowRemark?: string; /**
4331
+ * Window remark
4332
+ */
4333
+ page_index?: number; /**
4334
+ * Page index (default: 1)
4335
+ */
4336
+ /**
4337
+ * Page size (default: 15)
4338
+ */
4339
+ page_size?: number;
4340
+ }
4341
+ /** Browser open parameters */
4342
+ interface BrowserOpenParams {
4343
+ workspaceId: number;
4344
+ dirId: string; /**
4345
+ * Browser directory ID
4346
+ */
4347
+ /**
4348
+ * Browser startup arguments
4349
+ */
4350
+ args?: string[];
4351
+ }
4352
+ /** Browser close parameters */
4353
+ interface BrowserCloseParams {
4354
+ /**
4355
+ * Browser directory ID
4356
+ */
4357
+ dirId: string;
4358
+ }
4359
+ /** Workspace list tool response */
4360
+ interface WorkspaceListToolResponse {
4361
+ workspaces: Workspace[];
4362
+ total: number;
4363
+ }
4364
+ /** Browser list tool parameters */
4365
+ interface BrowserListToolParams {
4366
+ workspaceId: number;
4367
+ projectIds?: string; /**
4368
+ * Comma-separated project IDs
4369
+ */
4370
+ windowName?: string;
4371
+ pageIndex?: number;
4372
+ pageSize?: number;
4373
+ }
4374
+ /** Browser list tool response */
4375
+ interface BrowserListToolResponse {
4376
+ browsers: BrowserListItem[];
4377
+ total: number;
4378
+ workspaceId: number;
4379
+ }
4380
+ /** Browser open tool parameters */
4381
+ interface BrowserOpenToolParams {
4382
+ workspaceId: number;
4383
+ dirIds: string[]; /**
4384
+ * Array of browser directory IDs
4385
+ */
4386
+ /**
4387
+ * Optional browser startup arguments
4388
+ */
4389
+ args?: string[];
4390
+ }
4391
+ /** Browser open tool response */
4392
+ interface BrowserOpenToolResponse {
4393
+ results: {
4394
+ dirId: string;
4395
+ ws: string; /**
4396
+ * CDP WebSocket endpoint
4397
+ */
4398
+ http: string; /**
4399
+ * HTTP endpoint
4400
+ */
4401
+ pid: number;
4402
+ success: boolean;
4403
+ error?: string;
4404
+ }[];
4405
+ total: number;
4406
+ successCount: number;
4407
+ failureCount: number;
4408
+ }
4409
+ /** Browser close tool parameters */
4410
+ interface BrowserCloseToolParams {
4411
+ /**
4412
+ * Array of browser directory IDs
4413
+ */
4414
+ dirIds: string[];
4415
+ }
4416
+ /** Browser close tool response */
4417
+ interface BrowserCloseToolResponse {
4418
+ results: {
4419
+ dirId: string;
4420
+ success: boolean;
4421
+ error?: string;
4422
+ }[];
4423
+ total: number;
4424
+ successCount: number;
4425
+ failureCount: number;
4426
+ }
4427
+ /** Browser delete tool parameters */
4428
+ interface BrowserDeleteToolParams {
4429
+ workspaceId: number; /**
4430
+ * Workspace ID
4431
+ */
4432
+ /**
4433
+ * Array of browser directory IDs to delete
4434
+ */
4435
+ dirIds: string[];
4436
+ }
4437
+ /** Browser delete tool response */
4438
+ interface BrowserDeleteToolResponse {
4439
+ results: {
4440
+ dirId: string;
4441
+ success: boolean;
4442
+ error?: string;
4443
+ }[];
4444
+ successCount: number;
4445
+ failureCount: number;
4446
+ message: string;
4447
+ }
4448
+ /** RoxyBrowser client configuration */
4449
+ interface RoxyClientConfig$1 {
4450
+ apiHost: string; /**
4451
+ * RoxyBrowser API host (default: http://127.0.0.1:50000)
4452
+ */
4453
+ apiKey: string; /**
4454
+ * RoxyBrowser API key
4455
+ */
4456
+ /**
4457
+ * Request timeout in milliseconds (default: 30000)
4458
+ */
4459
+ timeout?: number;
4460
+ }
4461
+ /** Browser operating system types */
4462
+ type BrowserOS = 'Windows' | 'macOS' | 'Linux' | 'IOS' | 'Android';
4463
+ /** Browser core versions */
4464
+ type CoreVersion = '140' | '138' | '137' | '136' | '135' | '133' | '130' | '125' | '117' | '109';
4465
+ /** Latest/recommended browser core version */
4466
+ declare const LATEST_CORE_VERSION: CoreVersion;
4467
+ /** Search engine options */
4468
+ type SearchEngine = 'Google' | 'Microsoft Bing' | 'Yahoo' | 'Yandex' | 'DuckDuckGo';
4469
+ /** Window platform information */
4470
+ interface WindowPlatformInfo {
4471
+ platformUrl?: string; /**
4472
+ * Business platform URL
4473
+ */
4474
+ platformUserName?: string; /**
4475
+ * Platform account
4476
+ */
4477
+ platformPassword?: string; /**
4478
+ * Platform password
4479
+ */
4480
+ platformEfa?: string; /**
4481
+ * EFA value
4482
+ */
4483
+ /**
4484
+ * Platform remarks
4485
+ */
4486
+ platformRemarks?: string;
4487
+ }
4488
+ /** Proxy configuration details */
4489
+ interface ProxyInfo {
4490
+ proxyMethod?: 'custom' | 'choose' | 'api'; /**
4491
+ * Proxy method
4492
+ */
4493
+ proxyCategory?: 'noproxy' | 'HTTP' | 'HTTPS' | 'SOCKS5' | 'SSH'; /**
4494
+ * Proxy type
4495
+ */
4496
+ ipType?: 'IPV4' | 'IPV6'; /**
4497
+ * Network protocol
4498
+ */
4499
+ protocol?: 'HTTP' | 'HTTPS' | 'SOCKS5'; /**
4500
+ * Proxy protocol
4501
+ */
4502
+ host?: string; /**
4503
+ * Proxy host
4504
+ */
4505
+ port?: string; /**
4506
+ * Proxy port
4507
+ */
4508
+ proxyUserName?: string; /**
4509
+ * Proxy username
4510
+ */
4511
+ proxyPassword?: string; /**
4512
+ * Proxy password
4513
+ */
4514
+ refreshUrl?: string; /**
4515
+ * Refresh URL
4516
+ */
4517
+ /**
4518
+ * IP query channel
4519
+ */
4520
+ checkChannel?: 'IPRust.io' | 'IP-API' | 'IP123.in';
4521
+ }
4522
+ /** Fingerprint configuration */
4523
+ interface FingerInfo {
4524
+ /**
4525
+ * Language settings
4526
+ */
4527
+ isLanguageBaseIp?: boolean; /**
4528
+ * Follow IP matching for browser language
4529
+ */
4530
+ language?: string; /**
4531
+ * Custom browser language
4532
+ */
4533
+ isDisplayLanguageBaseIp?: boolean; /**
4534
+ * Follow IP matching for display language
4535
+ */
4536
+ /**
4537
+ * Custom display language
4538
+ */
4539
+ displayLanguage?: string;
4540
+ /**
4541
+ * Location and timezone
4542
+ */
4543
+ isTimeZone?: boolean; /**
4544
+ * Follow IP matching for timezone
4545
+ */
4546
+ timeZone?: string; /**
4547
+ * Custom timezone
4548
+ */
4549
+ position?: 0 | 1 | 2; /**
4550
+ * Geolocation prompt: 0=ask, 1=allow, 2=deny
4551
+ */
4552
+ isPositionBaseIp?: boolean; /**
4553
+ * Follow IP matching for geolocation
4554
+ */
4555
+ longitude?: string; /**
4556
+ * Custom longitude
4557
+ */
4558
+ latitude?: string; /**
4559
+ * Custom latitude
4560
+ */
4561
+ /**
4562
+ * Precision in meters
4563
+ */
4564
+ precisionPos?: string;
4565
+ /**
4566
+ * Media settings
4567
+ */
4568
+ forbidAudio?: boolean; /**
4569
+ * Enable/disable sound
4570
+ */
4571
+ forbidImage?: boolean; /**
4572
+ * Enable/disable image loading
4573
+ */
4574
+ /**
4575
+ * Enable/disable video playback
4576
+ */
4577
+ forbidMedia?: boolean;
4578
+ /**
4579
+ * Window settings
4580
+ */
4581
+ openWidth?: string; /**
4582
+ * Window width
4583
+ */
4584
+ openHeight?: string; /**
4585
+ * Window height
4586
+ */
4587
+ openBookmarks?: boolean; /**
4588
+ * Enable bookmarks
4589
+ */
4590
+ positionSwitch?: boolean; /**
4591
+ * Window position switch
4592
+ */
4593
+ windowRatioPosition?: string; /**
4594
+ * Window position ratio
4595
+ */
4596
+ /**
4597
+ * Show window name in title bar
4598
+ */
4599
+ isDisplayName?: boolean;
4600
+ /**
4601
+ * Sync settings
4602
+ */
4603
+ syncBookmark?: boolean; /**
4604
+ * Sync bookmarks
4605
+ */
4606
+ syncHistory?: boolean; /**
4607
+ * Sync history
4608
+ */
4609
+ syncTab?: boolean; /**
4610
+ * Sync tabs
4611
+ */
4612
+ syncCookie?: boolean; /**
4613
+ * Sync cookies
4614
+ */
4615
+ syncExtensions?: boolean; /**
4616
+ * Sync extensions
4617
+ */
4618
+ syncPassword?: boolean; /**
4619
+ * Sync saved passwords
4620
+ */
4621
+ syncIndexedDb?: boolean; /**
4622
+ * Sync IndexedDB
4623
+ */
4624
+ /**
4625
+ * Sync LocalStorage
4626
+ */
4627
+ syncLocalStorage?: boolean;
4628
+ /**
4629
+ * Cleanup settings
4630
+ */
4631
+ clearCacheFile?: boolean; /**
4632
+ * Clear cache files on startup
4633
+ */
4634
+ clearCookie?: boolean; /**
4635
+ * Clear cookies on startup
4636
+ */
4637
+ /**
4638
+ * Clear LocalStorage on startup
4639
+ */
4640
+ clearLocalStorage?: boolean;
4641
+ /**
4642
+ * Advanced settings
4643
+ */
4644
+ randomFingerprint?: boolean; /**
4645
+ * Generate random fingerprint
4646
+ */
4647
+ forbidSavePassword?: boolean; /**
4648
+ * Disable password save prompts
4649
+ */
4650
+ stopOpenNet?: boolean; /**
4651
+ * Stop opening if network fails
4652
+ */
4653
+ stopOpenIP?: boolean; /**
4654
+ * Stop opening if IP changes
4655
+ */
4656
+ stopOpenPosition?: boolean; /**
4657
+ * Stop opening if IP location changes
4658
+ */
4659
+ /**
4660
+ * Open workbench: 0=close, 1=open, 2=follow app
4661
+ */
4662
+ openWorkbench?: 0 | 1 | 2;
4663
+ /**
4664
+ * Display settings
4665
+ */
4666
+ resolutionType?: boolean; /**
4667
+ * Custom resolution vs follow system
4668
+ */
4669
+ resolutionX?: string; /**
4670
+ * Custom resolution width
4671
+ */
4672
+ resolutionY?: string; /**
4673
+ * Custom resolution height
4674
+ */
4675
+ /**
4676
+ * Random fonts vs system fonts
4677
+ */
4678
+ fontType?: boolean;
4679
+ /**
4680
+ * Browser fingerprint settings
4681
+ */
4682
+ webRTC?: 0 | 1 | 2; /**
4683
+ * WebRTC: 0=replace, 1=real, 2=disable
4684
+ */
4685
+ webGL?: boolean; /**
4686
+ * WebGL: random vs real
4687
+ */
4688
+ webGLInfo?: boolean; /**
4689
+ * WebGL info: custom vs real
4690
+ */
4691
+ webGLManufacturer?: string; /**
4692
+ * Custom WebGL manufacturer
4693
+ */
4694
+ webGLRender?: string; /**
4695
+ * Custom WebGL renderer
4696
+ */
4697
+ webGpu?: 'webgl' | 'real' | 'block'; /**
4698
+ * WebGPU setting
4699
+ */
4700
+ canvas?: boolean; /**
4701
+ * Canvas: random vs real
4702
+ */
4703
+ audioContext?: boolean; /**
4704
+ * AudioContext: random vs real
4705
+ */
4706
+ speechVoices?: boolean; /**
4707
+ * Speech Voices: random vs real
4708
+ */
4709
+ doNotTrack?: boolean; /**
4710
+ * Enable Do Not Track
4711
+ */
4712
+ clientRects?: boolean; /**
4713
+ * ClientRects: random vs real
4714
+ */
4715
+ deviceInfo?: boolean; /**
4716
+ * Media devices: random vs real
4717
+ */
4718
+ deviceNameSwitch?: boolean; /**
4719
+ * Device names: random vs real
4720
+ */
4721
+ macInfo?: boolean; /**
4722
+ * MAC address: custom vs real
4723
+ */
4724
+ hardwareConcurrent?: string; /**
4725
+ * Hardware concurrency
4726
+ */
4727
+ deviceMemory?: string; /**
4728
+ * Device memory
4729
+ */
4730
+ disableSsl?: boolean; /**
4731
+ * SSL fingerprint settings
4732
+ */
4733
+ disableSslList?: string[]; /**
4734
+ * SSL feature list
4735
+ */
4736
+ portScanProtect?: boolean; /**
4737
+ * Port scan protection
4738
+ */
4739
+ portScanList?: string; /**
4740
+ * Port scan whitelist
4741
+ */
4742
+ useGpu?: boolean; /**
4743
+ * Use GPU acceleration
4744
+ */
4745
+ sandboxPermission?: boolean; /**
4746
+ * Disable sandbox
4747
+ */
4748
+ /**
4749
+ * Browser startup parameters
4750
+ */
4751
+ startupParam?: string;
4752
+ }
4753
+ /** Complete browser creation configuration */
4754
+ interface BrowserCreateConfig {
4755
+ workspaceId: number; /**
4756
+ * Required: Workspace ID
4757
+ */
4758
+ windowName?: string; /**
4759
+ * Window name
4760
+ */
4761
+ coreVersion?: CoreVersion; /**
4762
+ * Browser core version
4763
+ */
4764
+ os?: BrowserOS; /**
4765
+ * Operating system
4766
+ */
4767
+ osVersion?: string; /**
4768
+ * OS version
4769
+ */
4770
+ userAgent?: string; /**
4771
+ * Custom user agent
4772
+ */
4773
+ cookie?: unknown[]; /**
4774
+ * Cookie list
4775
+ */
4776
+ searchEngine?: SearchEngine; /**
4777
+ * Default search engine
4778
+ */
4779
+ labelIds?: number[]; /**
4780
+ * Label IDs
4781
+ */
4782
+ windowPlatformList?: WindowPlatformInfo[]; /**
4783
+ * Platform account info
4784
+ */
4785
+ defaultOpenUrl?: string[]; /**
4786
+ * Default URLs to open
4787
+ */
4788
+ windowRemark?: string; /**
4789
+ * Window remarks
4790
+ */
4791
+ projectId?: number; /**
4792
+ * Project ID
4793
+ */
4794
+ proxyInfo?: ProxyInfo; /**
4795
+ * Proxy configuration
4796
+ */
4797
+ /**
4798
+ * Fingerprint configuration
4799
+ */
4800
+ fingerInfo?: FingerInfo;
4801
+ }
4802
+ /** Simple browser creation parameters - for most common use cases */
4803
+ interface BrowserCreateSimpleParams {
4804
+ workspaceId: number; /**
4805
+ * Required: Workspace ID
4806
+ */
4807
+ windowName?: string; /**
4808
+ * Window name
4809
+ */
4810
+ projectId?: number; /**
4811
+ * Project ID
4812
+ */
4813
+ windowRemark?: string; /**
4814
+ * Window remarks
4815
+ */
4816
+ proxyHost?: string; /**
4817
+ * Simple proxy host
4818
+ */
4819
+ proxyPort?: string; /**
4820
+ * Simple proxy port
4821
+ */
4822
+ proxyUserName?: string; /**
4823
+ * Simple proxy username
4824
+ */
4825
+ proxyPassword?: string; /**
4826
+ * Simple proxy password
4827
+ */
4828
+ /**
4829
+ * Simple proxy type
4830
+ */
4831
+ proxyType?: 'HTTP' | 'HTTPS' | 'SOCKS5';
4832
+ }
4833
+ /** Standard browser creation parameters - covers 80% of use cases */
4834
+ interface BrowserCreateStandardParams {
4835
+ workspaceId: number; /**
4836
+ * Required: Workspace ID
4837
+ */
4838
+ windowName?: string; /**
4839
+ * Window name
4840
+ */
4841
+ projectId?: number; /**
4842
+ * Project ID
4843
+ */
4844
+ windowRemark?: string; /**
4845
+ * Window remarks
4846
+ */
4847
+ os?: BrowserOS; /**
4848
+ * Operating system
4849
+ */
4850
+ osVersion?: string; /**
4851
+ * OS version
4852
+ */
4853
+ coreVersion?: CoreVersion; /**
4854
+ * Browser core version
4855
+ */
4856
+ proxyInfo?: ProxyInfo; /**
4857
+ * Complete proxy configuration
4858
+ */
4859
+ openWidth?: string; /**
4860
+ * Window width
4861
+ */
4862
+ openHeight?: string; /**
4863
+ * Window height
4864
+ */
4865
+ language?: string; /**
4866
+ * Browser language
4867
+ */
4868
+ timeZone?: string; /**
4869
+ * Timezone
4870
+ */
4871
+ /**
4872
+ * Default URLs
4873
+ */
4874
+ defaultOpenUrl?: string[];
4875
+ }
4876
+ /** Advanced browser creation parameters - full control */
4877
+ interface BrowserCreateAdvancedParams extends BrowserCreateConfig {
4878
+ }
4879
+ /** Browser creation result */
4880
+ interface BrowserCreateResult {
4881
+ dirId: string; /**
4882
+ * Browser directory ID
4883
+ */
4884
+ windowName: string; /**
4885
+ * Window name
4886
+ */
4887
+ success: boolean; /**
4888
+ * Creation success
4889
+ */
4890
+ /**
4891
+ * Error message if failed
4892
+ */
4893
+ error?: string;
4894
+ }
4895
+ /** Batch browser creation result */
4896
+ interface BrowserCreateBatchResult {
4897
+ results: BrowserCreateResult[]; /**
4898
+ * Individual results
4899
+ */
4900
+ successCount: number; /**
4901
+ * Number of successful creations
4902
+ */
4903
+ failureCount: number; /**
4904
+ * Number of failed creations
4905
+ */
4906
+ /**
4907
+ * Total attempts
4908
+ */
4909
+ total: number;
4910
+ }
4911
+ /** Simple browser creation tool response */
4912
+ interface BrowserCreateSimpleResponse {
4913
+ browser: {
4914
+ dirId: string;
4915
+ windowName: string;
4916
+ workspaceId: number;
4917
+ projectId?: number;
4918
+ proxyConfigured: boolean;
4919
+ };
4920
+ message: string;
4921
+ }
4922
+ /** Standard browser creation tool response */
4923
+ interface BrowserCreateStandardResponse {
4924
+ browser: {
4925
+ dirId: string;
4926
+ windowName: string;
4927
+ workspaceId: number;
4928
+ projectId?: number;
4929
+ os: string;
4930
+ coreVersion: string;
4931
+ proxyInfo?: ProxyInfo;
4932
+ windowSize: string;
4933
+ };
4934
+ message: string;
4935
+ }
4936
+ /** Advanced browser creation tool response */
4937
+ interface BrowserCreateAdvancedResponse {
4938
+ browser: {
4939
+ dirId: string;
4940
+ config: BrowserCreateConfig;
4941
+ };
4942
+ message: string;
4943
+ }
4944
+ /** RoxyBrowser API error codes mapping */
4945
+ declare enum RoxyApiErrorCode {
4946
+ SUCCESS = 0,// 成功
4947
+ INSUFFICIENT_QUOTA = 101,// 窗口额度不足
4948
+ INVALID_PARAMS = 400,// 参数错误
4949
+ UNAUTHORIZED = 401,// 认证失败
4950
+ FORBIDDEN = 403,// 权限不足
4951
+ NOT_FOUND = 404,// 资源不存在
4952
+ TIMEOUT = 408,// 请求超时
4953
+ CONFLICT = 409,// 资源冲突
4954
+ SERVER_ERROR = 500,// 服务器内部错误
4955
+ BAD_GATEWAY = 502,// 网关错误
4956
+ SERVICE_UNAVAILABLE = 503,// 服务不可用
4957
+ GATEWAY_TIMEOUT = 504
4958
+ }
4959
+ /** Error information with troubleshooting guidance */
4960
+ interface ErrorInfo {
4961
+ code: number;
4962
+ name: string;
4963
+ description: string;
4964
+ chineseMsg: string;
4965
+ englishMsg: string;
4966
+ category: 'network' | 'authentication' | 'configuration' | 'resource' | 'server' | 'browser' | 'proxy';
4967
+ severity: 'low' | 'medium' | 'high' | 'critical';
4968
+ troubleshooting: string[];
4969
+ autoRecoverable: boolean;
4970
+ retryable: boolean;
4971
+ }
4972
+ /** Error mapping for RoxyBrowser API */
4973
+ declare const ROXY_ERROR_MAP: Record<number, ErrorInfo>;
4974
+ /** Network error patterns and their solutions */
4975
+ declare const NETWORK_ERROR_PATTERNS: Array<{
4976
+ pattern: RegExp;
4977
+ category: string;
4978
+ description: string;
4979
+ troubleshooting: string[];
4980
+ }>;
4981
+ /** Enhanced RoxyBrowser API error */
4982
+ declare class RoxyApiError extends Error {
4983
+ code: number;
4984
+ response?: unknown | undefined;
4985
+ originalError?: Error | undefined;
4986
+ readonly errorInfo?: ErrorInfo;
4987
+ readonly troubleshooting: string[];
4988
+ readonly category: string;
4989
+ readonly severity: string;
4990
+ readonly retryable: boolean;
4991
+ constructor(message: string, code: number, response?: unknown | undefined, originalError?: Error | undefined);
4992
+ /** Get user-friendly error explanation */
4993
+ getExplanation(): string;
4994
+ /** Get troubleshooting steps */
4995
+ getTroubleshootingSteps(): string[];
4996
+ /** Check if error is retryable */
4997
+ isRetryable(): boolean;
4998
+ /** Get retry strategy */
4999
+ getRetryStrategy(): {
5000
+ shouldRetry: boolean;
5001
+ delayMs: number;
5002
+ maxRetries: number;
5003
+ };
5004
+ }
5005
+ /** Configuration error */
5006
+ declare class ConfigError extends Error {
5007
+ constructor(message: string);
5008
+ }
5009
+ /** Browser creation error */
5010
+ declare class BrowserCreationError extends Error {
5011
+ failedConfigs?: Partial<BrowserCreateConfig>[] | undefined;
5012
+ partialResults?: BrowserCreateResult[] | undefined;
5013
+ constructor(message: string, failedConfigs?: Partial<BrowserCreateConfig>[] | undefined, partialResults?: BrowserCreateResult[] | undefined);
5014
+ }
5015
+ /** Account item */
5016
+ interface AccountItem {
5017
+ id: number; /**
5018
+ * Account ID
5019
+ */
5020
+ platformUrl: string; /**
5021
+ * Business platform URL
5022
+ */
5023
+ platformUserName: string; /**
5024
+ * Account username
5025
+ */
5026
+ platformPassword: string; /**
5027
+ * Account password
5028
+ */
5029
+ platformEfa: string; /**
5030
+ * Account EFA
5031
+ */
5032
+ platformCookies: Array<{
5033
+ name: string;
5034
+ value: string;
5035
+ domain: string;
5036
+ }>;
5037
+ platformName: string; /**
5038
+ * Platform name
5039
+ */
5040
+ platformRemarks: string; /**
5041
+ * Platform remarks
5042
+ */
5043
+ createTime: string; /**
5044
+ * Create time
5045
+ */
5046
+ /**
5047
+ * Update time
5048
+ */
5049
+ updateTime: string;
5050
+ }
5051
+ /** Paginated account list response */
5052
+ interface AccountListResponse {
5053
+ total: number;
5054
+ rows: AccountItem[];
5055
+ }
5056
+ /** Account list query parameters */
5057
+ interface AccountListParams {
5058
+ workspaceId: number;
5059
+ accountId?: number;
5060
+ page_index?: number;
5061
+ page_size?: number;
5062
+ }
5063
+ /** Account create parameters */
5064
+ interface AccountCreateParams {
5065
+ workspaceId: number;
5066
+ /**
5067
+ * Business platform URL (required)
5068
+ */
5069
+ platformUrl: string;
5070
+ /**
5071
+ * Account username (required)
5072
+ */
5073
+ platformUserName: string;
5074
+ /**
5075
+ * Account password (required)
5076
+ */
5077
+ platformPassword: string;
5078
+ /**
5079
+ * Account EFA (optional)
5080
+ */
5081
+ platformEfa?: string;
5082
+ /**
5083
+ * Account cookies (optional)
5084
+ */
5085
+ platformCookies?: Array<{
5086
+ name: string;
5087
+ value: string;
5088
+ domain: string;
5089
+ }>;
5090
+ /**
5091
+ * Platform name (optional)
5092
+ */
5093
+ platformName?: string;
5094
+ /**
5095
+ * Platform remarks/notes (optional)
5096
+ */
5097
+ platformRemarks?: string;
5098
+ }
5099
+ /** Account modify parameters (same as create but with id) */
5100
+ interface AccountModifyParams extends AccountCreateParams {
5101
+ /**
5102
+ * Account ID (required for modify)
5103
+ */
5104
+ id: number;
5105
+ }
5106
+ /** Account delete parameters */
5107
+ interface AccountDeleteParams {
5108
+ workspaceId: number;
5109
+ /**
5110
+ * Array of account IDs to delete
5111
+ */
5112
+ ids: number[];
5113
+ }
5114
+ /** Batch create account parameters */
5115
+ interface AccountBatchCreateParams {
5116
+ workspaceId: number;
5117
+ /**
5118
+ * Array of account configurations
5119
+ */
5120
+ accountList: AccountCreateParams[];
5121
+ }
5122
+ /** Label item */
5123
+ interface LabelItem {
5124
+ id: number; /**
5125
+ * Label ID
5126
+ */
5127
+ color: string; /**
5128
+ * Label color
5129
+ */
5130
+ /**
5131
+ * Label name
5132
+ */
5133
+ name: string;
5134
+ }
5135
+ /** Label list response */
5136
+ interface LabelListResponse {
5137
+ labels: LabelItem[];
5138
+ }
5139
+ /** Connection info item for opened browser */
5140
+ interface ConnectionInfoItem {
5141
+ ws: string; /**
5142
+ * WebSocket endpoint for automation tools
5143
+ */
5144
+ http: string; /**
5145
+ * HTTP endpoint for automation tools
5146
+ */
5147
+ coreVersion: string; /**
5148
+ * Core version
5149
+ */
5150
+ driver: string; /**
5151
+ * WebDriver path for automation tools
5152
+ */
5153
+ sortNum: number; /**
5154
+ * Window sort number
5155
+ */
5156
+ windowName: string; /**
5157
+ * Window name
5158
+ */
5159
+ windowRemark: string; /**
5160
+ * Window remark
5161
+ */
5162
+ pid: number; /**
5163
+ * Process ID
5164
+ */
5165
+ /**
5166
+ * Browser directory ID
5167
+ */
5168
+ dirId: string;
5169
+ }
5170
+ /** Connection info response */
5171
+ interface ConnectionInfoResponse {
5172
+ connections: ConnectionInfoItem[];
5173
+ }
5174
+ /** Browser update parameters (same as create but with dirId) */
5175
+ interface BrowserUpdateParams extends BrowserCreateConfig {
5176
+ /**
5177
+ * Browser directory ID (required for update)
5178
+ */
5179
+ dirId: string;
5180
+ }
5181
+ /** Local cache clear parameters */
5182
+ interface ClearLocalCacheParams {
5183
+ /**
5184
+ * Array of browser directory IDs
5185
+ */
5186
+ dirIds: string[];
5187
+ }
5188
+ /** Server cache clear parameters */
5189
+ interface ClearServerCacheParams {
5190
+ workspaceId: number;
5191
+ /**
5192
+ * Array of browser directory IDs
5193
+ */
5194
+ dirIds: string[];
5195
+ }
5196
+ /** Random fingerprint parameters */
5197
+ interface RandomFingerprintParams {
5198
+ workspaceId: number;
5199
+ /**
5200
+ * Browser directory ID
5201
+ */
5202
+ dirId: string;
5203
+ }
5204
+ /** Proxy list item */
5205
+ interface ProxyListItem {
5206
+ id?: number;
5207
+ /**
5208
+ * Proxy check status: 0=未检测, 1=检测成功, 2=检测失败
5209
+ */
5210
+ checkStatus?: number;
5211
+ /**
5212
+ * IP detection channel
5213
+ */
5214
+ checkChannel?: string;
5215
+ /**
5216
+ * IP detection channel value
5217
+ */
5218
+ checkChannelValue?: string;
5219
+ /**
5220
+ * Last detected IP address
5221
+ */
5222
+ lastIp?: string;
5223
+ /**
5224
+ * Last detected country
5225
+ */
5226
+ lastCountry?: string;
5227
+ /**
5228
+ * Last detected state/region
5229
+ */
5230
+ lastState?: string;
5231
+ /**
5232
+ * Last detected city
5233
+ */
5234
+ lastCity?: string;
5235
+ /**
5236
+ * IP type: IPV4 or IPV6
5237
+ */
5238
+ ipType?: string;
5239
+ /**
5240
+ * Proxy protocol: HTTP, HTTPS, SOCKS5, SSH
5241
+ */
5242
+ protocol?: string;
5243
+ /**
5244
+ * Proxy host/IP address
5245
+ */
5246
+ host?: string;
5247
+ /**
5248
+ * Proxy port
5249
+ */
5250
+ port?: string;
5251
+ /**
5252
+ * Proxy username
5253
+ */
5254
+ proxyUserName?: string;
5255
+ /**
5256
+ * Proxy password
5257
+ */
5258
+ proxyPassword?: string;
5259
+ /**
5260
+ * Refresh URL for dynamic proxies
5261
+ */
5262
+ refreshUrl?: string;
5263
+ /**
5264
+ * Proxy remark/notes
5265
+ */
5266
+ remark?: string;
5267
+ /**
5268
+ * Last check time
5269
+ */
5270
+ checkTime?: string;
5271
+ /**
5272
+ * Create time
5273
+ */
5274
+ createTime?: string;
5275
+ /**
5276
+ * Update time
5277
+ */
5278
+ updateTime?: string;
5279
+ /**
5280
+ * Timezone
5281
+ */
5282
+ timezone?: string;
5283
+ /**
5284
+ * Error information if check failed
5285
+ */
5286
+ error?: any;
5287
+ }
5288
+ /** Paginated proxy list response */
5289
+ interface ProxyListResponse {
5290
+ total: number;
5291
+ rows: ProxyListItem[];
5292
+ }
5293
+ /** Proxy list query parameters */
5294
+ interface ProxyListParams {
5295
+ workspaceId: number;
5296
+ id?: number;
5297
+ page_index?: number;
5298
+ page_size?: number;
5299
+ [key: string]: any;
5300
+ }
5301
+ /** Proxy create parameters */
5302
+ interface ProxyCreateParams {
5303
+ workspaceId: number;
5304
+ /**
5305
+ * Proxy protocol: HTTP, HTTPS, SOCKS5, SSH
5306
+ */
5307
+ protocol?: string;
5308
+ /**
5309
+ * Proxy host/IP address
5310
+ */
5311
+ host?: string;
5312
+ /**
5313
+ * Proxy port
5314
+ */
5315
+ port?: string;
5316
+ /**
5317
+ * Proxy username
5318
+ */
5319
+ proxyUserName?: string;
5320
+ /**
5321
+ * Proxy password
5322
+ */
5323
+ proxyPassword?: string;
5324
+ /**
5325
+ * IP type: IPV4 or IPV6
5326
+ */
5327
+ ipType?: string;
5328
+ /**
5329
+ * IP detection channel: IPRust.io, IP-API, IP123.in
5330
+ */
5331
+ checkChannel?: string;
5332
+ /**
5333
+ * Refresh URL for dynamic proxies
5334
+ */
5335
+ refreshUrl?: string;
5336
+ /**
5337
+ * Proxy remark/notes
5338
+ */
5339
+ remark?: string;
5340
+ /**
5341
+ * Proxy category (same as protocol)
5342
+ */
5343
+ proxyCategory?: string;
5344
+ [key: string]: any;
5345
+ }
5346
+ /** Proxy modify parameters (same as create but with id) */
5347
+ interface ProxyModifyParams extends ProxyCreateParams {
5348
+ /**
5349
+ * Proxy ID (required for modify)
5350
+ */
5351
+ id: number;
5352
+ }
5353
+ /** Proxy detect parameters */
5354
+ interface ProxyDetectParams {
5355
+ workspaceId: number;
5356
+ /**
5357
+ * Proxy ID to detect
5358
+ */
5359
+ id: number;
5360
+ }
5361
+ /** Proxy delete parameters */
5362
+ interface ProxyDeleteParams {
5363
+ workspaceId: number;
5364
+ /**
5365
+ * Array of proxy IDs to delete
5366
+ */
5367
+ ids: number[];
5368
+ }
5369
+ /** Batch create proxy parameters */
5370
+ interface ProxyBatchCreateParams {
5371
+ workspaceId: number;
5372
+ /**
5373
+ * Default check channel for all proxies
5374
+ */
5375
+ checkChannel?: string;
5376
+ /**
5377
+ * Array of proxy configurations
5378
+ */
5379
+ proxyList: ProxyCreateParams[];
5380
+ }
5381
+ /** Detect channel item */
5382
+ interface DetectChannelItem {
5383
+ label: string;
5384
+ value: string;
5385
+ }
5386
+ /** Detect channel response */
5387
+ interface DetectChannelResponse {
5388
+ checkChannel: DetectChannelItem[];
5389
+ }
5390
+ interface BoughtProxyListItem {
5391
+ id: number;
5392
+ orderNo: string;
5393
+ checkStatus: number;
5394
+ proxyCheckChannel: string;
5395
+ checkChannelValue: string;
5396
+ lastIp: string;
5397
+ lastCountry: string;
5398
+ lastState: string;
5399
+ lastCity: string;
5400
+ proxyProviderName: string;
5401
+ providerType: string;
5402
+ ipType: string;
5403
+ protocol: string;
5404
+ host: string;
5405
+ port: string;
5406
+ proxyUserName: string;
5407
+ proxyPassword: string;
5408
+ remark: string;
5409
+ checkTime: string;
5410
+ createTime: string;
5411
+ updateTime: string;
5412
+ expireDate: string;
5413
+ }
5414
+
5415
+ /**
5416
+ * Configuration and HTTP client for RoxyBrowser API.
5417
+ *
5418
+ * Config is fixed at process start: environment variables (ROXY_API_HOST, ROXY_API_KEY, ROXY_TIMEOUT) + defaults.
5419
+ * CLI writes parsed args into process.env before starting the server, so CLI args take effect the same way.
5420
+ */
5421
+
5422
+ interface RoxyClientConfig {
5423
+ /** RoxyBrowser API base URL */
5424
+ apiHost: string;
5425
+ /** API key (required for requests) */
5426
+ apiKey: string;
5427
+ /** Request timeout in milliseconds */
5428
+ timeout: number;
5429
+ }
5430
+ /** Default values when env is not set */
5431
+ declare const DEFAULT_CONFIG: {
5432
+ readonly apiHost: "http://127.0.0.1:50000";
5433
+ readonly timeout: 30000;
5434
+ };
5435
+ /**
5436
+ * Resolve config from env + defaults (read-only; no runtime override).
5437
+ */
5438
+ declare function resolveConfig(): RoxyClientConfig;
5439
+ declare function request<T = any>(endpoint: string, options?: RequestInit): Promise<{
5440
+ code: number;
5441
+ msg: string;
5442
+ data?: T;
5443
+ }>;
5444
+
5445
+ /**
5446
+ * RoxyBrowser MCP Server
5447
+ *
5448
+ * Model Context Protocol server for RoxyBrowser automation.
5449
+ * Supports: CLI startup, programmatic (in-process) startup, and library usage for secondary development.
5450
+ */
5451
+ declare const TOOLS: ({
5452
+ name: string;
5453
+ description: string;
5454
+ inputSchema: {
5455
+ type: string;
5456
+ properties: {
5457
+ browsers: {
5458
+ type: string;
5459
+ description: string;
5460
+ items: {
5461
+ type: string;
5462
+ properties: {
5463
+ workspaceId: {
5464
+ type: string;
5465
+ description: string;
5466
+ };
5467
+ windowName: {
5468
+ type: string;
5469
+ description: string;
5470
+ };
5471
+ coreVersion: {
5472
+ type: string;
5473
+ enum: string[];
5474
+ description: string;
5475
+ };
5476
+ os: {
5477
+ type: string;
5478
+ enum: string[];
5479
+ description: string;
5480
+ };
5481
+ osVersion: {
5482
+ type: string;
5483
+ description: string;
5484
+ };
5485
+ userAgent: {
5486
+ type: string;
5487
+ description: string;
5488
+ };
5489
+ cookie: {
5490
+ type: string;
5491
+ description: string;
5492
+ items: {
5493
+ type: string;
5494
+ };
5495
+ };
5496
+ searchEngine: {
5497
+ type: string;
5498
+ enum: string[];
5499
+ description: string;
5500
+ };
5501
+ labelIds: {
5502
+ type: string;
5503
+ items: {
5504
+ type: string;
5505
+ };
5506
+ description: string;
5507
+ };
5508
+ defaultOpenUrl: {
5509
+ type: string;
5510
+ items: {
5511
+ type: string;
5512
+ };
5513
+ description: string;
5514
+ };
5515
+ windowRemark: {
5516
+ type: string;
5517
+ description: string;
5518
+ };
5519
+ projectId: {
5520
+ type: string;
5521
+ description: string;
5522
+ };
5523
+ windowPlatformList: {
5524
+ type: string;
5525
+ items: {
5526
+ type: string;
5527
+ properties: {
5528
+ id: {
5529
+ type: string;
5530
+ description: string;
5531
+ };
5532
+ platformUrl: {
5533
+ type: string;
5534
+ description: string;
5535
+ };
5536
+ platformUserName: {
5537
+ type: string;
5538
+ description: string;
5539
+ };
5540
+ platformPassword: {
5541
+ type: string;
5542
+ description: string;
5543
+ };
5544
+ platformEfa: {
5545
+ type: string;
5546
+ description: string;
5547
+ };
5548
+ platformRemarks: {
5549
+ type: string;
5550
+ description: string;
5551
+ };
5552
+ };
5553
+ };
5554
+ description: string;
5555
+ };
5556
+ proxyInfo: {
5557
+ type: string;
5558
+ description: string;
5559
+ properties: {
5560
+ moduleId: {
5561
+ type: string;
5562
+ description: string;
5563
+ };
5564
+ proxyMethod: {
5565
+ type: string;
5566
+ enum: string[];
5567
+ };
5568
+ proxyCategory: {
5569
+ type: string;
5570
+ enum: string[];
5571
+ };
5572
+ ipType: {
5573
+ type: string;
5574
+ enum: string[];
5575
+ };
5576
+ protocol: {
5577
+ type: string;
5578
+ enum: string[];
5579
+ };
5580
+ host: {
5581
+ type: string;
5582
+ };
5583
+ port: {
5584
+ type: string;
5585
+ };
5586
+ proxyUserName: {
5587
+ type: string;
5588
+ };
5589
+ proxyPassword: {
5590
+ type: string;
5591
+ };
5592
+ refreshUrl: {
5593
+ type: string;
5594
+ };
5595
+ checkChannel: {
5596
+ type: string;
5597
+ enum: string[];
5598
+ };
5599
+ };
5600
+ };
5601
+ fingerInfo: {
5602
+ type: string;
5603
+ description: string;
5604
+ properties: {
5605
+ isLanguageBaseIp: {
5606
+ type: string;
5607
+ description: string;
5608
+ };
5609
+ language: {
5610
+ type: string;
5611
+ description: string;
5612
+ };
5613
+ isDisplayLanguageBaseIp: {
5614
+ type: string;
5615
+ description: string;
5616
+ };
5617
+ displayLanguage: {
5618
+ type: string;
5619
+ description: string;
5620
+ };
5621
+ isTimeZone: {
5622
+ type: string;
5623
+ description: string;
5624
+ };
5625
+ timeZone: {
5626
+ type: string;
5627
+ description: string;
5628
+ };
5629
+ position: {
5630
+ type: string;
5631
+ enum: number[];
5632
+ description: string;
5633
+ };
5634
+ isPositionBaseIp: {
5635
+ type: string;
5636
+ description: string;
5637
+ };
5638
+ longitude: {
5639
+ type: string;
5640
+ description: string;
5641
+ };
5642
+ latitude: {
5643
+ type: string;
5644
+ description: string;
5645
+ };
5646
+ precisionPos: {
5647
+ type: string;
5648
+ description: string;
5649
+ };
5650
+ forbidAudio: {
5651
+ type: string;
5652
+ description: string;
5653
+ };
5654
+ forbidImage: {
5655
+ type: string;
5656
+ description: string;
5657
+ };
5658
+ forbiddenPictureSize: {
5659
+ type: string;
5660
+ description: string;
5661
+ };
5662
+ forbidMedia: {
5663
+ type: string;
5664
+ description: string;
5665
+ };
5666
+ openWidth: {
5667
+ type: string;
5668
+ description: string;
5669
+ };
5670
+ openHeight: {
5671
+ type: string;
5672
+ description: string;
5673
+ };
5674
+ openBookmarks: {
5675
+ type: string;
5676
+ description: string;
5677
+ };
5678
+ positionSwitch: {
5679
+ type: string;
5680
+ description: string;
5681
+ };
5682
+ windowRatioPosition: {
5683
+ type: string;
5684
+ description: string;
5685
+ };
5686
+ isDisplayName: {
5687
+ type: string;
5688
+ description: string;
5689
+ };
5690
+ syncBookmark: {
5691
+ type: string;
5692
+ description: string;
5693
+ };
5694
+ syncHistory: {
5695
+ type: string;
5696
+ description: string;
5697
+ };
5698
+ syncTab: {
5699
+ type: string;
5700
+ description: string;
5701
+ };
5702
+ syncCookie: {
5703
+ type: string;
5704
+ description: string;
5705
+ };
5706
+ syncExtensions: {
5707
+ type: string;
5708
+ description: string;
5709
+ };
5710
+ syncPassword: {
5711
+ type: string;
5712
+ description: string;
5713
+ };
5714
+ syncIndexedDb: {
5715
+ type: string;
5716
+ description: string;
5717
+ };
5718
+ syncLocalStorage: {
5719
+ type: string;
5720
+ description: string;
5721
+ };
5722
+ clearCacheFile: {
5723
+ type: string;
5724
+ description: string;
5725
+ };
5726
+ clearCookie: {
5727
+ type: string;
5728
+ description: string;
5729
+ };
5730
+ clearLocalStorage: {
5731
+ type: string;
5732
+ description: string;
5733
+ };
5734
+ randomFingerprint: {
5735
+ type: string;
5736
+ description: string;
5737
+ };
5738
+ forbidSavePassword: {
5739
+ type: string;
5740
+ description: string;
5741
+ };
5742
+ stopOpenNet: {
5743
+ type: string;
5744
+ description: string;
5745
+ };
5746
+ stopOpenIP: {
5747
+ type: string;
5748
+ description: string;
5749
+ };
5750
+ stopOpenPosition: {
5751
+ type: string;
5752
+ description: string;
5753
+ };
5754
+ openWorkbench: {
5755
+ type: string;
5756
+ enum: number[];
5757
+ description: string;
5758
+ };
5759
+ resolutionType: {
5760
+ type: string;
5761
+ description: string;
5762
+ };
5763
+ resolutionX: {
5764
+ type: string;
5765
+ description: string;
5766
+ };
5767
+ resolutionY: {
5768
+ type: string;
5769
+ description: string;
5770
+ };
5771
+ fontType: {
5772
+ type: string;
5773
+ description: string;
5774
+ };
5775
+ webRTC: {
5776
+ type: string;
5777
+ enum: number[];
5778
+ description: string;
5779
+ };
5780
+ webGL: {
5781
+ type: string;
5782
+ description: string;
5783
+ };
5784
+ webGLInfo: {
5785
+ type: string;
5786
+ description: string;
5787
+ };
5788
+ webGLManufacturer: {
5789
+ type: string;
5790
+ description: string;
5791
+ };
5792
+ webGLRender: {
5793
+ type: string;
5794
+ description: string;
5795
+ };
5796
+ webGpu: {
5797
+ type: string;
5798
+ enum: string[];
5799
+ description: string;
5800
+ };
5801
+ canvas: {
5802
+ type: string;
5803
+ description: string;
5804
+ };
5805
+ audioContext: {
5806
+ type: string;
5807
+ description: string;
5808
+ };
5809
+ speechVoices: {
5810
+ type: string;
5811
+ description: string;
5812
+ };
5813
+ doNotTrack: {
5814
+ type: string;
5815
+ description: string;
5816
+ };
5817
+ clientRects: {
5818
+ type: string;
5819
+ description: string;
5820
+ };
5821
+ deviceInfo: {
5822
+ type: string;
5823
+ description: string;
5824
+ };
5825
+ deviceNameSwitch: {
5826
+ type: string;
5827
+ description: string;
5828
+ };
5829
+ macInfo: {
5830
+ type: string;
5831
+ description: string;
5832
+ };
5833
+ hardwareConcurrent: {
5834
+ type: string;
5835
+ description: string;
5836
+ };
5837
+ deviceMemory: {
5838
+ type: string;
5839
+ description: string;
5840
+ };
5841
+ disableSsl: {
5842
+ type: string;
5843
+ description: string;
5844
+ };
5845
+ disableSslList: {
5846
+ type: string;
5847
+ items: {
5848
+ type: string;
5849
+ };
5850
+ description: string;
5851
+ };
5852
+ portScanProtect: {
5853
+ type: string;
5854
+ description: string;
5855
+ };
5856
+ portScanList: {
5857
+ type: string;
5858
+ description: string;
5859
+ };
5860
+ useGpu: {
5861
+ type: string;
5862
+ description: string;
5863
+ };
5864
+ sandboxPermission: {
5865
+ type: string;
5866
+ description: string;
5867
+ };
5868
+ startupParam: {
5869
+ type: string;
5870
+ description: string;
5871
+ };
5872
+ };
5873
+ };
5874
+ };
5875
+ required: string[];
5876
+ };
5877
+ };
5878
+ };
5879
+ required: string[];
5880
+ };
5881
+ } | {
5882
+ name: string;
5883
+ description: string;
5884
+ inputSchema: {
5885
+ type: string;
5886
+ properties: {
5887
+ workspaceId: {
5888
+ type: string;
5889
+ description: string;
5890
+ };
5891
+ };
5892
+ required: string[];
5893
+ };
5894
+ } | {
5895
+ name: string;
5896
+ description: string;
5897
+ inputSchema: {
5898
+ type: string;
5899
+ properties: {
5900
+ dirIds: {
5901
+ type: string;
5902
+ items: {
5903
+ type: string;
5904
+ };
5905
+ description: string;
5906
+ };
5907
+ };
5908
+ };
5909
+ } | {
5910
+ name: string;
5911
+ description: string;
5912
+ inputSchema: {
5913
+ type: string;
5914
+ properties: {
5915
+ pageIndex: {
5916
+ type: string;
5917
+ description: string;
5918
+ default: number;
5919
+ };
5920
+ pageSize: {
5921
+ type: string;
5922
+ description: string;
5923
+ default: number;
5924
+ };
5925
+ };
5926
+ };
5927
+ } | {
5928
+ name: string;
5929
+ description: string;
5930
+ inputSchema: {
5931
+ type: string;
5932
+ properties: {
5933
+ includeWorkspaceCheck: {
5934
+ type: string;
5935
+ description: string;
5936
+ default: boolean;
5937
+ };
5938
+ includeBrowserCheck: {
5939
+ type: string;
5940
+ description: string;
5941
+ default: boolean;
5942
+ };
5943
+ verbose: {
5944
+ type: string;
5945
+ description: string;
5946
+ default: boolean;
5947
+ };
5948
+ };
5949
+ };
5950
+ })[];
5951
+ declare class RoxyBrowserMCPServer {
5952
+ private server;
5953
+ constructor();
5954
+ private setupHandlers;
5955
+ run(): Promise<void>;
5956
+ }
5957
+ /**
5958
+ * Create and run MCP server with stdio transport (for in-process usage).
5959
+ * Use when embedding the server in your own Node process.
5960
+ */
5961
+ declare function runServer(): Promise<void>;
5962
+
5963
+ 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, batchCreateProxies, clearLocalCache, clearServerCache, closeBrowsers, createAccount, createBrowser, createProxy, deleteAccounts, deleteBrowsers, deleteProxies, detectProxy, getBrowserDetail, getConnectionInfo, healthCheck, listAccounts, listBrowsers, listLabels, listWorkspaces, modifyAccount, modifyProxy, openBrowser, proxyList, proxyStore, randomFingerprint, request, resolveConfig, runServer, updateBrowser };