@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.
Files changed (175) hide show
  1. package/build/Percy/Percy-Handler.d.ts +0 -1
  2. package/build/Percy/Percy.d.ts +0 -1
  3. package/build/Percy/PercyBinary.d.ts +0 -1
  4. package/build/Percy/PercyCaptureMap.d.ts +0 -1
  5. package/build/Percy/PercyHelper.d.ts +0 -1
  6. package/build/Percy/PercyLogger.d.ts +0 -1
  7. package/build/Percy/PercySDK.d.ts +0 -1
  8. package/build/accessibility-handler.d.ts +22 -1
  9. package/build/ai-handler.d.ts +0 -1
  10. package/build/bstackLogger.d.ts +0 -1
  11. package/build/cleanup.d.ts +0 -1
  12. package/build/cleanup.js +260 -202
  13. package/build/cli/apiUtils.d.ts +0 -1
  14. package/build/cli/cliLogger.d.ts +0 -1
  15. package/build/cli/cliUtils.d.ts +0 -8
  16. package/build/cli/eventDispatcher.d.ts +0 -1
  17. package/build/cli/frameworks/automationFramework.d.ts +0 -1
  18. package/build/cli/frameworks/constants/automationFrameworkConstants.d.ts +0 -1
  19. package/build/cli/frameworks/constants/testFrameworkConstants.d.ts +0 -1
  20. package/build/cli/frameworks/testFramework.d.ts +0 -1
  21. package/build/cli/frameworks/wdioAutomationFramework.d.ts +0 -1
  22. package/build/cli/frameworks/wdioMochaTestFramework.d.ts +0 -1
  23. package/build/cli/grpcClient.d.ts +2 -3
  24. package/build/cli/index.d.ts +2 -2
  25. package/build/cli/instances/automationFrameworkInstance.d.ts +0 -1
  26. package/build/cli/instances/testFrameworkInstance.d.ts +0 -1
  27. package/build/cli/instances/trackedContext.d.ts +0 -1
  28. package/build/cli/instances/trackedInstance.d.ts +0 -1
  29. package/build/cli/modules/accessibilityModule.d.ts +2 -2
  30. package/build/cli/modules/automateModule.d.ts +0 -1
  31. package/build/cli/modules/baseModule.d.ts +1 -2
  32. package/build/cli/modules/customTagsModule.d.ts +0 -1
  33. package/build/cli/modules/observabilityModule.d.ts +0 -1
  34. package/build/cli/modules/percyModule.d.ts +0 -1
  35. package/build/cli/modules/testHubModule.d.ts +0 -1
  36. package/build/cli/modules/webdriverIOModule.d.ts +0 -1
  37. package/build/cli/states/automationFrameworkState.d.ts +0 -1
  38. package/build/cli/states/hookState.d.ts +0 -1
  39. package/build/cli/states/testFrameworkState.d.ts +0 -1
  40. package/build/config.d.ts +2 -3
  41. package/build/constants.d.ts +2 -12
  42. package/build/crash-reporter.d.ts +0 -1
  43. package/build/cucumber-types.d.ts +0 -1
  44. package/build/custom-tags-handler.d.ts +0 -1
  45. package/build/customTags.d.ts +0 -1
  46. package/build/data-store.d.ts +0 -1
  47. package/build/exitHandler.d.ts +0 -1
  48. package/build/fetchWrapper.d.ts +2 -19
  49. package/build/fileStream.d.ts +0 -1
  50. package/build/grpc/generated/sdk-messages-accessibility.d.ts +75 -0
  51. package/build/grpc/generated/sdk-messages-ai.d.ts +51 -0
  52. package/build/grpc/generated/sdk-messages-observability.d.ts +43 -0
  53. package/build/grpc/generated/sdk-messages-percy.d.ts +15 -0
  54. package/build/grpc/generated/sdk-messages-testhub.d.ts +15 -0
  55. package/build/grpc/generated/sdk-messages.d.ts +287 -0
  56. package/build/grpc/generated/sdk.d.ts +281 -0
  57. package/build/grpc/index.d.ts +42 -0
  58. package/build/index.d.ts +7 -1
  59. package/build/index.js +7106 -995
  60. package/build/insights-handler.d.ts +2 -1
  61. package/build/instrumentation/funnelInstrumentation.d.ts +0 -1
  62. package/build/instrumentation/performance/constants.d.ts +0 -1
  63. package/build/instrumentation/performance/performance-tester.d.ts +0 -1
  64. package/build/launcher.d.ts +0 -1
  65. package/build/log4jsAppender.d.ts +0 -1
  66. package/build/logPatcher.d.ts +0 -1
  67. package/build/logReportingAPI.d.ts +0 -1
  68. package/build/module-hook-tracker.d.ts +0 -1
  69. package/build/reporter.d.ts +0 -1
  70. package/build/request-handler.d.ts +0 -1
  71. package/build/scripts/accessibility-scripts.d.ts +0 -1
  72. package/build/service.d.ts +0 -1
  73. package/build/testHub/utils.d.ts +0 -1
  74. package/build/testOps/featureStats.d.ts +0 -1
  75. package/build/testOps/featureUsage.d.ts +0 -1
  76. package/build/testOps/listener.d.ts +0 -1
  77. package/build/testOps/openRunsJournal.d.ts +6 -0
  78. package/build/testOps/requestUtils.d.ts +0 -1
  79. package/build/testOps/testOpsConfig.d.ts +0 -1
  80. package/build/testOps/usageStats.d.ts +0 -1
  81. package/build/testorchestration/apply-orchestration.d.ts +0 -1
  82. package/build/testorchestration/helpers.d.ts +0 -1
  83. package/build/testorchestration/request-utils.d.ts +0 -1
  84. package/build/testorchestration/test-ordering-server.d.ts +0 -1
  85. package/build/testorchestration/testorcherstrationhandler.d.ts +0 -1
  86. package/build/testorchestration/testorcherstrationutils.d.ts +0 -1
  87. package/build/types.d.ts +0 -8
  88. package/build/util.d.ts +11 -2
  89. package/package.json +43 -15
  90. package/src/proto/browserstack/sdk/v1/sdk-messages-accessibility.proto +71 -0
  91. package/src/proto/browserstack/sdk/v1/sdk-messages-ai.proto +48 -0
  92. package/src/proto/browserstack/sdk/v1/sdk-messages-observability.proto +39 -0
  93. package/src/proto/browserstack/sdk/v1/sdk-messages-percy.proto +10 -0
  94. package/src/proto/browserstack/sdk/v1/sdk-messages-testhub.proto +10 -0
  95. package/src/proto/browserstack/sdk/v1/sdk-messages.proto +276 -0
  96. package/src/proto/browserstack/sdk/v1/sdk.proto +41 -0
  97. package/build/Percy/Percy-Handler.d.ts.map +0 -1
  98. package/build/Percy/Percy.d.ts.map +0 -1
  99. package/build/Percy/PercyBinary.d.ts.map +0 -1
  100. package/build/Percy/PercyCaptureMap.d.ts.map +0 -1
  101. package/build/Percy/PercyHelper.d.ts.map +0 -1
  102. package/build/Percy/PercyLogger.d.ts.map +0 -1
  103. package/build/Percy/PercySDK.d.ts.map +0 -1
  104. package/build/accessibility-handler.d.ts.map +0 -1
  105. package/build/ai-handler.d.ts.map +0 -1
  106. package/build/bstackLogger.d.ts.map +0 -1
  107. package/build/caCert.d.ts +0 -7
  108. package/build/caCert.d.ts.map +0 -1
  109. package/build/cleanup.d.ts.map +0 -1
  110. package/build/cli/apiUtils.d.ts.map +0 -1
  111. package/build/cli/cliLogger.d.ts.map +0 -1
  112. package/build/cli/cliUtils.d.ts.map +0 -1
  113. package/build/cli/eventDispatcher.d.ts.map +0 -1
  114. package/build/cli/frameworks/automationFramework.d.ts.map +0 -1
  115. package/build/cli/frameworks/constants/automationFrameworkConstants.d.ts.map +0 -1
  116. package/build/cli/frameworks/constants/testFrameworkConstants.d.ts.map +0 -1
  117. package/build/cli/frameworks/testFramework.d.ts.map +0 -1
  118. package/build/cli/frameworks/wdioAutomationFramework.d.ts.map +0 -1
  119. package/build/cli/frameworks/wdioMochaTestFramework.d.ts.map +0 -1
  120. package/build/cli/grpcClient.d.ts.map +0 -1
  121. package/build/cli/index.d.ts.map +0 -1
  122. package/build/cli/instances/automationFrameworkInstance.d.ts.map +0 -1
  123. package/build/cli/instances/testFrameworkInstance.d.ts.map +0 -1
  124. package/build/cli/instances/trackedContext.d.ts.map +0 -1
  125. package/build/cli/instances/trackedInstance.d.ts.map +0 -1
  126. package/build/cli/modules/accessibilityModule.d.ts.map +0 -1
  127. package/build/cli/modules/automateModule.d.ts.map +0 -1
  128. package/build/cli/modules/baseModule.d.ts.map +0 -1
  129. package/build/cli/modules/customTagsModule.d.ts.map +0 -1
  130. package/build/cli/modules/observabilityModule.d.ts.map +0 -1
  131. package/build/cli/modules/percyModule.d.ts.map +0 -1
  132. package/build/cli/modules/testHubModule.d.ts.map +0 -1
  133. package/build/cli/modules/webdriverIOModule.d.ts.map +0 -1
  134. package/build/cli/states/automationFrameworkState.d.ts.map +0 -1
  135. package/build/cli/states/hookState.d.ts.map +0 -1
  136. package/build/cli/states/testFrameworkState.d.ts.map +0 -1
  137. package/build/config.d.ts.map +0 -1
  138. package/build/constants.d.ts.map +0 -1
  139. package/build/crash-reporter.d.ts.map +0 -1
  140. package/build/cucumber-types.d.ts.map +0 -1
  141. package/build/custom-tags-handler.d.ts.map +0 -1
  142. package/build/customTags.d.ts.map +0 -1
  143. package/build/data-store.d.ts.map +0 -1
  144. package/build/exitHandler.d.ts.map +0 -1
  145. package/build/fetchWrapper.d.ts.map +0 -1
  146. package/build/fileStream.d.ts.map +0 -1
  147. package/build/index.d.ts.map +0 -1
  148. package/build/insights-handler.d.ts.map +0 -1
  149. package/build/instrumentation/funnelInstrumentation.d.ts.map +0 -1
  150. package/build/instrumentation/performance/constants.d.ts.map +0 -1
  151. package/build/instrumentation/performance/performance-tester.d.ts.map +0 -1
  152. package/build/launcher.d.ts.map +0 -1
  153. package/build/log4jsAppender.d.ts.map +0 -1
  154. package/build/logPatcher.d.ts.map +0 -1
  155. package/build/logReportingAPI.d.ts.map +0 -1
  156. package/build/module-hook-tracker.d.ts.map +0 -1
  157. package/build/reporter.d.ts.map +0 -1
  158. package/build/request-handler.d.ts.map +0 -1
  159. package/build/scripts/accessibility-scripts.d.ts.map +0 -1
  160. package/build/service.d.ts.map +0 -1
  161. package/build/testHub/utils.d.ts.map +0 -1
  162. package/build/testOps/featureStats.d.ts.map +0 -1
  163. package/build/testOps/featureUsage.d.ts.map +0 -1
  164. package/build/testOps/listener.d.ts.map +0 -1
  165. package/build/testOps/requestUtils.d.ts.map +0 -1
  166. package/build/testOps/testOpsConfig.d.ts.map +0 -1
  167. package/build/testOps/usageStats.d.ts.map +0 -1
  168. package/build/testorchestration/apply-orchestration.d.ts.map +0 -1
  169. package/build/testorchestration/helpers.d.ts.map +0 -1
  170. package/build/testorchestration/request-utils.d.ts.map +0 -1
  171. package/build/testorchestration/test-ordering-server.d.ts.map +0 -1
  172. package/build/testorchestration/testorcherstrationhandler.d.ts.map +0 -1
  173. package/build/testorchestration/testorcherstrationutils.d.ts.map +0 -1
  174. package/build/types.d.ts.map +0 -1
  175. package/build/util.d.ts.map +0 -1
@@ -11,4 +11,3 @@ export default class APIUtils {
11
11
  static EDS_URL: string;
12
12
  static updateURLSForGRR(apis: GRRUrls): void;
13
13
  }
14
- //# sourceMappingURL=apiUtils.d.ts.map
@@ -13,4 +13,3 @@ export declare class BStackLogger {
13
13
  static clearLogFile(): void;
14
14
  static ensureLogsFolder(): void;
15
15
  }
16
- //# sourceMappingURL=cliLogger.d.ts.map
@@ -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
@@ -25,4 +25,3 @@ declare class EventDispatcher {
25
25
  }
26
26
  export declare const eventDispatcher: EventDispatcher;
27
27
  export {};
28
- //# sourceMappingURL=eventDispatcher.d.ts.map
@@ -86,4 +86,3 @@ export default class AutomationFramework {
86
86
  */
87
87
  static getDriver(instance: AutomationFrameworkInstance): unknown;
88
88
  }
89
- //# sourceMappingURL=automationFramework.d.ts.map
@@ -15,4 +15,3 @@ export declare const AutomationFrameworkConstants: {
15
15
  COMMAND_W3C_EXECUTE_SCRIPT_ASYNC: string;
16
16
  COMMAND_QUIT: string;
17
17
  };
18
- //# sourceMappingURL=automationFrameworkConstants.d.ts.map
@@ -41,4 +41,3 @@ export declare const TestFrameworkConstants: {
41
41
  KIND_LOG: string;
42
42
  HOOK_REGEX: string;
43
43
  };
44
- //# sourceMappingURL=testFrameworkConstants.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
@@ -25,4 +25,3 @@ export default class WdioAutomationFramework extends AutomationFramework {
25
25
  */
26
26
  trackWebdriverIOInstance(automationFrameworkState: State, args?: Record<string, unknown>): void;
27
27
  }
28
- //# sourceMappingURL=wdioAutomationFramework.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 '@browserstack/wdio-browserstack-service';
2
- import type { TestFrameworkEventRequest, TestSessionEventRequest, LogCreatedEventRequest, DriverInitRequest, FetchDriverExecuteParamsEventRequest, ConnectBinSessionResponse, StartBinSessionResponse, TestFrameworkEventResponse, TestSessionEventResponse, LogCreatedEventResponse, DriverInitResponse, FetchDriverExecuteParamsEventResponse } from '@browserstack/wdio-browserstack-service';
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
@@ -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 '@browserstack/wdio-browserstack-service';
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
@@ -30,4 +30,3 @@ export default class AutomationFrameworkInstance extends TrackedInstance {
30
30
  */
31
31
  setState(state: State): void;
32
32
  }
33
- //# sourceMappingURL=automationFrameworkInstance.d.ts.map
@@ -59,4 +59,3 @@ export default class TestFrameworkInstance extends TrackedInstance {
59
59
  */
60
60
  getCreatedAt(): string;
61
61
  }
62
- //# sourceMappingURL=testFrameworkInstance.d.ts.map
@@ -29,4 +29,3 @@ export default class TrackedContext {
29
29
  */
30
30
  getType(): string;
31
31
  }
32
- //# sourceMappingURL=trackedContext.d.ts.map
@@ -37,4 +37,3 @@ export default class TrackedInstance {
37
37
  hasData(key: string): boolean;
38
38
  static createContext(target: string): TrackedContext;
39
39
  }
40
- //# sourceMappingURL=trackedInstance.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 '@browserstack/wdio-browserstack-service';
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
@@ -23,4 +23,3 @@ export default class AutomateModule extends BaseModule {
23
23
  key: string;
24
24
  }): Promise<void>;
25
25
  }
26
- //# sourceMappingURL=automateModule.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { SDKClient } from '@browserstack/wdio-browserstack-service';
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
@@ -28,4 +28,3 @@ export default class CustomTagsModule extends BaseModule {
28
28
  */
29
29
  private applyToActiveHook;
30
30
  }
31
- //# sourceMappingURL=customTagsModule.d.ts.map
@@ -19,4 +19,3 @@ export default class ObservabilityModule extends BaseModule {
19
19
  getModuleName(): string;
20
20
  onBeforeTest(args: Record<string, unknown>): Promise<void>;
21
21
  }
22
- //# sourceMappingURL=observabilityModule.d.ts.map
@@ -16,4 +16,3 @@ export default class PercyModule extends BaseModule {
16
16
  onBeforeTest(args: Record<string, unknown>): Promise<void>;
17
17
  onAfterTest(): Promise<void>;
18
18
  }
19
- //# sourceMappingURL=percyModule.d.ts.map
@@ -27,4 +27,3 @@ export default class TestHubModule extends BaseModule {
27
27
  sendTestSessionEvent(args: Record<string, unknown>): Promise<void>;
28
28
  sendLogCreatedEvent(args: Record<string, unknown>): Promise<void>;
29
29
  }
30
- //# sourceMappingURL=testHubModule.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
@@ -62,4 +62,3 @@ export declare const fromValue: (value: number) => {
62
62
  value: number;
63
63
  toString(): string;
64
64
  } | undefined;
65
- //# sourceMappingURL=automationFrameworkState.d.ts.map
@@ -42,4 +42,3 @@ export declare const fromValue: (value: number) => {
42
42
  value: number;
43
43
  toString(): string;
44
44
  } | undefined;
45
- //# sourceMappingURL=hookState.d.ts.map
@@ -122,4 +122,3 @@ export declare const fromValue: (value: number) => {
122
122
  value: number;
123
123
  toString(): string;
124
124
  } | undefined;
125
- //# sourceMappingURL=testFrameworkState.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, isBrowserStackInfra?: boolean): BrowserStackConfig;
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, isBrowserStackInfra?: boolean);
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
@@ -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
@@ -15,4 +15,3 @@ export default class CrashReporter {
15
15
  static filterPII(userConfig: Options.Testrunner): any;
16
16
  }
17
17
  export {};
18
- //# sourceMappingURL=crash-reporter.d.ts.map
@@ -191,4 +191,3 @@ export interface CucumberHookParams {
191
191
  event: 'before' | 'after';
192
192
  hookUUID?: string;
193
193
  }
194
- //# sourceMappingURL=cucumber-types.d.ts.map
@@ -26,4 +26,3 @@ declare class _CustomTagsHandler {
26
26
  declare const CustomTagsHandler: typeof _CustomTagsHandler;
27
27
  type CustomTagsHandler = _CustomTagsHandler;
28
28
  export default CustomTagsHandler;
29
- //# sourceMappingURL=custom-tags-handler.d.ts.map
@@ -56,4 +56,3 @@ export declare class CustomTagAccumulator {
56
56
  /** Drop the accumulated entry once flushed (avoid unbounded growth). */
57
57
  clear(testUuid: string | undefined): void;
58
58
  }
59
- //# sourceMappingURL=customTags.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function getDataFromWorkers(): Record<string, object>[];
2
2
  export declare function saveWorkerData(data: Record<string, unknown>): void;
3
- //# sourceMappingURL=data-store.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import BrowserStackConfig from './config.js';
2
2
  export declare function setupExitHandlers(): void;
3
3
  export declare function shouldCallCleanup(config: BrowserStackConfig, isCLIEnabled?: boolean): string[];
4
- //# sourceMappingURL=exitHandler.d.ts.map
@@ -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
- * Extra options for {@link _fetch} that cannot be expressed through the standard
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>;
@@ -6,4 +6,3 @@ export declare class FileStream {
6
6
  stream(): fs.ReadStream | zlib.Gzip;
7
7
  get [Symbol.toStringTag](): string;
8
8
  }
9
- //# sourceMappingURL=fileStream.d.ts.map
@@ -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
+ }