@scalebrowser/sdk 1.0.0 → 1.1.0
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/CHANGELOG.md +15 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,21 @@ reconstructing it here would look like a record that had been kept all along.
|
|
|
9
9
|
The daemon and the SDK version independently. An SDK release names the daemon
|
|
10
10
|
version it was tested against wherever that matters.
|
|
11
11
|
|
|
12
|
+
## 1.1.0 (2026-10-04)
|
|
13
|
+
|
|
14
|
+
Three fields the daemon has sent since 0.20.0 now have types. All three are
|
|
15
|
+
optional, so code written against 1.0.0 compiles unchanged.
|
|
16
|
+
|
|
17
|
+
- `Profile.timezone_country`: the country the profile's clock places it in,
|
|
18
|
+
`null` for a zone the daemon has no country for. Read the country from here,
|
|
19
|
+
not from the language: Chrome sends the list of its interface language, so a
|
|
20
|
+
profile in Vienna sends `de-DE`.
|
|
21
|
+
- `Account.plan_required`: the account has no active plan, and choosing one is
|
|
22
|
+
the only remedy. The daemon enrols the machine by itself on its next check
|
|
23
|
+
after that.
|
|
24
|
+
- `Account.trial_available`: together with `plan_required`, the account still
|
|
25
|
+
has its free trial.
|
|
26
|
+
|
|
12
27
|
## 1.0.0 (2026-09-27)
|
|
13
28
|
|
|
14
29
|
The library works as in 0.9.0. What changes is the promise: from this release
|
package/dist/index.cjs
CHANGED
|
@@ -1738,7 +1738,7 @@ var PROXY_KINDS = ["http", "socks5", "gateway"];
|
|
|
1738
1738
|
var ROTATIONS = ["sticky", "rotating"];
|
|
1739
1739
|
|
|
1740
1740
|
// src/index.ts
|
|
1741
|
-
var VERSION = "1.
|
|
1741
|
+
var VERSION = "1.1.0";
|
|
1742
1742
|
|
|
1743
1743
|
exports.ApiError = ApiError;
|
|
1744
1744
|
exports.CdpError = CdpError;
|
package/dist/index.d.cts
CHANGED
|
@@ -486,6 +486,14 @@ interface Profile {
|
|
|
486
486
|
* Additive; a daemon predating the credential vault simply omits it.
|
|
487
487
|
*/
|
|
488
488
|
platforms?: string[];
|
|
489
|
+
/**
|
|
490
|
+
* The country the persona's clock places it in (`persona.timezone`), `null` for
|
|
491
|
+
* a zone outside the daemon's cohort table. Never read the country out of the
|
|
492
|
+
* language: Chrome sends the list of its UI language, so a profile in Vienna
|
|
493
|
+
* speaks `de-DE` and one in Stockholm `en-US`. Additive; present on list/get
|
|
494
|
+
* (`ProfileView`), absent where `protection` is.
|
|
495
|
+
*/
|
|
496
|
+
timezone_country?: string | null;
|
|
489
497
|
}
|
|
490
498
|
interface Group {
|
|
491
499
|
id: string;
|
|
@@ -1434,6 +1442,14 @@ interface Account {
|
|
|
1434
1442
|
/** Unix seconds; when the cached entitlement stops being valid. */
|
|
1435
1443
|
expires_at?: number;
|
|
1436
1444
|
permits_launch: boolean;
|
|
1445
|
+
/** The control plane refused this machine because the account has no active
|
|
1446
|
+
* plan. Choosing one on the pricing page is the only remedy; the daemon
|
|
1447
|
+
* enrols the machine by itself on its next check after that. Absent when
|
|
1448
|
+
* false. */
|
|
1449
|
+
plan_required?: boolean;
|
|
1450
|
+
/** With `plan_required`: the control plane said this account still has its
|
|
1451
|
+
* free trial. Absent when false. */
|
|
1452
|
+
trial_available?: boolean;
|
|
1437
1453
|
}
|
|
1438
1454
|
interface HealthStatus {
|
|
1439
1455
|
status: string;
|
|
@@ -2905,6 +2921,6 @@ declare function errorMessage(err: unknown): string;
|
|
|
2905
2921
|
* ```
|
|
2906
2922
|
*/
|
|
2907
2923
|
|
|
2908
|
-
declare const VERSION = "1.
|
|
2924
|
+
declare const VERSION = "1.1.0";
|
|
2909
2925
|
|
|
2910
2926
|
export { type Account, type ActivitySnapshot, type AgentRun, ApiError, type ApiErrorBody, type ArtifactBytes, type ArtifactPutResult, type AttachOptions, type AudioStatus, type AuditDetectorReport, type AuditReport, type AuditStatus, type AuditVerdict, type BindInboxBody, type BlockedExport, type CdpConnectOptions, CdpError, type CdpEvent, CdpSession, type Chapter, type ClickOptions, type CodecsStatus, type Connection, type CreateGroupBody, type CreateInboxBody, type CreatePresetBody, type CreateTasksBody, type CreateTasksResult, DEFAULT_CAPACITY, type DeleteInterruptionRuleParams, type EffectiveInterruptionLock, ErrorCode, type ErrorCodeValue, type EvaluateOptions, type ExitClaim, type ExitRuleStatus, type ExitScope, type ExitStatus, type ExportPresetName, type ExtraOutput, type FetchLike, GEO_MODES, type GeoMode, type GoalSource, type Group, type HealthStatus, type Inbox, type InboxBinding, type InboxBindings, type InboxChannel, type InputClient, type InterruptionChoice, type InterruptionLock, type InterruptionLockRow, type InterruptionLockView, type InterruptionRuleRow, type LaunchHandle, type ListRunsParams, type ListStepsParams, type ListTasksParams, type ListVideosParams, type MediaAsset, type MediaKind, type MusicBed, type NarrationLine, type NavigateOptions, NetworkError, type OsFamily, type OutcomeSource, PROXY_KINDS, type PasskeyRow, type PatchTaskBody, type PersonaConstraintOptions, type Preset, type PresetConfig, type PresetConstraints, type PreviewHidden, type PreviewMoment, type Profile, type ProfileActivity, type ProfileMemory, type ProfileTask, type ProtectionLevel, type ProtectionStatus, type Proxy, type ProxyKind, type ProxyRow, type ProxyUsage, ROTATIONS, RUNTIME_STATES, type ReadyStatus, type Recording, type RecordingKind, type RecordingState, type RemoteStatus, type RenderProgress, type RenderRequestBody, type RenderStage, type RevealCookiesBody, type RevealCookiesResult, type RevealedCookie, type Rotation, type RunActor, type RunOutcome, type RunStep, type RuntimeState, ScalebrowserClient, type ScalebrowserClientOptions, ScalebrowserError, type ScrollOptions, type SecretBindingMode, type SecretDeleteResult, type SecretKind, type SecretListResult, type SecretOrigin, type SecretPatchBody, type SecretRow, type SecretRunBody, type SecretRunMention, type SecretRunResult, type SecretScrubResult, type SecretState, type SessionExportBody, type SessionExportResult, type SessionImportBody, type SessionKind, type SetInterruptionLockBody, type SetInterruptionRuleBody, type ShareLinkLocal, type ShareStatus, type ShotFocus, type ShotIntent, type StepKind, type StepTarget, type StreamHandlers, type StreamParams, type StreamStatus, type TaskState, type TimestampState, type TranscriptWord, type TrustedInputBody, type TtsProviderView, type TtsVerifyResult, type UpdateGroupBody, type UpdateInboxBody, type UpdatePresetBody, VERSION, type Video, type VideoAccessGrant, type VideoAssetName, type VideoAssets, type VideoBackground, type VideoCard, type VideoDestination, type VideoFlags, type VideoPreset, type VideoPresetClip, type VideoPresetClipBody, type VideoPresetClipProgress, type VideoPresetClipStarted, type VideoPresetConfig, type VideoPresetPreview, type VideoPresetPreviewBody, type VideoState, type VideosPage, type VideosStorage, type WriteMemoryBody, deriveMetricsFromProfiles, errorMessage, eventStream, openCdpSession, parseSseFrame, subscribeEvents };
|
package/dist/index.d.ts
CHANGED
|
@@ -486,6 +486,14 @@ interface Profile {
|
|
|
486
486
|
* Additive; a daemon predating the credential vault simply omits it.
|
|
487
487
|
*/
|
|
488
488
|
platforms?: string[];
|
|
489
|
+
/**
|
|
490
|
+
* The country the persona's clock places it in (`persona.timezone`), `null` for
|
|
491
|
+
* a zone outside the daemon's cohort table. Never read the country out of the
|
|
492
|
+
* language: Chrome sends the list of its UI language, so a profile in Vienna
|
|
493
|
+
* speaks `de-DE` and one in Stockholm `en-US`. Additive; present on list/get
|
|
494
|
+
* (`ProfileView`), absent where `protection` is.
|
|
495
|
+
*/
|
|
496
|
+
timezone_country?: string | null;
|
|
489
497
|
}
|
|
490
498
|
interface Group {
|
|
491
499
|
id: string;
|
|
@@ -1434,6 +1442,14 @@ interface Account {
|
|
|
1434
1442
|
/** Unix seconds; when the cached entitlement stops being valid. */
|
|
1435
1443
|
expires_at?: number;
|
|
1436
1444
|
permits_launch: boolean;
|
|
1445
|
+
/** The control plane refused this machine because the account has no active
|
|
1446
|
+
* plan. Choosing one on the pricing page is the only remedy; the daemon
|
|
1447
|
+
* enrols the machine by itself on its next check after that. Absent when
|
|
1448
|
+
* false. */
|
|
1449
|
+
plan_required?: boolean;
|
|
1450
|
+
/** With `plan_required`: the control plane said this account still has its
|
|
1451
|
+
* free trial. Absent when false. */
|
|
1452
|
+
trial_available?: boolean;
|
|
1437
1453
|
}
|
|
1438
1454
|
interface HealthStatus {
|
|
1439
1455
|
status: string;
|
|
@@ -2905,6 +2921,6 @@ declare function errorMessage(err: unknown): string;
|
|
|
2905
2921
|
* ```
|
|
2906
2922
|
*/
|
|
2907
2923
|
|
|
2908
|
-
declare const VERSION = "1.
|
|
2924
|
+
declare const VERSION = "1.1.0";
|
|
2909
2925
|
|
|
2910
2926
|
export { type Account, type ActivitySnapshot, type AgentRun, ApiError, type ApiErrorBody, type ArtifactBytes, type ArtifactPutResult, type AttachOptions, type AudioStatus, type AuditDetectorReport, type AuditReport, type AuditStatus, type AuditVerdict, type BindInboxBody, type BlockedExport, type CdpConnectOptions, CdpError, type CdpEvent, CdpSession, type Chapter, type ClickOptions, type CodecsStatus, type Connection, type CreateGroupBody, type CreateInboxBody, type CreatePresetBody, type CreateTasksBody, type CreateTasksResult, DEFAULT_CAPACITY, type DeleteInterruptionRuleParams, type EffectiveInterruptionLock, ErrorCode, type ErrorCodeValue, type EvaluateOptions, type ExitClaim, type ExitRuleStatus, type ExitScope, type ExitStatus, type ExportPresetName, type ExtraOutput, type FetchLike, GEO_MODES, type GeoMode, type GoalSource, type Group, type HealthStatus, type Inbox, type InboxBinding, type InboxBindings, type InboxChannel, type InputClient, type InterruptionChoice, type InterruptionLock, type InterruptionLockRow, type InterruptionLockView, type InterruptionRuleRow, type LaunchHandle, type ListRunsParams, type ListStepsParams, type ListTasksParams, type ListVideosParams, type MediaAsset, type MediaKind, type MusicBed, type NarrationLine, type NavigateOptions, NetworkError, type OsFamily, type OutcomeSource, PROXY_KINDS, type PasskeyRow, type PatchTaskBody, type PersonaConstraintOptions, type Preset, type PresetConfig, type PresetConstraints, type PreviewHidden, type PreviewMoment, type Profile, type ProfileActivity, type ProfileMemory, type ProfileTask, type ProtectionLevel, type ProtectionStatus, type Proxy, type ProxyKind, type ProxyRow, type ProxyUsage, ROTATIONS, RUNTIME_STATES, type ReadyStatus, type Recording, type RecordingKind, type RecordingState, type RemoteStatus, type RenderProgress, type RenderRequestBody, type RenderStage, type RevealCookiesBody, type RevealCookiesResult, type RevealedCookie, type Rotation, type RunActor, type RunOutcome, type RunStep, type RuntimeState, ScalebrowserClient, type ScalebrowserClientOptions, ScalebrowserError, type ScrollOptions, type SecretBindingMode, type SecretDeleteResult, type SecretKind, type SecretListResult, type SecretOrigin, type SecretPatchBody, type SecretRow, type SecretRunBody, type SecretRunMention, type SecretRunResult, type SecretScrubResult, type SecretState, type SessionExportBody, type SessionExportResult, type SessionImportBody, type SessionKind, type SetInterruptionLockBody, type SetInterruptionRuleBody, type ShareLinkLocal, type ShareStatus, type ShotFocus, type ShotIntent, type StepKind, type StepTarget, type StreamHandlers, type StreamParams, type StreamStatus, type TaskState, type TimestampState, type TranscriptWord, type TrustedInputBody, type TtsProviderView, type TtsVerifyResult, type UpdateGroupBody, type UpdateInboxBody, type UpdatePresetBody, VERSION, type Video, type VideoAccessGrant, type VideoAssetName, type VideoAssets, type VideoBackground, type VideoCard, type VideoDestination, type VideoFlags, type VideoPreset, type VideoPresetClip, type VideoPresetClipBody, type VideoPresetClipProgress, type VideoPresetClipStarted, type VideoPresetConfig, type VideoPresetPreview, type VideoPresetPreviewBody, type VideoState, type VideosPage, type VideosStorage, type WriteMemoryBody, deriveMetricsFromProfiles, errorMessage, eventStream, openCdpSession, parseSseFrame, subscribeEvents };
|
package/dist/index.js
CHANGED
|
@@ -1732,6 +1732,6 @@ var PROXY_KINDS = ["http", "socks5", "gateway"];
|
|
|
1732
1732
|
var ROTATIONS = ["sticky", "rotating"];
|
|
1733
1733
|
|
|
1734
1734
|
// src/index.ts
|
|
1735
|
-
var VERSION = "1.
|
|
1735
|
+
var VERSION = "1.1.0";
|
|
1736
1736
|
|
|
1737
1737
|
export { ApiError, CdpError, CdpSession, DEFAULT_CAPACITY, ErrorCode, GEO_MODES, NetworkError, PROXY_KINDS, ROTATIONS, RUNTIME_STATES, ScalebrowserClient, ScalebrowserError, VERSION, deriveMetricsFromProfiles, errorMessage, eventStream, openCdpSession, parseSseFrame, subscribeEvents };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalebrowser/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Official Node/TypeScript SDK for the Scalebrowser daemon: typed REST client plus a direct-CDP driver plane (nodriver-style, not Playwright).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|