@spider-cloud/spider-client 0.1.37 → 0.1.38

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.
Files changed (2) hide show
  1. package/dist/config.d.ts +33 -0
  2. package/package.json +1 -1
package/dist/config.d.ts CHANGED
@@ -164,6 +164,20 @@ export declare enum RedirectPolicy {
164
164
  Loose = "Loose",
165
165
  Strict = "Strict"
166
166
  }
167
+ /**
168
+ * Proxy pool selection for outbound request routing.
169
+ * Choose a pool based on your use case (e.g., stealth, speed, or stability).
170
+ *
171
+ * - 'residential' → cost-effective entry-level residential pool
172
+ * - 'residential_fast' → faster residential pool for higher throughput
173
+ * - 'residential_static' → static residential IPs, rotated daily
174
+ * - 'mobile' → 4G/5G mobile proxies for maximum evasion
175
+ * - 'isp' → ISP-grade residential (alias: 'datacenter')
176
+ * - 'residential_premium' → low-latency premium IPs
177
+ * - 'residential_core' → balanced plan (quality vs. cost)
178
+ * - 'residential_plus' → largest and highest quality core pool
179
+ */
180
+ export type Proxy = "residential" | "residential_fast" | "residential_static" | "mobile" | "isp" | "residential_premium" | "residential_core" | "residential_plus";
167
181
  /**
168
182
  * Represents the options available for making a spider request.
169
183
  */
@@ -381,6 +395,25 @@ export interface SpiderParams {
381
395
  * targeting websites with minimal anti-bot protections.
382
396
  */
383
397
  lite_mode?: boolean;
398
+ /**
399
+ * Proxy pool selection for outbound request routing.
400
+ * Choose a pool based on your use case (e.g., stealth, speed, or stability).
401
+ *
402
+ * - 'residential' → cost-effective entry-level residential pool
403
+ * - 'residential_fast' → faster residential pool for higher throughput
404
+ * - 'residential_static' → static residential IPs, rotated daily
405
+ * - 'mobile' → 4G/5G mobile proxies for maximum evasion
406
+ * - 'isp' → ISP-grade residential (alias: 'datacenter')
407
+ * - 'residential_premium' → low-latency premium IPs
408
+ * - 'residential_core' → balanced plan (quality vs. cost)
409
+ * - 'residential_plus' → largest and highest quality core pool
410
+ */
411
+ proxy?: Proxy;
412
+ /**
413
+ * Use a remote proxy at ~70% reduced cost for file downloads.
414
+ * This requires bringing your own proxy (e.g., static IP tunnel).
415
+ */
416
+ remote_proxy?: string;
384
417
  }
385
418
  export type SpiderCoreResponse = {
386
419
  content?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spider-cloud/spider-client",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Isomorphic Javascript SDK for Spider Cloud services",
5
5
  "scripts": {
6
6
  "test": "node --import tsx --test __tests__/*test.ts",