@roxybrowser/openapi 1.0.11 → 1.0.12
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/lib/cli.cjs +61 -17
- package/lib/cli.cjs.map +1 -1
- package/lib/cli.js +61 -17
- package/lib/cli.js.map +1 -1
- package/lib/index.cjs +61 -17
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +0 -21
- package/lib/index.d.ts +0 -21
- package/lib/index.js +61 -17
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -175,7 +175,6 @@ declare class CreateBrowser {
|
|
|
175
175
|
};
|
|
176
176
|
position: {
|
|
177
177
|
type: string;
|
|
178
|
-
enum: number[];
|
|
179
178
|
description: string;
|
|
180
179
|
};
|
|
181
180
|
isPositionBaseIp: {
|
|
@@ -300,7 +299,6 @@ declare class CreateBrowser {
|
|
|
300
299
|
};
|
|
301
300
|
openWorkbench: {
|
|
302
301
|
type: string;
|
|
303
|
-
enum: number[];
|
|
304
302
|
description: string;
|
|
305
303
|
};
|
|
306
304
|
resolutionType: {
|
|
@@ -321,7 +319,6 @@ declare class CreateBrowser {
|
|
|
321
319
|
};
|
|
322
320
|
webRTC: {
|
|
323
321
|
type: string;
|
|
324
|
-
enum: number[];
|
|
325
322
|
description: string;
|
|
326
323
|
};
|
|
327
324
|
webGL: {
|
|
@@ -595,7 +592,6 @@ declare class CreateBrowser {
|
|
|
595
592
|
};
|
|
596
593
|
position: {
|
|
597
594
|
type: string;
|
|
598
|
-
enum: number[];
|
|
599
595
|
description: string;
|
|
600
596
|
};
|
|
601
597
|
isPositionBaseIp: {
|
|
@@ -720,7 +716,6 @@ declare class CreateBrowser {
|
|
|
720
716
|
};
|
|
721
717
|
openWorkbench: {
|
|
722
718
|
type: string;
|
|
723
|
-
enum: number[];
|
|
724
719
|
description: string;
|
|
725
720
|
};
|
|
726
721
|
resolutionType: {
|
|
@@ -741,7 +736,6 @@ declare class CreateBrowser {
|
|
|
741
736
|
};
|
|
742
737
|
webRTC: {
|
|
743
738
|
type: string;
|
|
744
|
-
enum: number[];
|
|
745
739
|
description: string;
|
|
746
740
|
};
|
|
747
741
|
webGL: {
|
|
@@ -1030,7 +1024,6 @@ declare class BatchCreateBrowsers {
|
|
|
1030
1024
|
};
|
|
1031
1025
|
position: {
|
|
1032
1026
|
type: string;
|
|
1033
|
-
enum: number[];
|
|
1034
1027
|
description: string;
|
|
1035
1028
|
};
|
|
1036
1029
|
isPositionBaseIp: {
|
|
@@ -1155,7 +1148,6 @@ declare class BatchCreateBrowsers {
|
|
|
1155
1148
|
};
|
|
1156
1149
|
openWorkbench: {
|
|
1157
1150
|
type: string;
|
|
1158
|
-
enum: number[];
|
|
1159
1151
|
description: string;
|
|
1160
1152
|
};
|
|
1161
1153
|
resolutionType: {
|
|
@@ -1176,7 +1168,6 @@ declare class BatchCreateBrowsers {
|
|
|
1176
1168
|
};
|
|
1177
1169
|
webRTC: {
|
|
1178
1170
|
type: string;
|
|
1179
|
-
enum: number[];
|
|
1180
1171
|
description: string;
|
|
1181
1172
|
};
|
|
1182
1173
|
webGL: {
|
|
@@ -1460,7 +1451,6 @@ declare class BatchCreateBrowsers {
|
|
|
1460
1451
|
};
|
|
1461
1452
|
position: {
|
|
1462
1453
|
type: string;
|
|
1463
|
-
enum: number[];
|
|
1464
1454
|
description: string;
|
|
1465
1455
|
};
|
|
1466
1456
|
isPositionBaseIp: {
|
|
@@ -1585,7 +1575,6 @@ declare class BatchCreateBrowsers {
|
|
|
1585
1575
|
};
|
|
1586
1576
|
openWorkbench: {
|
|
1587
1577
|
type: string;
|
|
1588
|
-
enum: number[];
|
|
1589
1578
|
description: string;
|
|
1590
1579
|
};
|
|
1591
1580
|
resolutionType: {
|
|
@@ -1606,7 +1595,6 @@ declare class BatchCreateBrowsers {
|
|
|
1606
1595
|
};
|
|
1607
1596
|
webRTC: {
|
|
1608
1597
|
type: string;
|
|
1609
|
-
enum: number[];
|
|
1610
1598
|
description: string;
|
|
1611
1599
|
};
|
|
1612
1600
|
webGL: {
|
|
@@ -1893,7 +1881,6 @@ declare class UpdateBrowser {
|
|
|
1893
1881
|
};
|
|
1894
1882
|
position: {
|
|
1895
1883
|
type: string;
|
|
1896
|
-
enum: number[];
|
|
1897
1884
|
description: string;
|
|
1898
1885
|
};
|
|
1899
1886
|
isPositionBaseIp: {
|
|
@@ -2018,7 +2005,6 @@ declare class UpdateBrowser {
|
|
|
2018
2005
|
};
|
|
2019
2006
|
openWorkbench: {
|
|
2020
2007
|
type: string;
|
|
2021
|
-
enum: number[];
|
|
2022
2008
|
description: string;
|
|
2023
2009
|
};
|
|
2024
2010
|
resolutionType: {
|
|
@@ -2039,7 +2025,6 @@ declare class UpdateBrowser {
|
|
|
2039
2025
|
};
|
|
2040
2026
|
webRTC: {
|
|
2041
2027
|
type: string;
|
|
2042
|
-
enum: number[];
|
|
2043
2028
|
description: string;
|
|
2044
2029
|
};
|
|
2045
2030
|
webGL: {
|
|
@@ -2313,7 +2298,6 @@ declare class UpdateBrowser {
|
|
|
2313
2298
|
};
|
|
2314
2299
|
position: {
|
|
2315
2300
|
type: string;
|
|
2316
|
-
enum: number[];
|
|
2317
2301
|
description: string;
|
|
2318
2302
|
};
|
|
2319
2303
|
isPositionBaseIp: {
|
|
@@ -2438,7 +2422,6 @@ declare class UpdateBrowser {
|
|
|
2438
2422
|
};
|
|
2439
2423
|
openWorkbench: {
|
|
2440
2424
|
type: string;
|
|
2441
|
-
enum: number[];
|
|
2442
2425
|
description: string;
|
|
2443
2426
|
};
|
|
2444
2427
|
resolutionType: {
|
|
@@ -2459,7 +2442,6 @@ declare class UpdateBrowser {
|
|
|
2459
2442
|
};
|
|
2460
2443
|
webRTC: {
|
|
2461
2444
|
type: string;
|
|
2462
|
-
enum: number[];
|
|
2463
2445
|
description: string;
|
|
2464
2446
|
};
|
|
2465
2447
|
webGL: {
|
|
@@ -5631,7 +5613,6 @@ declare const TOOLS: ({
|
|
|
5631
5613
|
};
|
|
5632
5614
|
position: {
|
|
5633
5615
|
type: string;
|
|
5634
|
-
enum: number[];
|
|
5635
5616
|
description: string;
|
|
5636
5617
|
};
|
|
5637
5618
|
isPositionBaseIp: {
|
|
@@ -5756,7 +5737,6 @@ declare const TOOLS: ({
|
|
|
5756
5737
|
};
|
|
5757
5738
|
openWorkbench: {
|
|
5758
5739
|
type: string;
|
|
5759
|
-
enum: number[];
|
|
5760
5740
|
description: string;
|
|
5761
5741
|
};
|
|
5762
5742
|
resolutionType: {
|
|
@@ -5777,7 +5757,6 @@ declare const TOOLS: ({
|
|
|
5777
5757
|
};
|
|
5778
5758
|
webRTC: {
|
|
5779
5759
|
type: string;
|
|
5780
|
-
enum: number[];
|
|
5781
5760
|
description: string;
|
|
5782
5761
|
};
|
|
5783
5762
|
webGL: {
|
package/lib/index.d.ts
CHANGED
|
@@ -175,7 +175,6 @@ declare class CreateBrowser {
|
|
|
175
175
|
};
|
|
176
176
|
position: {
|
|
177
177
|
type: string;
|
|
178
|
-
enum: number[];
|
|
179
178
|
description: string;
|
|
180
179
|
};
|
|
181
180
|
isPositionBaseIp: {
|
|
@@ -300,7 +299,6 @@ declare class CreateBrowser {
|
|
|
300
299
|
};
|
|
301
300
|
openWorkbench: {
|
|
302
301
|
type: string;
|
|
303
|
-
enum: number[];
|
|
304
302
|
description: string;
|
|
305
303
|
};
|
|
306
304
|
resolutionType: {
|
|
@@ -321,7 +319,6 @@ declare class CreateBrowser {
|
|
|
321
319
|
};
|
|
322
320
|
webRTC: {
|
|
323
321
|
type: string;
|
|
324
|
-
enum: number[];
|
|
325
322
|
description: string;
|
|
326
323
|
};
|
|
327
324
|
webGL: {
|
|
@@ -595,7 +592,6 @@ declare class CreateBrowser {
|
|
|
595
592
|
};
|
|
596
593
|
position: {
|
|
597
594
|
type: string;
|
|
598
|
-
enum: number[];
|
|
599
595
|
description: string;
|
|
600
596
|
};
|
|
601
597
|
isPositionBaseIp: {
|
|
@@ -720,7 +716,6 @@ declare class CreateBrowser {
|
|
|
720
716
|
};
|
|
721
717
|
openWorkbench: {
|
|
722
718
|
type: string;
|
|
723
|
-
enum: number[];
|
|
724
719
|
description: string;
|
|
725
720
|
};
|
|
726
721
|
resolutionType: {
|
|
@@ -741,7 +736,6 @@ declare class CreateBrowser {
|
|
|
741
736
|
};
|
|
742
737
|
webRTC: {
|
|
743
738
|
type: string;
|
|
744
|
-
enum: number[];
|
|
745
739
|
description: string;
|
|
746
740
|
};
|
|
747
741
|
webGL: {
|
|
@@ -1030,7 +1024,6 @@ declare class BatchCreateBrowsers {
|
|
|
1030
1024
|
};
|
|
1031
1025
|
position: {
|
|
1032
1026
|
type: string;
|
|
1033
|
-
enum: number[];
|
|
1034
1027
|
description: string;
|
|
1035
1028
|
};
|
|
1036
1029
|
isPositionBaseIp: {
|
|
@@ -1155,7 +1148,6 @@ declare class BatchCreateBrowsers {
|
|
|
1155
1148
|
};
|
|
1156
1149
|
openWorkbench: {
|
|
1157
1150
|
type: string;
|
|
1158
|
-
enum: number[];
|
|
1159
1151
|
description: string;
|
|
1160
1152
|
};
|
|
1161
1153
|
resolutionType: {
|
|
@@ -1176,7 +1168,6 @@ declare class BatchCreateBrowsers {
|
|
|
1176
1168
|
};
|
|
1177
1169
|
webRTC: {
|
|
1178
1170
|
type: string;
|
|
1179
|
-
enum: number[];
|
|
1180
1171
|
description: string;
|
|
1181
1172
|
};
|
|
1182
1173
|
webGL: {
|
|
@@ -1460,7 +1451,6 @@ declare class BatchCreateBrowsers {
|
|
|
1460
1451
|
};
|
|
1461
1452
|
position: {
|
|
1462
1453
|
type: string;
|
|
1463
|
-
enum: number[];
|
|
1464
1454
|
description: string;
|
|
1465
1455
|
};
|
|
1466
1456
|
isPositionBaseIp: {
|
|
@@ -1585,7 +1575,6 @@ declare class BatchCreateBrowsers {
|
|
|
1585
1575
|
};
|
|
1586
1576
|
openWorkbench: {
|
|
1587
1577
|
type: string;
|
|
1588
|
-
enum: number[];
|
|
1589
1578
|
description: string;
|
|
1590
1579
|
};
|
|
1591
1580
|
resolutionType: {
|
|
@@ -1606,7 +1595,6 @@ declare class BatchCreateBrowsers {
|
|
|
1606
1595
|
};
|
|
1607
1596
|
webRTC: {
|
|
1608
1597
|
type: string;
|
|
1609
|
-
enum: number[];
|
|
1610
1598
|
description: string;
|
|
1611
1599
|
};
|
|
1612
1600
|
webGL: {
|
|
@@ -1893,7 +1881,6 @@ declare class UpdateBrowser {
|
|
|
1893
1881
|
};
|
|
1894
1882
|
position: {
|
|
1895
1883
|
type: string;
|
|
1896
|
-
enum: number[];
|
|
1897
1884
|
description: string;
|
|
1898
1885
|
};
|
|
1899
1886
|
isPositionBaseIp: {
|
|
@@ -2018,7 +2005,6 @@ declare class UpdateBrowser {
|
|
|
2018
2005
|
};
|
|
2019
2006
|
openWorkbench: {
|
|
2020
2007
|
type: string;
|
|
2021
|
-
enum: number[];
|
|
2022
2008
|
description: string;
|
|
2023
2009
|
};
|
|
2024
2010
|
resolutionType: {
|
|
@@ -2039,7 +2025,6 @@ declare class UpdateBrowser {
|
|
|
2039
2025
|
};
|
|
2040
2026
|
webRTC: {
|
|
2041
2027
|
type: string;
|
|
2042
|
-
enum: number[];
|
|
2043
2028
|
description: string;
|
|
2044
2029
|
};
|
|
2045
2030
|
webGL: {
|
|
@@ -2313,7 +2298,6 @@ declare class UpdateBrowser {
|
|
|
2313
2298
|
};
|
|
2314
2299
|
position: {
|
|
2315
2300
|
type: string;
|
|
2316
|
-
enum: number[];
|
|
2317
2301
|
description: string;
|
|
2318
2302
|
};
|
|
2319
2303
|
isPositionBaseIp: {
|
|
@@ -2438,7 +2422,6 @@ declare class UpdateBrowser {
|
|
|
2438
2422
|
};
|
|
2439
2423
|
openWorkbench: {
|
|
2440
2424
|
type: string;
|
|
2441
|
-
enum: number[];
|
|
2442
2425
|
description: string;
|
|
2443
2426
|
};
|
|
2444
2427
|
resolutionType: {
|
|
@@ -2459,7 +2442,6 @@ declare class UpdateBrowser {
|
|
|
2459
2442
|
};
|
|
2460
2443
|
webRTC: {
|
|
2461
2444
|
type: string;
|
|
2462
|
-
enum: number[];
|
|
2463
2445
|
description: string;
|
|
2464
2446
|
};
|
|
2465
2447
|
webGL: {
|
|
@@ -5631,7 +5613,6 @@ declare const TOOLS: ({
|
|
|
5631
5613
|
};
|
|
5632
5614
|
position: {
|
|
5633
5615
|
type: string;
|
|
5634
|
-
enum: number[];
|
|
5635
5616
|
description: string;
|
|
5636
5617
|
};
|
|
5637
5618
|
isPositionBaseIp: {
|
|
@@ -5756,7 +5737,6 @@ declare const TOOLS: ({
|
|
|
5756
5737
|
};
|
|
5757
5738
|
openWorkbench: {
|
|
5758
5739
|
type: string;
|
|
5759
|
-
enum: number[];
|
|
5760
5740
|
description: string;
|
|
5761
5741
|
};
|
|
5762
5742
|
resolutionType: {
|
|
@@ -5777,7 +5757,6 @@ declare const TOOLS: ({
|
|
|
5777
5757
|
};
|
|
5778
5758
|
webRTC: {
|
|
5779
5759
|
type: string;
|
|
5780
|
-
enum: number[];
|
|
5781
5760
|
description: string;
|
|
5782
5761
|
};
|
|
5783
5762
|
webGL: {
|
package/lib/index.js
CHANGED
|
@@ -124,6 +124,10 @@ var ListAccounts = class {
|
|
|
124
124
|
|
|
125
125
|
error message: ${result.msg}`;
|
|
126
126
|
} else {
|
|
127
|
+
const currentPage = params.pageIndex ?? 1;
|
|
128
|
+
const pageSize = params.pageSize ?? 15;
|
|
129
|
+
const totalPages = Math.max(1, Math.ceil((data.total || 0) / pageSize));
|
|
130
|
+
const hasNextPage = currentPage < totalPages;
|
|
127
131
|
text = `Found ${data.total} accounts in workspace ${params.workspaceId}:
|
|
128
132
|
|
|
129
133
|
${data.rows.map(
|
|
@@ -132,7 +136,14 @@ ${data.rows.map(
|
|
|
132
136
|
- Platform URL: ${account.platformUrl}
|
|
133
137
|
- Remarks: ${account.platformRemarks || "N/A"}
|
|
134
138
|
- Created: ${account.createTime}`
|
|
135
|
-
).join("\n\n")}
|
|
139
|
+
).join("\n\n")}
|
|
140
|
+
|
|
141
|
+
Pagination:
|
|
142
|
+
- currentPage: ${currentPage}
|
|
143
|
+
- pageSize: ${pageSize}
|
|
144
|
+
- totalPages: ${totalPages}
|
|
145
|
+
- hasNextPage: ${hasNextPage}
|
|
146
|
+
${hasNextPage ? `- nextPageHint: Call roxy_list_accounts again with pageIndex=${currentPage + 1}` : "- nextPageHint: No more pages"}`;
|
|
136
147
|
}
|
|
137
148
|
return {
|
|
138
149
|
content: [
|
|
@@ -569,13 +580,13 @@ var ProxyList = class {
|
|
|
569
580
|
}
|
|
570
581
|
async handle(params) {
|
|
571
582
|
const searchParams = new URLSearchParams();
|
|
572
|
-
searchParams.append("workspaceId", params.workspaceId);
|
|
583
|
+
searchParams.append("workspaceId", params.workspaceId.toString());
|
|
573
584
|
if (params.id)
|
|
574
|
-
searchParams.append("id", params.id);
|
|
575
|
-
if (params.
|
|
576
|
-
searchParams.append("page_index", params.pageIndex);
|
|
577
|
-
if (params.
|
|
578
|
-
searchParams.append("page_size", params.pageSize);
|
|
585
|
+
searchParams.append("id", params.id.toString());
|
|
586
|
+
if (params.pageIndex)
|
|
587
|
+
searchParams.append("page_index", params.pageIndex.toString());
|
|
588
|
+
if (params.pageSize)
|
|
589
|
+
searchParams.append("page_size", params.pageSize.toString());
|
|
579
590
|
if (!params.workspaceId) {
|
|
580
591
|
throw new Error("workspaceId is required");
|
|
581
592
|
}
|
|
@@ -583,6 +594,10 @@ var ProxyList = class {
|
|
|
583
594
|
let text = "";
|
|
584
595
|
if (result.code === 0) {
|
|
585
596
|
const data = result.data;
|
|
597
|
+
const currentPage = params.pageIndex ?? 1;
|
|
598
|
+
const pageSize = params.pageSize ?? 15;
|
|
599
|
+
const totalPages = Math.max(1, Math.ceil((data.total || 0) / pageSize));
|
|
600
|
+
const hasNextPage = currentPage < totalPages;
|
|
586
601
|
const proxyListText = data.rows.length > 0 ? data.rows.map((proxy, index) => {
|
|
587
602
|
const statusText = proxy.checkStatus === 1 ? "\u2705 available" : proxy.checkStatus === 2 ? "\u274C unavailable" : "\u23F3 not checked";
|
|
588
603
|
const name = `proxy (id: ${proxy.id}) ${proxy.remark ? `remark: ${proxy.remark}` : ""}`;
|
|
@@ -609,7 +624,14 @@ ${ipInfo.length > 0 ? `${ipInfo.join("")}
|
|
|
609
624
|
}).join("\n\n") : "";
|
|
610
625
|
text = `\u{1F4CB} **proxy list** (total: ${data.total})
|
|
611
626
|
|
|
612
|
-
${proxyListText}
|
|
627
|
+
${proxyListText}
|
|
628
|
+
|
|
629
|
+
Pagination:
|
|
630
|
+
- currentPage: ${currentPage}
|
|
631
|
+
- pageSize: ${pageSize}
|
|
632
|
+
- totalPages: ${totalPages}
|
|
633
|
+
- hasNextPage: ${hasNextPage}
|
|
634
|
+
${hasNextPage ? `- nextPageHint: Call roxy_list_proxies again with pageIndex=${currentPage + 1}` : "- nextPageHint: No more pages"}`;
|
|
613
635
|
} else {
|
|
614
636
|
text = `\u274C **get proxy list failed**
|
|
615
637
|
|
|
@@ -656,16 +678,20 @@ var ProxyStore = class {
|
|
|
656
678
|
async handle(params) {
|
|
657
679
|
const searchParams = new URLSearchParams();
|
|
658
680
|
searchParams.append("workspaceId", params.workspaceId.toString());
|
|
659
|
-
if (params.
|
|
660
|
-
searchParams.append("page_index", params.
|
|
661
|
-
if (params.
|
|
662
|
-
searchParams.append("page_size", params.
|
|
681
|
+
if (params.pageIndex)
|
|
682
|
+
searchParams.append("page_index", params.pageIndex.toString());
|
|
683
|
+
if (params.pageSize)
|
|
684
|
+
searchParams.append("page_size", params.pageSize.toString());
|
|
663
685
|
if (params.type)
|
|
664
686
|
searchParams.append("type", params.type.toString());
|
|
665
687
|
const result = await request(`/proxy/bought_list?${searchParams}`);
|
|
666
688
|
let text = "";
|
|
667
689
|
if (result.code === 0) {
|
|
668
690
|
const data = result.data;
|
|
691
|
+
const currentPage = params.pageIndex ?? 1;
|
|
692
|
+
const pageSize = params.pageSize ?? 15;
|
|
693
|
+
const totalPages = Math.max(1, Math.ceil((data.total || 0) / pageSize));
|
|
694
|
+
const hasNextPage = currentPage < totalPages;
|
|
669
695
|
const proxyListText = data.rows.length > 0 ? data.rows.map((proxy, index) => {
|
|
670
696
|
const statusText = proxy.checkStatus === 1 ? "\u2705 available" : proxy.checkStatus === 2 ? "\u274C unavailable" : "\u23F3 not checked";
|
|
671
697
|
const name = `proxy (id: ${proxy.id}) ${proxy.remark ? `remark: ${proxy.remark}` : ""}`;
|
|
@@ -689,7 +715,14 @@ ${ipInfo.join("")}
|
|
|
689
715
|
}).join("\n\n") : "";
|
|
690
716
|
text = `\u{1F4CB} **proxy store** (total: ${data.total})
|
|
691
717
|
|
|
692
|
-
${proxyListText}
|
|
718
|
+
${proxyListText}
|
|
719
|
+
|
|
720
|
+
Pagination:
|
|
721
|
+
- currentPage: ${currentPage}
|
|
722
|
+
- pageSize: ${pageSize}
|
|
723
|
+
- totalPages: ${totalPages}
|
|
724
|
+
- hasNextPage: ${hasNextPage}
|
|
725
|
+
${hasNextPage ? `- nextPageHint: Call roxy_store_proxies again with pageIndex=${currentPage + 1}` : "- nextPageHint: No more pages"}`;
|
|
693
726
|
} else {
|
|
694
727
|
text = `\u274C **get proxy store failed**
|
|
695
728
|
|
|
@@ -1702,7 +1735,7 @@ var CreateBrowser = class {
|
|
|
1702
1735
|
isTimeZone: { type: "boolean", description: "Follow IP for timezone" },
|
|
1703
1736
|
timeZone: { type: "string", description: "Custom timezone" },
|
|
1704
1737
|
// Geolocation
|
|
1705
|
-
position: { type: "number",
|
|
1738
|
+
position: { type: "number", description: "Geolocation prompt: 0=ask, 1=allow, 2=deny" },
|
|
1706
1739
|
isPositionBaseIp: { type: "boolean", description: "Follow IP for geolocation" },
|
|
1707
1740
|
longitude: { type: "string", description: "Custom longitude" },
|
|
1708
1741
|
latitude: { type: "string", description: "Custom latitude" },
|
|
@@ -1738,14 +1771,14 @@ var CreateBrowser = class {
|
|
|
1738
1771
|
stopOpenNet: { type: "boolean", description: "Stop opening if network fails" },
|
|
1739
1772
|
stopOpenIP: { type: "boolean", description: "Stop opening if IP changes" },
|
|
1740
1773
|
stopOpenPosition: { type: "boolean", description: "Stop opening if IP location changes" },
|
|
1741
|
-
openWorkbench: { type: "number",
|
|
1774
|
+
openWorkbench: { type: "number", description: "Open workbench: 0=close, 1=open, 2=follow app" },
|
|
1742
1775
|
// Display settings
|
|
1743
1776
|
resolutionType: { type: "boolean", description: "Custom resolution vs follow system" },
|
|
1744
1777
|
resolutionX: { type: "string", description: "Custom resolution width" },
|
|
1745
1778
|
resolutionY: { type: "string", description: "Custom resolution height" },
|
|
1746
1779
|
fontType: { type: "boolean", description: "Random fonts vs system fonts" },
|
|
1747
1780
|
// Browser fingerprint settings
|
|
1748
|
-
webRTC: { type: "number",
|
|
1781
|
+
webRTC: { type: "number", description: "WebRTC: 0=replace, 1=real, 2=disable" },
|
|
1749
1782
|
webGL: { type: "boolean", description: "WebGL: random vs real" },
|
|
1750
1783
|
webGLInfo: { type: "boolean", description: "WebGL info: custom vs real" },
|
|
1751
1784
|
webGLManufacturer: { type: "string", description: "Custom WebGL manufacturer" },
|
|
@@ -2128,6 +2161,10 @@ var ListBrowsers = class {
|
|
|
2128
2161
|
|
|
2129
2162
|
error message: ${result.msg}`;
|
|
2130
2163
|
} else {
|
|
2164
|
+
const currentPage = params.pageIndex ?? 1;
|
|
2165
|
+
const pageSize = params.pageSize ?? 15;
|
|
2166
|
+
const totalPages = Math.max(1, Math.ceil((data.total || 0) / pageSize));
|
|
2167
|
+
const hasNextPage = currentPage < totalPages;
|
|
2131
2168
|
text = `Found ${data.total} browsers in workspace ${params.workspaceId}:
|
|
2132
2169
|
|
|
2133
2170
|
${data.rows.map(
|
|
@@ -2136,7 +2173,14 @@ ${data.rows.map(
|
|
|
2136
2173
|
- OSVersion: ${browser.osVersion}
|
|
2137
2174
|
- OS: ${browser.os}
|
|
2138
2175
|
- Remark: ${browser.windowRemark}`
|
|
2139
|
-
).join("\n\n")}
|
|
2176
|
+
).join("\n\n")}
|
|
2177
|
+
|
|
2178
|
+
Pagination:
|
|
2179
|
+
- currentPage: ${currentPage}
|
|
2180
|
+
- pageSize: ${pageSize}
|
|
2181
|
+
- totalPages: ${totalPages}
|
|
2182
|
+
- hasNextPage: ${hasNextPage}
|
|
2183
|
+
${hasNextPage ? `- nextPageHint: Call roxy_list_browsers again with pageIndex=${currentPage + 1}` : "- nextPageHint: No more pages"}`;
|
|
2140
2184
|
}
|
|
2141
2185
|
return {
|
|
2142
2186
|
content: [
|