@opengeni/agent-proto 3.2.2 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gen/opengeni_agent.d.ts +79 -0
- package/dist/index.js +645 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/gen/opengeni_agent.ts +1002 -176
package/dist/index.js
CHANGED
|
@@ -1328,7 +1328,8 @@ function createBaseCapabilities() {
|
|
|
1328
1328
|
operationCpuQuota: false,
|
|
1329
1329
|
transactionalFsWrite: false,
|
|
1330
1330
|
credentialRenew: false,
|
|
1331
|
-
macPermissions: void 0
|
|
1331
|
+
macPermissions: void 0,
|
|
1332
|
+
browserControlHttp: false
|
|
1332
1333
|
};
|
|
1333
1334
|
}
|
|
1334
1335
|
var Capabilities = {
|
|
@@ -1381,6 +1382,9 @@ var Capabilities = {
|
|
|
1381
1382
|
if (message.macPermissions !== void 0) {
|
|
1382
1383
|
MacDesktopPermissions.encode(message.macPermissions, writer.uint32(130).fork()).join();
|
|
1383
1384
|
}
|
|
1385
|
+
if (message.browserControlHttp !== false) {
|
|
1386
|
+
writer.uint32(136).bool(message.browserControlHttp);
|
|
1387
|
+
}
|
|
1384
1388
|
return writer;
|
|
1385
1389
|
},
|
|
1386
1390
|
decode(input, length) {
|
|
@@ -1502,6 +1506,13 @@ var Capabilities = {
|
|
|
1502
1506
|
message.macPermissions = MacDesktopPermissions.decode(reader, reader.uint32());
|
|
1503
1507
|
continue;
|
|
1504
1508
|
}
|
|
1509
|
+
case 17: {
|
|
1510
|
+
if (tag !== 136) {
|
|
1511
|
+
break;
|
|
1512
|
+
}
|
|
1513
|
+
message.browserControlHttp = reader.bool();
|
|
1514
|
+
continue;
|
|
1515
|
+
}
|
|
1505
1516
|
}
|
|
1506
1517
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1507
1518
|
break;
|
|
@@ -1527,7 +1538,8 @@ var Capabilities = {
|
|
|
1527
1538
|
operationCpuQuota: isSet(object.operationCpuQuota) ? globalThis.Boolean(object.operationCpuQuota) : isSet(object.operation_cpu_quota) ? globalThis.Boolean(object.operation_cpu_quota) : false,
|
|
1528
1539
|
transactionalFsWrite: isSet(object.transactionalFsWrite) ? globalThis.Boolean(object.transactionalFsWrite) : isSet(object.transactional_fs_write) ? globalThis.Boolean(object.transactional_fs_write) : false,
|
|
1529
1540
|
credentialRenew: isSet(object.credentialRenew) ? globalThis.Boolean(object.credentialRenew) : isSet(object.credential_renew) ? globalThis.Boolean(object.credential_renew) : false,
|
|
1530
|
-
macPermissions: isSet(object.macPermissions) ? MacDesktopPermissions.fromJSON(object.macPermissions) : isSet(object.mac_permissions) ? MacDesktopPermissions.fromJSON(object.mac_permissions) : void 0
|
|
1541
|
+
macPermissions: isSet(object.macPermissions) ? MacDesktopPermissions.fromJSON(object.macPermissions) : isSet(object.mac_permissions) ? MacDesktopPermissions.fromJSON(object.mac_permissions) : void 0,
|
|
1542
|
+
browserControlHttp: isSet(object.browserControlHttp) ? globalThis.Boolean(object.browserControlHttp) : isSet(object.browser_control_http) ? globalThis.Boolean(object.browser_control_http) : false
|
|
1531
1543
|
};
|
|
1532
1544
|
},
|
|
1533
1545
|
toJSON(message) {
|
|
@@ -1580,6 +1592,9 @@ var Capabilities = {
|
|
|
1580
1592
|
if (message.macPermissions !== void 0) {
|
|
1581
1593
|
obj.macPermissions = MacDesktopPermissions.toJSON(message.macPermissions);
|
|
1582
1594
|
}
|
|
1595
|
+
if (message.browserControlHttp !== false) {
|
|
1596
|
+
obj.browserControlHttp = message.browserControlHttp;
|
|
1597
|
+
}
|
|
1583
1598
|
return obj;
|
|
1584
1599
|
},
|
|
1585
1600
|
create(base) {
|
|
@@ -1603,6 +1618,7 @@ var Capabilities = {
|
|
|
1603
1618
|
message.transactionalFsWrite = object.transactionalFsWrite ?? false;
|
|
1604
1619
|
message.credentialRenew = object.credentialRenew ?? false;
|
|
1605
1620
|
message.macPermissions = object.macPermissions !== void 0 && object.macPermissions !== null ? MacDesktopPermissions.fromPartial(object.macPermissions) : void 0;
|
|
1621
|
+
message.browserControlHttp = object.browserControlHttp ?? false;
|
|
1606
1622
|
return message;
|
|
1607
1623
|
}
|
|
1608
1624
|
};
|
|
@@ -6052,6 +6068,506 @@ var BrowserControlEnsureResponse = {
|
|
|
6052
6068
|
return message;
|
|
6053
6069
|
}
|
|
6054
6070
|
};
|
|
6071
|
+
function createBaseBrowserControlHttpRequest() {
|
|
6072
|
+
return {
|
|
6073
|
+
scopeId: "",
|
|
6074
|
+
scopeGeneration: "",
|
|
6075
|
+
method: "",
|
|
6076
|
+
path: "",
|
|
6077
|
+
bearerToken: "",
|
|
6078
|
+
body: new Uint8Array(0),
|
|
6079
|
+
hasBody: false,
|
|
6080
|
+
timeoutMs: 0,
|
|
6081
|
+
maxResponseBytes: "0"
|
|
6082
|
+
};
|
|
6083
|
+
}
|
|
6084
|
+
var BrowserControlHttpRequest = {
|
|
6085
|
+
encode(message, writer = new BinaryWriter()) {
|
|
6086
|
+
if (message.scopeId !== "") {
|
|
6087
|
+
writer.uint32(10).string(message.scopeId);
|
|
6088
|
+
}
|
|
6089
|
+
if (message.scopeGeneration !== "") {
|
|
6090
|
+
writer.uint32(18).string(message.scopeGeneration);
|
|
6091
|
+
}
|
|
6092
|
+
if (message.method !== "") {
|
|
6093
|
+
writer.uint32(26).string(message.method);
|
|
6094
|
+
}
|
|
6095
|
+
if (message.path !== "") {
|
|
6096
|
+
writer.uint32(34).string(message.path);
|
|
6097
|
+
}
|
|
6098
|
+
if (message.bearerToken !== "") {
|
|
6099
|
+
writer.uint32(42).string(message.bearerToken);
|
|
6100
|
+
}
|
|
6101
|
+
if (message.body.length !== 0) {
|
|
6102
|
+
writer.uint32(50).bytes(message.body);
|
|
6103
|
+
}
|
|
6104
|
+
if (message.hasBody !== false) {
|
|
6105
|
+
writer.uint32(56).bool(message.hasBody);
|
|
6106
|
+
}
|
|
6107
|
+
if (message.timeoutMs !== 0) {
|
|
6108
|
+
writer.uint32(64).uint32(message.timeoutMs);
|
|
6109
|
+
}
|
|
6110
|
+
if (message.maxResponseBytes !== "0") {
|
|
6111
|
+
writer.uint32(72).uint64(message.maxResponseBytes);
|
|
6112
|
+
}
|
|
6113
|
+
return writer;
|
|
6114
|
+
},
|
|
6115
|
+
decode(input, length) {
|
|
6116
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6117
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6118
|
+
const message = createBaseBrowserControlHttpRequest();
|
|
6119
|
+
while (reader.pos < end) {
|
|
6120
|
+
const tag = reader.uint32();
|
|
6121
|
+
switch (tag >>> 3) {
|
|
6122
|
+
case 1: {
|
|
6123
|
+
if (tag !== 10) {
|
|
6124
|
+
break;
|
|
6125
|
+
}
|
|
6126
|
+
message.scopeId = reader.string();
|
|
6127
|
+
continue;
|
|
6128
|
+
}
|
|
6129
|
+
case 2: {
|
|
6130
|
+
if (tag !== 18) {
|
|
6131
|
+
break;
|
|
6132
|
+
}
|
|
6133
|
+
message.scopeGeneration = reader.string();
|
|
6134
|
+
continue;
|
|
6135
|
+
}
|
|
6136
|
+
case 3: {
|
|
6137
|
+
if (tag !== 26) {
|
|
6138
|
+
break;
|
|
6139
|
+
}
|
|
6140
|
+
message.method = reader.string();
|
|
6141
|
+
continue;
|
|
6142
|
+
}
|
|
6143
|
+
case 4: {
|
|
6144
|
+
if (tag !== 34) {
|
|
6145
|
+
break;
|
|
6146
|
+
}
|
|
6147
|
+
message.path = reader.string();
|
|
6148
|
+
continue;
|
|
6149
|
+
}
|
|
6150
|
+
case 5: {
|
|
6151
|
+
if (tag !== 42) {
|
|
6152
|
+
break;
|
|
6153
|
+
}
|
|
6154
|
+
message.bearerToken = reader.string();
|
|
6155
|
+
continue;
|
|
6156
|
+
}
|
|
6157
|
+
case 6: {
|
|
6158
|
+
if (tag !== 50) {
|
|
6159
|
+
break;
|
|
6160
|
+
}
|
|
6161
|
+
message.body = reader.bytes();
|
|
6162
|
+
continue;
|
|
6163
|
+
}
|
|
6164
|
+
case 7: {
|
|
6165
|
+
if (tag !== 56) {
|
|
6166
|
+
break;
|
|
6167
|
+
}
|
|
6168
|
+
message.hasBody = reader.bool();
|
|
6169
|
+
continue;
|
|
6170
|
+
}
|
|
6171
|
+
case 8: {
|
|
6172
|
+
if (tag !== 64) {
|
|
6173
|
+
break;
|
|
6174
|
+
}
|
|
6175
|
+
message.timeoutMs = reader.uint32();
|
|
6176
|
+
continue;
|
|
6177
|
+
}
|
|
6178
|
+
case 9: {
|
|
6179
|
+
if (tag !== 72) {
|
|
6180
|
+
break;
|
|
6181
|
+
}
|
|
6182
|
+
message.maxResponseBytes = reader.uint64().toString();
|
|
6183
|
+
continue;
|
|
6184
|
+
}
|
|
6185
|
+
}
|
|
6186
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6187
|
+
break;
|
|
6188
|
+
}
|
|
6189
|
+
reader.skip(tag & 7);
|
|
6190
|
+
}
|
|
6191
|
+
return message;
|
|
6192
|
+
},
|
|
6193
|
+
fromJSON(object) {
|
|
6194
|
+
return {
|
|
6195
|
+
scopeId: isSet(object.scopeId) ? globalThis.String(object.scopeId) : isSet(object.scope_id) ? globalThis.String(object.scope_id) : "",
|
|
6196
|
+
scopeGeneration: isSet(object.scopeGeneration) ? globalThis.String(object.scopeGeneration) : isSet(object.scope_generation) ? globalThis.String(object.scope_generation) : "",
|
|
6197
|
+
method: isSet(object.method) ? globalThis.String(object.method) : "",
|
|
6198
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
6199
|
+
bearerToken: isSet(object.bearerToken) ? globalThis.String(object.bearerToken) : isSet(object.bearer_token) ? globalThis.String(object.bearer_token) : "",
|
|
6200
|
+
body: isSet(object.body) ? bytesFromBase64(object.body) : new Uint8Array(0),
|
|
6201
|
+
hasBody: isSet(object.hasBody) ? globalThis.Boolean(object.hasBody) : isSet(object.has_body) ? globalThis.Boolean(object.has_body) : false,
|
|
6202
|
+
timeoutMs: isSet(object.timeoutMs) ? globalThis.Number(object.timeoutMs) : isSet(object.timeout_ms) ? globalThis.Number(object.timeout_ms) : 0,
|
|
6203
|
+
maxResponseBytes: isSet(object.maxResponseBytes) ? globalThis.String(object.maxResponseBytes) : isSet(object.max_response_bytes) ? globalThis.String(object.max_response_bytes) : "0"
|
|
6204
|
+
};
|
|
6205
|
+
},
|
|
6206
|
+
toJSON(message) {
|
|
6207
|
+
const obj = {};
|
|
6208
|
+
if (message.scopeId !== "") {
|
|
6209
|
+
obj.scopeId = message.scopeId;
|
|
6210
|
+
}
|
|
6211
|
+
if (message.scopeGeneration !== "") {
|
|
6212
|
+
obj.scopeGeneration = message.scopeGeneration;
|
|
6213
|
+
}
|
|
6214
|
+
if (message.method !== "") {
|
|
6215
|
+
obj.method = message.method;
|
|
6216
|
+
}
|
|
6217
|
+
if (message.path !== "") {
|
|
6218
|
+
obj.path = message.path;
|
|
6219
|
+
}
|
|
6220
|
+
if (message.bearerToken !== "") {
|
|
6221
|
+
obj.bearerToken = message.bearerToken;
|
|
6222
|
+
}
|
|
6223
|
+
if (message.body.length !== 0) {
|
|
6224
|
+
obj.body = base64FromBytes(message.body);
|
|
6225
|
+
}
|
|
6226
|
+
if (message.hasBody !== false) {
|
|
6227
|
+
obj.hasBody = message.hasBody;
|
|
6228
|
+
}
|
|
6229
|
+
if (message.timeoutMs !== 0) {
|
|
6230
|
+
obj.timeoutMs = Math.round(message.timeoutMs);
|
|
6231
|
+
}
|
|
6232
|
+
if (message.maxResponseBytes !== "0") {
|
|
6233
|
+
obj.maxResponseBytes = message.maxResponseBytes;
|
|
6234
|
+
}
|
|
6235
|
+
return obj;
|
|
6236
|
+
},
|
|
6237
|
+
create(base) {
|
|
6238
|
+
return BrowserControlHttpRequest.fromPartial(base ?? {});
|
|
6239
|
+
},
|
|
6240
|
+
fromPartial(object) {
|
|
6241
|
+
const message = createBaseBrowserControlHttpRequest();
|
|
6242
|
+
message.scopeId = object.scopeId ?? "";
|
|
6243
|
+
message.scopeGeneration = object.scopeGeneration ?? "";
|
|
6244
|
+
message.method = object.method ?? "";
|
|
6245
|
+
message.path = object.path ?? "";
|
|
6246
|
+
message.bearerToken = object.bearerToken ?? "";
|
|
6247
|
+
message.body = object.body ?? new Uint8Array(0);
|
|
6248
|
+
message.hasBody = object.hasBody ?? false;
|
|
6249
|
+
message.timeoutMs = object.timeoutMs ?? 0;
|
|
6250
|
+
message.maxResponseBytes = object.maxResponseBytes ?? "0";
|
|
6251
|
+
return message;
|
|
6252
|
+
}
|
|
6253
|
+
};
|
|
6254
|
+
function createBaseBrowserControlHttpHeader() {
|
|
6255
|
+
return { name: "", value: "" };
|
|
6256
|
+
}
|
|
6257
|
+
var BrowserControlHttpHeader = {
|
|
6258
|
+
encode(message, writer = new BinaryWriter()) {
|
|
6259
|
+
if (message.name !== "") {
|
|
6260
|
+
writer.uint32(10).string(message.name);
|
|
6261
|
+
}
|
|
6262
|
+
if (message.value !== "") {
|
|
6263
|
+
writer.uint32(18).string(message.value);
|
|
6264
|
+
}
|
|
6265
|
+
return writer;
|
|
6266
|
+
},
|
|
6267
|
+
decode(input, length) {
|
|
6268
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6269
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6270
|
+
const message = createBaseBrowserControlHttpHeader();
|
|
6271
|
+
while (reader.pos < end) {
|
|
6272
|
+
const tag = reader.uint32();
|
|
6273
|
+
switch (tag >>> 3) {
|
|
6274
|
+
case 1: {
|
|
6275
|
+
if (tag !== 10) {
|
|
6276
|
+
break;
|
|
6277
|
+
}
|
|
6278
|
+
message.name = reader.string();
|
|
6279
|
+
continue;
|
|
6280
|
+
}
|
|
6281
|
+
case 2: {
|
|
6282
|
+
if (tag !== 18) {
|
|
6283
|
+
break;
|
|
6284
|
+
}
|
|
6285
|
+
message.value = reader.string();
|
|
6286
|
+
continue;
|
|
6287
|
+
}
|
|
6288
|
+
}
|
|
6289
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6290
|
+
break;
|
|
6291
|
+
}
|
|
6292
|
+
reader.skip(tag & 7);
|
|
6293
|
+
}
|
|
6294
|
+
return message;
|
|
6295
|
+
},
|
|
6296
|
+
fromJSON(object) {
|
|
6297
|
+
return {
|
|
6298
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
6299
|
+
value: isSet(object.value) ? globalThis.String(object.value) : ""
|
|
6300
|
+
};
|
|
6301
|
+
},
|
|
6302
|
+
toJSON(message) {
|
|
6303
|
+
const obj = {};
|
|
6304
|
+
if (message.name !== "") {
|
|
6305
|
+
obj.name = message.name;
|
|
6306
|
+
}
|
|
6307
|
+
if (message.value !== "") {
|
|
6308
|
+
obj.value = message.value;
|
|
6309
|
+
}
|
|
6310
|
+
return obj;
|
|
6311
|
+
},
|
|
6312
|
+
create(base) {
|
|
6313
|
+
return BrowserControlHttpHeader.fromPartial(base ?? {});
|
|
6314
|
+
},
|
|
6315
|
+
fromPartial(object) {
|
|
6316
|
+
const message = createBaseBrowserControlHttpHeader();
|
|
6317
|
+
message.name = object.name ?? "";
|
|
6318
|
+
message.value = object.value ?? "";
|
|
6319
|
+
return message;
|
|
6320
|
+
}
|
|
6321
|
+
};
|
|
6322
|
+
function createBaseBrowserControlHttpResponse() {
|
|
6323
|
+
return { status: 0, headers: [], body: new Uint8Array(0), totalBytes: "0", spoolId: "" };
|
|
6324
|
+
}
|
|
6325
|
+
var BrowserControlHttpResponse = {
|
|
6326
|
+
encode(message, writer = new BinaryWriter()) {
|
|
6327
|
+
if (message.status !== 0) {
|
|
6328
|
+
writer.uint32(8).uint32(message.status);
|
|
6329
|
+
}
|
|
6330
|
+
for (const v of message.headers) {
|
|
6331
|
+
BrowserControlHttpHeader.encode(v, writer.uint32(18).fork()).join();
|
|
6332
|
+
}
|
|
6333
|
+
if (message.body.length !== 0) {
|
|
6334
|
+
writer.uint32(26).bytes(message.body);
|
|
6335
|
+
}
|
|
6336
|
+
if (message.totalBytes !== "0") {
|
|
6337
|
+
writer.uint32(32).uint64(message.totalBytes);
|
|
6338
|
+
}
|
|
6339
|
+
if (message.spoolId !== "") {
|
|
6340
|
+
writer.uint32(42).string(message.spoolId);
|
|
6341
|
+
}
|
|
6342
|
+
return writer;
|
|
6343
|
+
},
|
|
6344
|
+
decode(input, length) {
|
|
6345
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6346
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6347
|
+
const message = createBaseBrowserControlHttpResponse();
|
|
6348
|
+
while (reader.pos < end) {
|
|
6349
|
+
const tag = reader.uint32();
|
|
6350
|
+
switch (tag >>> 3) {
|
|
6351
|
+
case 1: {
|
|
6352
|
+
if (tag !== 8) {
|
|
6353
|
+
break;
|
|
6354
|
+
}
|
|
6355
|
+
message.status = reader.uint32();
|
|
6356
|
+
continue;
|
|
6357
|
+
}
|
|
6358
|
+
case 2: {
|
|
6359
|
+
if (tag !== 18) {
|
|
6360
|
+
break;
|
|
6361
|
+
}
|
|
6362
|
+
message.headers.push(BrowserControlHttpHeader.decode(reader, reader.uint32()));
|
|
6363
|
+
continue;
|
|
6364
|
+
}
|
|
6365
|
+
case 3: {
|
|
6366
|
+
if (tag !== 26) {
|
|
6367
|
+
break;
|
|
6368
|
+
}
|
|
6369
|
+
message.body = reader.bytes();
|
|
6370
|
+
continue;
|
|
6371
|
+
}
|
|
6372
|
+
case 4: {
|
|
6373
|
+
if (tag !== 32) {
|
|
6374
|
+
break;
|
|
6375
|
+
}
|
|
6376
|
+
message.totalBytes = reader.uint64().toString();
|
|
6377
|
+
continue;
|
|
6378
|
+
}
|
|
6379
|
+
case 5: {
|
|
6380
|
+
if (tag !== 42) {
|
|
6381
|
+
break;
|
|
6382
|
+
}
|
|
6383
|
+
message.spoolId = reader.string();
|
|
6384
|
+
continue;
|
|
6385
|
+
}
|
|
6386
|
+
}
|
|
6387
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6388
|
+
break;
|
|
6389
|
+
}
|
|
6390
|
+
reader.skip(tag & 7);
|
|
6391
|
+
}
|
|
6392
|
+
return message;
|
|
6393
|
+
},
|
|
6394
|
+
fromJSON(object) {
|
|
6395
|
+
return {
|
|
6396
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
6397
|
+
headers: globalThis.Array.isArray(object?.headers) ? object.headers.map((e) => BrowserControlHttpHeader.fromJSON(e)) : [],
|
|
6398
|
+
body: isSet(object.body) ? bytesFromBase64(object.body) : new Uint8Array(0),
|
|
6399
|
+
totalBytes: isSet(object.totalBytes) ? globalThis.String(object.totalBytes) : isSet(object.total_bytes) ? globalThis.String(object.total_bytes) : "0",
|
|
6400
|
+
spoolId: isSet(object.spoolId) ? globalThis.String(object.spoolId) : isSet(object.spool_id) ? globalThis.String(object.spool_id) : ""
|
|
6401
|
+
};
|
|
6402
|
+
},
|
|
6403
|
+
toJSON(message) {
|
|
6404
|
+
const obj = {};
|
|
6405
|
+
if (message.status !== 0) {
|
|
6406
|
+
obj.status = Math.round(message.status);
|
|
6407
|
+
}
|
|
6408
|
+
if (message.headers?.length) {
|
|
6409
|
+
obj.headers = message.headers.map((e) => BrowserControlHttpHeader.toJSON(e));
|
|
6410
|
+
}
|
|
6411
|
+
if (message.body.length !== 0) {
|
|
6412
|
+
obj.body = base64FromBytes(message.body);
|
|
6413
|
+
}
|
|
6414
|
+
if (message.totalBytes !== "0") {
|
|
6415
|
+
obj.totalBytes = message.totalBytes;
|
|
6416
|
+
}
|
|
6417
|
+
if (message.spoolId !== "") {
|
|
6418
|
+
obj.spoolId = message.spoolId;
|
|
6419
|
+
}
|
|
6420
|
+
return obj;
|
|
6421
|
+
},
|
|
6422
|
+
create(base) {
|
|
6423
|
+
return BrowserControlHttpResponse.fromPartial(base ?? {});
|
|
6424
|
+
},
|
|
6425
|
+
fromPartial(object) {
|
|
6426
|
+
const message = createBaseBrowserControlHttpResponse();
|
|
6427
|
+
message.status = object.status ?? 0;
|
|
6428
|
+
message.headers = object.headers?.map((e) => BrowserControlHttpHeader.fromPartial(e)) || [];
|
|
6429
|
+
message.body = object.body ?? new Uint8Array(0);
|
|
6430
|
+
message.totalBytes = object.totalBytes ?? "0";
|
|
6431
|
+
message.spoolId = object.spoolId ?? "";
|
|
6432
|
+
return message;
|
|
6433
|
+
}
|
|
6434
|
+
};
|
|
6435
|
+
function createBaseBrowserControlHttpReadRequest() {
|
|
6436
|
+
return { spoolId: "", offset: "0" };
|
|
6437
|
+
}
|
|
6438
|
+
var BrowserControlHttpReadRequest = {
|
|
6439
|
+
encode(message, writer = new BinaryWriter()) {
|
|
6440
|
+
if (message.spoolId !== "") {
|
|
6441
|
+
writer.uint32(10).string(message.spoolId);
|
|
6442
|
+
}
|
|
6443
|
+
if (message.offset !== "0") {
|
|
6444
|
+
writer.uint32(16).uint64(message.offset);
|
|
6445
|
+
}
|
|
6446
|
+
return writer;
|
|
6447
|
+
},
|
|
6448
|
+
decode(input, length) {
|
|
6449
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6450
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6451
|
+
const message = createBaseBrowserControlHttpReadRequest();
|
|
6452
|
+
while (reader.pos < end) {
|
|
6453
|
+
const tag = reader.uint32();
|
|
6454
|
+
switch (tag >>> 3) {
|
|
6455
|
+
case 1: {
|
|
6456
|
+
if (tag !== 10) {
|
|
6457
|
+
break;
|
|
6458
|
+
}
|
|
6459
|
+
message.spoolId = reader.string();
|
|
6460
|
+
continue;
|
|
6461
|
+
}
|
|
6462
|
+
case 2: {
|
|
6463
|
+
if (tag !== 16) {
|
|
6464
|
+
break;
|
|
6465
|
+
}
|
|
6466
|
+
message.offset = reader.uint64().toString();
|
|
6467
|
+
continue;
|
|
6468
|
+
}
|
|
6469
|
+
}
|
|
6470
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6471
|
+
break;
|
|
6472
|
+
}
|
|
6473
|
+
reader.skip(tag & 7);
|
|
6474
|
+
}
|
|
6475
|
+
return message;
|
|
6476
|
+
},
|
|
6477
|
+
fromJSON(object) {
|
|
6478
|
+
return {
|
|
6479
|
+
spoolId: isSet(object.spoolId) ? globalThis.String(object.spoolId) : isSet(object.spool_id) ? globalThis.String(object.spool_id) : "",
|
|
6480
|
+
offset: isSet(object.offset) ? globalThis.String(object.offset) : "0"
|
|
6481
|
+
};
|
|
6482
|
+
},
|
|
6483
|
+
toJSON(message) {
|
|
6484
|
+
const obj = {};
|
|
6485
|
+
if (message.spoolId !== "") {
|
|
6486
|
+
obj.spoolId = message.spoolId;
|
|
6487
|
+
}
|
|
6488
|
+
if (message.offset !== "0") {
|
|
6489
|
+
obj.offset = message.offset;
|
|
6490
|
+
}
|
|
6491
|
+
return obj;
|
|
6492
|
+
},
|
|
6493
|
+
create(base) {
|
|
6494
|
+
return BrowserControlHttpReadRequest.fromPartial(base ?? {});
|
|
6495
|
+
},
|
|
6496
|
+
fromPartial(object) {
|
|
6497
|
+
const message = createBaseBrowserControlHttpReadRequest();
|
|
6498
|
+
message.spoolId = object.spoolId ?? "";
|
|
6499
|
+
message.offset = object.offset ?? "0";
|
|
6500
|
+
return message;
|
|
6501
|
+
}
|
|
6502
|
+
};
|
|
6503
|
+
function createBaseBrowserControlHttpReadResponse() {
|
|
6504
|
+
return { data: new Uint8Array(0), done: false };
|
|
6505
|
+
}
|
|
6506
|
+
var BrowserControlHttpReadResponse = {
|
|
6507
|
+
encode(message, writer = new BinaryWriter()) {
|
|
6508
|
+
if (message.data.length !== 0) {
|
|
6509
|
+
writer.uint32(10).bytes(message.data);
|
|
6510
|
+
}
|
|
6511
|
+
if (message.done !== false) {
|
|
6512
|
+
writer.uint32(16).bool(message.done);
|
|
6513
|
+
}
|
|
6514
|
+
return writer;
|
|
6515
|
+
},
|
|
6516
|
+
decode(input, length) {
|
|
6517
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6518
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6519
|
+
const message = createBaseBrowserControlHttpReadResponse();
|
|
6520
|
+
while (reader.pos < end) {
|
|
6521
|
+
const tag = reader.uint32();
|
|
6522
|
+
switch (tag >>> 3) {
|
|
6523
|
+
case 1: {
|
|
6524
|
+
if (tag !== 10) {
|
|
6525
|
+
break;
|
|
6526
|
+
}
|
|
6527
|
+
message.data = reader.bytes();
|
|
6528
|
+
continue;
|
|
6529
|
+
}
|
|
6530
|
+
case 2: {
|
|
6531
|
+
if (tag !== 16) {
|
|
6532
|
+
break;
|
|
6533
|
+
}
|
|
6534
|
+
message.done = reader.bool();
|
|
6535
|
+
continue;
|
|
6536
|
+
}
|
|
6537
|
+
}
|
|
6538
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6539
|
+
break;
|
|
6540
|
+
}
|
|
6541
|
+
reader.skip(tag & 7);
|
|
6542
|
+
}
|
|
6543
|
+
return message;
|
|
6544
|
+
},
|
|
6545
|
+
fromJSON(object) {
|
|
6546
|
+
return {
|
|
6547
|
+
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
6548
|
+
done: isSet(object.done) ? globalThis.Boolean(object.done) : false
|
|
6549
|
+
};
|
|
6550
|
+
},
|
|
6551
|
+
toJSON(message) {
|
|
6552
|
+
const obj = {};
|
|
6553
|
+
if (message.data.length !== 0) {
|
|
6554
|
+
obj.data = base64FromBytes(message.data);
|
|
6555
|
+
}
|
|
6556
|
+
if (message.done !== false) {
|
|
6557
|
+
obj.done = message.done;
|
|
6558
|
+
}
|
|
6559
|
+
return obj;
|
|
6560
|
+
},
|
|
6561
|
+
create(base) {
|
|
6562
|
+
return BrowserControlHttpReadResponse.fromPartial(base ?? {});
|
|
6563
|
+
},
|
|
6564
|
+
fromPartial(object) {
|
|
6565
|
+
const message = createBaseBrowserControlHttpReadResponse();
|
|
6566
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
6567
|
+
message.done = object.done ?? false;
|
|
6568
|
+
return message;
|
|
6569
|
+
}
|
|
6570
|
+
};
|
|
6055
6571
|
function createBaseBrowserFramesOpenRequest() {
|
|
6056
6572
|
return {
|
|
6057
6573
|
scopeId: "",
|
|
@@ -10774,6 +11290,12 @@ var ControlRequest = {
|
|
|
10774
11290
|
case "credentialRenew":
|
|
10775
11291
|
CredentialRenewRequest.encode(message.op.credentialRenew, writer.uint32(322).fork()).join();
|
|
10776
11292
|
break;
|
|
11293
|
+
case "browserControlHttp":
|
|
11294
|
+
BrowserControlHttpRequest.encode(message.op.browserControlHttp, writer.uint32(330).fork()).join();
|
|
11295
|
+
break;
|
|
11296
|
+
case "browserControlHttpRead":
|
|
11297
|
+
BrowserControlHttpReadRequest.encode(message.op.browserControlHttpRead, writer.uint32(338).fork()).join();
|
|
11298
|
+
break;
|
|
10777
11299
|
}
|
|
10778
11300
|
return writer;
|
|
10779
11301
|
},
|
|
@@ -11036,6 +11558,26 @@ var ControlRequest = {
|
|
|
11036
11558
|
};
|
|
11037
11559
|
continue;
|
|
11038
11560
|
}
|
|
11561
|
+
case 41: {
|
|
11562
|
+
if (tag !== 330) {
|
|
11563
|
+
break;
|
|
11564
|
+
}
|
|
11565
|
+
message.op = {
|
|
11566
|
+
$case: "browserControlHttp",
|
|
11567
|
+
browserControlHttp: BrowserControlHttpRequest.decode(reader, reader.uint32())
|
|
11568
|
+
};
|
|
11569
|
+
continue;
|
|
11570
|
+
}
|
|
11571
|
+
case 42: {
|
|
11572
|
+
if (tag !== 338) {
|
|
11573
|
+
break;
|
|
11574
|
+
}
|
|
11575
|
+
message.op = {
|
|
11576
|
+
$case: "browserControlHttpRead",
|
|
11577
|
+
browserControlHttpRead: BrowserControlHttpReadRequest.decode(reader, reader.uint32())
|
|
11578
|
+
};
|
|
11579
|
+
continue;
|
|
11580
|
+
}
|
|
11039
11581
|
}
|
|
11040
11582
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11041
11583
|
break;
|
|
@@ -11067,7 +11609,19 @@ var ControlRequest = {
|
|
|
11067
11609
|
} : isSet(object.computer_frames_open) ? {
|
|
11068
11610
|
$case: "computerFramesOpen",
|
|
11069
11611
|
computerFramesOpen: ComputerFramesOpenRequest.fromJSON(object.computer_frames_open)
|
|
11070
|
-
} : isSet(object.agentUpdateApply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyRequest.fromJSON(object.agentUpdateApply) } : isSet(object.agent_update_apply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyRequest.fromJSON(object.agent_update_apply) } : isSet(object.credentialRenew) ? { $case: "credentialRenew", credentialRenew: CredentialRenewRequest.fromJSON(object.credentialRenew) } : isSet(object.credential_renew) ? { $case: "credentialRenew", credentialRenew: CredentialRenewRequest.fromJSON(object.credential_renew) } :
|
|
11612
|
+
} : isSet(object.agentUpdateApply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyRequest.fromJSON(object.agentUpdateApply) } : isSet(object.agent_update_apply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyRequest.fromJSON(object.agent_update_apply) } : isSet(object.credentialRenew) ? { $case: "credentialRenew", credentialRenew: CredentialRenewRequest.fromJSON(object.credentialRenew) } : isSet(object.credential_renew) ? { $case: "credentialRenew", credentialRenew: CredentialRenewRequest.fromJSON(object.credential_renew) } : isSet(object.browserControlHttp) ? {
|
|
11613
|
+
$case: "browserControlHttp",
|
|
11614
|
+
browserControlHttp: BrowserControlHttpRequest.fromJSON(object.browserControlHttp)
|
|
11615
|
+
} : isSet(object.browser_control_http) ? {
|
|
11616
|
+
$case: "browserControlHttp",
|
|
11617
|
+
browserControlHttp: BrowserControlHttpRequest.fromJSON(object.browser_control_http)
|
|
11618
|
+
} : isSet(object.browserControlHttpRead) ? {
|
|
11619
|
+
$case: "browserControlHttpRead",
|
|
11620
|
+
browserControlHttpRead: BrowserControlHttpReadRequest.fromJSON(object.browserControlHttpRead)
|
|
11621
|
+
} : isSet(object.browser_control_http_read) ? {
|
|
11622
|
+
$case: "browserControlHttpRead",
|
|
11623
|
+
browserControlHttpRead: BrowserControlHttpReadRequest.fromJSON(object.browser_control_http_read)
|
|
11624
|
+
} : void 0
|
|
11071
11625
|
};
|
|
11072
11626
|
},
|
|
11073
11627
|
toJSON(message) {
|
|
@@ -11141,6 +11695,10 @@ var ControlRequest = {
|
|
|
11141
11695
|
obj.agentUpdateApply = AgentUpdateApplyRequest.toJSON(message.op.agentUpdateApply);
|
|
11142
11696
|
} else if (message.op?.$case === "credentialRenew") {
|
|
11143
11697
|
obj.credentialRenew = CredentialRenewRequest.toJSON(message.op.credentialRenew);
|
|
11698
|
+
} else if (message.op?.$case === "browserControlHttp") {
|
|
11699
|
+
obj.browserControlHttp = BrowserControlHttpRequest.toJSON(message.op.browserControlHttp);
|
|
11700
|
+
} else if (message.op?.$case === "browserControlHttpRead") {
|
|
11701
|
+
obj.browserControlHttpRead = BrowserControlHttpReadRequest.toJSON(message.op.browserControlHttpRead);
|
|
11144
11702
|
}
|
|
11145
11703
|
return obj;
|
|
11146
11704
|
},
|
|
@@ -11357,6 +11915,24 @@ var ControlRequest = {
|
|
|
11357
11915
|
}
|
|
11358
11916
|
break;
|
|
11359
11917
|
}
|
|
11918
|
+
case "browserControlHttp": {
|
|
11919
|
+
if (object.op?.browserControlHttp !== void 0 && object.op?.browserControlHttp !== null) {
|
|
11920
|
+
message.op = {
|
|
11921
|
+
$case: "browserControlHttp",
|
|
11922
|
+
browserControlHttp: BrowserControlHttpRequest.fromPartial(object.op.browserControlHttp)
|
|
11923
|
+
};
|
|
11924
|
+
}
|
|
11925
|
+
break;
|
|
11926
|
+
}
|
|
11927
|
+
case "browserControlHttpRead": {
|
|
11928
|
+
if (object.op?.browserControlHttpRead !== void 0 && object.op?.browserControlHttpRead !== null) {
|
|
11929
|
+
message.op = {
|
|
11930
|
+
$case: "browserControlHttpRead",
|
|
11931
|
+
browserControlHttpRead: BrowserControlHttpReadRequest.fromPartial(object.op.browserControlHttpRead)
|
|
11932
|
+
};
|
|
11933
|
+
}
|
|
11934
|
+
break;
|
|
11935
|
+
}
|
|
11360
11936
|
}
|
|
11361
11937
|
return message;
|
|
11362
11938
|
}
|
|
@@ -11457,6 +12033,12 @@ var ControlResponse = {
|
|
|
11457
12033
|
case "credentialRenew":
|
|
11458
12034
|
CredentialRenewResponse.encode(message.result.credentialRenew, writer.uint32(322).fork()).join();
|
|
11459
12035
|
break;
|
|
12036
|
+
case "browserControlHttp":
|
|
12037
|
+
BrowserControlHttpResponse.encode(message.result.browserControlHttp, writer.uint32(330).fork()).join();
|
|
12038
|
+
break;
|
|
12039
|
+
case "browserControlHttpRead":
|
|
12040
|
+
BrowserControlHttpReadResponse.encode(message.result.browserControlHttpRead, writer.uint32(338).fork()).join();
|
|
12041
|
+
break;
|
|
11460
12042
|
}
|
|
11461
12043
|
return writer;
|
|
11462
12044
|
},
|
|
@@ -11704,6 +12286,26 @@ var ControlResponse = {
|
|
|
11704
12286
|
};
|
|
11705
12287
|
continue;
|
|
11706
12288
|
}
|
|
12289
|
+
case 41: {
|
|
12290
|
+
if (tag !== 330) {
|
|
12291
|
+
break;
|
|
12292
|
+
}
|
|
12293
|
+
message.result = {
|
|
12294
|
+
$case: "browserControlHttp",
|
|
12295
|
+
browserControlHttp: BrowserControlHttpResponse.decode(reader, reader.uint32())
|
|
12296
|
+
};
|
|
12297
|
+
continue;
|
|
12298
|
+
}
|
|
12299
|
+
case 42: {
|
|
12300
|
+
if (tag !== 338) {
|
|
12301
|
+
break;
|
|
12302
|
+
}
|
|
12303
|
+
message.result = {
|
|
12304
|
+
$case: "browserControlHttpRead",
|
|
12305
|
+
browserControlHttpRead: BrowserControlHttpReadResponse.decode(reader, reader.uint32())
|
|
12306
|
+
};
|
|
12307
|
+
continue;
|
|
12308
|
+
}
|
|
11707
12309
|
}
|
|
11708
12310
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11709
12311
|
break;
|
|
@@ -11740,7 +12342,19 @@ var ControlResponse = {
|
|
|
11740
12342
|
} : isSet(object.computer_frames_open) ? {
|
|
11741
12343
|
$case: "computerFramesOpen",
|
|
11742
12344
|
computerFramesOpen: ComputerFramesOpenResponse.fromJSON(object.computer_frames_open)
|
|
11743
|
-
} : isSet(object.agentUpdateApply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyResponse.fromJSON(object.agentUpdateApply) } : isSet(object.agent_update_apply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyResponse.fromJSON(object.agent_update_apply) } : isSet(object.credentialRenew) ? { $case: "credentialRenew", credentialRenew: CredentialRenewResponse.fromJSON(object.credentialRenew) } : isSet(object.credential_renew) ? { $case: "credentialRenew", credentialRenew: CredentialRenewResponse.fromJSON(object.credential_renew) } :
|
|
12345
|
+
} : isSet(object.agentUpdateApply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyResponse.fromJSON(object.agentUpdateApply) } : isSet(object.agent_update_apply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyResponse.fromJSON(object.agent_update_apply) } : isSet(object.credentialRenew) ? { $case: "credentialRenew", credentialRenew: CredentialRenewResponse.fromJSON(object.credentialRenew) } : isSet(object.credential_renew) ? { $case: "credentialRenew", credentialRenew: CredentialRenewResponse.fromJSON(object.credential_renew) } : isSet(object.browserControlHttp) ? {
|
|
12346
|
+
$case: "browserControlHttp",
|
|
12347
|
+
browserControlHttp: BrowserControlHttpResponse.fromJSON(object.browserControlHttp)
|
|
12348
|
+
} : isSet(object.browser_control_http) ? {
|
|
12349
|
+
$case: "browserControlHttp",
|
|
12350
|
+
browserControlHttp: BrowserControlHttpResponse.fromJSON(object.browser_control_http)
|
|
12351
|
+
} : isSet(object.browserControlHttpRead) ? {
|
|
12352
|
+
$case: "browserControlHttpRead",
|
|
12353
|
+
browserControlHttpRead: BrowserControlHttpReadResponse.fromJSON(object.browserControlHttpRead)
|
|
12354
|
+
} : isSet(object.browser_control_http_read) ? {
|
|
12355
|
+
$case: "browserControlHttpRead",
|
|
12356
|
+
browserControlHttpRead: BrowserControlHttpReadResponse.fromJSON(object.browser_control_http_read)
|
|
12357
|
+
} : void 0
|
|
11744
12358
|
};
|
|
11745
12359
|
},
|
|
11746
12360
|
toJSON(message) {
|
|
@@ -11807,6 +12421,10 @@ var ControlResponse = {
|
|
|
11807
12421
|
obj.agentUpdateApply = AgentUpdateApplyResponse.toJSON(message.result.agentUpdateApply);
|
|
11808
12422
|
} else if (message.result?.$case === "credentialRenew") {
|
|
11809
12423
|
obj.credentialRenew = CredentialRenewResponse.toJSON(message.result.credentialRenew);
|
|
12424
|
+
} else if (message.result?.$case === "browserControlHttp") {
|
|
12425
|
+
obj.browserControlHttp = BrowserControlHttpResponse.toJSON(message.result.browserControlHttp);
|
|
12426
|
+
} else if (message.result?.$case === "browserControlHttpRead") {
|
|
12427
|
+
obj.browserControlHttpRead = BrowserControlHttpReadResponse.toJSON(message.result.browserControlHttpRead);
|
|
11810
12428
|
}
|
|
11811
12429
|
return obj;
|
|
11812
12430
|
},
|
|
@@ -12013,6 +12631,24 @@ var ControlResponse = {
|
|
|
12013
12631
|
}
|
|
12014
12632
|
break;
|
|
12015
12633
|
}
|
|
12634
|
+
case "browserControlHttp": {
|
|
12635
|
+
if (object.result?.browserControlHttp !== void 0 && object.result?.browserControlHttp !== null) {
|
|
12636
|
+
message.result = {
|
|
12637
|
+
$case: "browserControlHttp",
|
|
12638
|
+
browserControlHttp: BrowserControlHttpResponse.fromPartial(object.result.browserControlHttp)
|
|
12639
|
+
};
|
|
12640
|
+
}
|
|
12641
|
+
break;
|
|
12642
|
+
}
|
|
12643
|
+
case "browserControlHttpRead": {
|
|
12644
|
+
if (object.result?.browserControlHttpRead !== void 0 && object.result?.browserControlHttpRead !== null) {
|
|
12645
|
+
message.result = {
|
|
12646
|
+
$case: "browserControlHttpRead",
|
|
12647
|
+
browserControlHttpRead: BrowserControlHttpReadResponse.fromPartial(object.result.browserControlHttpRead)
|
|
12648
|
+
};
|
|
12649
|
+
}
|
|
12650
|
+
break;
|
|
12651
|
+
}
|
|
12016
12652
|
}
|
|
12017
12653
|
return message;
|
|
12018
12654
|
}
|
|
@@ -13201,6 +13837,11 @@ export {
|
|
|
13201
13837
|
AttachedBrowserInventorySnapshot,
|
|
13202
13838
|
BrowserControlEnsureRequest,
|
|
13203
13839
|
BrowserControlEnsureResponse,
|
|
13840
|
+
BrowserControlHttpHeader,
|
|
13841
|
+
BrowserControlHttpReadRequest,
|
|
13842
|
+
BrowserControlHttpReadResponse,
|
|
13843
|
+
BrowserControlHttpRequest,
|
|
13844
|
+
BrowserControlHttpResponse,
|
|
13204
13845
|
BrowserFramesOpenRequest,
|
|
13205
13846
|
BrowserFramesOpenResponse,
|
|
13206
13847
|
Capabilities,
|