@wdio/browserstack-service 9.29.1 → 9.30.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/build/Percy/Percy-Handler.d.ts +0 -1
- package/build/Percy/Percy.d.ts +0 -1
- package/build/Percy/PercyBinary.d.ts +0 -1
- package/build/Percy/PercyCaptureMap.d.ts +0 -1
- package/build/Percy/PercyHelper.d.ts +0 -1
- package/build/Percy/PercyLogger.d.ts +0 -1
- package/build/Percy/PercySDK.d.ts +0 -1
- package/build/accessibility-handler.d.ts +22 -1
- package/build/ai-handler.d.ts +0 -1
- package/build/bstackLogger.d.ts +0 -1
- package/build/cleanup.d.ts +0 -1
- package/build/cleanup.js +260 -202
- package/build/cli/apiUtils.d.ts +0 -1
- package/build/cli/cliLogger.d.ts +0 -1
- package/build/cli/cliUtils.d.ts +0 -8
- package/build/cli/eventDispatcher.d.ts +0 -1
- package/build/cli/frameworks/automationFramework.d.ts +0 -1
- package/build/cli/frameworks/constants/automationFrameworkConstants.d.ts +0 -1
- package/build/cli/frameworks/constants/testFrameworkConstants.d.ts +0 -1
- package/build/cli/frameworks/testFramework.d.ts +0 -1
- package/build/cli/frameworks/wdioAutomationFramework.d.ts +0 -1
- package/build/cli/frameworks/wdioMochaTestFramework.d.ts +0 -1
- package/build/cli/grpcClient.d.ts +2 -3
- package/build/cli/index.d.ts +2 -2
- package/build/cli/instances/automationFrameworkInstance.d.ts +0 -1
- package/build/cli/instances/testFrameworkInstance.d.ts +0 -1
- package/build/cli/instances/trackedContext.d.ts +0 -1
- package/build/cli/instances/trackedInstance.d.ts +0 -1
- package/build/cli/modules/accessibilityModule.d.ts +2 -2
- package/build/cli/modules/automateModule.d.ts +0 -1
- package/build/cli/modules/baseModule.d.ts +1 -2
- package/build/cli/modules/customTagsModule.d.ts +0 -1
- package/build/cli/modules/observabilityModule.d.ts +0 -1
- package/build/cli/modules/percyModule.d.ts +0 -1
- package/build/cli/modules/testHubModule.d.ts +0 -1
- package/build/cli/modules/webdriverIOModule.d.ts +0 -1
- package/build/cli/states/automationFrameworkState.d.ts +0 -1
- package/build/cli/states/hookState.d.ts +0 -1
- package/build/cli/states/testFrameworkState.d.ts +0 -1
- package/build/config.d.ts +2 -3
- package/build/constants.d.ts +2 -12
- package/build/crash-reporter.d.ts +0 -1
- package/build/cucumber-types.d.ts +0 -1
- package/build/custom-tags-handler.d.ts +0 -1
- package/build/customTags.d.ts +0 -1
- package/build/data-store.d.ts +0 -1
- package/build/exitHandler.d.ts +0 -1
- package/build/fetchWrapper.d.ts +2 -19
- package/build/fileStream.d.ts +0 -1
- package/build/grpc/generated/sdk-messages-accessibility.d.ts +75 -0
- package/build/grpc/generated/sdk-messages-ai.d.ts +51 -0
- package/build/grpc/generated/sdk-messages-observability.d.ts +43 -0
- package/build/grpc/generated/sdk-messages-percy.d.ts +15 -0
- package/build/grpc/generated/sdk-messages-testhub.d.ts +15 -0
- package/build/grpc/generated/sdk-messages.d.ts +287 -0
- package/build/grpc/generated/sdk.d.ts +281 -0
- package/build/grpc/index.d.ts +42 -0
- package/build/index.d.ts +7 -1
- package/build/index.js +7106 -995
- package/build/insights-handler.d.ts +2 -1
- package/build/instrumentation/funnelInstrumentation.d.ts +0 -1
- package/build/instrumentation/performance/constants.d.ts +0 -1
- package/build/instrumentation/performance/performance-tester.d.ts +0 -1
- package/build/launcher.d.ts +0 -1
- package/build/log4jsAppender.d.ts +0 -1
- package/build/logPatcher.d.ts +0 -1
- package/build/logReportingAPI.d.ts +0 -1
- package/build/module-hook-tracker.d.ts +0 -1
- package/build/reporter.d.ts +0 -1
- package/build/request-handler.d.ts +0 -1
- package/build/scripts/accessibility-scripts.d.ts +0 -1
- package/build/service.d.ts +0 -1
- package/build/testHub/utils.d.ts +0 -1
- package/build/testOps/featureStats.d.ts +0 -1
- package/build/testOps/featureUsage.d.ts +0 -1
- package/build/testOps/listener.d.ts +0 -1
- package/build/testOps/openRunsJournal.d.ts +6 -0
- package/build/testOps/requestUtils.d.ts +0 -1
- package/build/testOps/testOpsConfig.d.ts +0 -1
- package/build/testOps/usageStats.d.ts +0 -1
- package/build/testorchestration/apply-orchestration.d.ts +0 -1
- package/build/testorchestration/helpers.d.ts +0 -1
- package/build/testorchestration/request-utils.d.ts +0 -1
- package/build/testorchestration/test-ordering-server.d.ts +0 -1
- package/build/testorchestration/testorcherstrationhandler.d.ts +0 -1
- package/build/testorchestration/testorcherstrationutils.d.ts +0 -1
- package/build/types.d.ts +0 -8
- package/build/util.d.ts +11 -2
- package/package.json +43 -15
- package/src/proto/browserstack/sdk/v1/sdk-messages-accessibility.proto +71 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages-ai.proto +48 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages-observability.proto +39 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages-percy.proto +10 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages-testhub.proto +10 -0
- package/src/proto/browserstack/sdk/v1/sdk-messages.proto +276 -0
- package/src/proto/browserstack/sdk/v1/sdk.proto +41 -0
- package/build/Percy/Percy-Handler.d.ts.map +0 -1
- package/build/Percy/Percy.d.ts.map +0 -1
- package/build/Percy/PercyBinary.d.ts.map +0 -1
- package/build/Percy/PercyCaptureMap.d.ts.map +0 -1
- package/build/Percy/PercyHelper.d.ts.map +0 -1
- package/build/Percy/PercyLogger.d.ts.map +0 -1
- package/build/Percy/PercySDK.d.ts.map +0 -1
- package/build/accessibility-handler.d.ts.map +0 -1
- package/build/ai-handler.d.ts.map +0 -1
- package/build/bstackLogger.d.ts.map +0 -1
- package/build/caCert.d.ts +0 -7
- package/build/caCert.d.ts.map +0 -1
- package/build/cleanup.d.ts.map +0 -1
- package/build/cli/apiUtils.d.ts.map +0 -1
- package/build/cli/cliLogger.d.ts.map +0 -1
- package/build/cli/cliUtils.d.ts.map +0 -1
- package/build/cli/eventDispatcher.d.ts.map +0 -1
- package/build/cli/frameworks/automationFramework.d.ts.map +0 -1
- package/build/cli/frameworks/constants/automationFrameworkConstants.d.ts.map +0 -1
- package/build/cli/frameworks/constants/testFrameworkConstants.d.ts.map +0 -1
- package/build/cli/frameworks/testFramework.d.ts.map +0 -1
- package/build/cli/frameworks/wdioAutomationFramework.d.ts.map +0 -1
- package/build/cli/frameworks/wdioMochaTestFramework.d.ts.map +0 -1
- package/build/cli/grpcClient.d.ts.map +0 -1
- package/build/cli/index.d.ts.map +0 -1
- package/build/cli/instances/automationFrameworkInstance.d.ts.map +0 -1
- package/build/cli/instances/testFrameworkInstance.d.ts.map +0 -1
- package/build/cli/instances/trackedContext.d.ts.map +0 -1
- package/build/cli/instances/trackedInstance.d.ts.map +0 -1
- package/build/cli/modules/accessibilityModule.d.ts.map +0 -1
- package/build/cli/modules/automateModule.d.ts.map +0 -1
- package/build/cli/modules/baseModule.d.ts.map +0 -1
- package/build/cli/modules/customTagsModule.d.ts.map +0 -1
- package/build/cli/modules/observabilityModule.d.ts.map +0 -1
- package/build/cli/modules/percyModule.d.ts.map +0 -1
- package/build/cli/modules/testHubModule.d.ts.map +0 -1
- package/build/cli/modules/webdriverIOModule.d.ts.map +0 -1
- package/build/cli/states/automationFrameworkState.d.ts.map +0 -1
- package/build/cli/states/hookState.d.ts.map +0 -1
- package/build/cli/states/testFrameworkState.d.ts.map +0 -1
- package/build/config.d.ts.map +0 -1
- package/build/constants.d.ts.map +0 -1
- package/build/crash-reporter.d.ts.map +0 -1
- package/build/cucumber-types.d.ts.map +0 -1
- package/build/custom-tags-handler.d.ts.map +0 -1
- package/build/customTags.d.ts.map +0 -1
- package/build/data-store.d.ts.map +0 -1
- package/build/exitHandler.d.ts.map +0 -1
- package/build/fetchWrapper.d.ts.map +0 -1
- package/build/fileStream.d.ts.map +0 -1
- package/build/index.d.ts.map +0 -1
- package/build/insights-handler.d.ts.map +0 -1
- package/build/instrumentation/funnelInstrumentation.d.ts.map +0 -1
- package/build/instrumentation/performance/constants.d.ts.map +0 -1
- package/build/instrumentation/performance/performance-tester.d.ts.map +0 -1
- package/build/launcher.d.ts.map +0 -1
- package/build/log4jsAppender.d.ts.map +0 -1
- package/build/logPatcher.d.ts.map +0 -1
- package/build/logReportingAPI.d.ts.map +0 -1
- package/build/module-hook-tracker.d.ts.map +0 -1
- package/build/reporter.d.ts.map +0 -1
- package/build/request-handler.d.ts.map +0 -1
- package/build/scripts/accessibility-scripts.d.ts.map +0 -1
- package/build/service.d.ts.map +0 -1
- package/build/testHub/utils.d.ts.map +0 -1
- package/build/testOps/featureStats.d.ts.map +0 -1
- package/build/testOps/featureUsage.d.ts.map +0 -1
- package/build/testOps/listener.d.ts.map +0 -1
- package/build/testOps/requestUtils.d.ts.map +0 -1
- package/build/testOps/testOpsConfig.d.ts.map +0 -1
- package/build/testOps/usageStats.d.ts.map +0 -1
- package/build/testorchestration/apply-orchestration.d.ts.map +0 -1
- package/build/testorchestration/helpers.d.ts.map +0 -1
- package/build/testorchestration/request-utils.d.ts.map +0 -1
- package/build/testorchestration/test-ordering-server.d.ts.map +0 -1
- package/build/testorchestration/testorcherstrationhandler.d.ts.map +0 -1
- package/build/testorchestration/testorcherstrationutils.d.ts.map +0 -1
- package/build/types.d.ts.map +0 -1
- package/build/util.d.ts.map +0 -1
package/build/cli/apiUtils.d.ts
CHANGED
package/build/cli/cliLogger.d.ts
CHANGED
package/build/cli/cliUtils.d.ts
CHANGED
|
@@ -21,13 +21,6 @@ export declare class CLIUtils {
|
|
|
21
21
|
static getWritableDir(): string | null | undefined;
|
|
22
22
|
static getExistingCliPath(cliDir: string): string;
|
|
23
23
|
static isBinaryBusy(binaryPath: string): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* fetch wrapper for CLI network calls that (a) raises undici's connect timeout
|
|
26
|
-
* above the non-overridable 10s default of global fetch and (b) retries a few
|
|
27
|
-
* times with linear backoff on transient connection failures. Both are needed
|
|
28
|
-
* for reliability in constrained CI/containerised networks (SDK-6152).
|
|
29
|
-
*/
|
|
30
|
-
static fetchWithRetry: (input: string, init: RequestInit, label: string) => Promise<Response>;
|
|
31
24
|
static requestToUpdateCLI: (queryParams: Record<string, string>, config: Options.Testrunner) => Promise<any>;
|
|
32
25
|
static runShellCommand(cmdCommand: string, workingDir?: string): Promise<string>;
|
|
33
26
|
static downloadLatestBinary: (binDownloadUrl: string, cliDir: string) => Promise<string | null>;
|
|
@@ -69,4 +62,3 @@ export declare class CLIUtils {
|
|
|
69
62
|
static getObservabilityBuildTags(observabilityOptions: TestObservabilityOptions, bstackBuildTag?: string): string[];
|
|
70
63
|
static checkCLISupportedFrameworks(framework: string | undefined): boolean;
|
|
71
64
|
}
|
|
72
|
-
//# sourceMappingURL=cliUtils.d.ts.map
|
|
@@ -86,4 +86,3 @@ export default class TestFramework {
|
|
|
86
86
|
static setState(instance: TrackedInstance, key: string, value: unknown): void;
|
|
87
87
|
updateInstanceState(instance: TestFrameworkInstance, testFrameworkState: State, hookState: State): void;
|
|
88
88
|
}
|
|
89
|
-
//# sourceMappingURL=testFramework.d.ts.map
|
|
@@ -79,4 +79,3 @@ export default class WdioMochaTestFramework extends TestFramework {
|
|
|
79
79
|
*/
|
|
80
80
|
trackHookEvents(instance: TestFrameworkInstance, testFrameworkState: State, hookState: State, args: Record<string, unknown>): Promise<void>;
|
|
81
81
|
}
|
|
82
|
-
//# sourceMappingURL=wdioMochaTestFramework.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SDKClient, grpcChannel } from '
|
|
2
|
-
import type { TestFrameworkEventRequest, TestSessionEventRequest, LogCreatedEventRequest, DriverInitRequest, FetchDriverExecuteParamsEventRequest, ConnectBinSessionResponse, StartBinSessionResponse, TestFrameworkEventResponse, TestSessionEventResponse, LogCreatedEventResponse, DriverInitResponse, FetchDriverExecuteParamsEventResponse } from '
|
|
1
|
+
import { SDKClient, grpcChannel } from '../grpc/index.js';
|
|
2
|
+
import type { TestFrameworkEventRequest, TestSessionEventRequest, LogCreatedEventRequest, DriverInitRequest, FetchDriverExecuteParamsEventRequest, ConnectBinSessionResponse, StartBinSessionResponse, TestFrameworkEventResponse, TestSessionEventResponse, LogCreatedEventResponse, DriverInitResponse, FetchDriverExecuteParamsEventResponse } from '../grpc/index.js';
|
|
3
3
|
import { BStackLogger } from './cliLogger.js';
|
|
4
4
|
/**
|
|
5
5
|
* GrpcClient - Singleton class for managing gRPC client connections
|
|
@@ -79,4 +79,3 @@ export declare class GrpcClient {
|
|
|
79
79
|
*/
|
|
80
80
|
getChannel(): grpcChannel | null;
|
|
81
81
|
}
|
|
82
|
-
//# sourceMappingURL=grpcClient.d.ts.map
|
package/build/cli/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BStackLogger } from './cliLogger.js';
|
|
2
2
|
import type { ChildProcess } from 'node:child_process';
|
|
3
|
-
import type { StartBinSessionResponse } from '
|
|
3
|
+
import type { StartBinSessionResponse } from '../grpc/index.js';
|
|
4
4
|
import type BaseModule from './modules/baseModule.js';
|
|
5
5
|
import type { Options } from '@wdio/types';
|
|
6
6
|
import WdioMochaTestFramework from './frameworks/wdioMochaTestFramework.js';
|
|
@@ -23,6 +23,7 @@ export declare class BrowserstackCLI {
|
|
|
23
23
|
process: ChildProcess | null;
|
|
24
24
|
isMainConnected: boolean;
|
|
25
25
|
isChildConnected: boolean;
|
|
26
|
+
modulesLoaded: boolean;
|
|
26
27
|
binSessionId: string | null;
|
|
27
28
|
modules: Record<string, BaseModule>;
|
|
28
29
|
testFramework: WdioMochaTestFramework | null;
|
|
@@ -158,4 +159,3 @@ export declare class BrowserstackCLI {
|
|
|
158
159
|
*/
|
|
159
160
|
getAutomationFramework(): WdioAutomationFramework | null;
|
|
160
161
|
}
|
|
161
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import BaseModule from './baseModule.js';
|
|
2
2
|
import { BStackLogger } from '../cliLogger.js';
|
|
3
3
|
import accessibilityScripts from '../../scripts/accessibility-scripts.js';
|
|
4
|
-
import type { Accessibility } from '
|
|
4
|
+
import type { Accessibility } from '../../grpc/index.js';
|
|
5
5
|
export default class AccessibilityModule extends BaseModule {
|
|
6
6
|
logger: typeof BStackLogger;
|
|
7
7
|
name: string;
|
|
@@ -25,6 +25,7 @@ export default class AccessibilityModule extends BaseModule {
|
|
|
25
25
|
onAfterTest(): Promise<void>;
|
|
26
26
|
private shouldPatchExecuteScript;
|
|
27
27
|
private getCapability;
|
|
28
|
+
private isAppAutomateSession;
|
|
28
29
|
private performScanCli;
|
|
29
30
|
private sendTestStopEvent;
|
|
30
31
|
getA11yResults(browser: WebdriverIO.Browser): Promise<Array<Record<string, unknown>>>;
|
|
@@ -32,4 +33,3 @@ export default class AccessibilityModule extends BaseModule {
|
|
|
32
33
|
getDriverExecuteParams(): Promise<Record<string, unknown>>;
|
|
33
34
|
_setAnnotation(message: string): Promise<void>;
|
|
34
35
|
}
|
|
35
|
-
//# sourceMappingURL=accessibilityModule.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SDKClient } from '
|
|
1
|
+
import type { SDKClient } from '../../grpc/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Base class for BrowserStack modules
|
|
4
4
|
*/
|
|
@@ -31,4 +31,3 @@ export default class BaseModule {
|
|
|
31
31
|
*/
|
|
32
32
|
configure(binSessionId: string | null, platformIndex: number, client: SDKClient | null, config?: {}): void;
|
|
33
33
|
}
|
|
34
|
-
//# sourceMappingURL=baseModule.d.ts.map
|
|
@@ -26,4 +26,3 @@ export default class WebdriverIOModule extends BaseModule {
|
|
|
26
26
|
onDriverCreated(args: Record<string, unknown>): Promise<void>;
|
|
27
27
|
getBinDriverCapabilities(instance: AutomationFrameworkInstance, caps: WebdriverIO.Capabilities): Promise<void>;
|
|
28
28
|
}
|
|
29
|
-
//# sourceMappingURL=webdriverIOModule.d.ts.map
|
package/build/config.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { AppConfig, BrowserstackConfig } from './types.js';
|
|
|
2
2
|
import type { Capabilities, Options } from '@wdio/types';
|
|
3
3
|
import TestOpsConfig from './testOps/testOpsConfig.js';
|
|
4
4
|
declare class BrowserStackConfig {
|
|
5
|
-
static getInstance(options?: BrowserstackConfig & Options.Testrunner, config?: Options.Testrunner, capabilities?: Capabilities.TestrunnerCapabilities
|
|
5
|
+
static getInstance(options?: BrowserstackConfig & Options.Testrunner, config?: Options.Testrunner, capabilities?: Capabilities.TestrunnerCapabilities): BrowserStackConfig;
|
|
6
6
|
userName?: string;
|
|
7
7
|
accessKey?: string;
|
|
8
8
|
framework?: string;
|
|
@@ -20,8 +20,7 @@ declare class BrowserStackConfig {
|
|
|
20
20
|
percyBuildId?: number | null;
|
|
21
21
|
isPercyAutoEnabled: boolean;
|
|
22
22
|
sdkRunID: string;
|
|
23
|
-
constructor(options: BrowserstackConfig & Options.Testrunner, config: Options.Testrunner, capabilities?: Capabilities.TestrunnerCapabilities
|
|
23
|
+
constructor(options: BrowserstackConfig & Options.Testrunner, config: Options.Testrunner, capabilities?: Capabilities.TestrunnerCapabilities);
|
|
24
24
|
sentFunnelData(): void;
|
|
25
25
|
}
|
|
26
26
|
export default BrowserStackConfig;
|
|
27
|
-
//# sourceMappingURL=config.d.ts.map
|
package/build/constants.d.ts
CHANGED
|
@@ -34,17 +34,6 @@ export declare const LOG_KIND_USAGE_MAP: {
|
|
|
34
34
|
export declare const FUNNEL_INSTRUMENTATION_URL = "https://api.browserstack.com/sdk/v1/event";
|
|
35
35
|
export declare const EDS_URL = "https://eds.browserstack.com";
|
|
36
36
|
export declare const SUPPORTED_BROWSERS_FOR_AI: string[];
|
|
37
|
-
export declare const SUPPORTED_BROWSERS_FOR_ACCESSIBILITY: string[];
|
|
38
|
-
export declare const MIN_BROWSER_VERSIONS_A11Y: {
|
|
39
|
-
readonly chrome: 95;
|
|
40
|
-
readonly chromefortesting: 141;
|
|
41
|
-
readonly safari: 18.4;
|
|
42
|
-
};
|
|
43
|
-
export declare const MIN_BROWSER_VERSIONS_A11Y_NON_BSTACK: {
|
|
44
|
-
readonly chrome: 100;
|
|
45
|
-
readonly chromefortesting: 141;
|
|
46
|
-
readonly safari: 18.4;
|
|
47
|
-
};
|
|
48
37
|
export declare const TCG_URL = "https://tcg.browserstack.com";
|
|
49
38
|
export declare const TCG_INFO: {
|
|
50
39
|
tcgRegion: string;
|
|
@@ -64,6 +53,8 @@ export declare const TESTOPS_BUILD_COMPLETED_ENV = "BS_TESTOPS_BUILD_COMPLETED";
|
|
|
64
53
|
export declare const BROWSERSTACK_PERCY = "BROWSERSTACK_PERCY";
|
|
65
54
|
export declare const BROWSERSTACK_ACCESSIBILITY = "BROWSERSTACK_ACCESSIBILITY";
|
|
66
55
|
export declare const BROWSERSTACK_OBSERVABILITY = "BROWSERSTACK_OBSERVABILITY";
|
|
56
|
+
export declare const BROWSERSTACK_LTS_SESSION_ID = "BROWSERSTACK_LTS_SESSION_ID";
|
|
57
|
+
export declare const BROWSERSTACK_LTS = "BROWSERSTACK_LTS";
|
|
67
58
|
export declare const BROWSERSTACK_TEST_REPORTING = "BROWSERSTACK_TEST_REPORTING";
|
|
68
59
|
export declare const BROWSERSTACK_TEST_REPORTING_DEBUG = "BROWSERSTACK_TEST_REPORTING_DEBUG";
|
|
69
60
|
export declare const TEST_REPORTING_BUILD_TAG = "TEST_REPORTING_BUILD_TAG";
|
|
@@ -105,4 +96,3 @@ export declare const MODULE_HOOK_EVENTS: {
|
|
|
105
96
|
readonly APPAUTOMATE_ON_START: "MODULE_APPAUTOMATE_ON_START";
|
|
106
97
|
readonly APPAUTOMATE_ON_DRIVER_INIT: "MODULE_APPAUTOMATE_ON_DRIVER_INIT";
|
|
107
98
|
};
|
|
108
|
-
//# sourceMappingURL=constants.d.ts.map
|
package/build/customTags.d.ts
CHANGED
package/build/data-store.d.ts
CHANGED
package/build/exitHandler.d.ts
CHANGED
package/build/fetchWrapper.d.ts
CHANGED
|
@@ -2,22 +2,5 @@ export declare class ResponseError extends Error {
|
|
|
2
2
|
response: Response;
|
|
3
3
|
constructor(message: string, res: Response);
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* `RequestInit`.
|
|
8
|
-
*
|
|
9
|
-
* `connectTimeoutMs` overrides undici's connection-establishment timeout. Node's
|
|
10
|
-
* global `fetch` hard-codes this to 10s and it is NOT overridable via
|
|
11
|
-
* `AbortSignal` (the signal only bounds the overall request, not the socket
|
|
12
|
-
* connect). In constrained/containerised CI networks (e.g. Kubernetes pods) a
|
|
13
|
-
* TLS/TCP handshake can legitimately take longer than 10s, so global fetch aborts
|
|
14
|
-
* with `UND_ERR_CONNECT_TIMEOUT` even though the endpoint is healthy. Supplying
|
|
15
|
-
* this option routes the request through a custom undici dispatcher with a larger
|
|
16
|
-
* connect timeout.
|
|
17
|
-
*/
|
|
18
|
-
export interface FetchOptions {
|
|
19
|
-
connectTimeoutMs?: number;
|
|
20
|
-
}
|
|
21
|
-
export default function fetchWrap(input: RequestInfo | URL, init?: RequestInit, options?: FetchOptions): Promise<Response>;
|
|
22
|
-
export declare function _fetch(input: RequestInfo | URL, init?: RequestInit, options?: FetchOptions): Promise<Response>;
|
|
23
|
-
//# sourceMappingURL=fetchWrapper.d.ts.map
|
|
5
|
+
export default function fetchWrap(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
6
|
+
export declare function _fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
package/build/fileStream.d.ts
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { KeyMessage } from "./sdk-messages-observability.js";
|
|
3
|
+
import { TestHub } from "./sdk-messages-testhub.js";
|
|
4
|
+
export declare const protobufPackage = "browserstack.sdk.v1";
|
|
5
|
+
export interface Accessibility {
|
|
6
|
+
success: boolean;
|
|
7
|
+
options?: Accessibility_AccessibilityOptions | undefined;
|
|
8
|
+
errorTraceId?: string | undefined;
|
|
9
|
+
code?: string | undefined;
|
|
10
|
+
errors: KeyMessage[];
|
|
11
|
+
isAppAccessibility?: boolean | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface Accessibility_AccessibilityOptions {
|
|
14
|
+
status?: string | undefined;
|
|
15
|
+
capabilities: Accessibility_AccessibilityOptions_AccessibilityCapability[];
|
|
16
|
+
scripts: Accessibility_AccessibilityOptions_AccessibilityScript[];
|
|
17
|
+
commandsToWrap?: Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap {
|
|
20
|
+
scriptsToRun: string[];
|
|
21
|
+
commands: Accessibility_AccessibilityOptions_AccessibilityCommand[];
|
|
22
|
+
}
|
|
23
|
+
export interface Accessibility_AccessibilityOptions_AccessibilityCommand {
|
|
24
|
+
name: string;
|
|
25
|
+
library: string;
|
|
26
|
+
module: string;
|
|
27
|
+
class: string;
|
|
28
|
+
method: string;
|
|
29
|
+
}
|
|
30
|
+
export interface Accessibility_AccessibilityOptions_AccessibilityScript {
|
|
31
|
+
name: string;
|
|
32
|
+
command: string;
|
|
33
|
+
}
|
|
34
|
+
export interface Accessibility_AccessibilityOptions_AccessibilityCapability {
|
|
35
|
+
name: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}
|
|
38
|
+
export interface AccessibilityConfigRequest {
|
|
39
|
+
binSessionId: string;
|
|
40
|
+
platformIndex: number;
|
|
41
|
+
frameworkName: string;
|
|
42
|
+
frameworkVersion: string;
|
|
43
|
+
hubUrl: string;
|
|
44
|
+
}
|
|
45
|
+
export interface AccessibilityConfigResponse {
|
|
46
|
+
success: boolean;
|
|
47
|
+
testhub?: TestHub | undefined;
|
|
48
|
+
accessibility?: Accessibility | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface AccessibilityResultRequest {
|
|
51
|
+
binSessionId: string;
|
|
52
|
+
testRunId: string;
|
|
53
|
+
sessionId: string;
|
|
54
|
+
resultType: string;
|
|
55
|
+
}
|
|
56
|
+
export interface AccessibilityResultResponse {
|
|
57
|
+
success: boolean;
|
|
58
|
+
resultResponse: Uint8Array;
|
|
59
|
+
}
|
|
60
|
+
export declare const Accessibility: MessageFns<Accessibility>;
|
|
61
|
+
export declare const Accessibility_AccessibilityOptions: MessageFns<Accessibility_AccessibilityOptions>;
|
|
62
|
+
export declare const Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap: MessageFns<Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap>;
|
|
63
|
+
export declare const Accessibility_AccessibilityOptions_AccessibilityCommand: MessageFns<Accessibility_AccessibilityOptions_AccessibilityCommand>;
|
|
64
|
+
export declare const Accessibility_AccessibilityOptions_AccessibilityScript: MessageFns<Accessibility_AccessibilityOptions_AccessibilityScript>;
|
|
65
|
+
export declare const Accessibility_AccessibilityOptions_AccessibilityCapability: MessageFns<Accessibility_AccessibilityOptions_AccessibilityCapability>;
|
|
66
|
+
export declare const AccessibilityConfigRequest: MessageFns<AccessibilityConfigRequest>;
|
|
67
|
+
export declare const AccessibilityConfigResponse: MessageFns<AccessibilityConfigResponse>;
|
|
68
|
+
export declare const AccessibilityResultRequest: MessageFns<AccessibilityResultRequest>;
|
|
69
|
+
export declare const AccessibilityResultResponse: MessageFns<AccessibilityResultResponse>;
|
|
70
|
+
export interface MessageFns<T> {
|
|
71
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
72
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
73
|
+
fromJSON(object: any): T;
|
|
74
|
+
toJSON(message: T): unknown;
|
|
75
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "browserstack.sdk.v1";
|
|
3
|
+
export interface AIBrowserExtensionRequest {
|
|
4
|
+
binSessionId: string;
|
|
5
|
+
browserName: string;
|
|
6
|
+
browserVersion: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AIBrowserExtensionResponse {
|
|
9
|
+
success: boolean;
|
|
10
|
+
extension?: string | undefined;
|
|
11
|
+
error?: string | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface AISelfHealGetRequest {
|
|
14
|
+
binSessionId: string;
|
|
15
|
+
platformIndex?: string | undefined;
|
|
16
|
+
frameworkSessionId: string;
|
|
17
|
+
locatorType: string;
|
|
18
|
+
}
|
|
19
|
+
export interface AISelfHealGetResponse {
|
|
20
|
+
success: boolean;
|
|
21
|
+
frameworkSessionId: string;
|
|
22
|
+
locatorType?: string | undefined;
|
|
23
|
+
locatorValue?: string | undefined;
|
|
24
|
+
aiHealing?: boolean | undefined;
|
|
25
|
+
error?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface AISelfHealStepRequest {
|
|
28
|
+
binSessionId: string;
|
|
29
|
+
platformIndex?: string | undefined;
|
|
30
|
+
frameworkSessionId: string;
|
|
31
|
+
isSuccess: boolean;
|
|
32
|
+
locatorType: string;
|
|
33
|
+
locatorValue: string;
|
|
34
|
+
testName: string;
|
|
35
|
+
}
|
|
36
|
+
export interface AISelfHealStepResponse {
|
|
37
|
+
frameworkSessionId: string;
|
|
38
|
+
executeScript: string;
|
|
39
|
+
}
|
|
40
|
+
export declare const AIBrowserExtensionRequest: MessageFns<AIBrowserExtensionRequest>;
|
|
41
|
+
export declare const AIBrowserExtensionResponse: MessageFns<AIBrowserExtensionResponse>;
|
|
42
|
+
export declare const AISelfHealGetRequest: MessageFns<AISelfHealGetRequest>;
|
|
43
|
+
export declare const AISelfHealGetResponse: MessageFns<AISelfHealGetResponse>;
|
|
44
|
+
export declare const AISelfHealStepRequest: MessageFns<AISelfHealStepRequest>;
|
|
45
|
+
export declare const AISelfHealStepResponse: MessageFns<AISelfHealStepResponse>;
|
|
46
|
+
export interface MessageFns<T> {
|
|
47
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
48
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
49
|
+
fromJSON(object: any): T;
|
|
50
|
+
toJSON(message: T): unknown;
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { TestHub } from "./sdk-messages-testhub.js";
|
|
3
|
+
export declare const protobufPackage = "browserstack.sdk.v1";
|
|
4
|
+
export interface KeyMessage {
|
|
5
|
+
key: string;
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Observability {
|
|
9
|
+
success: boolean;
|
|
10
|
+
options?: Observability_ObservabilityOptions | undefined;
|
|
11
|
+
errorTraceId?: string | undefined;
|
|
12
|
+
code?: string | undefined;
|
|
13
|
+
errors: KeyMessage[];
|
|
14
|
+
optionsAsBytes?: Uint8Array | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface Observability_ObservabilityOptions {
|
|
17
|
+
allowScreenshots?: string | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface ObservabilityConfigRequest {
|
|
20
|
+
binSessionId: string;
|
|
21
|
+
platformIndex: number;
|
|
22
|
+
testFrameworkName: string;
|
|
23
|
+
testFrameworkVersion: string;
|
|
24
|
+
hubUrl?: string | undefined;
|
|
25
|
+
capabilities?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface ObservabilityConfigResponse {
|
|
28
|
+
success: boolean;
|
|
29
|
+
testhub?: TestHub | undefined;
|
|
30
|
+
observability?: Observability | undefined;
|
|
31
|
+
capabilities?: string | undefined;
|
|
32
|
+
}
|
|
33
|
+
export declare const KeyMessage: MessageFns<KeyMessage>;
|
|
34
|
+
export declare const Observability: MessageFns<Observability>;
|
|
35
|
+
export declare const Observability_ObservabilityOptions: MessageFns<Observability_ObservabilityOptions>;
|
|
36
|
+
export declare const ObservabilityConfigRequest: MessageFns<ObservabilityConfigRequest>;
|
|
37
|
+
export declare const ObservabilityConfigResponse: MessageFns<ObservabilityConfigResponse>;
|
|
38
|
+
export interface MessageFns<T> {
|
|
39
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
40
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
41
|
+
fromJSON(object: any): T;
|
|
42
|
+
toJSON(message: T): unknown;
|
|
43
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "browserstack.sdk.v1";
|
|
3
|
+
export interface Percy {
|
|
4
|
+
success: boolean;
|
|
5
|
+
percyCaptureMode: string;
|
|
6
|
+
percyBuildId: string;
|
|
7
|
+
isPercyAutoEnabled: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Percy: MessageFns<Percy>;
|
|
10
|
+
export interface MessageFns<T> {
|
|
11
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
12
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
13
|
+
fromJSON(object: any): T;
|
|
14
|
+
toJSON(message: T): unknown;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "browserstack.sdk.v1";
|
|
3
|
+
export interface TestHub {
|
|
4
|
+
jwt: string;
|
|
5
|
+
buildHashedId: string;
|
|
6
|
+
testhubEvents: boolean;
|
|
7
|
+
errors: Uint8Array;
|
|
8
|
+
}
|
|
9
|
+
export declare const TestHub: MessageFns<TestHub>;
|
|
10
|
+
export interface MessageFns<T> {
|
|
11
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
12
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
13
|
+
fromJSON(object: any): T;
|
|
14
|
+
toJSON(message: T): unknown;
|
|
15
|
+
}
|