import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js"; import { AccessibilityConfigRequest, AccessibilityConfigResponse, AccessibilityResultRequest, AccessibilityResultResponse } from "./sdk-messages-accessibility.js"; import { AIBrowserExtensionRequest, AIBrowserExtensionResponse, AISelfHealGetRequest, AISelfHealGetResponse, AISelfHealStepRequest, AISelfHealStepResponse } from "./sdk-messages-ai.js"; import { ObservabilityConfigRequest, ObservabilityConfigResponse } from "./sdk-messages-observability.js"; import { AutomationFrameworkInitRequest, AutomationFrameworkInitResponse, AutomationFrameworkStartRequest, AutomationFrameworkStartResponse, AutomationFrameworkStopRequest, AutomationFrameworkStopResponse, ConnectBinSessionRequest, ConnectBinSessionResponse, DriverInitRequest, DriverInitResponse, EnqueueTestEventRequest, EnqueueTestEventResponse, FetchDriverExecuteParamsEventRequest, FetchDriverExecuteParamsEventResponse, FindNearestHubRequest, FindNearestHubResponse, LogCreatedEventRequest, LogCreatedEventResponse, StartBinSessionRequest, StartBinSessionResponse, StopBinSessionRequest, StopBinSessionResponse, TestFrameworkEventRequest, TestFrameworkEventResponse, TestOrchestrationRequest, TestOrchestrationResponse, TestSessionEventRequest, TestSessionEventResponse } from "./sdk-messages.js"; export declare const protobufPackage = "browserstack.sdk.v1"; export type SDKService = typeof SDKService; export declare const SDKService: { readonly startBinSession: { readonly path: "/browserstack.sdk.v1.SDK/StartBinSession"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StartBinSessionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => StartBinSessionRequest; readonly responseSerialize: (value: StartBinSessionResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => StartBinSessionResponse; }; readonly connectBinSession: { readonly path: "/browserstack.sdk.v1.SDK/ConnectBinSession"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ConnectBinSessionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ConnectBinSessionRequest; readonly responseSerialize: (value: ConnectBinSessionResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ConnectBinSessionResponse; }; readonly stopBinSession: { readonly path: "/browserstack.sdk.v1.SDK/StopBinSession"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StopBinSessionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => StopBinSessionRequest; readonly responseSerialize: (value: StopBinSessionResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => StopBinSessionResponse; }; readonly driverInit: { readonly path: "/browserstack.sdk.v1.SDK/DriverInit"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DriverInitRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DriverInitRequest; readonly responseSerialize: (value: DriverInitResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => DriverInitResponse; }; readonly automationFrameworkInit: { readonly path: "/browserstack.sdk.v1.SDK/AutomationFrameworkInit"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AutomationFrameworkInitRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AutomationFrameworkInitRequest; readonly responseSerialize: (value: AutomationFrameworkInitResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AutomationFrameworkInitResponse; }; /** session-start */ readonly automationFrameworkStart: { readonly path: "/browserstack.sdk.v1.SDK/AutomationFrameworkStart"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AutomationFrameworkStartRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AutomationFrameworkStartRequest; readonly responseSerialize: (value: AutomationFrameworkStartResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AutomationFrameworkStartResponse; }; readonly automationFrameworkStop: { readonly path: "/browserstack.sdk.v1.SDK/AutomationFrameworkStop"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AutomationFrameworkStopRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AutomationFrameworkStopRequest; readonly responseSerialize: (value: AutomationFrameworkStopResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AutomationFrameworkStopResponse; }; readonly testOrchestration: { readonly path: "/browserstack.sdk.v1.SDK/TestOrchestration"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: TestOrchestrationRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => TestOrchestrationRequest; readonly responseSerialize: (value: TestOrchestrationResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => TestOrchestrationResponse; }; readonly findNearestHub: { readonly path: "/browserstack.sdk.v1.SDK/FindNearestHub"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: FindNearestHubRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => FindNearestHubRequest; readonly responseSerialize: (value: FindNearestHubResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => FindNearestHubResponse; }; readonly aiBrowserExtension: { readonly path: "/browserstack.sdk.v1.SDK/AIBrowserExtension"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AIBrowserExtensionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AIBrowserExtensionRequest; readonly responseSerialize: (value: AIBrowserExtensionResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AIBrowserExtensionResponse; }; readonly aiSelfHealStep: { readonly path: "/browserstack.sdk.v1.SDK/AISelfHealStep"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AISelfHealStepRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AISelfHealStepRequest; readonly responseSerialize: (value: AISelfHealStepResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AISelfHealStepResponse; }; readonly aiSelfHealGetResult: { readonly path: "/browserstack.sdk.v1.SDK/AISelfHealGetResult"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AISelfHealGetRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AISelfHealGetRequest; readonly responseSerialize: (value: AISelfHealGetResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AISelfHealGetResponse; }; readonly accessibilityConfig: { readonly path: "/browserstack.sdk.v1.SDK/AccessibilityConfig"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AccessibilityConfigRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AccessibilityConfigRequest; readonly responseSerialize: (value: AccessibilityConfigResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AccessibilityConfigResponse; }; readonly observabilityConfig: { readonly path: "/browserstack.sdk.v1.SDK/ObservabilityConfig"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ObservabilityConfigRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ObservabilityConfigRequest; readonly responseSerialize: (value: ObservabilityConfigResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ObservabilityConfigResponse; }; readonly accessibilityResult: { readonly path: "/browserstack.sdk.v1.SDK/AccessibilityResult"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AccessibilityResultRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AccessibilityResultRequest; readonly responseSerialize: (value: AccessibilityResultResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AccessibilityResultResponse; }; readonly testFrameworkEvent: { readonly path: "/browserstack.sdk.v1.SDK/TestFrameworkEvent"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: TestFrameworkEventRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => TestFrameworkEventRequest; readonly responseSerialize: (value: TestFrameworkEventResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => TestFrameworkEventResponse; }; readonly testSessionEvent: { readonly path: "/browserstack.sdk.v1.SDK/TestSessionEvent"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: TestSessionEventRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => TestSessionEventRequest; readonly responseSerialize: (value: TestSessionEventResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => TestSessionEventResponse; }; readonly enqueueTestEvent: { readonly path: "/browserstack.sdk.v1.SDK/EnqueueTestEvent"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: EnqueueTestEventRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => EnqueueTestEventRequest; readonly responseSerialize: (value: EnqueueTestEventResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => EnqueueTestEventResponse; }; readonly logCreatedEvent: { readonly path: "/browserstack.sdk.v1.SDK/LogCreatedEvent"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: LogCreatedEventRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => LogCreatedEventRequest; readonly responseSerialize: (value: LogCreatedEventResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => LogCreatedEventResponse; }; readonly fetchDriverExecuteParamsEvent: { readonly path: "/browserstack.sdk.v1.SDK/FetchDriverExecuteParamsEvent"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: FetchDriverExecuteParamsEventRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => FetchDriverExecuteParamsEventRequest; readonly responseSerialize: (value: FetchDriverExecuteParamsEventResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => FetchDriverExecuteParamsEventResponse; }; }; export interface SDKServer extends UntypedServiceImplementation { startBinSession: handleUnaryCall; connectBinSession: handleUnaryCall; stopBinSession: handleUnaryCall; driverInit: handleUnaryCall; automationFrameworkInit: handleUnaryCall; /** session-start */ automationFrameworkStart: handleUnaryCall; automationFrameworkStop: handleUnaryCall; testOrchestration: handleUnaryCall; findNearestHub: handleUnaryCall; aiBrowserExtension: handleUnaryCall; aiSelfHealStep: handleUnaryCall; aiSelfHealGetResult: handleUnaryCall; accessibilityConfig: handleUnaryCall; observabilityConfig: handleUnaryCall; accessibilityResult: handleUnaryCall; testFrameworkEvent: handleUnaryCall; testSessionEvent: handleUnaryCall; enqueueTestEvent: handleUnaryCall; logCreatedEvent: handleUnaryCall; fetchDriverExecuteParamsEvent: handleUnaryCall; } export interface SDKClient extends Client { startBinSession(request: StartBinSessionRequest, callback: (error: ServiceError | null, response: StartBinSessionResponse) => void): ClientUnaryCall; startBinSession(request: StartBinSessionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: StartBinSessionResponse) => void): ClientUnaryCall; startBinSession(request: StartBinSessionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: StartBinSessionResponse) => void): ClientUnaryCall; connectBinSession(request: ConnectBinSessionRequest, callback: (error: ServiceError | null, response: ConnectBinSessionResponse) => void): ClientUnaryCall; connectBinSession(request: ConnectBinSessionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ConnectBinSessionResponse) => void): ClientUnaryCall; connectBinSession(request: ConnectBinSessionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ConnectBinSessionResponse) => void): ClientUnaryCall; stopBinSession(request: StopBinSessionRequest, callback: (error: ServiceError | null, response: StopBinSessionResponse) => void): ClientUnaryCall; stopBinSession(request: StopBinSessionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: StopBinSessionResponse) => void): ClientUnaryCall; stopBinSession(request: StopBinSessionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: StopBinSessionResponse) => void): ClientUnaryCall; driverInit(request: DriverInitRequest, callback: (error: ServiceError | null, response: DriverInitResponse) => void): ClientUnaryCall; driverInit(request: DriverInitRequest, metadata: Metadata, callback: (error: ServiceError | null, response: DriverInitResponse) => void): ClientUnaryCall; driverInit(request: DriverInitRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: DriverInitResponse) => void): ClientUnaryCall; automationFrameworkInit(request: AutomationFrameworkInitRequest, callback: (error: ServiceError | null, response: AutomationFrameworkInitResponse) => void): ClientUnaryCall; automationFrameworkInit(request: AutomationFrameworkInitRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AutomationFrameworkInitResponse) => void): ClientUnaryCall; automationFrameworkInit(request: AutomationFrameworkInitRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AutomationFrameworkInitResponse) => void): ClientUnaryCall; /** session-start */ automationFrameworkStart(request: AutomationFrameworkStartRequest, callback: (error: ServiceError | null, response: AutomationFrameworkStartResponse) => void): ClientUnaryCall; automationFrameworkStart(request: AutomationFrameworkStartRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AutomationFrameworkStartResponse) => void): ClientUnaryCall; automationFrameworkStart(request: AutomationFrameworkStartRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AutomationFrameworkStartResponse) => void): ClientUnaryCall; automationFrameworkStop(request: AutomationFrameworkStopRequest, callback: (error: ServiceError | null, response: AutomationFrameworkStopResponse) => void): ClientUnaryCall; automationFrameworkStop(request: AutomationFrameworkStopRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AutomationFrameworkStopResponse) => void): ClientUnaryCall; automationFrameworkStop(request: AutomationFrameworkStopRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AutomationFrameworkStopResponse) => void): ClientUnaryCall; testOrchestration(request: TestOrchestrationRequest, callback: (error: ServiceError | null, response: TestOrchestrationResponse) => void): ClientUnaryCall; testOrchestration(request: TestOrchestrationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: TestOrchestrationResponse) => void): ClientUnaryCall; testOrchestration(request: TestOrchestrationRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: TestOrchestrationResponse) => void): ClientUnaryCall; findNearestHub(request: FindNearestHubRequest, callback: (error: ServiceError | null, response: FindNearestHubResponse) => void): ClientUnaryCall; findNearestHub(request: FindNearestHubRequest, metadata: Metadata, callback: (error: ServiceError | null, response: FindNearestHubResponse) => void): ClientUnaryCall; findNearestHub(request: FindNearestHubRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: FindNearestHubResponse) => void): ClientUnaryCall; aiBrowserExtension(request: AIBrowserExtensionRequest, callback: (error: ServiceError | null, response: AIBrowserExtensionResponse) => void): ClientUnaryCall; aiBrowserExtension(request: AIBrowserExtensionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AIBrowserExtensionResponse) => void): ClientUnaryCall; aiBrowserExtension(request: AIBrowserExtensionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AIBrowserExtensionResponse) => void): ClientUnaryCall; aiSelfHealStep(request: AISelfHealStepRequest, callback: (error: ServiceError | null, response: AISelfHealStepResponse) => void): ClientUnaryCall; aiSelfHealStep(request: AISelfHealStepRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AISelfHealStepResponse) => void): ClientUnaryCall; aiSelfHealStep(request: AISelfHealStepRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AISelfHealStepResponse) => void): ClientUnaryCall; aiSelfHealGetResult(request: AISelfHealGetRequest, callback: (error: ServiceError | null, response: AISelfHealGetResponse) => void): ClientUnaryCall; aiSelfHealGetResult(request: AISelfHealGetRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AISelfHealGetResponse) => void): ClientUnaryCall; aiSelfHealGetResult(request: AISelfHealGetRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AISelfHealGetResponse) => void): ClientUnaryCall; accessibilityConfig(request: AccessibilityConfigRequest, callback: (error: ServiceError | null, response: AccessibilityConfigResponse) => void): ClientUnaryCall; accessibilityConfig(request: AccessibilityConfigRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AccessibilityConfigResponse) => void): ClientUnaryCall; accessibilityConfig(request: AccessibilityConfigRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AccessibilityConfigResponse) => void): ClientUnaryCall; observabilityConfig(request: ObservabilityConfigRequest, callback: (error: ServiceError | null, response: ObservabilityConfigResponse) => void): ClientUnaryCall; observabilityConfig(request: ObservabilityConfigRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ObservabilityConfigResponse) => void): ClientUnaryCall; observabilityConfig(request: ObservabilityConfigRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ObservabilityConfigResponse) => void): ClientUnaryCall; accessibilityResult(request: AccessibilityResultRequest, callback: (error: ServiceError | null, response: AccessibilityResultResponse) => void): ClientUnaryCall; accessibilityResult(request: AccessibilityResultRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AccessibilityResultResponse) => void): ClientUnaryCall; accessibilityResult(request: AccessibilityResultRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AccessibilityResultResponse) => void): ClientUnaryCall; testFrameworkEvent(request: TestFrameworkEventRequest, callback: (error: ServiceError | null, response: TestFrameworkEventResponse) => void): ClientUnaryCall; testFrameworkEvent(request: TestFrameworkEventRequest, metadata: Metadata, callback: (error: ServiceError | null, response: TestFrameworkEventResponse) => void): ClientUnaryCall; testFrameworkEvent(request: TestFrameworkEventRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: TestFrameworkEventResponse) => void): ClientUnaryCall; testSessionEvent(request: TestSessionEventRequest, callback: (error: ServiceError | null, response: TestSessionEventResponse) => void): ClientUnaryCall; testSessionEvent(request: TestSessionEventRequest, metadata: Metadata, callback: (error: ServiceError | null, response: TestSessionEventResponse) => void): ClientUnaryCall; testSessionEvent(request: TestSessionEventRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: TestSessionEventResponse) => void): ClientUnaryCall; enqueueTestEvent(request: EnqueueTestEventRequest, callback: (error: ServiceError | null, response: EnqueueTestEventResponse) => void): ClientUnaryCall; enqueueTestEvent(request: EnqueueTestEventRequest, metadata: Metadata, callback: (error: ServiceError | null, response: EnqueueTestEventResponse) => void): ClientUnaryCall; enqueueTestEvent(request: EnqueueTestEventRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: EnqueueTestEventResponse) => void): ClientUnaryCall; logCreatedEvent(request: LogCreatedEventRequest, callback: (error: ServiceError | null, response: LogCreatedEventResponse) => void): ClientUnaryCall; logCreatedEvent(request: LogCreatedEventRequest, metadata: Metadata, callback: (error: ServiceError | null, response: LogCreatedEventResponse) => void): ClientUnaryCall; logCreatedEvent(request: LogCreatedEventRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: LogCreatedEventResponse) => void): ClientUnaryCall; fetchDriverExecuteParamsEvent(request: FetchDriverExecuteParamsEventRequest, callback: (error: ServiceError | null, response: FetchDriverExecuteParamsEventResponse) => void): ClientUnaryCall; fetchDriverExecuteParamsEvent(request: FetchDriverExecuteParamsEventRequest, metadata: Metadata, callback: (error: ServiceError | null, response: FetchDriverExecuteParamsEventResponse) => void): ClientUnaryCall; fetchDriverExecuteParamsEvent(request: FetchDriverExecuteParamsEventRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: FetchDriverExecuteParamsEventResponse) => void): ClientUnaryCall; } export declare const SDKClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): SDKClient; service: typeof SDKService; serviceName: string; }; //# sourceMappingURL=sdk.d.ts.map