@wdio/browserstack-service 8.48.3 → 8.49.1
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.js +1 -0
- package/build/Percy/Percy-Handler.js.map +1 -0
- package/build/Percy/Percy.js +1 -0
- package/build/Percy/Percy.js.map +1 -0
- package/build/Percy/PercyBinary.js +1 -0
- package/build/Percy/PercyBinary.js.map +1 -0
- package/build/Percy/PercyCaptureMap.js +1 -0
- package/build/Percy/PercyCaptureMap.js.map +1 -0
- package/build/Percy/PercyHelper.d.ts.map +1 -1
- package/build/Percy/PercyHelper.js +1 -0
- package/build/Percy/PercyHelper.js.map +1 -0
- package/build/Percy/PercyLogger.js +1 -0
- package/build/Percy/PercyLogger.js.map +1 -0
- package/build/Percy/PercySDK.js +1 -0
- package/build/Percy/PercySDK.js.map +1 -0
- package/build/accessibility-handler.d.ts +1 -1
- package/build/accessibility-handler.d.ts.map +1 -1
- package/build/accessibility-handler.js +1 -0
- package/build/accessibility-handler.js.map +1 -0
- package/build/ai-handler.js +1 -0
- package/build/ai-handler.js.map +1 -0
- package/build/bstackLogger.js +1 -0
- package/build/bstackLogger.js.map +1 -0
- package/build/cleanup.js +1 -0
- package/build/cleanup.js.map +1 -0
- package/build/cli/apiUtils.js +1 -0
- package/build/cli/apiUtils.js.map +1 -0
- package/build/cli/cliLogger.js +1 -0
- package/build/cli/cliLogger.js.map +1 -0
- package/build/cli/cliUtils.d.ts.map +1 -1
- package/build/cli/cliUtils.js +1 -0
- package/build/cli/cliUtils.js.map +1 -0
- package/build/cli/eventDispatcher.js +1 -0
- package/build/cli/eventDispatcher.js.map +1 -0
- package/build/cli/frameworks/automationFramework.js +1 -0
- package/build/cli/frameworks/automationFramework.js.map +1 -0
- package/build/cli/frameworks/constants/automationFrameworkConstants.js +1 -0
- package/build/cli/frameworks/constants/automationFrameworkConstants.js.map +1 -0
- package/build/cli/frameworks/constants/testFrameworkConstants.js +1 -0
- package/build/cli/frameworks/constants/testFrameworkConstants.js.map +1 -0
- package/build/cli/frameworks/testFramework.js +1 -0
- package/build/cli/frameworks/testFramework.js.map +1 -0
- package/build/cli/frameworks/wdioAutomationFramework.js +1 -0
- package/build/cli/frameworks/wdioAutomationFramework.js.map +1 -0
- package/build/cli/frameworks/wdioMochaTestFramework.d.ts.map +1 -1
- package/build/cli/frameworks/wdioMochaTestFramework.js +68 -8
- package/build/cli/frameworks/wdioMochaTestFramework.js.map +1 -0
- package/build/cli/grpcClient.d.ts +2 -2
- package/build/cli/grpcClient.d.ts.map +1 -1
- package/build/cli/grpcClient.js +2 -1
- package/build/cli/grpcClient.js.map +1 -0
- package/build/cli/index.d.ts +1 -1
- package/build/cli/index.d.ts.map +1 -1
- package/build/cli/index.js +1 -0
- package/build/cli/index.js.map +1 -0
- package/build/cli/instances/automationFrameworkInstance.js +1 -0
- package/build/cli/instances/automationFrameworkInstance.js.map +1 -0
- package/build/cli/instances/testFrameworkInstance.js +1 -0
- package/build/cli/instances/testFrameworkInstance.js.map +1 -0
- package/build/cli/instances/trackedContext.js +1 -0
- package/build/cli/instances/trackedContext.js.map +1 -0
- package/build/cli/instances/trackedInstance.js +1 -0
- package/build/cli/instances/trackedInstance.js.map +1 -0
- package/build/cli/modules/accessibilityModule.d.ts +1 -1
- package/build/cli/modules/accessibilityModule.d.ts.map +1 -1
- package/build/cli/modules/accessibilityModule.js +1 -0
- package/build/cli/modules/accessibilityModule.js.map +1 -0
- package/build/cli/modules/automateModule.js +1 -0
- package/build/cli/modules/automateModule.js.map +1 -0
- package/build/cli/modules/baseModule.js +1 -0
- package/build/cli/modules/baseModule.js.map +1 -0
- package/build/cli/modules/observabilityModule.js +1 -0
- package/build/cli/modules/observabilityModule.js.map +1 -0
- package/build/cli/modules/percyModule.js +1 -0
- package/build/cli/modules/percyModule.js.map +1 -0
- package/build/cli/modules/testHubModule.d.ts.map +1 -1
- package/build/cli/modules/testHubModule.js +5 -1
- package/build/cli/modules/testHubModule.js.map +1 -0
- package/build/cli/modules/webdriverIOModule.js +1 -0
- package/build/cli/modules/webdriverIOModule.js.map +1 -0
- package/build/cli/skipReporter.d.ts +16 -0
- package/build/cli/skipReporter.d.ts.map +1 -0
- package/build/cli/skipReporter.js +71 -0
- package/build/cli/skipReporter.js.map +1 -0
- package/build/cli/states/automationFrameworkState.d.ts.map +1 -1
- package/build/cli/states/automationFrameworkState.js +1 -0
- package/build/cli/states/automationFrameworkState.js.map +1 -0
- package/build/cli/states/hookState.d.ts.map +1 -1
- package/build/cli/states/hookState.js +1 -0
- package/build/cli/states/hookState.js.map +1 -0
- package/build/cli/states/testFrameworkState.d.ts.map +1 -1
- package/build/cli/states/testFrameworkState.js +1 -0
- package/build/cli/states/testFrameworkState.js.map +1 -0
- package/build/config.js +1 -0
- package/build/config.js.map +1 -0
- package/build/constants.js +1 -0
- package/build/constants.js.map +1 -0
- package/build/crash-reporter.js +1 -0
- package/build/crash-reporter.js.map +1 -0
- package/build/cucumber-types.js +1 -0
- package/build/cucumber-types.js.map +1 -0
- package/build/data-store.js +1 -0
- package/build/data-store.js.map +1 -0
- package/build/exitHandler.js +1 -0
- package/build/exitHandler.js.map +1 -0
- package/build/fileStream.js +1 -0
- package/build/fileStream.js.map +1 -0
- package/build/grpc/generated/sdk-messages-accessibility.d.ts +76 -0
- package/build/grpc/generated/sdk-messages-accessibility.d.ts.map +1 -0
- package/build/grpc/generated/sdk-messages-accessibility.js +908 -0
- package/build/grpc/generated/sdk-messages-accessibility.js.map +1 -0
- package/build/grpc/generated/sdk-messages-ai.d.ts +52 -0
- package/build/grpc/generated/sdk-messages-ai.d.ts.map +1 -0
- package/build/grpc/generated/sdk-messages-ai.js +643 -0
- package/build/grpc/generated/sdk-messages-ai.js.map +1 -0
- package/build/grpc/generated/sdk-messages-observability.d.ts +44 -0
- package/build/grpc/generated/sdk-messages-observability.d.ts.map +1 -0
- package/build/grpc/generated/sdk-messages-observability.js +505 -0
- package/build/grpc/generated/sdk-messages-observability.js.map +1 -0
- package/build/grpc/generated/sdk-messages-percy.d.ts +16 -0
- package/build/grpc/generated/sdk-messages-percy.d.ts.map +1 -0
- package/build/grpc/generated/sdk-messages-percy.js +111 -0
- package/build/grpc/generated/sdk-messages-percy.js.map +1 -0
- package/build/grpc/generated/sdk-messages-testhub.d.ts +16 -0
- package/build/grpc/generated/sdk-messages-testhub.d.ts.map +1 -0
- package/build/grpc/generated/sdk-messages-testhub.js +132 -0
- package/build/grpc/generated/sdk-messages-testhub.js.map +1 -0
- package/build/grpc/generated/sdk-messages.d.ts +288 -0
- package/build/grpc/generated/sdk-messages.d.ts.map +1 -0
- package/build/grpc/generated/sdk-messages.js +3958 -0
- package/build/grpc/generated/sdk-messages.js.map +1 -0
- package/build/grpc/generated/sdk.d.ts +282 -0
- package/build/grpc/generated/sdk.d.ts.map +1 -0
- package/build/grpc/generated/sdk.js +197 -0
- package/build/grpc/generated/sdk.js.map +1 -0
- package/build/grpc/index.d.ts +43 -0
- package/build/grpc/index.d.ts.map +1 -0
- package/build/grpc/index.js +154 -0
- package/build/grpc/index.js.map +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -0
- package/build/insights-handler.d.ts.map +1 -1
- package/build/insights-handler.js +5 -1
- package/build/insights-handler.js.map +1 -0
- package/build/instrumentation/funnelInstrumentation.js +1 -0
- package/build/instrumentation/funnelInstrumentation.js.map +1 -0
- package/build/instrumentation/performance/constants.js +1 -0
- package/build/instrumentation/performance/constants.js.map +1 -0
- package/build/instrumentation/performance/performance-tester.d.ts.map +1 -1
- package/build/instrumentation/performance/performance-tester.js +30 -12
- package/build/instrumentation/performance/performance-tester.js.map +1 -0
- package/build/launcher.js +1 -0
- package/build/launcher.js.map +1 -0
- package/build/log4jsAppender.d.ts.map +1 -1
- package/build/log4jsAppender.js +1 -0
- package/build/log4jsAppender.js.map +1 -0
- package/build/logPatcher.d.ts.map +1 -1
- package/build/logPatcher.js +1 -0
- package/build/logPatcher.js.map +1 -0
- package/build/logReportingAPI.d.ts.map +1 -1
- package/build/logReportingAPI.js +1 -0
- package/build/logReportingAPI.js.map +1 -0
- package/build/reporter.d.ts +1 -0
- package/build/reporter.d.ts.map +1 -1
- package/build/reporter.js +28 -0
- package/build/reporter.js.map +1 -0
- package/build/request-handler.d.ts.map +1 -1
- package/build/request-handler.js +4 -0
- package/build/request-handler.js.map +1 -0
- package/build/scripts/accessibility-scripts.js +1 -0
- package/build/scripts/accessibility-scripts.js.map +1 -0
- package/build/service.d.ts.map +1 -1
- package/build/service.js +39 -1
- package/build/service.js.map +1 -0
- package/build/testHub/utils.d.ts.map +1 -1
- package/build/testHub/utils.js +1 -0
- package/build/testHub/utils.js.map +1 -0
- package/build/testOps/featureStats.js +1 -0
- package/build/testOps/featureStats.js.map +1 -0
- package/build/testOps/featureUsage.js +1 -0
- package/build/testOps/featureUsage.js.map +1 -0
- package/build/testOps/listener.js +2 -1
- package/build/testOps/listener.js.map +1 -0
- package/build/testOps/requestUtils.js +1 -0
- package/build/testOps/requestUtils.js.map +1 -0
- package/build/testOps/testOpsConfig.js +1 -0
- package/build/testOps/testOpsConfig.js.map +1 -0
- package/build/testOps/usageStats.js +1 -0
- package/build/testOps/usageStats.js.map +1 -0
- package/build/testorchestration/apply-orchestration.js +1 -0
- package/build/testorchestration/apply-orchestration.js.map +1 -0
- package/build/testorchestration/helpers.js +1 -0
- package/build/testorchestration/helpers.js.map +1 -0
- package/build/testorchestration/request-utils.js +1 -0
- package/build/testorchestration/request-utils.js.map +1 -0
- package/build/testorchestration/test-ordering-server.js +1 -0
- package/build/testorchestration/test-ordering-server.js.map +1 -0
- package/build/testorchestration/testorcherstrationhandler.js +1 -0
- package/build/testorchestration/testorcherstrationhandler.js.map +1 -0
- package/build/testorchestration/testorcherstrationutils.js +1 -0
- package/build/testorchestration/testorcherstrationutils.js.map +1 -0
- package/build/types.js +1 -0
- package/build/types.js.map +1 -0
- package/build/util.d.ts +4 -4
- package/build/util.d.ts.map +1 -1
- package/build/util.js +26 -19
- package/build/util.js.map +1 -0
- package/package.json +45 -16
- 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/tsconfig.prod.tsbuildinfo +0 -1
|
@@ -0,0 +1,908 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: sdk-messages-accessibility.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
import { KeyMessage } from "./sdk-messages-observability.js";
|
|
9
|
+
import { TestHub } from "./sdk-messages-testhub.js";
|
|
10
|
+
export const protobufPackage = "browserstack.sdk.v1";
|
|
11
|
+
function createBaseAccessibility() {
|
|
12
|
+
return {
|
|
13
|
+
success: false,
|
|
14
|
+
options: undefined,
|
|
15
|
+
errorTraceId: undefined,
|
|
16
|
+
code: undefined,
|
|
17
|
+
errors: [],
|
|
18
|
+
isAppAccessibility: undefined,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export const Accessibility = {
|
|
22
|
+
encode(message, writer = new BinaryWriter()) {
|
|
23
|
+
if (message.success !== false) {
|
|
24
|
+
writer.uint32(8).bool(message.success);
|
|
25
|
+
}
|
|
26
|
+
if (message.options !== undefined) {
|
|
27
|
+
Accessibility_AccessibilityOptions.encode(message.options, writer.uint32(18).fork()).join();
|
|
28
|
+
}
|
|
29
|
+
if (message.errorTraceId !== undefined) {
|
|
30
|
+
writer.uint32(26).string(message.errorTraceId);
|
|
31
|
+
}
|
|
32
|
+
if (message.code !== undefined) {
|
|
33
|
+
writer.uint32(34).string(message.code);
|
|
34
|
+
}
|
|
35
|
+
for (const v of message.errors) {
|
|
36
|
+
KeyMessage.encode(v, writer.uint32(42).fork()).join();
|
|
37
|
+
}
|
|
38
|
+
if (message.isAppAccessibility !== undefined) {
|
|
39
|
+
writer.uint32(48).bool(message.isAppAccessibility);
|
|
40
|
+
}
|
|
41
|
+
return writer;
|
|
42
|
+
},
|
|
43
|
+
decode(input, length) {
|
|
44
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
45
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
46
|
+
const message = createBaseAccessibility();
|
|
47
|
+
while (reader.pos < end) {
|
|
48
|
+
const tag = reader.uint32();
|
|
49
|
+
switch (tag >>> 3) {
|
|
50
|
+
case 1: {
|
|
51
|
+
if (tag !== 8) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.success = reader.bool();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
case 2: {
|
|
58
|
+
if (tag !== 18) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
message.options = Accessibility_AccessibilityOptions.decode(reader, reader.uint32());
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
case 3: {
|
|
65
|
+
if (tag !== 26) {
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
message.errorTraceId = reader.string();
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
case 4: {
|
|
72
|
+
if (tag !== 34) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
message.code = reader.string();
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
case 5: {
|
|
79
|
+
if (tag !== 42) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.errors.push(KeyMessage.decode(reader, reader.uint32()));
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
case 6: {
|
|
86
|
+
if (tag !== 48) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
message.isAppAccessibility = reader.bool();
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
reader.skip(tag & 7);
|
|
97
|
+
}
|
|
98
|
+
return message;
|
|
99
|
+
},
|
|
100
|
+
fromJSON(object) {
|
|
101
|
+
return {
|
|
102
|
+
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
103
|
+
options: isSet(object.options) ? Accessibility_AccessibilityOptions.fromJSON(object.options) : undefined,
|
|
104
|
+
errorTraceId: isSet(object.errorTraceId)
|
|
105
|
+
? globalThis.String(object.errorTraceId)
|
|
106
|
+
: isSet(object.error_trace_id)
|
|
107
|
+
? globalThis.String(object.error_trace_id)
|
|
108
|
+
: undefined,
|
|
109
|
+
code: isSet(object.code) ? globalThis.String(object.code) : undefined,
|
|
110
|
+
errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e) => KeyMessage.fromJSON(e)) : [],
|
|
111
|
+
isAppAccessibility: isSet(object.isAppAccessibility)
|
|
112
|
+
? globalThis.Boolean(object.isAppAccessibility)
|
|
113
|
+
: isSet(object.is_app_accessibility)
|
|
114
|
+
? globalThis.Boolean(object.is_app_accessibility)
|
|
115
|
+
: undefined,
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
toJSON(message) {
|
|
119
|
+
const obj = {};
|
|
120
|
+
if (message.success !== false) {
|
|
121
|
+
obj.success = message.success;
|
|
122
|
+
}
|
|
123
|
+
if (message.options !== undefined) {
|
|
124
|
+
obj.options = Accessibility_AccessibilityOptions.toJSON(message.options);
|
|
125
|
+
}
|
|
126
|
+
if (message.errorTraceId !== undefined) {
|
|
127
|
+
obj.errorTraceId = message.errorTraceId;
|
|
128
|
+
}
|
|
129
|
+
if (message.code !== undefined) {
|
|
130
|
+
obj.code = message.code;
|
|
131
|
+
}
|
|
132
|
+
if (message.errors?.length) {
|
|
133
|
+
obj.errors = message.errors.map((e) => KeyMessage.toJSON(e));
|
|
134
|
+
}
|
|
135
|
+
if (message.isAppAccessibility !== undefined) {
|
|
136
|
+
obj.isAppAccessibility = message.isAppAccessibility;
|
|
137
|
+
}
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
function createBaseAccessibility_AccessibilityOptions() {
|
|
142
|
+
return { status: undefined, capabilities: [], scripts: [], commandsToWrap: undefined };
|
|
143
|
+
}
|
|
144
|
+
export const Accessibility_AccessibilityOptions = {
|
|
145
|
+
encode(message, writer = new BinaryWriter()) {
|
|
146
|
+
if (message.status !== undefined) {
|
|
147
|
+
writer.uint32(10).string(message.status);
|
|
148
|
+
}
|
|
149
|
+
for (const v of message.capabilities) {
|
|
150
|
+
Accessibility_AccessibilityOptions_AccessibilityCapability.encode(v, writer.uint32(18).fork()).join();
|
|
151
|
+
}
|
|
152
|
+
for (const v of message.scripts) {
|
|
153
|
+
Accessibility_AccessibilityOptions_AccessibilityScript.encode(v, writer.uint32(26).fork()).join();
|
|
154
|
+
}
|
|
155
|
+
if (message.commandsToWrap !== undefined) {
|
|
156
|
+
Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap.encode(message.commandsToWrap, writer.uint32(34).fork()).join();
|
|
157
|
+
}
|
|
158
|
+
return writer;
|
|
159
|
+
},
|
|
160
|
+
decode(input, length) {
|
|
161
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
162
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
163
|
+
const message = createBaseAccessibility_AccessibilityOptions();
|
|
164
|
+
while (reader.pos < end) {
|
|
165
|
+
const tag = reader.uint32();
|
|
166
|
+
switch (tag >>> 3) {
|
|
167
|
+
case 1: {
|
|
168
|
+
if (tag !== 10) {
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
message.status = reader.string();
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
case 2: {
|
|
175
|
+
if (tag !== 18) {
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
message.capabilities.push(Accessibility_AccessibilityOptions_AccessibilityCapability.decode(reader, reader.uint32()));
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
case 3: {
|
|
182
|
+
if (tag !== 26) {
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
message.scripts.push(Accessibility_AccessibilityOptions_AccessibilityScript.decode(reader, reader.uint32()));
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
case 4: {
|
|
189
|
+
if (tag !== 34) {
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
message.commandsToWrap = Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap.decode(reader, reader.uint32());
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
reader.skip(tag & 7);
|
|
200
|
+
}
|
|
201
|
+
return message;
|
|
202
|
+
},
|
|
203
|
+
fromJSON(object) {
|
|
204
|
+
return {
|
|
205
|
+
status: isSet(object.status) ? globalThis.String(object.status) : undefined,
|
|
206
|
+
capabilities: globalThis.Array.isArray(object?.capabilities)
|
|
207
|
+
? object.capabilities.map((e) => Accessibility_AccessibilityOptions_AccessibilityCapability.fromJSON(e))
|
|
208
|
+
: [],
|
|
209
|
+
scripts: globalThis.Array.isArray(object?.scripts)
|
|
210
|
+
? object.scripts.map((e) => Accessibility_AccessibilityOptions_AccessibilityScript.fromJSON(e))
|
|
211
|
+
: [],
|
|
212
|
+
commandsToWrap: isSet(object.commandsToWrap)
|
|
213
|
+
? Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap.fromJSON(object.commandsToWrap)
|
|
214
|
+
: isSet(object.commands_to_wrap)
|
|
215
|
+
? Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap.fromJSON(object.commands_to_wrap)
|
|
216
|
+
: undefined,
|
|
217
|
+
};
|
|
218
|
+
},
|
|
219
|
+
toJSON(message) {
|
|
220
|
+
const obj = {};
|
|
221
|
+
if (message.status !== undefined) {
|
|
222
|
+
obj.status = message.status;
|
|
223
|
+
}
|
|
224
|
+
if (message.capabilities?.length) {
|
|
225
|
+
obj.capabilities = message.capabilities.map((e) => Accessibility_AccessibilityOptions_AccessibilityCapability.toJSON(e));
|
|
226
|
+
}
|
|
227
|
+
if (message.scripts?.length) {
|
|
228
|
+
obj.scripts = message.scripts.map((e) => Accessibility_AccessibilityOptions_AccessibilityScript.toJSON(e));
|
|
229
|
+
}
|
|
230
|
+
if (message.commandsToWrap !== undefined) {
|
|
231
|
+
obj.commandsToWrap = Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap.toJSON(message.commandsToWrap);
|
|
232
|
+
}
|
|
233
|
+
return obj;
|
|
234
|
+
},
|
|
235
|
+
};
|
|
236
|
+
function createBaseAccessibility_AccessibilityOptions_AccessibilityCommandsToWrap() {
|
|
237
|
+
return { scriptsToRun: [], commands: [] };
|
|
238
|
+
}
|
|
239
|
+
export const Accessibility_AccessibilityOptions_AccessibilityCommandsToWrap = {
|
|
240
|
+
encode(message, writer = new BinaryWriter()) {
|
|
241
|
+
for (const v of message.scriptsToRun) {
|
|
242
|
+
writer.uint32(10).string(v);
|
|
243
|
+
}
|
|
244
|
+
for (const v of message.commands) {
|
|
245
|
+
Accessibility_AccessibilityOptions_AccessibilityCommand.encode(v, writer.uint32(18).fork()).join();
|
|
246
|
+
}
|
|
247
|
+
return writer;
|
|
248
|
+
},
|
|
249
|
+
decode(input, length) {
|
|
250
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
251
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
252
|
+
const message = createBaseAccessibility_AccessibilityOptions_AccessibilityCommandsToWrap();
|
|
253
|
+
while (reader.pos < end) {
|
|
254
|
+
const tag = reader.uint32();
|
|
255
|
+
switch (tag >>> 3) {
|
|
256
|
+
case 1: {
|
|
257
|
+
if (tag !== 10) {
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
message.scriptsToRun.push(reader.string());
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
case 2: {
|
|
264
|
+
if (tag !== 18) {
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
message.commands.push(Accessibility_AccessibilityOptions_AccessibilityCommand.decode(reader, reader.uint32()));
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
reader.skip(tag & 7);
|
|
275
|
+
}
|
|
276
|
+
return message;
|
|
277
|
+
},
|
|
278
|
+
fromJSON(object) {
|
|
279
|
+
return {
|
|
280
|
+
scriptsToRun: globalThis.Array.isArray(object?.scriptsToRun)
|
|
281
|
+
? object.scriptsToRun.map((e) => globalThis.String(e))
|
|
282
|
+
: globalThis.Array.isArray(object?.scripts_to_run)
|
|
283
|
+
? object.scripts_to_run.map((e) => globalThis.String(e))
|
|
284
|
+
: [],
|
|
285
|
+
commands: globalThis.Array.isArray(object?.commands)
|
|
286
|
+
? object.commands.map((e) => Accessibility_AccessibilityOptions_AccessibilityCommand.fromJSON(e))
|
|
287
|
+
: [],
|
|
288
|
+
};
|
|
289
|
+
},
|
|
290
|
+
toJSON(message) {
|
|
291
|
+
const obj = {};
|
|
292
|
+
if (message.scriptsToRun?.length) {
|
|
293
|
+
obj.scriptsToRun = message.scriptsToRun;
|
|
294
|
+
}
|
|
295
|
+
if (message.commands?.length) {
|
|
296
|
+
obj.commands = message.commands.map((e) => Accessibility_AccessibilityOptions_AccessibilityCommand.toJSON(e));
|
|
297
|
+
}
|
|
298
|
+
return obj;
|
|
299
|
+
},
|
|
300
|
+
};
|
|
301
|
+
function createBaseAccessibility_AccessibilityOptions_AccessibilityCommand() {
|
|
302
|
+
return { name: "", library: "", module: "", class: "", method: "" };
|
|
303
|
+
}
|
|
304
|
+
export const Accessibility_AccessibilityOptions_AccessibilityCommand = {
|
|
305
|
+
encode(message, writer = new BinaryWriter()) {
|
|
306
|
+
if (message.name !== "") {
|
|
307
|
+
writer.uint32(10).string(message.name);
|
|
308
|
+
}
|
|
309
|
+
if (message.library !== "") {
|
|
310
|
+
writer.uint32(18).string(message.library);
|
|
311
|
+
}
|
|
312
|
+
if (message.module !== "") {
|
|
313
|
+
writer.uint32(26).string(message.module);
|
|
314
|
+
}
|
|
315
|
+
if (message.class !== "") {
|
|
316
|
+
writer.uint32(34).string(message.class);
|
|
317
|
+
}
|
|
318
|
+
if (message.method !== "") {
|
|
319
|
+
writer.uint32(42).string(message.method);
|
|
320
|
+
}
|
|
321
|
+
return writer;
|
|
322
|
+
},
|
|
323
|
+
decode(input, length) {
|
|
324
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
325
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
326
|
+
const message = createBaseAccessibility_AccessibilityOptions_AccessibilityCommand();
|
|
327
|
+
while (reader.pos < end) {
|
|
328
|
+
const tag = reader.uint32();
|
|
329
|
+
switch (tag >>> 3) {
|
|
330
|
+
case 1: {
|
|
331
|
+
if (tag !== 10) {
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
message.name = reader.string();
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
case 2: {
|
|
338
|
+
if (tag !== 18) {
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
message.library = reader.string();
|
|
342
|
+
continue;
|
|
343
|
+
}
|
|
344
|
+
case 3: {
|
|
345
|
+
if (tag !== 26) {
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
message.module = reader.string();
|
|
349
|
+
continue;
|
|
350
|
+
}
|
|
351
|
+
case 4: {
|
|
352
|
+
if (tag !== 34) {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
message.class = reader.string();
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
358
|
+
case 5: {
|
|
359
|
+
if (tag !== 42) {
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
message.method = reader.string();
|
|
363
|
+
continue;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
reader.skip(tag & 7);
|
|
370
|
+
}
|
|
371
|
+
return message;
|
|
372
|
+
},
|
|
373
|
+
fromJSON(object) {
|
|
374
|
+
return {
|
|
375
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
376
|
+
library: isSet(object.library) ? globalThis.String(object.library) : "",
|
|
377
|
+
module: isSet(object.module) ? globalThis.String(object.module) : "",
|
|
378
|
+
class: isSet(object.class) ? globalThis.String(object.class) : "",
|
|
379
|
+
method: isSet(object.method) ? globalThis.String(object.method) : "",
|
|
380
|
+
};
|
|
381
|
+
},
|
|
382
|
+
toJSON(message) {
|
|
383
|
+
const obj = {};
|
|
384
|
+
if (message.name !== "") {
|
|
385
|
+
obj.name = message.name;
|
|
386
|
+
}
|
|
387
|
+
if (message.library !== "") {
|
|
388
|
+
obj.library = message.library;
|
|
389
|
+
}
|
|
390
|
+
if (message.module !== "") {
|
|
391
|
+
obj.module = message.module;
|
|
392
|
+
}
|
|
393
|
+
if (message.class !== "") {
|
|
394
|
+
obj.class = message.class;
|
|
395
|
+
}
|
|
396
|
+
if (message.method !== "") {
|
|
397
|
+
obj.method = message.method;
|
|
398
|
+
}
|
|
399
|
+
return obj;
|
|
400
|
+
},
|
|
401
|
+
};
|
|
402
|
+
function createBaseAccessibility_AccessibilityOptions_AccessibilityScript() {
|
|
403
|
+
return { name: "", command: "" };
|
|
404
|
+
}
|
|
405
|
+
export const Accessibility_AccessibilityOptions_AccessibilityScript = {
|
|
406
|
+
encode(message, writer = new BinaryWriter()) {
|
|
407
|
+
if (message.name !== "") {
|
|
408
|
+
writer.uint32(10).string(message.name);
|
|
409
|
+
}
|
|
410
|
+
if (message.command !== "") {
|
|
411
|
+
writer.uint32(18).string(message.command);
|
|
412
|
+
}
|
|
413
|
+
return writer;
|
|
414
|
+
},
|
|
415
|
+
decode(input, length) {
|
|
416
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
417
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
418
|
+
const message = createBaseAccessibility_AccessibilityOptions_AccessibilityScript();
|
|
419
|
+
while (reader.pos < end) {
|
|
420
|
+
const tag = reader.uint32();
|
|
421
|
+
switch (tag >>> 3) {
|
|
422
|
+
case 1: {
|
|
423
|
+
if (tag !== 10) {
|
|
424
|
+
break;
|
|
425
|
+
}
|
|
426
|
+
message.name = reader.string();
|
|
427
|
+
continue;
|
|
428
|
+
}
|
|
429
|
+
case 2: {
|
|
430
|
+
if (tag !== 18) {
|
|
431
|
+
break;
|
|
432
|
+
}
|
|
433
|
+
message.command = reader.string();
|
|
434
|
+
continue;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
reader.skip(tag & 7);
|
|
441
|
+
}
|
|
442
|
+
return message;
|
|
443
|
+
},
|
|
444
|
+
fromJSON(object) {
|
|
445
|
+
return {
|
|
446
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
447
|
+
command: isSet(object.command) ? globalThis.String(object.command) : "",
|
|
448
|
+
};
|
|
449
|
+
},
|
|
450
|
+
toJSON(message) {
|
|
451
|
+
const obj = {};
|
|
452
|
+
if (message.name !== "") {
|
|
453
|
+
obj.name = message.name;
|
|
454
|
+
}
|
|
455
|
+
if (message.command !== "") {
|
|
456
|
+
obj.command = message.command;
|
|
457
|
+
}
|
|
458
|
+
return obj;
|
|
459
|
+
},
|
|
460
|
+
};
|
|
461
|
+
function createBaseAccessibility_AccessibilityOptions_AccessibilityCapability() {
|
|
462
|
+
return { name: "", value: "" };
|
|
463
|
+
}
|
|
464
|
+
export const Accessibility_AccessibilityOptions_AccessibilityCapability = {
|
|
465
|
+
encode(message, writer = new BinaryWriter()) {
|
|
466
|
+
if (message.name !== "") {
|
|
467
|
+
writer.uint32(10).string(message.name);
|
|
468
|
+
}
|
|
469
|
+
if (message.value !== "") {
|
|
470
|
+
writer.uint32(18).string(message.value);
|
|
471
|
+
}
|
|
472
|
+
return writer;
|
|
473
|
+
},
|
|
474
|
+
decode(input, length) {
|
|
475
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
476
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
477
|
+
const message = createBaseAccessibility_AccessibilityOptions_AccessibilityCapability();
|
|
478
|
+
while (reader.pos < end) {
|
|
479
|
+
const tag = reader.uint32();
|
|
480
|
+
switch (tag >>> 3) {
|
|
481
|
+
case 1: {
|
|
482
|
+
if (tag !== 10) {
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
message.name = reader.string();
|
|
486
|
+
continue;
|
|
487
|
+
}
|
|
488
|
+
case 2: {
|
|
489
|
+
if (tag !== 18) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
message.value = reader.string();
|
|
493
|
+
continue;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
497
|
+
break;
|
|
498
|
+
}
|
|
499
|
+
reader.skip(tag & 7);
|
|
500
|
+
}
|
|
501
|
+
return message;
|
|
502
|
+
},
|
|
503
|
+
fromJSON(object) {
|
|
504
|
+
return {
|
|
505
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
506
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
507
|
+
};
|
|
508
|
+
},
|
|
509
|
+
toJSON(message) {
|
|
510
|
+
const obj = {};
|
|
511
|
+
if (message.name !== "") {
|
|
512
|
+
obj.name = message.name;
|
|
513
|
+
}
|
|
514
|
+
if (message.value !== "") {
|
|
515
|
+
obj.value = message.value;
|
|
516
|
+
}
|
|
517
|
+
return obj;
|
|
518
|
+
},
|
|
519
|
+
};
|
|
520
|
+
function createBaseAccessibilityConfigRequest() {
|
|
521
|
+
return { binSessionId: "", platformIndex: 0, frameworkName: "", frameworkVersion: "", hubUrl: "" };
|
|
522
|
+
}
|
|
523
|
+
export const AccessibilityConfigRequest = {
|
|
524
|
+
encode(message, writer = new BinaryWriter()) {
|
|
525
|
+
if (message.binSessionId !== "") {
|
|
526
|
+
writer.uint32(10).string(message.binSessionId);
|
|
527
|
+
}
|
|
528
|
+
if (message.platformIndex !== 0) {
|
|
529
|
+
writer.uint32(16).uint32(message.platformIndex);
|
|
530
|
+
}
|
|
531
|
+
if (message.frameworkName !== "") {
|
|
532
|
+
writer.uint32(26).string(message.frameworkName);
|
|
533
|
+
}
|
|
534
|
+
if (message.frameworkVersion !== "") {
|
|
535
|
+
writer.uint32(34).string(message.frameworkVersion);
|
|
536
|
+
}
|
|
537
|
+
if (message.hubUrl !== "") {
|
|
538
|
+
writer.uint32(42).string(message.hubUrl);
|
|
539
|
+
}
|
|
540
|
+
return writer;
|
|
541
|
+
},
|
|
542
|
+
decode(input, length) {
|
|
543
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
544
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
545
|
+
const message = createBaseAccessibilityConfigRequest();
|
|
546
|
+
while (reader.pos < end) {
|
|
547
|
+
const tag = reader.uint32();
|
|
548
|
+
switch (tag >>> 3) {
|
|
549
|
+
case 1: {
|
|
550
|
+
if (tag !== 10) {
|
|
551
|
+
break;
|
|
552
|
+
}
|
|
553
|
+
message.binSessionId = reader.string();
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
556
|
+
case 2: {
|
|
557
|
+
if (tag !== 16) {
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
message.platformIndex = reader.uint32();
|
|
561
|
+
continue;
|
|
562
|
+
}
|
|
563
|
+
case 3: {
|
|
564
|
+
if (tag !== 26) {
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
message.frameworkName = reader.string();
|
|
568
|
+
continue;
|
|
569
|
+
}
|
|
570
|
+
case 4: {
|
|
571
|
+
if (tag !== 34) {
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
message.frameworkVersion = reader.string();
|
|
575
|
+
continue;
|
|
576
|
+
}
|
|
577
|
+
case 5: {
|
|
578
|
+
if (tag !== 42) {
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
message.hubUrl = reader.string();
|
|
582
|
+
continue;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
reader.skip(tag & 7);
|
|
589
|
+
}
|
|
590
|
+
return message;
|
|
591
|
+
},
|
|
592
|
+
fromJSON(object) {
|
|
593
|
+
return {
|
|
594
|
+
binSessionId: isSet(object.binSessionId)
|
|
595
|
+
? globalThis.String(object.binSessionId)
|
|
596
|
+
: isSet(object.bin_session_id)
|
|
597
|
+
? globalThis.String(object.bin_session_id)
|
|
598
|
+
: "",
|
|
599
|
+
platformIndex: isSet(object.platformIndex)
|
|
600
|
+
? globalThis.Number(object.platformIndex)
|
|
601
|
+
: isSet(object.platform_index)
|
|
602
|
+
? globalThis.Number(object.platform_index)
|
|
603
|
+
: 0,
|
|
604
|
+
frameworkName: isSet(object.frameworkName)
|
|
605
|
+
? globalThis.String(object.frameworkName)
|
|
606
|
+
: isSet(object.framework_name)
|
|
607
|
+
? globalThis.String(object.framework_name)
|
|
608
|
+
: "",
|
|
609
|
+
frameworkVersion: isSet(object.frameworkVersion)
|
|
610
|
+
? globalThis.String(object.frameworkVersion)
|
|
611
|
+
: isSet(object.framework_version)
|
|
612
|
+
? globalThis.String(object.framework_version)
|
|
613
|
+
: "",
|
|
614
|
+
hubUrl: isSet(object.hubUrl)
|
|
615
|
+
? globalThis.String(object.hubUrl)
|
|
616
|
+
: isSet(object.hub_url)
|
|
617
|
+
? globalThis.String(object.hub_url)
|
|
618
|
+
: "",
|
|
619
|
+
};
|
|
620
|
+
},
|
|
621
|
+
toJSON(message) {
|
|
622
|
+
const obj = {};
|
|
623
|
+
if (message.binSessionId !== "") {
|
|
624
|
+
obj.binSessionId = message.binSessionId;
|
|
625
|
+
}
|
|
626
|
+
if (message.platformIndex !== 0) {
|
|
627
|
+
obj.platformIndex = Math.round(message.platformIndex);
|
|
628
|
+
}
|
|
629
|
+
if (message.frameworkName !== "") {
|
|
630
|
+
obj.frameworkName = message.frameworkName;
|
|
631
|
+
}
|
|
632
|
+
if (message.frameworkVersion !== "") {
|
|
633
|
+
obj.frameworkVersion = message.frameworkVersion;
|
|
634
|
+
}
|
|
635
|
+
if (message.hubUrl !== "") {
|
|
636
|
+
obj.hubUrl = message.hubUrl;
|
|
637
|
+
}
|
|
638
|
+
return obj;
|
|
639
|
+
},
|
|
640
|
+
};
|
|
641
|
+
function createBaseAccessibilityConfigResponse() {
|
|
642
|
+
return { success: false, testhub: undefined, accessibility: undefined };
|
|
643
|
+
}
|
|
644
|
+
export const AccessibilityConfigResponse = {
|
|
645
|
+
encode(message, writer = new BinaryWriter()) {
|
|
646
|
+
if (message.success !== false) {
|
|
647
|
+
writer.uint32(8).bool(message.success);
|
|
648
|
+
}
|
|
649
|
+
if (message.testhub !== undefined) {
|
|
650
|
+
TestHub.encode(message.testhub, writer.uint32(18).fork()).join();
|
|
651
|
+
}
|
|
652
|
+
if (message.accessibility !== undefined) {
|
|
653
|
+
Accessibility.encode(message.accessibility, writer.uint32(26).fork()).join();
|
|
654
|
+
}
|
|
655
|
+
return writer;
|
|
656
|
+
},
|
|
657
|
+
decode(input, length) {
|
|
658
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
659
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
660
|
+
const message = createBaseAccessibilityConfigResponse();
|
|
661
|
+
while (reader.pos < end) {
|
|
662
|
+
const tag = reader.uint32();
|
|
663
|
+
switch (tag >>> 3) {
|
|
664
|
+
case 1: {
|
|
665
|
+
if (tag !== 8) {
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
message.success = reader.bool();
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
case 2: {
|
|
672
|
+
if (tag !== 18) {
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
message.testhub = TestHub.decode(reader, reader.uint32());
|
|
676
|
+
continue;
|
|
677
|
+
}
|
|
678
|
+
case 3: {
|
|
679
|
+
if (tag !== 26) {
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
682
|
+
message.accessibility = Accessibility.decode(reader, reader.uint32());
|
|
683
|
+
continue;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
reader.skip(tag & 7);
|
|
690
|
+
}
|
|
691
|
+
return message;
|
|
692
|
+
},
|
|
693
|
+
fromJSON(object) {
|
|
694
|
+
return {
|
|
695
|
+
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
696
|
+
testhub: isSet(object.testhub) ? TestHub.fromJSON(object.testhub) : undefined,
|
|
697
|
+
accessibility: isSet(object.accessibility) ? Accessibility.fromJSON(object.accessibility) : undefined,
|
|
698
|
+
};
|
|
699
|
+
},
|
|
700
|
+
toJSON(message) {
|
|
701
|
+
const obj = {};
|
|
702
|
+
if (message.success !== false) {
|
|
703
|
+
obj.success = message.success;
|
|
704
|
+
}
|
|
705
|
+
if (message.testhub !== undefined) {
|
|
706
|
+
obj.testhub = TestHub.toJSON(message.testhub);
|
|
707
|
+
}
|
|
708
|
+
if (message.accessibility !== undefined) {
|
|
709
|
+
obj.accessibility = Accessibility.toJSON(message.accessibility);
|
|
710
|
+
}
|
|
711
|
+
return obj;
|
|
712
|
+
},
|
|
713
|
+
};
|
|
714
|
+
function createBaseAccessibilityResultRequest() {
|
|
715
|
+
return { binSessionId: "", testRunId: "", sessionId: "", resultType: "" };
|
|
716
|
+
}
|
|
717
|
+
export const AccessibilityResultRequest = {
|
|
718
|
+
encode(message, writer = new BinaryWriter()) {
|
|
719
|
+
if (message.binSessionId !== "") {
|
|
720
|
+
writer.uint32(10).string(message.binSessionId);
|
|
721
|
+
}
|
|
722
|
+
if (message.testRunId !== "") {
|
|
723
|
+
writer.uint32(18).string(message.testRunId);
|
|
724
|
+
}
|
|
725
|
+
if (message.sessionId !== "") {
|
|
726
|
+
writer.uint32(26).string(message.sessionId);
|
|
727
|
+
}
|
|
728
|
+
if (message.resultType !== "") {
|
|
729
|
+
writer.uint32(34).string(message.resultType);
|
|
730
|
+
}
|
|
731
|
+
return writer;
|
|
732
|
+
},
|
|
733
|
+
decode(input, length) {
|
|
734
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
735
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
736
|
+
const message = createBaseAccessibilityResultRequest();
|
|
737
|
+
while (reader.pos < end) {
|
|
738
|
+
const tag = reader.uint32();
|
|
739
|
+
switch (tag >>> 3) {
|
|
740
|
+
case 1: {
|
|
741
|
+
if (tag !== 10) {
|
|
742
|
+
break;
|
|
743
|
+
}
|
|
744
|
+
message.binSessionId = reader.string();
|
|
745
|
+
continue;
|
|
746
|
+
}
|
|
747
|
+
case 2: {
|
|
748
|
+
if (tag !== 18) {
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
message.testRunId = reader.string();
|
|
752
|
+
continue;
|
|
753
|
+
}
|
|
754
|
+
case 3: {
|
|
755
|
+
if (tag !== 26) {
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
message.sessionId = reader.string();
|
|
759
|
+
continue;
|
|
760
|
+
}
|
|
761
|
+
case 4: {
|
|
762
|
+
if (tag !== 34) {
|
|
763
|
+
break;
|
|
764
|
+
}
|
|
765
|
+
message.resultType = reader.string();
|
|
766
|
+
continue;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
770
|
+
break;
|
|
771
|
+
}
|
|
772
|
+
reader.skip(tag & 7);
|
|
773
|
+
}
|
|
774
|
+
return message;
|
|
775
|
+
},
|
|
776
|
+
fromJSON(object) {
|
|
777
|
+
return {
|
|
778
|
+
binSessionId: isSet(object.binSessionId)
|
|
779
|
+
? globalThis.String(object.binSessionId)
|
|
780
|
+
: isSet(object.bin_session_id)
|
|
781
|
+
? globalThis.String(object.bin_session_id)
|
|
782
|
+
: "",
|
|
783
|
+
testRunId: isSet(object.testRunId)
|
|
784
|
+
? globalThis.String(object.testRunId)
|
|
785
|
+
: isSet(object.test_run_id)
|
|
786
|
+
? globalThis.String(object.test_run_id)
|
|
787
|
+
: "",
|
|
788
|
+
sessionId: isSet(object.sessionId)
|
|
789
|
+
? globalThis.String(object.sessionId)
|
|
790
|
+
: isSet(object.session_id)
|
|
791
|
+
? globalThis.String(object.session_id)
|
|
792
|
+
: "",
|
|
793
|
+
resultType: isSet(object.resultType)
|
|
794
|
+
? globalThis.String(object.resultType)
|
|
795
|
+
: isSet(object.result_type)
|
|
796
|
+
? globalThis.String(object.result_type)
|
|
797
|
+
: "",
|
|
798
|
+
};
|
|
799
|
+
},
|
|
800
|
+
toJSON(message) {
|
|
801
|
+
const obj = {};
|
|
802
|
+
if (message.binSessionId !== "") {
|
|
803
|
+
obj.binSessionId = message.binSessionId;
|
|
804
|
+
}
|
|
805
|
+
if (message.testRunId !== "") {
|
|
806
|
+
obj.testRunId = message.testRunId;
|
|
807
|
+
}
|
|
808
|
+
if (message.sessionId !== "") {
|
|
809
|
+
obj.sessionId = message.sessionId;
|
|
810
|
+
}
|
|
811
|
+
if (message.resultType !== "") {
|
|
812
|
+
obj.resultType = message.resultType;
|
|
813
|
+
}
|
|
814
|
+
return obj;
|
|
815
|
+
},
|
|
816
|
+
};
|
|
817
|
+
function createBaseAccessibilityResultResponse() {
|
|
818
|
+
return { success: false, resultResponse: new Uint8Array(0) };
|
|
819
|
+
}
|
|
820
|
+
export const AccessibilityResultResponse = {
|
|
821
|
+
encode(message, writer = new BinaryWriter()) {
|
|
822
|
+
if (message.success !== false) {
|
|
823
|
+
writer.uint32(8).bool(message.success);
|
|
824
|
+
}
|
|
825
|
+
if (message.resultResponse.length !== 0) {
|
|
826
|
+
writer.uint32(18).bytes(message.resultResponse);
|
|
827
|
+
}
|
|
828
|
+
return writer;
|
|
829
|
+
},
|
|
830
|
+
decode(input, length) {
|
|
831
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
832
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
833
|
+
const message = createBaseAccessibilityResultResponse();
|
|
834
|
+
while (reader.pos < end) {
|
|
835
|
+
const tag = reader.uint32();
|
|
836
|
+
switch (tag >>> 3) {
|
|
837
|
+
case 1: {
|
|
838
|
+
if (tag !== 8) {
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
message.success = reader.bool();
|
|
842
|
+
continue;
|
|
843
|
+
}
|
|
844
|
+
case 2: {
|
|
845
|
+
if (tag !== 18) {
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
848
|
+
message.resultResponse = reader.bytes();
|
|
849
|
+
continue;
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
853
|
+
break;
|
|
854
|
+
}
|
|
855
|
+
reader.skip(tag & 7);
|
|
856
|
+
}
|
|
857
|
+
return message;
|
|
858
|
+
},
|
|
859
|
+
fromJSON(object) {
|
|
860
|
+
return {
|
|
861
|
+
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
862
|
+
resultResponse: isSet(object.resultResponse)
|
|
863
|
+
? bytesFromBase64(object.resultResponse)
|
|
864
|
+
: isSet(object.result_response)
|
|
865
|
+
? bytesFromBase64(object.result_response)
|
|
866
|
+
: new Uint8Array(0),
|
|
867
|
+
};
|
|
868
|
+
},
|
|
869
|
+
toJSON(message) {
|
|
870
|
+
const obj = {};
|
|
871
|
+
if (message.success !== false) {
|
|
872
|
+
obj.success = message.success;
|
|
873
|
+
}
|
|
874
|
+
if (message.resultResponse.length !== 0) {
|
|
875
|
+
obj.resultResponse = base64FromBytes(message.resultResponse);
|
|
876
|
+
}
|
|
877
|
+
return obj;
|
|
878
|
+
},
|
|
879
|
+
};
|
|
880
|
+
function bytesFromBase64(b64) {
|
|
881
|
+
if (globalThis.Buffer) {
|
|
882
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
883
|
+
}
|
|
884
|
+
else {
|
|
885
|
+
const bin = globalThis.atob(b64);
|
|
886
|
+
const arr = new Uint8Array(bin.length);
|
|
887
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
888
|
+
arr[i] = bin.charCodeAt(i);
|
|
889
|
+
}
|
|
890
|
+
return arr;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
function base64FromBytes(arr) {
|
|
894
|
+
if (globalThis.Buffer) {
|
|
895
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
896
|
+
}
|
|
897
|
+
else {
|
|
898
|
+
const bin = [];
|
|
899
|
+
arr.forEach((byte) => {
|
|
900
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
901
|
+
});
|
|
902
|
+
return globalThis.btoa(bin.join(""));
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
function isSet(value) {
|
|
906
|
+
return value !== null && value !== undefined;
|
|
907
|
+
}
|
|
908
|
+
//# sourceMappingURL=sdk-messages-accessibility.js.map
|