surfsky 0.0.9 → 0.0.11

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/dist/index.d.ts CHANGED
@@ -46,6 +46,7 @@ declare const regionalPool: z.ZodEnum<{
46
46
  westeurope: "westeurope";
47
47
  }>;
48
48
  declare const captchaType: z.ZodEnum<{
49
+ aws_waf: "aws_waf";
49
50
  bls: "bls";
50
51
  click: "click";
51
52
  datadome: "datadome";
@@ -196,6 +197,7 @@ type BrowserSettings = z.infer<typeof browserSettings>;
196
197
  declare const antiCaptcha: z.ZodObject<{
197
198
  enabled: z.ZodOptional<z.ZodBoolean>;
198
199
  auto_captcha_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
200
+ aws_waf: "aws_waf";
199
201
  bls: "bls";
200
202
  click: "click";
201
203
  datadome: "datadome";
@@ -410,6 +412,7 @@ declare const oneTimeStartRequest: z.ZodObject<{
410
412
  anti_captcha: z.ZodOptional<z.ZodObject<{
411
413
  enabled: z.ZodOptional<z.ZodBoolean>;
412
414
  auto_captcha_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
415
+ aws_waf: "aws_waf";
413
416
  bls: "bls";
414
417
  click: "click";
415
418
  datadome: "datadome";
@@ -449,6 +452,7 @@ declare const profileStartRequest: z.ZodObject<{
449
452
  anti_captcha: z.ZodOptional<z.ZodObject<{
450
453
  enabled: z.ZodOptional<z.ZodBoolean>;
451
454
  auto_captcha_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
455
+ aws_waf: "aws_waf";
452
456
  bls: "bls";
453
457
  click: "click";
454
458
  datadome: "datadome";
@@ -1081,14 +1085,6 @@ interface Extension {
1081
1085
  created_at?: string | null;
1082
1086
  updated_at?: string | null;
1083
1087
  }
1084
- interface SessionLimits {
1085
- has_session_limits?: boolean | null;
1086
- spm?: number | null;
1087
- remaining?: number | null;
1088
- used?: number | null;
1089
- additional_spm?: number | null;
1090
- reset_time?: number | null;
1091
- }
1092
1088
  interface BrowserLimits {
1093
1089
  has_browser_limits?: boolean | null;
1094
1090
  parallel_browsers?: number | null;
@@ -1559,7 +1555,6 @@ declare class Account {
1559
1555
  #private;
1560
1556
  readonly client: Surfsky;
1561
1557
  constructor(client: Surfsky);
1562
- sessionLimits(): Promise<SessionLimits>;
1563
1558
  browserLimits(): Promise<BrowserLimits>;
1564
1559
  /** The plan's parallel-browser cap; `SURFSKY_MAX_BROWSERS` overrides it. */
1565
1560
  maxBrowsers(): Promise<number>;
@@ -1808,4 +1803,4 @@ declare class BrowserPool implements AsyncDisposable {
1808
1803
  //#region src/version.d.ts
1809
1804
  declare const VERSION: string;
1810
1805
  //#endregion
1811
- export { APIConnectionError, APIError, APIErrorOptions, APITimeoutError, Account, Actions, type ActiveProfile, type AntiCaptcha, type Arch, AuthenticationError, BadRequestError, type BatchDeleteResult, Browser, type BrowserLimits, type BrowserOptions, BrowserPool, type BrowserSettings, type BrowserStartOptions, BrowserTimeoutError, CDPClient, type CDPClientOptions, CDPError, type CaptchaType, CapturedResponse, type ClickOptions, ConfigurationError, ConflictError, type Cookie, type CookieInput, type CreateWebSocket, type DblclickOptions, type DeviceModel, type DeviceModelsOptions, type DeviceType, type DialogHandler, type DomainRoute, type DragOptions, type EvaluateOptions, type EventHandler, type ExportFormat, type Extension, type ExtensionFile, Extensions, type Fingerprint, Fingerprints, ForbiddenError, type Geolocation, type GotoOptions, type HoverOptions, type Inspector, type InspectorPage, type KeyModifier, Keyboard, type ListPageOptions, type ListPageRequest, type Logger, type Loose, type ManagedSession, type MediaDevices, MonthlySessionLimitError, Mouse, type MouseButton, type MouseClickOptions, type Noise, NotFoundError, type OS, type OneTimeStartRequest, Page, PageClosedError, PaymentRequiredError, type PoolHandler, type PoolOptions, type PoolOutcome, type PremiumProxy, PremiumTrafficLimitError, type PressOptions, type Profile, type ProfileCreate, type ProfileCreateRequest, type ProfileOrdering, type ProfileRef, type ProfileStartRequest, type ProfileSummary, type ProfileUpdate, type ProfileUpdateRequest, Profiles, Proxies, type ProxyCity, type ProxyCountry, ProxyCycle, type ProxyFactory, type ProxyInput, type ProxyLike, type ProxyQuota, ProxyRandom, type ProxyRegion, type ProxySource, ProxyTemplate, type ProxyType, RESOURCE_TYPES, RateLimitError, type RegionalPool, type Renderer, type RequestOptions, type ScrapeOptions, type ScrapeRequest, type ScrapeResult, type Screen, type ScreenshotOptions, type ScrollBehavior, type ScrollOptions, type ScrollToOptions, ServerError, type Session, type SessionLimits, type SessionOptions, type SessionStartOptions, type SharedProxy, type SharedProxyQuota, SharedTrafficLimitError, type Spec, type StopAllResult, StopRun, type StorageOptions, Surfsky, SurfskyError, type SurfskyOptions, type TrafficStats, type TrafficVolume, VERSION, ValidationError, type WaitOptions, type WaitUntil, type WebSocketLike, type isRecord, type parseListPageRequest, type parseOneTimeStartRequest, type parseProfileCreateRequest, type parseProfileStartRequest, type parseProfileUpdateRequest, type parseProxyLike, type parseScrapeRequest };
1806
+ export { APIConnectionError, APIError, APIErrorOptions, APITimeoutError, Account, Actions, type ActiveProfile, type AntiCaptcha, type Arch, AuthenticationError, BadRequestError, type BatchDeleteResult, Browser, type BrowserLimits, type BrowserOptions, BrowserPool, type BrowserSettings, type BrowserStartOptions, BrowserTimeoutError, CDPClient, type CDPClientOptions, CDPError, type CaptchaType, CapturedResponse, type ClickOptions, ConfigurationError, ConflictError, type Cookie, type CookieInput, type CreateWebSocket, type DblclickOptions, type DeviceModel, type DeviceModelsOptions, type DeviceType, type DialogHandler, type DomainRoute, type DragOptions, type EvaluateOptions, type EventHandler, type ExportFormat, type Extension, type ExtensionFile, Extensions, type Fingerprint, Fingerprints, ForbiddenError, type Geolocation, type GotoOptions, type HoverOptions, type Inspector, type InspectorPage, type KeyModifier, Keyboard, type ListPageOptions, type ListPageRequest, type Logger, type Loose, type ManagedSession, type MediaDevices, MonthlySessionLimitError, Mouse, type MouseButton, type MouseClickOptions, type Noise, NotFoundError, type OS, type OneTimeStartRequest, Page, PageClosedError, PaymentRequiredError, type PoolHandler, type PoolOptions, type PoolOutcome, type PremiumProxy, PremiumTrafficLimitError, type PressOptions, type Profile, type ProfileCreate, type ProfileCreateRequest, type ProfileOrdering, type ProfileRef, type ProfileStartRequest, type ProfileSummary, type ProfileUpdate, type ProfileUpdateRequest, Profiles, Proxies, type ProxyCity, type ProxyCountry, ProxyCycle, type ProxyFactory, type ProxyInput, type ProxyLike, type ProxyQuota, ProxyRandom, type ProxyRegion, type ProxySource, ProxyTemplate, type ProxyType, RESOURCE_TYPES, RateLimitError, type RegionalPool, type Renderer, type RequestOptions, type ScrapeOptions, type ScrapeRequest, type ScrapeResult, type Screen, type ScreenshotOptions, type ScrollBehavior, type ScrollOptions, type ScrollToOptions, ServerError, type Session, type SessionOptions, type SessionStartOptions, type SharedProxy, type SharedProxyQuota, SharedTrafficLimitError, type Spec, type StopAllResult, StopRun, type StorageOptions, Surfsky, SurfskyError, type SurfskyOptions, type TrafficStats, type TrafficVolume, VERSION, ValidationError, type WaitOptions, type WaitUntil, type WebSocketLike, type isRecord, type parseListPageRequest, type parseOneTimeStartRequest, type parseProfileCreateRequest, type parseProfileStartRequest, type parseProfileUpdateRequest, type parseProxyLike, type parseScrapeRequest };
package/dist/index.js CHANGED
@@ -283,6 +283,7 @@ const captchaType = z.enum([
283
283
  "turnstile",
284
284
  "perimeterx",
285
285
  "geetest",
286
+ "aws_waf",
286
287
  "bls",
287
288
  "datadome",
288
289
  "datadome_audio",
@@ -2436,12 +2437,6 @@ var BrowserPool = class {
2436
2437
  await stopSession(this.#client, browser.internalUuid);
2437
2438
  }
2438
2439
  };
2439
- function sessionLimitsSpec() {
2440
- return {
2441
- method: "GET",
2442
- path: "/users/session-limits"
2443
- };
2444
- }
2445
2440
  function browserLimitsSpec() {
2446
2441
  return {
2447
2442
  method: "GET",
@@ -2457,9 +2452,6 @@ var Account = class {
2457
2452
  constructor(client) {
2458
2453
  this.client = client;
2459
2454
  }
2460
- async sessionLimits() {
2461
- return this.client.call(sessionLimitsSpec());
2462
- }
2463
2455
  async browserLimits() {
2464
2456
  return this.client.call(browserLimitsSpec());
2465
2457
  }
@@ -2696,7 +2688,7 @@ var Proxies = class {
2696
2688
  };
2697
2689
  //#endregion
2698
2690
  //#region src/version.ts
2699
- const VERSION = "0.0.9";
2691
+ const VERSION = "0.0.11";
2700
2692
  //#endregion
2701
2693
  //#region src/client.ts
2702
2694
  function userAgent() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "surfsky",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "TypeScript SDK for the Surfsky antidetect browser cloud.",
5
5
  "keywords": [
6
6
  "surfsky",