adspower-browser 2.1.1 → 2.1.2-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.
package/README.MD CHANGED
@@ -142,6 +142,8 @@ ads close-browser <profile_id> # Or JSON: profile_id? | profil
142
142
  ads create-browser '{"group_id":"0","user_proxy_config":{"proxy_soft":"no_proxy"},...}' # group_id + account field required; proxy optional (defaults to no_proxy; proxyid takes priority over user_proxy_config when both given)
143
143
  ads update-browser '{"profile_id":"...",...}' # profile_id required
144
144
  ads delete-browser '{"profile_id":["..."]}' # profile_id required
145
+ ads get-recycle-bin-list '{}' # page?, limit? (1-100, default 1). Last 30 days only
146
+ ads restore-recycle-bin '{"profile_id":"...","group_id":"123"}' # profile_id or profile_no, group_id required
145
147
  ads get-browser-list '{}' # CLI defaults to page=1,limit=200. Or group_id?, limit?, page?, profile_id[]?, profile_no[]?, sort_type?, sort_order?, tag_ids?, tags_filter?, name?, name_filter?
146
148
  ads get-opened-browser # No params
147
149
  ```
package/cli/index.js CHANGED
@@ -1401,6 +1401,7 @@ var browserHandlers = {
1401
1401
  };
1402
1402
  }
1403
1403
  }
1404
+ console.log("=====> ", JSON.stringify(resolvedParams));
1404
1405
  const requestBody = buildRequestBodyFor("create-browser", resolvedParams);
1405
1406
  const response = await getApiClient().post(`${getLocalApiBase()}${API_ENDPOINTS.CREATE_BROWSER}`, requestBody);
1406
1407
  if (response.data.code === 0) {
@@ -2278,7 +2279,7 @@ var schemas = {
2278
2279
  ipchecker: import_zod.z.enum(["ip2location", "ipapi", "ipfoxy"]).optional().describe("IP query channel"),
2279
2280
  category_id: import_zod.z.string().optional().describe("The category id of the browser, you can use the get-application-list tool to get the application list"),
2280
2281
  profile_tag_ids: import_zod.z.array(import_zod.z.string()).max(30).optional().describe('Tag IDs to assign to the profile, max 30 tags per profile. Example: ["tag1","tag2"]'),
2281
- fingerprint_config: fingerprintConfigSchema.optional().default({ browser_kernel_config: { version: "latest", type: "chrome" } }),
2282
+ fingerprint_config: fingerprintConfigSchema.optional().default({ random_ua: { ua_system_version: ["Windows"] }, browser_kernel_config: { version: "latest", type: "chrome" } }),
2282
2283
  platform_account: platformAccountSchema
2283
2284
  }).strict(),
2284
2285
  updateBrowserSchema: import_zod.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adspower-browser",
3
- "version": "2.1.1",
3
+ "version": "2.1.2-beta.2",
4
4
  "main": "cli/index.js",
5
5
  "type": "commonjs",
6
6
  "bin": {