surfsky 0.0.10 → 0.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/dist/index.d.ts +1 -10
- package/dist/index.js +1 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1085,14 +1085,6 @@ interface Extension {
|
|
|
1085
1085
|
created_at?: string | null;
|
|
1086
1086
|
updated_at?: string | null;
|
|
1087
1087
|
}
|
|
1088
|
-
interface SessionLimits {
|
|
1089
|
-
has_session_limits?: boolean | null;
|
|
1090
|
-
spm?: number | null;
|
|
1091
|
-
remaining?: number | null;
|
|
1092
|
-
used?: number | null;
|
|
1093
|
-
additional_spm?: number | null;
|
|
1094
|
-
reset_time?: number | null;
|
|
1095
|
-
}
|
|
1096
1088
|
interface BrowserLimits {
|
|
1097
1089
|
has_browser_limits?: boolean | null;
|
|
1098
1090
|
parallel_browsers?: number | null;
|
|
@@ -1563,7 +1555,6 @@ declare class Account {
|
|
|
1563
1555
|
#private;
|
|
1564
1556
|
readonly client: Surfsky;
|
|
1565
1557
|
constructor(client: Surfsky);
|
|
1566
|
-
sessionLimits(): Promise<SessionLimits>;
|
|
1567
1558
|
browserLimits(): Promise<BrowserLimits>;
|
|
1568
1559
|
/** The plan's parallel-browser cap; `SURFSKY_MAX_BROWSERS` overrides it. */
|
|
1569
1560
|
maxBrowsers(): Promise<number>;
|
|
@@ -1812,4 +1803,4 @@ declare class BrowserPool implements AsyncDisposable {
|
|
|
1812
1803
|
//#region src/version.d.ts
|
|
1813
1804
|
declare const VERSION: string;
|
|
1814
1805
|
//#endregion
|
|
1815
|
-
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
|
|
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
|
@@ -2437,12 +2437,6 @@ var BrowserPool = class {
|
|
|
2437
2437
|
await stopSession(this.#client, browser.internalUuid);
|
|
2438
2438
|
}
|
|
2439
2439
|
};
|
|
2440
|
-
function sessionLimitsSpec() {
|
|
2441
|
-
return {
|
|
2442
|
-
method: "GET",
|
|
2443
|
-
path: "/users/session-limits"
|
|
2444
|
-
};
|
|
2445
|
-
}
|
|
2446
2440
|
function browserLimitsSpec() {
|
|
2447
2441
|
return {
|
|
2448
2442
|
method: "GET",
|
|
@@ -2458,9 +2452,6 @@ var Account = class {
|
|
|
2458
2452
|
constructor(client) {
|
|
2459
2453
|
this.client = client;
|
|
2460
2454
|
}
|
|
2461
|
-
async sessionLimits() {
|
|
2462
|
-
return this.client.call(sessionLimitsSpec());
|
|
2463
|
-
}
|
|
2464
2455
|
async browserLimits() {
|
|
2465
2456
|
return this.client.call(browserLimitsSpec());
|
|
2466
2457
|
}
|
|
@@ -2697,7 +2688,7 @@ var Proxies = class {
|
|
|
2697
2688
|
};
|
|
2698
2689
|
//#endregion
|
|
2699
2690
|
//#region src/version.ts
|
|
2700
|
-
const VERSION = "0.0.
|
|
2691
|
+
const VERSION = "0.0.12";
|
|
2701
2692
|
//#endregion
|
|
2702
2693
|
//#region src/client.ts
|
|
2703
2694
|
function userAgent() {
|