@opengeni/agent-proto 0.5.0 → 0.5.1-canary.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 +118 -7
- package/dist/index.js +751 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/gen/opengeni_agent.ts +1065 -108
package/dist/index.js
CHANGED
|
@@ -415,6 +415,69 @@ function goingOfflineReasonToJSON(object) {
|
|
|
415
415
|
throw new globalThis.Error("Unrecognized enum value " + object + " for enum GoingOfflineReason");
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
+
var AgentUpdateStage = /* @__PURE__ */ ((AgentUpdateStage2) => {
|
|
419
|
+
AgentUpdateStage2[AgentUpdateStage2["AGENT_UPDATE_STAGE_UNSPECIFIED"] = 0] = "AGENT_UPDATE_STAGE_UNSPECIFIED";
|
|
420
|
+
AgentUpdateStage2[AgentUpdateStage2["AGENT_UPDATE_STAGE_ACCEPTED"] = 1] = "AGENT_UPDATE_STAGE_ACCEPTED";
|
|
421
|
+
AgentUpdateStage2[AgentUpdateStage2["AGENT_UPDATE_STAGE_WAITING_FOR_IDLE"] = 2] = "AGENT_UPDATE_STAGE_WAITING_FOR_IDLE";
|
|
422
|
+
AgentUpdateStage2[AgentUpdateStage2["AGENT_UPDATE_STAGE_DOWNLOADING"] = 3] = "AGENT_UPDATE_STAGE_DOWNLOADING";
|
|
423
|
+
AgentUpdateStage2[AgentUpdateStage2["AGENT_UPDATE_STAGE_VERIFYING"] = 4] = "AGENT_UPDATE_STAGE_VERIFYING";
|
|
424
|
+
AgentUpdateStage2[AgentUpdateStage2["AGENT_UPDATE_STAGE_APPLYING"] = 5] = "AGENT_UPDATE_STAGE_APPLYING";
|
|
425
|
+
AgentUpdateStage2[AgentUpdateStage2["AGENT_UPDATE_STAGE_RESTARTING"] = 6] = "AGENT_UPDATE_STAGE_RESTARTING";
|
|
426
|
+
AgentUpdateStage2[AgentUpdateStage2["AGENT_UPDATE_STAGE_FAILED"] = 7] = "AGENT_UPDATE_STAGE_FAILED";
|
|
427
|
+
return AgentUpdateStage2;
|
|
428
|
+
})(AgentUpdateStage || {});
|
|
429
|
+
function agentUpdateStageFromJSON(object) {
|
|
430
|
+
switch (object) {
|
|
431
|
+
case 0:
|
|
432
|
+
case "AGENT_UPDATE_STAGE_UNSPECIFIED":
|
|
433
|
+
return 0 /* AGENT_UPDATE_STAGE_UNSPECIFIED */;
|
|
434
|
+
case 1:
|
|
435
|
+
case "AGENT_UPDATE_STAGE_ACCEPTED":
|
|
436
|
+
return 1 /* AGENT_UPDATE_STAGE_ACCEPTED */;
|
|
437
|
+
case 2:
|
|
438
|
+
case "AGENT_UPDATE_STAGE_WAITING_FOR_IDLE":
|
|
439
|
+
return 2 /* AGENT_UPDATE_STAGE_WAITING_FOR_IDLE */;
|
|
440
|
+
case 3:
|
|
441
|
+
case "AGENT_UPDATE_STAGE_DOWNLOADING":
|
|
442
|
+
return 3 /* AGENT_UPDATE_STAGE_DOWNLOADING */;
|
|
443
|
+
case 4:
|
|
444
|
+
case "AGENT_UPDATE_STAGE_VERIFYING":
|
|
445
|
+
return 4 /* AGENT_UPDATE_STAGE_VERIFYING */;
|
|
446
|
+
case 5:
|
|
447
|
+
case "AGENT_UPDATE_STAGE_APPLYING":
|
|
448
|
+
return 5 /* AGENT_UPDATE_STAGE_APPLYING */;
|
|
449
|
+
case 6:
|
|
450
|
+
case "AGENT_UPDATE_STAGE_RESTARTING":
|
|
451
|
+
return 6 /* AGENT_UPDATE_STAGE_RESTARTING */;
|
|
452
|
+
case 7:
|
|
453
|
+
case "AGENT_UPDATE_STAGE_FAILED":
|
|
454
|
+
return 7 /* AGENT_UPDATE_STAGE_FAILED */;
|
|
455
|
+
default:
|
|
456
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum AgentUpdateStage");
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
function agentUpdateStageToJSON(object) {
|
|
460
|
+
switch (object) {
|
|
461
|
+
case 0 /* AGENT_UPDATE_STAGE_UNSPECIFIED */:
|
|
462
|
+
return "AGENT_UPDATE_STAGE_UNSPECIFIED";
|
|
463
|
+
case 1 /* AGENT_UPDATE_STAGE_ACCEPTED */:
|
|
464
|
+
return "AGENT_UPDATE_STAGE_ACCEPTED";
|
|
465
|
+
case 2 /* AGENT_UPDATE_STAGE_WAITING_FOR_IDLE */:
|
|
466
|
+
return "AGENT_UPDATE_STAGE_WAITING_FOR_IDLE";
|
|
467
|
+
case 3 /* AGENT_UPDATE_STAGE_DOWNLOADING */:
|
|
468
|
+
return "AGENT_UPDATE_STAGE_DOWNLOADING";
|
|
469
|
+
case 4 /* AGENT_UPDATE_STAGE_VERIFYING */:
|
|
470
|
+
return "AGENT_UPDATE_STAGE_VERIFYING";
|
|
471
|
+
case 5 /* AGENT_UPDATE_STAGE_APPLYING */:
|
|
472
|
+
return "AGENT_UPDATE_STAGE_APPLYING";
|
|
473
|
+
case 6 /* AGENT_UPDATE_STAGE_RESTARTING */:
|
|
474
|
+
return "AGENT_UPDATE_STAGE_RESTARTING";
|
|
475
|
+
case 7 /* AGENT_UPDATE_STAGE_FAILED */:
|
|
476
|
+
return "AGENT_UPDATE_STAGE_FAILED";
|
|
477
|
+
default:
|
|
478
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum AgentUpdateStage");
|
|
479
|
+
}
|
|
480
|
+
}
|
|
418
481
|
var OpChannel = /* @__PURE__ */ ((OpChannel2) => {
|
|
419
482
|
OpChannel2[OpChannel2["OP_CHANNEL_UNSPECIFIED"] = 0] = "OP_CHANNEL_UNSPECIFIED";
|
|
420
483
|
OpChannel2[OpChannel2["OP_CHANNEL_STDOUT"] = 1] = "OP_CHANNEL_STDOUT";
|
|
@@ -945,7 +1008,11 @@ function createBaseHello() {
|
|
|
945
1008
|
workspaceRoot: "",
|
|
946
1009
|
capabilities: void 0,
|
|
947
1010
|
updateChannel: "",
|
|
948
|
-
resumeToken: ""
|
|
1011
|
+
resumeToken: "",
|
|
1012
|
+
binarySha256: "",
|
|
1013
|
+
completedUpdateOperationId: "",
|
|
1014
|
+
completedUpdateTargetVersion: "",
|
|
1015
|
+
completedUpdateBinarySha256: ""
|
|
949
1016
|
};
|
|
950
1017
|
}
|
|
951
1018
|
var Hello = {
|
|
@@ -980,6 +1047,18 @@ var Hello = {
|
|
|
980
1047
|
if (message.resumeToken !== "") {
|
|
981
1048
|
writer.uint32(82).string(message.resumeToken);
|
|
982
1049
|
}
|
|
1050
|
+
if (message.binarySha256 !== "") {
|
|
1051
|
+
writer.uint32(90).string(message.binarySha256);
|
|
1052
|
+
}
|
|
1053
|
+
if (message.completedUpdateOperationId !== "") {
|
|
1054
|
+
writer.uint32(98).string(message.completedUpdateOperationId);
|
|
1055
|
+
}
|
|
1056
|
+
if (message.completedUpdateTargetVersion !== "") {
|
|
1057
|
+
writer.uint32(106).string(message.completedUpdateTargetVersion);
|
|
1058
|
+
}
|
|
1059
|
+
if (message.completedUpdateBinarySha256 !== "") {
|
|
1060
|
+
writer.uint32(114).string(message.completedUpdateBinarySha256);
|
|
1061
|
+
}
|
|
983
1062
|
return writer;
|
|
984
1063
|
},
|
|
985
1064
|
decode(input, length) {
|
|
@@ -1059,6 +1138,34 @@ var Hello = {
|
|
|
1059
1138
|
message.resumeToken = reader.string();
|
|
1060
1139
|
continue;
|
|
1061
1140
|
}
|
|
1141
|
+
case 11: {
|
|
1142
|
+
if (tag !== 90) {
|
|
1143
|
+
break;
|
|
1144
|
+
}
|
|
1145
|
+
message.binarySha256 = reader.string();
|
|
1146
|
+
continue;
|
|
1147
|
+
}
|
|
1148
|
+
case 12: {
|
|
1149
|
+
if (tag !== 98) {
|
|
1150
|
+
break;
|
|
1151
|
+
}
|
|
1152
|
+
message.completedUpdateOperationId = reader.string();
|
|
1153
|
+
continue;
|
|
1154
|
+
}
|
|
1155
|
+
case 13: {
|
|
1156
|
+
if (tag !== 106) {
|
|
1157
|
+
break;
|
|
1158
|
+
}
|
|
1159
|
+
message.completedUpdateTargetVersion = reader.string();
|
|
1160
|
+
continue;
|
|
1161
|
+
}
|
|
1162
|
+
case 14: {
|
|
1163
|
+
if (tag !== 114) {
|
|
1164
|
+
break;
|
|
1165
|
+
}
|
|
1166
|
+
message.completedUpdateBinarySha256 = reader.string();
|
|
1167
|
+
continue;
|
|
1168
|
+
}
|
|
1062
1169
|
}
|
|
1063
1170
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1064
1171
|
break;
|
|
@@ -1078,7 +1185,11 @@ var Hello = {
|
|
|
1078
1185
|
workspaceRoot: isSet(object.workspaceRoot) ? globalThis.String(object.workspaceRoot) : isSet(object.workspace_root) ? globalThis.String(object.workspace_root) : "",
|
|
1079
1186
|
capabilities: isSet(object.capabilities) ? Capabilities.fromJSON(object.capabilities) : void 0,
|
|
1080
1187
|
updateChannel: isSet(object.updateChannel) ? globalThis.String(object.updateChannel) : isSet(object.update_channel) ? globalThis.String(object.update_channel) : "",
|
|
1081
|
-
resumeToken: isSet(object.resumeToken) ? globalThis.String(object.resumeToken) : isSet(object.resume_token) ? globalThis.String(object.resume_token) : ""
|
|
1188
|
+
resumeToken: isSet(object.resumeToken) ? globalThis.String(object.resumeToken) : isSet(object.resume_token) ? globalThis.String(object.resume_token) : "",
|
|
1189
|
+
binarySha256: isSet(object.binarySha256) ? globalThis.String(object.binarySha256) : isSet(object.binary_sha256) ? globalThis.String(object.binary_sha256) : "",
|
|
1190
|
+
completedUpdateOperationId: isSet(object.completedUpdateOperationId) ? globalThis.String(object.completedUpdateOperationId) : isSet(object.completed_update_operation_id) ? globalThis.String(object.completed_update_operation_id) : "",
|
|
1191
|
+
completedUpdateTargetVersion: isSet(object.completedUpdateTargetVersion) ? globalThis.String(object.completedUpdateTargetVersion) : isSet(object.completed_update_target_version) ? globalThis.String(object.completed_update_target_version) : "",
|
|
1192
|
+
completedUpdateBinarySha256: isSet(object.completedUpdateBinarySha256) ? globalThis.String(object.completedUpdateBinarySha256) : isSet(object.completed_update_binary_sha256) ? globalThis.String(object.completed_update_binary_sha256) : ""
|
|
1082
1193
|
};
|
|
1083
1194
|
},
|
|
1084
1195
|
toJSON(message) {
|
|
@@ -1113,6 +1224,18 @@ var Hello = {
|
|
|
1113
1224
|
if (message.resumeToken !== "") {
|
|
1114
1225
|
obj.resumeToken = message.resumeToken;
|
|
1115
1226
|
}
|
|
1227
|
+
if (message.binarySha256 !== "") {
|
|
1228
|
+
obj.binarySha256 = message.binarySha256;
|
|
1229
|
+
}
|
|
1230
|
+
if (message.completedUpdateOperationId !== "") {
|
|
1231
|
+
obj.completedUpdateOperationId = message.completedUpdateOperationId;
|
|
1232
|
+
}
|
|
1233
|
+
if (message.completedUpdateTargetVersion !== "") {
|
|
1234
|
+
obj.completedUpdateTargetVersion = message.completedUpdateTargetVersion;
|
|
1235
|
+
}
|
|
1236
|
+
if (message.completedUpdateBinarySha256 !== "") {
|
|
1237
|
+
obj.completedUpdateBinarySha256 = message.completedUpdateBinarySha256;
|
|
1238
|
+
}
|
|
1116
1239
|
return obj;
|
|
1117
1240
|
},
|
|
1118
1241
|
create(base) {
|
|
@@ -1130,6 +1253,10 @@ var Hello = {
|
|
|
1130
1253
|
message.capabilities = object.capabilities !== void 0 && object.capabilities !== null ? Capabilities.fromPartial(object.capabilities) : void 0;
|
|
1131
1254
|
message.updateChannel = object.updateChannel ?? "";
|
|
1132
1255
|
message.resumeToken = object.resumeToken ?? "";
|
|
1256
|
+
message.binarySha256 = object.binarySha256 ?? "";
|
|
1257
|
+
message.completedUpdateOperationId = object.completedUpdateOperationId ?? "";
|
|
1258
|
+
message.completedUpdateTargetVersion = object.completedUpdateTargetVersion ?? "";
|
|
1259
|
+
message.completedUpdateBinarySha256 = object.completedUpdateBinarySha256 ?? "";
|
|
1133
1260
|
return message;
|
|
1134
1261
|
}
|
|
1135
1262
|
};
|
|
@@ -1145,7 +1272,9 @@ function createBaseCapabilities() {
|
|
|
1145
1272
|
display: void 0,
|
|
1146
1273
|
desktopUnavailableReason: "",
|
|
1147
1274
|
opStream: false,
|
|
1148
|
-
browserBridge: false
|
|
1275
|
+
browserBridge: false,
|
|
1276
|
+
operationResourcePolicy: false,
|
|
1277
|
+
operationCpuQuota: false
|
|
1149
1278
|
};
|
|
1150
1279
|
}
|
|
1151
1280
|
var Capabilities = {
|
|
@@ -1183,6 +1312,12 @@ var Capabilities = {
|
|
|
1183
1312
|
if (message.browserBridge !== false) {
|
|
1184
1313
|
writer.uint32(88).bool(message.browserBridge);
|
|
1185
1314
|
}
|
|
1315
|
+
if (message.operationResourcePolicy !== false) {
|
|
1316
|
+
writer.uint32(96).bool(message.operationResourcePolicy);
|
|
1317
|
+
}
|
|
1318
|
+
if (message.operationCpuQuota !== false) {
|
|
1319
|
+
writer.uint32(104).bool(message.operationCpuQuota);
|
|
1320
|
+
}
|
|
1186
1321
|
return writer;
|
|
1187
1322
|
},
|
|
1188
1323
|
decode(input, length) {
|
|
@@ -1269,6 +1404,20 @@ var Capabilities = {
|
|
|
1269
1404
|
message.browserBridge = reader.bool();
|
|
1270
1405
|
continue;
|
|
1271
1406
|
}
|
|
1407
|
+
case 12: {
|
|
1408
|
+
if (tag !== 96) {
|
|
1409
|
+
break;
|
|
1410
|
+
}
|
|
1411
|
+
message.operationResourcePolicy = reader.bool();
|
|
1412
|
+
continue;
|
|
1413
|
+
}
|
|
1414
|
+
case 13: {
|
|
1415
|
+
if (tag !== 104) {
|
|
1416
|
+
break;
|
|
1417
|
+
}
|
|
1418
|
+
message.operationCpuQuota = reader.bool();
|
|
1419
|
+
continue;
|
|
1420
|
+
}
|
|
1272
1421
|
}
|
|
1273
1422
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1274
1423
|
break;
|
|
@@ -1289,7 +1438,9 @@ var Capabilities = {
|
|
|
1289
1438
|
display: isSet(object.display) ? Display.fromJSON(object.display) : void 0,
|
|
1290
1439
|
desktopUnavailableReason: isSet(object.desktopUnavailableReason) ? globalThis.String(object.desktopUnavailableReason) : isSet(object.desktop_unavailable_reason) ? globalThis.String(object.desktop_unavailable_reason) : "",
|
|
1291
1440
|
opStream: isSet(object.opStream) ? globalThis.Boolean(object.opStream) : isSet(object.op_stream) ? globalThis.Boolean(object.op_stream) : false,
|
|
1292
|
-
browserBridge: isSet(object.browserBridge) ? globalThis.Boolean(object.browserBridge) : isSet(object.browser_bridge) ? globalThis.Boolean(object.browser_bridge) : false
|
|
1441
|
+
browserBridge: isSet(object.browserBridge) ? globalThis.Boolean(object.browserBridge) : isSet(object.browser_bridge) ? globalThis.Boolean(object.browser_bridge) : false,
|
|
1442
|
+
operationResourcePolicy: isSet(object.operationResourcePolicy) ? globalThis.Boolean(object.operationResourcePolicy) : isSet(object.operation_resource_policy) ? globalThis.Boolean(object.operation_resource_policy) : false,
|
|
1443
|
+
operationCpuQuota: isSet(object.operationCpuQuota) ? globalThis.Boolean(object.operationCpuQuota) : isSet(object.operation_cpu_quota) ? globalThis.Boolean(object.operation_cpu_quota) : false
|
|
1293
1444
|
};
|
|
1294
1445
|
},
|
|
1295
1446
|
toJSON(message) {
|
|
@@ -1327,6 +1478,12 @@ var Capabilities = {
|
|
|
1327
1478
|
if (message.browserBridge !== false) {
|
|
1328
1479
|
obj.browserBridge = message.browserBridge;
|
|
1329
1480
|
}
|
|
1481
|
+
if (message.operationResourcePolicy !== false) {
|
|
1482
|
+
obj.operationResourcePolicy = message.operationResourcePolicy;
|
|
1483
|
+
}
|
|
1484
|
+
if (message.operationCpuQuota !== false) {
|
|
1485
|
+
obj.operationCpuQuota = message.operationCpuQuota;
|
|
1486
|
+
}
|
|
1330
1487
|
return obj;
|
|
1331
1488
|
},
|
|
1332
1489
|
create(base) {
|
|
@@ -1345,6 +1502,8 @@ var Capabilities = {
|
|
|
1345
1502
|
message.desktopUnavailableReason = object.desktopUnavailableReason ?? "";
|
|
1346
1503
|
message.opStream = object.opStream ?? false;
|
|
1347
1504
|
message.browserBridge = object.browserBridge ?? false;
|
|
1505
|
+
message.operationResourcePolicy = object.operationResourcePolicy ?? false;
|
|
1506
|
+
message.operationCpuQuota = object.operationCpuQuota ?? false;
|
|
1348
1507
|
return message;
|
|
1349
1508
|
}
|
|
1350
1509
|
};
|
|
@@ -2495,6 +2654,89 @@ var EnrollmentCredentials = {
|
|
|
2495
2654
|
return message;
|
|
2496
2655
|
}
|
|
2497
2656
|
};
|
|
2657
|
+
function createBaseOperationResourcePolicy() {
|
|
2658
|
+
return { memoryMaxBytes: void 0, memoryHighBytes: void 0, cpuMaxMillicores: void 0 };
|
|
2659
|
+
}
|
|
2660
|
+
var OperationResourcePolicy = {
|
|
2661
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2662
|
+
if (message.memoryMaxBytes !== void 0) {
|
|
2663
|
+
writer.uint32(8).uint64(message.memoryMaxBytes);
|
|
2664
|
+
}
|
|
2665
|
+
if (message.memoryHighBytes !== void 0) {
|
|
2666
|
+
writer.uint32(16).uint64(message.memoryHighBytes);
|
|
2667
|
+
}
|
|
2668
|
+
if (message.cpuMaxMillicores !== void 0) {
|
|
2669
|
+
writer.uint32(24).uint32(message.cpuMaxMillicores);
|
|
2670
|
+
}
|
|
2671
|
+
return writer;
|
|
2672
|
+
},
|
|
2673
|
+
decode(input, length) {
|
|
2674
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2675
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2676
|
+
const message = createBaseOperationResourcePolicy();
|
|
2677
|
+
while (reader.pos < end) {
|
|
2678
|
+
const tag = reader.uint32();
|
|
2679
|
+
switch (tag >>> 3) {
|
|
2680
|
+
case 1: {
|
|
2681
|
+
if (tag !== 8) {
|
|
2682
|
+
break;
|
|
2683
|
+
}
|
|
2684
|
+
message.memoryMaxBytes = reader.uint64().toString();
|
|
2685
|
+
continue;
|
|
2686
|
+
}
|
|
2687
|
+
case 2: {
|
|
2688
|
+
if (tag !== 16) {
|
|
2689
|
+
break;
|
|
2690
|
+
}
|
|
2691
|
+
message.memoryHighBytes = reader.uint64().toString();
|
|
2692
|
+
continue;
|
|
2693
|
+
}
|
|
2694
|
+
case 3: {
|
|
2695
|
+
if (tag !== 24) {
|
|
2696
|
+
break;
|
|
2697
|
+
}
|
|
2698
|
+
message.cpuMaxMillicores = reader.uint32();
|
|
2699
|
+
continue;
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2703
|
+
break;
|
|
2704
|
+
}
|
|
2705
|
+
reader.skip(tag & 7);
|
|
2706
|
+
}
|
|
2707
|
+
return message;
|
|
2708
|
+
},
|
|
2709
|
+
fromJSON(object) {
|
|
2710
|
+
return {
|
|
2711
|
+
memoryMaxBytes: isSet(object.memoryMaxBytes) ? globalThis.String(object.memoryMaxBytes) : isSet(object.memory_max_bytes) ? globalThis.String(object.memory_max_bytes) : void 0,
|
|
2712
|
+
memoryHighBytes: isSet(object.memoryHighBytes) ? globalThis.String(object.memoryHighBytes) : isSet(object.memory_high_bytes) ? globalThis.String(object.memory_high_bytes) : void 0,
|
|
2713
|
+
cpuMaxMillicores: isSet(object.cpuMaxMillicores) ? globalThis.Number(object.cpuMaxMillicores) : isSet(object.cpu_max_millicores) ? globalThis.Number(object.cpu_max_millicores) : void 0
|
|
2714
|
+
};
|
|
2715
|
+
},
|
|
2716
|
+
toJSON(message) {
|
|
2717
|
+
const obj = {};
|
|
2718
|
+
if (message.memoryMaxBytes !== void 0) {
|
|
2719
|
+
obj.memoryMaxBytes = message.memoryMaxBytes;
|
|
2720
|
+
}
|
|
2721
|
+
if (message.memoryHighBytes !== void 0) {
|
|
2722
|
+
obj.memoryHighBytes = message.memoryHighBytes;
|
|
2723
|
+
}
|
|
2724
|
+
if (message.cpuMaxMillicores !== void 0) {
|
|
2725
|
+
obj.cpuMaxMillicores = Math.round(message.cpuMaxMillicores);
|
|
2726
|
+
}
|
|
2727
|
+
return obj;
|
|
2728
|
+
},
|
|
2729
|
+
create(base) {
|
|
2730
|
+
return OperationResourcePolicy.fromPartial(base ?? {});
|
|
2731
|
+
},
|
|
2732
|
+
fromPartial(object) {
|
|
2733
|
+
const message = createBaseOperationResourcePolicy();
|
|
2734
|
+
message.memoryMaxBytes = object.memoryMaxBytes ?? void 0;
|
|
2735
|
+
message.memoryHighBytes = object.memoryHighBytes ?? void 0;
|
|
2736
|
+
message.cpuMaxMillicores = object.cpuMaxMillicores ?? void 0;
|
|
2737
|
+
return message;
|
|
2738
|
+
}
|
|
2739
|
+
};
|
|
2498
2740
|
function createBaseExecRequest() {
|
|
2499
2741
|
return { command: [], shell: false, cwd: "", env: {}, stdin: new Uint8Array(0), timeoutMs: 0 };
|
|
2500
2742
|
}
|
|
@@ -7849,6 +8091,405 @@ var UpdateMayProceedResponse = {
|
|
|
7849
8091
|
return message;
|
|
7850
8092
|
}
|
|
7851
8093
|
};
|
|
8094
|
+
function createBaseAgentUpdateApplyRequest() {
|
|
8095
|
+
return {
|
|
8096
|
+
operationId: "",
|
|
8097
|
+
targetVersion: "",
|
|
8098
|
+
channel: "",
|
|
8099
|
+
expectedCurrentVersion: "",
|
|
8100
|
+
expectedCurrentSha256: "",
|
|
8101
|
+
releaseBaseUrl: ""
|
|
8102
|
+
};
|
|
8103
|
+
}
|
|
8104
|
+
var AgentUpdateApplyRequest = {
|
|
8105
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8106
|
+
if (message.operationId !== "") {
|
|
8107
|
+
writer.uint32(10).string(message.operationId);
|
|
8108
|
+
}
|
|
8109
|
+
if (message.targetVersion !== "") {
|
|
8110
|
+
writer.uint32(18).string(message.targetVersion);
|
|
8111
|
+
}
|
|
8112
|
+
if (message.channel !== "") {
|
|
8113
|
+
writer.uint32(26).string(message.channel);
|
|
8114
|
+
}
|
|
8115
|
+
if (message.expectedCurrentVersion !== "") {
|
|
8116
|
+
writer.uint32(34).string(message.expectedCurrentVersion);
|
|
8117
|
+
}
|
|
8118
|
+
if (message.expectedCurrentSha256 !== "") {
|
|
8119
|
+
writer.uint32(42).string(message.expectedCurrentSha256);
|
|
8120
|
+
}
|
|
8121
|
+
if (message.releaseBaseUrl !== "") {
|
|
8122
|
+
writer.uint32(50).string(message.releaseBaseUrl);
|
|
8123
|
+
}
|
|
8124
|
+
return writer;
|
|
8125
|
+
},
|
|
8126
|
+
decode(input, length) {
|
|
8127
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8128
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8129
|
+
const message = createBaseAgentUpdateApplyRequest();
|
|
8130
|
+
while (reader.pos < end) {
|
|
8131
|
+
const tag = reader.uint32();
|
|
8132
|
+
switch (tag >>> 3) {
|
|
8133
|
+
case 1: {
|
|
8134
|
+
if (tag !== 10) {
|
|
8135
|
+
break;
|
|
8136
|
+
}
|
|
8137
|
+
message.operationId = reader.string();
|
|
8138
|
+
continue;
|
|
8139
|
+
}
|
|
8140
|
+
case 2: {
|
|
8141
|
+
if (tag !== 18) {
|
|
8142
|
+
break;
|
|
8143
|
+
}
|
|
8144
|
+
message.targetVersion = reader.string();
|
|
8145
|
+
continue;
|
|
8146
|
+
}
|
|
8147
|
+
case 3: {
|
|
8148
|
+
if (tag !== 26) {
|
|
8149
|
+
break;
|
|
8150
|
+
}
|
|
8151
|
+
message.channel = reader.string();
|
|
8152
|
+
continue;
|
|
8153
|
+
}
|
|
8154
|
+
case 4: {
|
|
8155
|
+
if (tag !== 34) {
|
|
8156
|
+
break;
|
|
8157
|
+
}
|
|
8158
|
+
message.expectedCurrentVersion = reader.string();
|
|
8159
|
+
continue;
|
|
8160
|
+
}
|
|
8161
|
+
case 5: {
|
|
8162
|
+
if (tag !== 42) {
|
|
8163
|
+
break;
|
|
8164
|
+
}
|
|
8165
|
+
message.expectedCurrentSha256 = reader.string();
|
|
8166
|
+
continue;
|
|
8167
|
+
}
|
|
8168
|
+
case 6: {
|
|
8169
|
+
if (tag !== 50) {
|
|
8170
|
+
break;
|
|
8171
|
+
}
|
|
8172
|
+
message.releaseBaseUrl = reader.string();
|
|
8173
|
+
continue;
|
|
8174
|
+
}
|
|
8175
|
+
}
|
|
8176
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8177
|
+
break;
|
|
8178
|
+
}
|
|
8179
|
+
reader.skip(tag & 7);
|
|
8180
|
+
}
|
|
8181
|
+
return message;
|
|
8182
|
+
},
|
|
8183
|
+
fromJSON(object) {
|
|
8184
|
+
return {
|
|
8185
|
+
operationId: isSet(object.operationId) ? globalThis.String(object.operationId) : isSet(object.operation_id) ? globalThis.String(object.operation_id) : "",
|
|
8186
|
+
targetVersion: isSet(object.targetVersion) ? globalThis.String(object.targetVersion) : isSet(object.target_version) ? globalThis.String(object.target_version) : "",
|
|
8187
|
+
channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
|
|
8188
|
+
expectedCurrentVersion: isSet(object.expectedCurrentVersion) ? globalThis.String(object.expectedCurrentVersion) : isSet(object.expected_current_version) ? globalThis.String(object.expected_current_version) : "",
|
|
8189
|
+
expectedCurrentSha256: isSet(object.expectedCurrentSha256) ? globalThis.String(object.expectedCurrentSha256) : isSet(object.expected_current_sha256) ? globalThis.String(object.expected_current_sha256) : "",
|
|
8190
|
+
releaseBaseUrl: isSet(object.releaseBaseUrl) ? globalThis.String(object.releaseBaseUrl) : isSet(object.release_base_url) ? globalThis.String(object.release_base_url) : ""
|
|
8191
|
+
};
|
|
8192
|
+
},
|
|
8193
|
+
toJSON(message) {
|
|
8194
|
+
const obj = {};
|
|
8195
|
+
if (message.operationId !== "") {
|
|
8196
|
+
obj.operationId = message.operationId;
|
|
8197
|
+
}
|
|
8198
|
+
if (message.targetVersion !== "") {
|
|
8199
|
+
obj.targetVersion = message.targetVersion;
|
|
8200
|
+
}
|
|
8201
|
+
if (message.channel !== "") {
|
|
8202
|
+
obj.channel = message.channel;
|
|
8203
|
+
}
|
|
8204
|
+
if (message.expectedCurrentVersion !== "") {
|
|
8205
|
+
obj.expectedCurrentVersion = message.expectedCurrentVersion;
|
|
8206
|
+
}
|
|
8207
|
+
if (message.expectedCurrentSha256 !== "") {
|
|
8208
|
+
obj.expectedCurrentSha256 = message.expectedCurrentSha256;
|
|
8209
|
+
}
|
|
8210
|
+
if (message.releaseBaseUrl !== "") {
|
|
8211
|
+
obj.releaseBaseUrl = message.releaseBaseUrl;
|
|
8212
|
+
}
|
|
8213
|
+
return obj;
|
|
8214
|
+
},
|
|
8215
|
+
create(base) {
|
|
8216
|
+
return AgentUpdateApplyRequest.fromPartial(base ?? {});
|
|
8217
|
+
},
|
|
8218
|
+
fromPartial(object) {
|
|
8219
|
+
const message = createBaseAgentUpdateApplyRequest();
|
|
8220
|
+
message.operationId = object.operationId ?? "";
|
|
8221
|
+
message.targetVersion = object.targetVersion ?? "";
|
|
8222
|
+
message.channel = object.channel ?? "";
|
|
8223
|
+
message.expectedCurrentVersion = object.expectedCurrentVersion ?? "";
|
|
8224
|
+
message.expectedCurrentSha256 = object.expectedCurrentSha256 ?? "";
|
|
8225
|
+
message.releaseBaseUrl = object.releaseBaseUrl ?? "";
|
|
8226
|
+
return message;
|
|
8227
|
+
}
|
|
8228
|
+
};
|
|
8229
|
+
function createBaseAgentUpdateApplyResponse() {
|
|
8230
|
+
return { accepted: false, operationId: "", currentVersion: "", currentSha256: "", targetVersion: "" };
|
|
8231
|
+
}
|
|
8232
|
+
var AgentUpdateApplyResponse = {
|
|
8233
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8234
|
+
if (message.accepted !== false) {
|
|
8235
|
+
writer.uint32(8).bool(message.accepted);
|
|
8236
|
+
}
|
|
8237
|
+
if (message.operationId !== "") {
|
|
8238
|
+
writer.uint32(18).string(message.operationId);
|
|
8239
|
+
}
|
|
8240
|
+
if (message.currentVersion !== "") {
|
|
8241
|
+
writer.uint32(26).string(message.currentVersion);
|
|
8242
|
+
}
|
|
8243
|
+
if (message.currentSha256 !== "") {
|
|
8244
|
+
writer.uint32(34).string(message.currentSha256);
|
|
8245
|
+
}
|
|
8246
|
+
if (message.targetVersion !== "") {
|
|
8247
|
+
writer.uint32(42).string(message.targetVersion);
|
|
8248
|
+
}
|
|
8249
|
+
return writer;
|
|
8250
|
+
},
|
|
8251
|
+
decode(input, length) {
|
|
8252
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8253
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8254
|
+
const message = createBaseAgentUpdateApplyResponse();
|
|
8255
|
+
while (reader.pos < end) {
|
|
8256
|
+
const tag = reader.uint32();
|
|
8257
|
+
switch (tag >>> 3) {
|
|
8258
|
+
case 1: {
|
|
8259
|
+
if (tag !== 8) {
|
|
8260
|
+
break;
|
|
8261
|
+
}
|
|
8262
|
+
message.accepted = reader.bool();
|
|
8263
|
+
continue;
|
|
8264
|
+
}
|
|
8265
|
+
case 2: {
|
|
8266
|
+
if (tag !== 18) {
|
|
8267
|
+
break;
|
|
8268
|
+
}
|
|
8269
|
+
message.operationId = reader.string();
|
|
8270
|
+
continue;
|
|
8271
|
+
}
|
|
8272
|
+
case 3: {
|
|
8273
|
+
if (tag !== 26) {
|
|
8274
|
+
break;
|
|
8275
|
+
}
|
|
8276
|
+
message.currentVersion = reader.string();
|
|
8277
|
+
continue;
|
|
8278
|
+
}
|
|
8279
|
+
case 4: {
|
|
8280
|
+
if (tag !== 34) {
|
|
8281
|
+
break;
|
|
8282
|
+
}
|
|
8283
|
+
message.currentSha256 = reader.string();
|
|
8284
|
+
continue;
|
|
8285
|
+
}
|
|
8286
|
+
case 5: {
|
|
8287
|
+
if (tag !== 42) {
|
|
8288
|
+
break;
|
|
8289
|
+
}
|
|
8290
|
+
message.targetVersion = reader.string();
|
|
8291
|
+
continue;
|
|
8292
|
+
}
|
|
8293
|
+
}
|
|
8294
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8295
|
+
break;
|
|
8296
|
+
}
|
|
8297
|
+
reader.skip(tag & 7);
|
|
8298
|
+
}
|
|
8299
|
+
return message;
|
|
8300
|
+
},
|
|
8301
|
+
fromJSON(object) {
|
|
8302
|
+
return {
|
|
8303
|
+
accepted: isSet(object.accepted) ? globalThis.Boolean(object.accepted) : false,
|
|
8304
|
+
operationId: isSet(object.operationId) ? globalThis.String(object.operationId) : isSet(object.operation_id) ? globalThis.String(object.operation_id) : "",
|
|
8305
|
+
currentVersion: isSet(object.currentVersion) ? globalThis.String(object.currentVersion) : isSet(object.current_version) ? globalThis.String(object.current_version) : "",
|
|
8306
|
+
currentSha256: isSet(object.currentSha256) ? globalThis.String(object.currentSha256) : isSet(object.current_sha256) ? globalThis.String(object.current_sha256) : "",
|
|
8307
|
+
targetVersion: isSet(object.targetVersion) ? globalThis.String(object.targetVersion) : isSet(object.target_version) ? globalThis.String(object.target_version) : ""
|
|
8308
|
+
};
|
|
8309
|
+
},
|
|
8310
|
+
toJSON(message) {
|
|
8311
|
+
const obj = {};
|
|
8312
|
+
if (message.accepted !== false) {
|
|
8313
|
+
obj.accepted = message.accepted;
|
|
8314
|
+
}
|
|
8315
|
+
if (message.operationId !== "") {
|
|
8316
|
+
obj.operationId = message.operationId;
|
|
8317
|
+
}
|
|
8318
|
+
if (message.currentVersion !== "") {
|
|
8319
|
+
obj.currentVersion = message.currentVersion;
|
|
8320
|
+
}
|
|
8321
|
+
if (message.currentSha256 !== "") {
|
|
8322
|
+
obj.currentSha256 = message.currentSha256;
|
|
8323
|
+
}
|
|
8324
|
+
if (message.targetVersion !== "") {
|
|
8325
|
+
obj.targetVersion = message.targetVersion;
|
|
8326
|
+
}
|
|
8327
|
+
return obj;
|
|
8328
|
+
},
|
|
8329
|
+
create(base) {
|
|
8330
|
+
return AgentUpdateApplyResponse.fromPartial(base ?? {});
|
|
8331
|
+
},
|
|
8332
|
+
fromPartial(object) {
|
|
8333
|
+
const message = createBaseAgentUpdateApplyResponse();
|
|
8334
|
+
message.accepted = object.accepted ?? false;
|
|
8335
|
+
message.operationId = object.operationId ?? "";
|
|
8336
|
+
message.currentVersion = object.currentVersion ?? "";
|
|
8337
|
+
message.currentSha256 = object.currentSha256 ?? "";
|
|
8338
|
+
message.targetVersion = object.targetVersion ?? "";
|
|
8339
|
+
return message;
|
|
8340
|
+
}
|
|
8341
|
+
};
|
|
8342
|
+
function createBaseAgentUpdateProgress() {
|
|
8343
|
+
return {
|
|
8344
|
+
operationId: "",
|
|
8345
|
+
targetVersion: "",
|
|
8346
|
+
stage: 0,
|
|
8347
|
+
expectedBinarySha256: "",
|
|
8348
|
+
errorCode: "",
|
|
8349
|
+
retryable: false,
|
|
8350
|
+
rolledBack: false
|
|
8351
|
+
};
|
|
8352
|
+
}
|
|
8353
|
+
var AgentUpdateProgress = {
|
|
8354
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8355
|
+
if (message.operationId !== "") {
|
|
8356
|
+
writer.uint32(10).string(message.operationId);
|
|
8357
|
+
}
|
|
8358
|
+
if (message.targetVersion !== "") {
|
|
8359
|
+
writer.uint32(18).string(message.targetVersion);
|
|
8360
|
+
}
|
|
8361
|
+
if (message.stage !== 0) {
|
|
8362
|
+
writer.uint32(24).int32(message.stage);
|
|
8363
|
+
}
|
|
8364
|
+
if (message.expectedBinarySha256 !== "") {
|
|
8365
|
+
writer.uint32(34).string(message.expectedBinarySha256);
|
|
8366
|
+
}
|
|
8367
|
+
if (message.errorCode !== "") {
|
|
8368
|
+
writer.uint32(42).string(message.errorCode);
|
|
8369
|
+
}
|
|
8370
|
+
if (message.retryable !== false) {
|
|
8371
|
+
writer.uint32(48).bool(message.retryable);
|
|
8372
|
+
}
|
|
8373
|
+
if (message.rolledBack !== false) {
|
|
8374
|
+
writer.uint32(56).bool(message.rolledBack);
|
|
8375
|
+
}
|
|
8376
|
+
return writer;
|
|
8377
|
+
},
|
|
8378
|
+
decode(input, length) {
|
|
8379
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8380
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8381
|
+
const message = createBaseAgentUpdateProgress();
|
|
8382
|
+
while (reader.pos < end) {
|
|
8383
|
+
const tag = reader.uint32();
|
|
8384
|
+
switch (tag >>> 3) {
|
|
8385
|
+
case 1: {
|
|
8386
|
+
if (tag !== 10) {
|
|
8387
|
+
break;
|
|
8388
|
+
}
|
|
8389
|
+
message.operationId = reader.string();
|
|
8390
|
+
continue;
|
|
8391
|
+
}
|
|
8392
|
+
case 2: {
|
|
8393
|
+
if (tag !== 18) {
|
|
8394
|
+
break;
|
|
8395
|
+
}
|
|
8396
|
+
message.targetVersion = reader.string();
|
|
8397
|
+
continue;
|
|
8398
|
+
}
|
|
8399
|
+
case 3: {
|
|
8400
|
+
if (tag !== 24) {
|
|
8401
|
+
break;
|
|
8402
|
+
}
|
|
8403
|
+
message.stage = reader.int32();
|
|
8404
|
+
continue;
|
|
8405
|
+
}
|
|
8406
|
+
case 4: {
|
|
8407
|
+
if (tag !== 34) {
|
|
8408
|
+
break;
|
|
8409
|
+
}
|
|
8410
|
+
message.expectedBinarySha256 = reader.string();
|
|
8411
|
+
continue;
|
|
8412
|
+
}
|
|
8413
|
+
case 5: {
|
|
8414
|
+
if (tag !== 42) {
|
|
8415
|
+
break;
|
|
8416
|
+
}
|
|
8417
|
+
message.errorCode = reader.string();
|
|
8418
|
+
continue;
|
|
8419
|
+
}
|
|
8420
|
+
case 6: {
|
|
8421
|
+
if (tag !== 48) {
|
|
8422
|
+
break;
|
|
8423
|
+
}
|
|
8424
|
+
message.retryable = reader.bool();
|
|
8425
|
+
continue;
|
|
8426
|
+
}
|
|
8427
|
+
case 7: {
|
|
8428
|
+
if (tag !== 56) {
|
|
8429
|
+
break;
|
|
8430
|
+
}
|
|
8431
|
+
message.rolledBack = reader.bool();
|
|
8432
|
+
continue;
|
|
8433
|
+
}
|
|
8434
|
+
}
|
|
8435
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8436
|
+
break;
|
|
8437
|
+
}
|
|
8438
|
+
reader.skip(tag & 7);
|
|
8439
|
+
}
|
|
8440
|
+
return message;
|
|
8441
|
+
},
|
|
8442
|
+
fromJSON(object) {
|
|
8443
|
+
return {
|
|
8444
|
+
operationId: isSet(object.operationId) ? globalThis.String(object.operationId) : isSet(object.operation_id) ? globalThis.String(object.operation_id) : "",
|
|
8445
|
+
targetVersion: isSet(object.targetVersion) ? globalThis.String(object.targetVersion) : isSet(object.target_version) ? globalThis.String(object.target_version) : "",
|
|
8446
|
+
stage: isSet(object.stage) ? agentUpdateStageFromJSON(object.stage) : 0,
|
|
8447
|
+
expectedBinarySha256: isSet(object.expectedBinarySha256) ? globalThis.String(object.expectedBinarySha256) : isSet(object.expected_binary_sha256) ? globalThis.String(object.expected_binary_sha256) : "",
|
|
8448
|
+
errorCode: isSet(object.errorCode) ? globalThis.String(object.errorCode) : isSet(object.error_code) ? globalThis.String(object.error_code) : "",
|
|
8449
|
+
retryable: isSet(object.retryable) ? globalThis.Boolean(object.retryable) : false,
|
|
8450
|
+
rolledBack: isSet(object.rolledBack) ? globalThis.Boolean(object.rolledBack) : isSet(object.rolled_back) ? globalThis.Boolean(object.rolled_back) : false
|
|
8451
|
+
};
|
|
8452
|
+
},
|
|
8453
|
+
toJSON(message) {
|
|
8454
|
+
const obj = {};
|
|
8455
|
+
if (message.operationId !== "") {
|
|
8456
|
+
obj.operationId = message.operationId;
|
|
8457
|
+
}
|
|
8458
|
+
if (message.targetVersion !== "") {
|
|
8459
|
+
obj.targetVersion = message.targetVersion;
|
|
8460
|
+
}
|
|
8461
|
+
if (message.stage !== 0) {
|
|
8462
|
+
obj.stage = agentUpdateStageToJSON(message.stage);
|
|
8463
|
+
}
|
|
8464
|
+
if (message.expectedBinarySha256 !== "") {
|
|
8465
|
+
obj.expectedBinarySha256 = message.expectedBinarySha256;
|
|
8466
|
+
}
|
|
8467
|
+
if (message.errorCode !== "") {
|
|
8468
|
+
obj.errorCode = message.errorCode;
|
|
8469
|
+
}
|
|
8470
|
+
if (message.retryable !== false) {
|
|
8471
|
+
obj.retryable = message.retryable;
|
|
8472
|
+
}
|
|
8473
|
+
if (message.rolledBack !== false) {
|
|
8474
|
+
obj.rolledBack = message.rolledBack;
|
|
8475
|
+
}
|
|
8476
|
+
return obj;
|
|
8477
|
+
},
|
|
8478
|
+
create(base) {
|
|
8479
|
+
return AgentUpdateProgress.fromPartial(base ?? {});
|
|
8480
|
+
},
|
|
8481
|
+
fromPartial(object) {
|
|
8482
|
+
const message = createBaseAgentUpdateProgress();
|
|
8483
|
+
message.operationId = object.operationId ?? "";
|
|
8484
|
+
message.targetVersion = object.targetVersion ?? "";
|
|
8485
|
+
message.stage = object.stage ?? 0;
|
|
8486
|
+
message.expectedBinarySha256 = object.expectedBinarySha256 ?? "";
|
|
8487
|
+
message.errorCode = object.errorCode ?? "";
|
|
8488
|
+
message.retryable = object.retryable ?? false;
|
|
8489
|
+
message.rolledBack = object.rolledBack ?? false;
|
|
8490
|
+
return message;
|
|
8491
|
+
}
|
|
8492
|
+
};
|
|
7852
8493
|
function createBaseOpExit() {
|
|
7853
8494
|
return {
|
|
7854
8495
|
exitCode: 0,
|
|
@@ -9432,7 +10073,7 @@ var OpAck = {
|
|
|
9432
10073
|
}
|
|
9433
10074
|
};
|
|
9434
10075
|
function createBaseControlRequest() {
|
|
9435
|
-
return { requestId: "", epoch: 0, op: void 0 };
|
|
10076
|
+
return { requestId: "", epoch: 0, resourcePolicy: void 0, op: void 0 };
|
|
9436
10077
|
}
|
|
9437
10078
|
var ControlRequest = {
|
|
9438
10079
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -9442,6 +10083,9 @@ var ControlRequest = {
|
|
|
9442
10083
|
if (message.epoch !== 0) {
|
|
9443
10084
|
writer.uint32(16).uint32(message.epoch);
|
|
9444
10085
|
}
|
|
10086
|
+
if (message.resourcePolicy !== void 0) {
|
|
10087
|
+
OperationResourcePolicy.encode(message.resourcePolicy, writer.uint32(26).fork()).join();
|
|
10088
|
+
}
|
|
9445
10089
|
switch (message.op?.$case) {
|
|
9446
10090
|
case "ping":
|
|
9447
10091
|
PingRequest.encode(message.op.ping, writer.uint32(82).fork()).join();
|
|
@@ -9452,9 +10096,6 @@ var ControlRequest = {
|
|
|
9452
10096
|
case "resume":
|
|
9453
10097
|
ResumeRequest.encode(message.op.resume, writer.uint32(98).fork()).join();
|
|
9454
10098
|
break;
|
|
9455
|
-
case "exec":
|
|
9456
|
-
ExecRequest.encode(message.op.exec, writer.uint32(106).fork()).join();
|
|
9457
|
-
break;
|
|
9458
10099
|
case "fsRead":
|
|
9459
10100
|
FsReadRequest.encode(message.op.fsRead, writer.uint32(114).fork()).join();
|
|
9460
10101
|
break;
|
|
@@ -9530,6 +10171,9 @@ var ControlRequest = {
|
|
|
9530
10171
|
case "computerFramesOpen":
|
|
9531
10172
|
ComputerFramesOpenRequest.encode(message.op.computerFramesOpen, writer.uint32(306).fork()).join();
|
|
9532
10173
|
break;
|
|
10174
|
+
case "agentUpdateApply":
|
|
10175
|
+
AgentUpdateApplyRequest.encode(message.op.agentUpdateApply, writer.uint32(314).fork()).join();
|
|
10176
|
+
break;
|
|
9533
10177
|
}
|
|
9534
10178
|
return writer;
|
|
9535
10179
|
},
|
|
@@ -9554,6 +10198,13 @@ var ControlRequest = {
|
|
|
9554
10198
|
message.epoch = reader.uint32();
|
|
9555
10199
|
continue;
|
|
9556
10200
|
}
|
|
10201
|
+
case 3: {
|
|
10202
|
+
if (tag !== 26) {
|
|
10203
|
+
break;
|
|
10204
|
+
}
|
|
10205
|
+
message.resourcePolicy = OperationResourcePolicy.decode(reader, reader.uint32());
|
|
10206
|
+
continue;
|
|
10207
|
+
}
|
|
9557
10208
|
case 10: {
|
|
9558
10209
|
if (tag !== 82) {
|
|
9559
10210
|
break;
|
|
@@ -9575,13 +10226,6 @@ var ControlRequest = {
|
|
|
9575
10226
|
message.op = { $case: "resume", resume: ResumeRequest.decode(reader, reader.uint32()) };
|
|
9576
10227
|
continue;
|
|
9577
10228
|
}
|
|
9578
|
-
case 13: {
|
|
9579
|
-
if (tag !== 106) {
|
|
9580
|
-
break;
|
|
9581
|
-
}
|
|
9582
|
-
message.op = { $case: "exec", exec: ExecRequest.decode(reader, reader.uint32()) };
|
|
9583
|
-
continue;
|
|
9584
|
-
}
|
|
9585
10229
|
case 14: {
|
|
9586
10230
|
if (tag !== 114) {
|
|
9587
10231
|
break;
|
|
@@ -9772,6 +10416,16 @@ var ControlRequest = {
|
|
|
9772
10416
|
};
|
|
9773
10417
|
continue;
|
|
9774
10418
|
}
|
|
10419
|
+
case 39: {
|
|
10420
|
+
if (tag !== 314) {
|
|
10421
|
+
break;
|
|
10422
|
+
}
|
|
10423
|
+
message.op = {
|
|
10424
|
+
$case: "agentUpdateApply",
|
|
10425
|
+
agentUpdateApply: AgentUpdateApplyRequest.decode(reader, reader.uint32())
|
|
10426
|
+
};
|
|
10427
|
+
continue;
|
|
10428
|
+
}
|
|
9775
10429
|
}
|
|
9776
10430
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9777
10431
|
break;
|
|
@@ -9784,7 +10438,8 @@ var ControlRequest = {
|
|
|
9784
10438
|
return {
|
|
9785
10439
|
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : isSet(object.request_id) ? globalThis.String(object.request_id) : "",
|
|
9786
10440
|
epoch: isSet(object.epoch) ? globalThis.Number(object.epoch) : 0,
|
|
9787
|
-
|
|
10441
|
+
resourcePolicy: isSet(object.resourcePolicy) ? OperationResourcePolicy.fromJSON(object.resourcePolicy) : isSet(object.resource_policy) ? OperationResourcePolicy.fromJSON(object.resource_policy) : void 0,
|
|
10442
|
+
op: isSet(object.ping) ? { $case: "ping", ping: PingRequest.fromJSON(object.ping) } : isSet(object.hello) ? { $case: "hello", hello: Hello.fromJSON(object.hello) } : isSet(object.resume) ? { $case: "resume", resume: ResumeRequest.fromJSON(object.resume) } : isSet(object.fsRead) ? { $case: "fsRead", fsRead: FsReadRequest.fromJSON(object.fsRead) } : isSet(object.fs_read) ? { $case: "fsRead", fsRead: FsReadRequest.fromJSON(object.fs_read) } : isSet(object.fsWrite) ? { $case: "fsWrite", fsWrite: FsWriteRequest.fromJSON(object.fsWrite) } : isSet(object.fs_write) ? { $case: "fsWrite", fsWrite: FsWriteRequest.fromJSON(object.fs_write) } : isSet(object.fsList) ? { $case: "fsList", fsList: FsListRequest.fromJSON(object.fsList) } : isSet(object.fs_list) ? { $case: "fsList", fsList: FsListRequest.fromJSON(object.fs_list) } : isSet(object.fsMkdir) ? { $case: "fsMkdir", fsMkdir: FsMkdirRequest.fromJSON(object.fsMkdir) } : isSet(object.fs_mkdir) ? { $case: "fsMkdir", fsMkdir: FsMkdirRequest.fromJSON(object.fs_mkdir) } : isSet(object.fsMove) ? { $case: "fsMove", fsMove: FsMoveRequest.fromJSON(object.fsMove) } : isSet(object.fs_move) ? { $case: "fsMove", fsMove: FsMoveRequest.fromJSON(object.fs_move) } : isSet(object.fsStat) ? { $case: "fsStat", fsStat: FsStatRequest.fromJSON(object.fsStat) } : isSet(object.fs_stat) ? { $case: "fsStat", fsStat: FsStatRequest.fromJSON(object.fs_stat) } : isSet(object.fsRemove) ? { $case: "fsRemove", fsRemove: FsRemoveRequest.fromJSON(object.fsRemove) } : isSet(object.fs_remove) ? { $case: "fsRemove", fsRemove: FsRemoveRequest.fromJSON(object.fs_remove) } : isSet(object.git) ? { $case: "git", git: GitRequest.fromJSON(object.git) } : isSet(object.ptyOpen) ? { $case: "ptyOpen", ptyOpen: PtyOpenRequest.fromJSON(object.ptyOpen) } : isSet(object.pty_open) ? { $case: "ptyOpen", ptyOpen: PtyOpenRequest.fromJSON(object.pty_open) } : isSet(object.ptyWrite) ? { $case: "ptyWrite", ptyWrite: PtyWriteRequest.fromJSON(object.ptyWrite) } : isSet(object.pty_write) ? { $case: "ptyWrite", ptyWrite: PtyWriteRequest.fromJSON(object.pty_write) } : isSet(object.ptyResize) ? { $case: "ptyResize", ptyResize: PtyResizeRequest.fromJSON(object.ptyResize) } : isSet(object.pty_resize) ? { $case: "ptyResize", ptyResize: PtyResizeRequest.fromJSON(object.pty_resize) } : isSet(object.ptyClose) ? { $case: "ptyClose", ptyClose: PtyCloseRequest.fromJSON(object.ptyClose) } : isSet(object.pty_close) ? { $case: "ptyClose", ptyClose: PtyCloseRequest.fromJSON(object.pty_close) } : isSet(object.desktopEnsure) ? { $case: "desktopEnsure", desktopEnsure: DesktopEnsureRequest.fromJSON(object.desktopEnsure) } : isSet(object.desktop_ensure) ? { $case: "desktopEnsure", desktopEnsure: DesktopEnsureRequest.fromJSON(object.desktop_ensure) } : isSet(object.metrics) ? { $case: "metrics", metrics: MetricsRequest.fromJSON(object.metrics) } : isSet(object.updateMayProceed) ? { $case: "updateMayProceed", updateMayProceed: UpdateMayProceedRequest.fromJSON(object.updateMayProceed) } : isSet(object.update_may_proceed) ? { $case: "updateMayProceed", updateMayProceed: UpdateMayProceedRequest.fromJSON(object.update_may_proceed) } : isSet(object.desktopInput) ? { $case: "desktopInput", desktopInput: DesktopInputRequest.fromJSON(object.desktopInput) } : isSet(object.desktop_input) ? { $case: "desktopInput", desktopInput: DesktopInputRequest.fromJSON(object.desktop_input) } : isSet(object.desktopScreenshot) ? { $case: "desktopScreenshot", desktopScreenshot: DesktopScreenshotRequest.fromJSON(object.desktopScreenshot) } : isSet(object.desktop_screenshot) ? {
|
|
9788
10443
|
$case: "desktopScreenshot",
|
|
9789
10444
|
desktopScreenshot: DesktopScreenshotRequest.fromJSON(object.desktop_screenshot)
|
|
9790
10445
|
} : isSet(object.opStart) ? { $case: "opStart", opStart: OpStart.fromJSON(object.opStart) } : isSet(object.op_start) ? { $case: "opStart", opStart: OpStart.fromJSON(object.op_start) } : isSet(object.opCancel) ? { $case: "opCancel", opCancel: OpCancel.fromJSON(object.opCancel) } : isSet(object.op_cancel) ? { $case: "opCancel", opCancel: OpCancel.fromJSON(object.op_cancel) } : isSet(object.opQuery) ? { $case: "opQuery", opQuery: OpQuery.fromJSON(object.opQuery) } : isSet(object.op_query) ? { $case: "opQuery", opQuery: OpQuery.fromJSON(object.op_query) } : isSet(object.opAttach) ? { $case: "opAttach", opAttach: OpAttach.fromJSON(object.opAttach) } : isSet(object.op_attach) ? { $case: "opAttach", opAttach: OpAttach.fromJSON(object.op_attach) } : isSet(object.writeChunk) ? { $case: "writeChunk", writeChunk: WriteChunk.fromJSON(object.writeChunk) } : isSet(object.write_chunk) ? { $case: "writeChunk", writeChunk: WriteChunk.fromJSON(object.write_chunk) } : isSet(object.browserControlEnsure) ? {
|
|
@@ -9802,7 +10457,7 @@ var ControlRequest = {
|
|
|
9802
10457
|
} : isSet(object.computer_frames_open) ? {
|
|
9803
10458
|
$case: "computerFramesOpen",
|
|
9804
10459
|
computerFramesOpen: ComputerFramesOpenRequest.fromJSON(object.computer_frames_open)
|
|
9805
|
-
} : void 0
|
|
10460
|
+
} : isSet(object.agentUpdateApply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyRequest.fromJSON(object.agentUpdateApply) } : isSet(object.agent_update_apply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyRequest.fromJSON(object.agent_update_apply) } : void 0
|
|
9806
10461
|
};
|
|
9807
10462
|
},
|
|
9808
10463
|
toJSON(message) {
|
|
@@ -9813,14 +10468,15 @@ var ControlRequest = {
|
|
|
9813
10468
|
if (message.epoch !== 0) {
|
|
9814
10469
|
obj.epoch = Math.round(message.epoch);
|
|
9815
10470
|
}
|
|
10471
|
+
if (message.resourcePolicy !== void 0) {
|
|
10472
|
+
obj.resourcePolicy = OperationResourcePolicy.toJSON(message.resourcePolicy);
|
|
10473
|
+
}
|
|
9816
10474
|
if (message.op?.$case === "ping") {
|
|
9817
10475
|
obj.ping = PingRequest.toJSON(message.op.ping);
|
|
9818
10476
|
} else if (message.op?.$case === "hello") {
|
|
9819
10477
|
obj.hello = Hello.toJSON(message.op.hello);
|
|
9820
10478
|
} else if (message.op?.$case === "resume") {
|
|
9821
10479
|
obj.resume = ResumeRequest.toJSON(message.op.resume);
|
|
9822
|
-
} else if (message.op?.$case === "exec") {
|
|
9823
|
-
obj.exec = ExecRequest.toJSON(message.op.exec);
|
|
9824
10480
|
} else if (message.op?.$case === "fsRead") {
|
|
9825
10481
|
obj.fsRead = FsReadRequest.toJSON(message.op.fsRead);
|
|
9826
10482
|
} else if (message.op?.$case === "fsWrite") {
|
|
@@ -9871,6 +10527,8 @@ var ControlRequest = {
|
|
|
9871
10527
|
obj.browserFramesOpen = BrowserFramesOpenRequest.toJSON(message.op.browserFramesOpen);
|
|
9872
10528
|
} else if (message.op?.$case === "computerFramesOpen") {
|
|
9873
10529
|
obj.computerFramesOpen = ComputerFramesOpenRequest.toJSON(message.op.computerFramesOpen);
|
|
10530
|
+
} else if (message.op?.$case === "agentUpdateApply") {
|
|
10531
|
+
obj.agentUpdateApply = AgentUpdateApplyRequest.toJSON(message.op.agentUpdateApply);
|
|
9874
10532
|
}
|
|
9875
10533
|
return obj;
|
|
9876
10534
|
},
|
|
@@ -9881,6 +10539,7 @@ var ControlRequest = {
|
|
|
9881
10539
|
const message = createBaseControlRequest();
|
|
9882
10540
|
message.requestId = object.requestId ?? "";
|
|
9883
10541
|
message.epoch = object.epoch ?? 0;
|
|
10542
|
+
message.resourcePolicy = object.resourcePolicy !== void 0 && object.resourcePolicy !== null ? OperationResourcePolicy.fromPartial(object.resourcePolicy) : void 0;
|
|
9884
10543
|
switch (object.op?.$case) {
|
|
9885
10544
|
case "ping": {
|
|
9886
10545
|
if (object.op?.ping !== void 0 && object.op?.ping !== null) {
|
|
@@ -9900,12 +10559,6 @@ var ControlRequest = {
|
|
|
9900
10559
|
}
|
|
9901
10560
|
break;
|
|
9902
10561
|
}
|
|
9903
|
-
case "exec": {
|
|
9904
|
-
if (object.op?.exec !== void 0 && object.op?.exec !== null) {
|
|
9905
|
-
message.op = { $case: "exec", exec: ExecRequest.fromPartial(object.op.exec) };
|
|
9906
|
-
}
|
|
9907
|
-
break;
|
|
9908
|
-
}
|
|
9909
10562
|
case "fsRead": {
|
|
9910
10563
|
if (object.op?.fsRead !== void 0 && object.op?.fsRead !== null) {
|
|
9911
10564
|
message.op = { $case: "fsRead", fsRead: FsReadRequest.fromPartial(object.op.fsRead) };
|
|
@@ -10074,6 +10727,15 @@ var ControlRequest = {
|
|
|
10074
10727
|
}
|
|
10075
10728
|
break;
|
|
10076
10729
|
}
|
|
10730
|
+
case "agentUpdateApply": {
|
|
10731
|
+
if (object.op?.agentUpdateApply !== void 0 && object.op?.agentUpdateApply !== null) {
|
|
10732
|
+
message.op = {
|
|
10733
|
+
$case: "agentUpdateApply",
|
|
10734
|
+
agentUpdateApply: AgentUpdateApplyRequest.fromPartial(object.op.agentUpdateApply)
|
|
10735
|
+
};
|
|
10736
|
+
}
|
|
10737
|
+
break;
|
|
10738
|
+
}
|
|
10077
10739
|
}
|
|
10078
10740
|
return message;
|
|
10079
10741
|
}
|
|
@@ -10099,9 +10761,6 @@ var ControlResponse = {
|
|
|
10099
10761
|
case "resume":
|
|
10100
10762
|
ResumeResponse.encode(message.result.resume, writer.uint32(98).fork()).join();
|
|
10101
10763
|
break;
|
|
10102
|
-
case "exec":
|
|
10103
|
-
ExecResponse.encode(message.result.exec, writer.uint32(106).fork()).join();
|
|
10104
|
-
break;
|
|
10105
10764
|
case "fsRead":
|
|
10106
10765
|
FsReadResponse.encode(message.result.fsRead, writer.uint32(114).fork()).join();
|
|
10107
10766
|
break;
|
|
@@ -10171,6 +10830,9 @@ var ControlResponse = {
|
|
|
10171
10830
|
case "computerFramesOpen":
|
|
10172
10831
|
ComputerFramesOpenResponse.encode(message.result.computerFramesOpen, writer.uint32(306).fork()).join();
|
|
10173
10832
|
break;
|
|
10833
|
+
case "agentUpdateApply":
|
|
10834
|
+
AgentUpdateApplyResponse.encode(message.result.agentUpdateApply, writer.uint32(314).fork()).join();
|
|
10835
|
+
break;
|
|
10174
10836
|
}
|
|
10175
10837
|
return writer;
|
|
10176
10838
|
},
|
|
@@ -10216,13 +10878,6 @@ var ControlResponse = {
|
|
|
10216
10878
|
message.result = { $case: "resume", resume: ResumeResponse.decode(reader, reader.uint32()) };
|
|
10217
10879
|
continue;
|
|
10218
10880
|
}
|
|
10219
|
-
case 13: {
|
|
10220
|
-
if (tag !== 106) {
|
|
10221
|
-
break;
|
|
10222
|
-
}
|
|
10223
|
-
message.result = { $case: "exec", exec: ExecResponse.decode(reader, reader.uint32()) };
|
|
10224
|
-
continue;
|
|
10225
|
-
}
|
|
10226
10881
|
case 14: {
|
|
10227
10882
|
if (tag !== 114) {
|
|
10228
10883
|
break;
|
|
@@ -10405,6 +11060,16 @@ var ControlResponse = {
|
|
|
10405
11060
|
};
|
|
10406
11061
|
continue;
|
|
10407
11062
|
}
|
|
11063
|
+
case 39: {
|
|
11064
|
+
if (tag !== 314) {
|
|
11065
|
+
break;
|
|
11066
|
+
}
|
|
11067
|
+
message.result = {
|
|
11068
|
+
$case: "agentUpdateApply",
|
|
11069
|
+
agentUpdateApply: AgentUpdateApplyResponse.decode(reader, reader.uint32())
|
|
11070
|
+
};
|
|
11071
|
+
continue;
|
|
11072
|
+
}
|
|
10408
11073
|
}
|
|
10409
11074
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10410
11075
|
break;
|
|
@@ -10417,7 +11082,7 @@ var ControlResponse = {
|
|
|
10417
11082
|
return {
|
|
10418
11083
|
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : isSet(object.request_id) ? globalThis.String(object.request_id) : "",
|
|
10419
11084
|
error: isSet(object.error) ? AgentError.fromJSON(object.error) : void 0,
|
|
10420
|
-
result: isSet(object.ping) ? { $case: "ping", ping: PingResponse.fromJSON(object.ping) } : isSet(object.hello) ? { $case: "hello", hello: HelloAck.fromJSON(object.hello) } : isSet(object.resume) ? { $case: "resume", resume: ResumeResponse.fromJSON(object.resume) } : isSet(object.
|
|
11085
|
+
result: isSet(object.ping) ? { $case: "ping", ping: PingResponse.fromJSON(object.ping) } : isSet(object.hello) ? { $case: "hello", hello: HelloAck.fromJSON(object.hello) } : isSet(object.resume) ? { $case: "resume", resume: ResumeResponse.fromJSON(object.resume) } : isSet(object.fsRead) ? { $case: "fsRead", fsRead: FsReadResponse.fromJSON(object.fsRead) } : isSet(object.fs_read) ? { $case: "fsRead", fsRead: FsReadResponse.fromJSON(object.fs_read) } : isSet(object.fsWrite) ? { $case: "fsWrite", fsWrite: FsWriteResponse.fromJSON(object.fsWrite) } : isSet(object.fs_write) ? { $case: "fsWrite", fsWrite: FsWriteResponse.fromJSON(object.fs_write) } : isSet(object.fsList) ? { $case: "fsList", fsList: FsListResponse.fromJSON(object.fsList) } : isSet(object.fs_list) ? { $case: "fsList", fsList: FsListResponse.fromJSON(object.fs_list) } : isSet(object.fsMkdir) ? { $case: "fsMkdir", fsMkdir: FsMkdirResponse.fromJSON(object.fsMkdir) } : isSet(object.fs_mkdir) ? { $case: "fsMkdir", fsMkdir: FsMkdirResponse.fromJSON(object.fs_mkdir) } : isSet(object.fsMove) ? { $case: "fsMove", fsMove: FsMoveResponse.fromJSON(object.fsMove) } : isSet(object.fs_move) ? { $case: "fsMove", fsMove: FsMoveResponse.fromJSON(object.fs_move) } : isSet(object.fsStat) ? { $case: "fsStat", fsStat: FsStatResponse.fromJSON(object.fsStat) } : isSet(object.fs_stat) ? { $case: "fsStat", fsStat: FsStatResponse.fromJSON(object.fs_stat) } : isSet(object.fsRemove) ? { $case: "fsRemove", fsRemove: FsRemoveResponse.fromJSON(object.fsRemove) } : isSet(object.fs_remove) ? { $case: "fsRemove", fsRemove: FsRemoveResponse.fromJSON(object.fs_remove) } : isSet(object.git) ? { $case: "git", git: GitResponse.fromJSON(object.git) } : isSet(object.ptyOpen) ? { $case: "ptyOpen", ptyOpen: PtyOpenResponse.fromJSON(object.ptyOpen) } : isSet(object.pty_open) ? { $case: "ptyOpen", ptyOpen: PtyOpenResponse.fromJSON(object.pty_open) } : isSet(object.ptyWrite) ? { $case: "ptyWrite", ptyWrite: PtyWriteResponse.fromJSON(object.ptyWrite) } : isSet(object.pty_write) ? { $case: "ptyWrite", ptyWrite: PtyWriteResponse.fromJSON(object.pty_write) } : isSet(object.ptyResize) ? { $case: "ptyResize", ptyResize: PtyResizeResponse.fromJSON(object.ptyResize) } : isSet(object.pty_resize) ? { $case: "ptyResize", ptyResize: PtyResizeResponse.fromJSON(object.pty_resize) } : isSet(object.ptyClose) ? { $case: "ptyClose", ptyClose: PtyCloseResponse.fromJSON(object.ptyClose) } : isSet(object.pty_close) ? { $case: "ptyClose", ptyClose: PtyCloseResponse.fromJSON(object.pty_close) } : isSet(object.desktopEnsure) ? { $case: "desktopEnsure", desktopEnsure: DesktopEnsureResponse.fromJSON(object.desktopEnsure) } : isSet(object.desktop_ensure) ? { $case: "desktopEnsure", desktopEnsure: DesktopEnsureResponse.fromJSON(object.desktop_ensure) } : isSet(object.metrics) ? { $case: "metrics", metrics: MetricsSample.fromJSON(object.metrics) } : isSet(object.updateMayProceed) ? { $case: "updateMayProceed", updateMayProceed: UpdateMayProceedResponse.fromJSON(object.updateMayProceed) } : isSet(object.update_may_proceed) ? { $case: "updateMayProceed", updateMayProceed: UpdateMayProceedResponse.fromJSON(object.update_may_proceed) } : isSet(object.desktopInput) ? { $case: "desktopInput", desktopInput: DesktopInputResponse.fromJSON(object.desktopInput) } : isSet(object.desktop_input) ? { $case: "desktopInput", desktopInput: DesktopInputResponse.fromJSON(object.desktop_input) } : isSet(object.desktopScreenshot) ? {
|
|
10421
11086
|
$case: "desktopScreenshot",
|
|
10422
11087
|
desktopScreenshot: DesktopScreenshotResponse.fromJSON(object.desktopScreenshot)
|
|
10423
11088
|
} : isSet(object.desktop_screenshot) ? {
|
|
@@ -10441,7 +11106,7 @@ var ControlResponse = {
|
|
|
10441
11106
|
} : isSet(object.computer_frames_open) ? {
|
|
10442
11107
|
$case: "computerFramesOpen",
|
|
10443
11108
|
computerFramesOpen: ComputerFramesOpenResponse.fromJSON(object.computer_frames_open)
|
|
10444
|
-
} : void 0
|
|
11109
|
+
} : isSet(object.agentUpdateApply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyResponse.fromJSON(object.agentUpdateApply) } : isSet(object.agent_update_apply) ? { $case: "agentUpdateApply", agentUpdateApply: AgentUpdateApplyResponse.fromJSON(object.agent_update_apply) } : void 0
|
|
10445
11110
|
};
|
|
10446
11111
|
},
|
|
10447
11112
|
toJSON(message) {
|
|
@@ -10458,8 +11123,6 @@ var ControlResponse = {
|
|
|
10458
11123
|
obj.hello = HelloAck.toJSON(message.result.hello);
|
|
10459
11124
|
} else if (message.result?.$case === "resume") {
|
|
10460
11125
|
obj.resume = ResumeResponse.toJSON(message.result.resume);
|
|
10461
|
-
} else if (message.result?.$case === "exec") {
|
|
10462
|
-
obj.exec = ExecResponse.toJSON(message.result.exec);
|
|
10463
11126
|
} else if (message.result?.$case === "fsRead") {
|
|
10464
11127
|
obj.fsRead = FsReadResponse.toJSON(message.result.fsRead);
|
|
10465
11128
|
} else if (message.result?.$case === "fsWrite") {
|
|
@@ -10506,6 +11169,8 @@ var ControlResponse = {
|
|
|
10506
11169
|
obj.browserFramesOpen = BrowserFramesOpenResponse.toJSON(message.result.browserFramesOpen);
|
|
10507
11170
|
} else if (message.result?.$case === "computerFramesOpen") {
|
|
10508
11171
|
obj.computerFramesOpen = ComputerFramesOpenResponse.toJSON(message.result.computerFramesOpen);
|
|
11172
|
+
} else if (message.result?.$case === "agentUpdateApply") {
|
|
11173
|
+
obj.agentUpdateApply = AgentUpdateApplyResponse.toJSON(message.result.agentUpdateApply);
|
|
10509
11174
|
}
|
|
10510
11175
|
return obj;
|
|
10511
11176
|
},
|
|
@@ -10535,12 +11200,6 @@ var ControlResponse = {
|
|
|
10535
11200
|
}
|
|
10536
11201
|
break;
|
|
10537
11202
|
}
|
|
10538
|
-
case "exec": {
|
|
10539
|
-
if (object.result?.exec !== void 0 && object.result?.exec !== null) {
|
|
10540
|
-
message.result = { $case: "exec", exec: ExecResponse.fromPartial(object.result.exec) };
|
|
10541
|
-
}
|
|
10542
|
-
break;
|
|
10543
|
-
}
|
|
10544
11203
|
case "fsRead": {
|
|
10545
11204
|
if (object.result?.fsRead !== void 0 && object.result?.fsRead !== null) {
|
|
10546
11205
|
message.result = { $case: "fsRead", fsRead: FsReadResponse.fromPartial(object.result.fsRead) };
|
|
@@ -10700,6 +11359,15 @@ var ControlResponse = {
|
|
|
10700
11359
|
}
|
|
10701
11360
|
break;
|
|
10702
11361
|
}
|
|
11362
|
+
case "agentUpdateApply": {
|
|
11363
|
+
if (object.result?.agentUpdateApply !== void 0 && object.result?.agentUpdateApply !== null) {
|
|
11364
|
+
message.result = {
|
|
11365
|
+
$case: "agentUpdateApply",
|
|
11366
|
+
agentUpdateApply: AgentUpdateApplyResponse.fromPartial(object.result.agentUpdateApply)
|
|
11367
|
+
};
|
|
11368
|
+
}
|
|
11369
|
+
break;
|
|
11370
|
+
}
|
|
10703
11371
|
}
|
|
10704
11372
|
return message;
|
|
10705
11373
|
}
|
|
@@ -10802,6 +11470,9 @@ var AgentEvent = {
|
|
|
10802
11470
|
case "goingOffline":
|
|
10803
11471
|
GoingOffline.encode(message.event.goingOffline, writer.uint32(90).fork()).join();
|
|
10804
11472
|
break;
|
|
11473
|
+
case "agentUpdateProgress":
|
|
11474
|
+
AgentUpdateProgress.encode(message.event.agentUpdateProgress, writer.uint32(98).fork()).join();
|
|
11475
|
+
break;
|
|
10805
11476
|
}
|
|
10806
11477
|
return writer;
|
|
10807
11478
|
},
|
|
@@ -10833,6 +11504,16 @@ var AgentEvent = {
|
|
|
10833
11504
|
message.event = { $case: "goingOffline", goingOffline: GoingOffline.decode(reader, reader.uint32()) };
|
|
10834
11505
|
continue;
|
|
10835
11506
|
}
|
|
11507
|
+
case 12: {
|
|
11508
|
+
if (tag !== 98) {
|
|
11509
|
+
break;
|
|
11510
|
+
}
|
|
11511
|
+
message.event = {
|
|
11512
|
+
$case: "agentUpdateProgress",
|
|
11513
|
+
agentUpdateProgress: AgentUpdateProgress.decode(reader, reader.uint32())
|
|
11514
|
+
};
|
|
11515
|
+
continue;
|
|
11516
|
+
}
|
|
10836
11517
|
}
|
|
10837
11518
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10838
11519
|
break;
|
|
@@ -10844,7 +11525,13 @@ var AgentEvent = {
|
|
|
10844
11525
|
fromJSON(object) {
|
|
10845
11526
|
return {
|
|
10846
11527
|
agentId: isSet(object.agentId) ? globalThis.String(object.agentId) : isSet(object.agent_id) ? globalThis.String(object.agent_id) : "",
|
|
10847
|
-
event: isSet(object.heartbeat) ? { $case: "heartbeat", heartbeat: Heartbeat.fromJSON(object.heartbeat) } : isSet(object.goingOffline) ? { $case: "goingOffline", goingOffline: GoingOffline.fromJSON(object.goingOffline) } : isSet(object.going_offline) ? { $case: "goingOffline", goingOffline: GoingOffline.fromJSON(object.going_offline) } :
|
|
11528
|
+
event: isSet(object.heartbeat) ? { $case: "heartbeat", heartbeat: Heartbeat.fromJSON(object.heartbeat) } : isSet(object.goingOffline) ? { $case: "goingOffline", goingOffline: GoingOffline.fromJSON(object.goingOffline) } : isSet(object.going_offline) ? { $case: "goingOffline", goingOffline: GoingOffline.fromJSON(object.going_offline) } : isSet(object.agentUpdateProgress) ? {
|
|
11529
|
+
$case: "agentUpdateProgress",
|
|
11530
|
+
agentUpdateProgress: AgentUpdateProgress.fromJSON(object.agentUpdateProgress)
|
|
11531
|
+
} : isSet(object.agent_update_progress) ? {
|
|
11532
|
+
$case: "agentUpdateProgress",
|
|
11533
|
+
agentUpdateProgress: AgentUpdateProgress.fromJSON(object.agent_update_progress)
|
|
11534
|
+
} : void 0
|
|
10848
11535
|
};
|
|
10849
11536
|
},
|
|
10850
11537
|
toJSON(message) {
|
|
@@ -10856,6 +11543,8 @@ var AgentEvent = {
|
|
|
10856
11543
|
obj.heartbeat = Heartbeat.toJSON(message.event.heartbeat);
|
|
10857
11544
|
} else if (message.event?.$case === "goingOffline") {
|
|
10858
11545
|
obj.goingOffline = GoingOffline.toJSON(message.event.goingOffline);
|
|
11546
|
+
} else if (message.event?.$case === "agentUpdateProgress") {
|
|
11547
|
+
obj.agentUpdateProgress = AgentUpdateProgress.toJSON(message.event.agentUpdateProgress);
|
|
10859
11548
|
}
|
|
10860
11549
|
return obj;
|
|
10861
11550
|
},
|
|
@@ -10878,6 +11567,15 @@ var AgentEvent = {
|
|
|
10878
11567
|
}
|
|
10879
11568
|
break;
|
|
10880
11569
|
}
|
|
11570
|
+
case "agentUpdateProgress": {
|
|
11571
|
+
if (object.event?.agentUpdateProgress !== void 0 && object.event?.agentUpdateProgress !== null) {
|
|
11572
|
+
message.event = {
|
|
11573
|
+
$case: "agentUpdateProgress",
|
|
11574
|
+
agentUpdateProgress: AgentUpdateProgress.fromPartial(object.event.agentUpdateProgress)
|
|
11575
|
+
};
|
|
11576
|
+
}
|
|
11577
|
+
break;
|
|
11578
|
+
}
|
|
10881
11579
|
}
|
|
10882
11580
|
return message;
|
|
10883
11581
|
}
|
|
@@ -11846,6 +12544,10 @@ export {
|
|
|
11846
12544
|
AgentError_DetailEntry,
|
|
11847
12545
|
AgentEvent,
|
|
11848
12546
|
AgentEventAck,
|
|
12547
|
+
AgentUpdateApplyRequest,
|
|
12548
|
+
AgentUpdateApplyResponse,
|
|
12549
|
+
AgentUpdateProgress,
|
|
12550
|
+
AgentUpdateStage,
|
|
11849
12551
|
Arch,
|
|
11850
12552
|
AttachedBrowserDeviceAnnouncement,
|
|
11851
12553
|
AttachedBrowserDeviceCapabilities,
|
|
@@ -11928,6 +12630,7 @@ export {
|
|
|
11928
12630
|
OpStarted,
|
|
11929
12631
|
OpState,
|
|
11930
12632
|
OpStatus,
|
|
12633
|
+
OperationResourcePolicy,
|
|
11931
12634
|
Os,
|
|
11932
12635
|
PingRequest,
|
|
11933
12636
|
PingResponse,
|
|
@@ -11962,6 +12665,8 @@ export {
|
|
|
11962
12665
|
UpdateMayProceedResponse,
|
|
11963
12666
|
WriteChunk,
|
|
11964
12667
|
WriteChunkAck,
|
|
12668
|
+
agentUpdateStageFromJSON,
|
|
12669
|
+
agentUpdateStageToJSON,
|
|
11965
12670
|
archFromJSON,
|
|
11966
12671
|
archToJSON,
|
|
11967
12672
|
deviceAuthStateFromJSON,
|