@opengeni/agent-proto 0.4.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 +127 -7
- package/dist/index.js +768 -48
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/gen/opengeni_agent.ts +1082 -96
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
|
}
|
|
@@ -4250,7 +4492,7 @@ var GitFileStatus = {
|
|
|
4250
4492
|
}
|
|
4251
4493
|
};
|
|
4252
4494
|
function createBasePtyOpenRequest() {
|
|
4253
|
-
return { command: [], cwd: "", env: {}, cols: 0, rows: 0, term: "" };
|
|
4495
|
+
return { command: [], cwd: "", env: {}, cols: 0, rows: 0, term: "", scopeId: "" };
|
|
4254
4496
|
}
|
|
4255
4497
|
var PtyOpenRequest = {
|
|
4256
4498
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -4272,6 +4514,9 @@ var PtyOpenRequest = {
|
|
|
4272
4514
|
if (message.term !== "") {
|
|
4273
4515
|
writer.uint32(50).string(message.term);
|
|
4274
4516
|
}
|
|
4517
|
+
if (message.scopeId !== "") {
|
|
4518
|
+
writer.uint32(58).string(message.scopeId);
|
|
4519
|
+
}
|
|
4275
4520
|
return writer;
|
|
4276
4521
|
},
|
|
4277
4522
|
decode(input, length) {
|
|
@@ -4326,6 +4571,13 @@ var PtyOpenRequest = {
|
|
|
4326
4571
|
message.term = reader.string();
|
|
4327
4572
|
continue;
|
|
4328
4573
|
}
|
|
4574
|
+
case 7: {
|
|
4575
|
+
if (tag !== 58) {
|
|
4576
|
+
break;
|
|
4577
|
+
}
|
|
4578
|
+
message.scopeId = reader.string();
|
|
4579
|
+
continue;
|
|
4580
|
+
}
|
|
4329
4581
|
}
|
|
4330
4582
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4331
4583
|
break;
|
|
@@ -4347,7 +4599,8 @@ var PtyOpenRequest = {
|
|
|
4347
4599
|
) : {},
|
|
4348
4600
|
cols: isSet(object.cols) ? globalThis.Number(object.cols) : 0,
|
|
4349
4601
|
rows: isSet(object.rows) ? globalThis.Number(object.rows) : 0,
|
|
4350
|
-
term: isSet(object.term) ? globalThis.String(object.term) : ""
|
|
4602
|
+
term: isSet(object.term) ? globalThis.String(object.term) : "",
|
|
4603
|
+
scopeId: isSet(object.scopeId) ? globalThis.String(object.scopeId) : isSet(object.scope_id) ? globalThis.String(object.scope_id) : ""
|
|
4351
4604
|
};
|
|
4352
4605
|
},
|
|
4353
4606
|
toJSON(message) {
|
|
@@ -4376,6 +4629,9 @@ var PtyOpenRequest = {
|
|
|
4376
4629
|
if (message.term !== "") {
|
|
4377
4630
|
obj.term = message.term;
|
|
4378
4631
|
}
|
|
4632
|
+
if (message.scopeId !== "") {
|
|
4633
|
+
obj.scopeId = message.scopeId;
|
|
4634
|
+
}
|
|
4379
4635
|
return obj;
|
|
4380
4636
|
},
|
|
4381
4637
|
create(base) {
|
|
@@ -4397,6 +4653,7 @@ var PtyOpenRequest = {
|
|
|
4397
4653
|
message.cols = object.cols ?? 0;
|
|
4398
4654
|
message.rows = object.rows ?? 0;
|
|
4399
4655
|
message.term = object.term ?? "";
|
|
4656
|
+
message.scopeId = object.scopeId ?? "";
|
|
4400
4657
|
return message;
|
|
4401
4658
|
}
|
|
4402
4659
|
};
|
|
@@ -7834,6 +8091,405 @@ var UpdateMayProceedResponse = {
|
|
|
7834
8091
|
return message;
|
|
7835
8092
|
}
|
|
7836
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
|
+
};
|
|
7837
8493
|
function createBaseOpExit() {
|
|
7838
8494
|
return {
|
|
7839
8495
|
exitCode: 0,
|
|
@@ -9417,7 +10073,7 @@ var OpAck = {
|
|
|
9417
10073
|
}
|
|
9418
10074
|
};
|
|
9419
10075
|
function createBaseControlRequest() {
|
|
9420
|
-
return { requestId: "", epoch: 0, op: void 0 };
|
|
10076
|
+
return { requestId: "", epoch: 0, resourcePolicy: void 0, op: void 0 };
|
|
9421
10077
|
}
|
|
9422
10078
|
var ControlRequest = {
|
|
9423
10079
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -9427,6 +10083,9 @@ var ControlRequest = {
|
|
|
9427
10083
|
if (message.epoch !== 0) {
|
|
9428
10084
|
writer.uint32(16).uint32(message.epoch);
|
|
9429
10085
|
}
|
|
10086
|
+
if (message.resourcePolicy !== void 0) {
|
|
10087
|
+
OperationResourcePolicy.encode(message.resourcePolicy, writer.uint32(26).fork()).join();
|
|
10088
|
+
}
|
|
9430
10089
|
switch (message.op?.$case) {
|
|
9431
10090
|
case "ping":
|
|
9432
10091
|
PingRequest.encode(message.op.ping, writer.uint32(82).fork()).join();
|
|
@@ -9437,9 +10096,6 @@ var ControlRequest = {
|
|
|
9437
10096
|
case "resume":
|
|
9438
10097
|
ResumeRequest.encode(message.op.resume, writer.uint32(98).fork()).join();
|
|
9439
10098
|
break;
|
|
9440
|
-
case "exec":
|
|
9441
|
-
ExecRequest.encode(message.op.exec, writer.uint32(106).fork()).join();
|
|
9442
|
-
break;
|
|
9443
10099
|
case "fsRead":
|
|
9444
10100
|
FsReadRequest.encode(message.op.fsRead, writer.uint32(114).fork()).join();
|
|
9445
10101
|
break;
|
|
@@ -9515,6 +10171,9 @@ var ControlRequest = {
|
|
|
9515
10171
|
case "computerFramesOpen":
|
|
9516
10172
|
ComputerFramesOpenRequest.encode(message.op.computerFramesOpen, writer.uint32(306).fork()).join();
|
|
9517
10173
|
break;
|
|
10174
|
+
case "agentUpdateApply":
|
|
10175
|
+
AgentUpdateApplyRequest.encode(message.op.agentUpdateApply, writer.uint32(314).fork()).join();
|
|
10176
|
+
break;
|
|
9518
10177
|
}
|
|
9519
10178
|
return writer;
|
|
9520
10179
|
},
|
|
@@ -9539,6 +10198,13 @@ var ControlRequest = {
|
|
|
9539
10198
|
message.epoch = reader.uint32();
|
|
9540
10199
|
continue;
|
|
9541
10200
|
}
|
|
10201
|
+
case 3: {
|
|
10202
|
+
if (tag !== 26) {
|
|
10203
|
+
break;
|
|
10204
|
+
}
|
|
10205
|
+
message.resourcePolicy = OperationResourcePolicy.decode(reader, reader.uint32());
|
|
10206
|
+
continue;
|
|
10207
|
+
}
|
|
9542
10208
|
case 10: {
|
|
9543
10209
|
if (tag !== 82) {
|
|
9544
10210
|
break;
|
|
@@ -9560,13 +10226,6 @@ var ControlRequest = {
|
|
|
9560
10226
|
message.op = { $case: "resume", resume: ResumeRequest.decode(reader, reader.uint32()) };
|
|
9561
10227
|
continue;
|
|
9562
10228
|
}
|
|
9563
|
-
case 13: {
|
|
9564
|
-
if (tag !== 106) {
|
|
9565
|
-
break;
|
|
9566
|
-
}
|
|
9567
|
-
message.op = { $case: "exec", exec: ExecRequest.decode(reader, reader.uint32()) };
|
|
9568
|
-
continue;
|
|
9569
|
-
}
|
|
9570
10229
|
case 14: {
|
|
9571
10230
|
if (tag !== 114) {
|
|
9572
10231
|
break;
|
|
@@ -9757,6 +10416,16 @@ var ControlRequest = {
|
|
|
9757
10416
|
};
|
|
9758
10417
|
continue;
|
|
9759
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
|
+
}
|
|
9760
10429
|
}
|
|
9761
10430
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9762
10431
|
break;
|
|
@@ -9769,7 +10438,8 @@ var ControlRequest = {
|
|
|
9769
10438
|
return {
|
|
9770
10439
|
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : isSet(object.request_id) ? globalThis.String(object.request_id) : "",
|
|
9771
10440
|
epoch: isSet(object.epoch) ? globalThis.Number(object.epoch) : 0,
|
|
9772
|
-
|
|
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) ? {
|
|
9773
10443
|
$case: "desktopScreenshot",
|
|
9774
10444
|
desktopScreenshot: DesktopScreenshotRequest.fromJSON(object.desktop_screenshot)
|
|
9775
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) ? {
|
|
@@ -9787,7 +10457,7 @@ var ControlRequest = {
|
|
|
9787
10457
|
} : isSet(object.computer_frames_open) ? {
|
|
9788
10458
|
$case: "computerFramesOpen",
|
|
9789
10459
|
computerFramesOpen: ComputerFramesOpenRequest.fromJSON(object.computer_frames_open)
|
|
9790
|
-
} : 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
|
|
9791
10461
|
};
|
|
9792
10462
|
},
|
|
9793
10463
|
toJSON(message) {
|
|
@@ -9798,14 +10468,15 @@ var ControlRequest = {
|
|
|
9798
10468
|
if (message.epoch !== 0) {
|
|
9799
10469
|
obj.epoch = Math.round(message.epoch);
|
|
9800
10470
|
}
|
|
10471
|
+
if (message.resourcePolicy !== void 0) {
|
|
10472
|
+
obj.resourcePolicy = OperationResourcePolicy.toJSON(message.resourcePolicy);
|
|
10473
|
+
}
|
|
9801
10474
|
if (message.op?.$case === "ping") {
|
|
9802
10475
|
obj.ping = PingRequest.toJSON(message.op.ping);
|
|
9803
10476
|
} else if (message.op?.$case === "hello") {
|
|
9804
10477
|
obj.hello = Hello.toJSON(message.op.hello);
|
|
9805
10478
|
} else if (message.op?.$case === "resume") {
|
|
9806
10479
|
obj.resume = ResumeRequest.toJSON(message.op.resume);
|
|
9807
|
-
} else if (message.op?.$case === "exec") {
|
|
9808
|
-
obj.exec = ExecRequest.toJSON(message.op.exec);
|
|
9809
10480
|
} else if (message.op?.$case === "fsRead") {
|
|
9810
10481
|
obj.fsRead = FsReadRequest.toJSON(message.op.fsRead);
|
|
9811
10482
|
} else if (message.op?.$case === "fsWrite") {
|
|
@@ -9856,6 +10527,8 @@ var ControlRequest = {
|
|
|
9856
10527
|
obj.browserFramesOpen = BrowserFramesOpenRequest.toJSON(message.op.browserFramesOpen);
|
|
9857
10528
|
} else if (message.op?.$case === "computerFramesOpen") {
|
|
9858
10529
|
obj.computerFramesOpen = ComputerFramesOpenRequest.toJSON(message.op.computerFramesOpen);
|
|
10530
|
+
} else if (message.op?.$case === "agentUpdateApply") {
|
|
10531
|
+
obj.agentUpdateApply = AgentUpdateApplyRequest.toJSON(message.op.agentUpdateApply);
|
|
9859
10532
|
}
|
|
9860
10533
|
return obj;
|
|
9861
10534
|
},
|
|
@@ -9866,6 +10539,7 @@ var ControlRequest = {
|
|
|
9866
10539
|
const message = createBaseControlRequest();
|
|
9867
10540
|
message.requestId = object.requestId ?? "";
|
|
9868
10541
|
message.epoch = object.epoch ?? 0;
|
|
10542
|
+
message.resourcePolicy = object.resourcePolicy !== void 0 && object.resourcePolicy !== null ? OperationResourcePolicy.fromPartial(object.resourcePolicy) : void 0;
|
|
9869
10543
|
switch (object.op?.$case) {
|
|
9870
10544
|
case "ping": {
|
|
9871
10545
|
if (object.op?.ping !== void 0 && object.op?.ping !== null) {
|
|
@@ -9885,12 +10559,6 @@ var ControlRequest = {
|
|
|
9885
10559
|
}
|
|
9886
10560
|
break;
|
|
9887
10561
|
}
|
|
9888
|
-
case "exec": {
|
|
9889
|
-
if (object.op?.exec !== void 0 && object.op?.exec !== null) {
|
|
9890
|
-
message.op = { $case: "exec", exec: ExecRequest.fromPartial(object.op.exec) };
|
|
9891
|
-
}
|
|
9892
|
-
break;
|
|
9893
|
-
}
|
|
9894
10562
|
case "fsRead": {
|
|
9895
10563
|
if (object.op?.fsRead !== void 0 && object.op?.fsRead !== null) {
|
|
9896
10564
|
message.op = { $case: "fsRead", fsRead: FsReadRequest.fromPartial(object.op.fsRead) };
|
|
@@ -10059,6 +10727,15 @@ var ControlRequest = {
|
|
|
10059
10727
|
}
|
|
10060
10728
|
break;
|
|
10061
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
|
+
}
|
|
10062
10739
|
}
|
|
10063
10740
|
return message;
|
|
10064
10741
|
}
|
|
@@ -10084,9 +10761,6 @@ var ControlResponse = {
|
|
|
10084
10761
|
case "resume":
|
|
10085
10762
|
ResumeResponse.encode(message.result.resume, writer.uint32(98).fork()).join();
|
|
10086
10763
|
break;
|
|
10087
|
-
case "exec":
|
|
10088
|
-
ExecResponse.encode(message.result.exec, writer.uint32(106).fork()).join();
|
|
10089
|
-
break;
|
|
10090
10764
|
case "fsRead":
|
|
10091
10765
|
FsReadResponse.encode(message.result.fsRead, writer.uint32(114).fork()).join();
|
|
10092
10766
|
break;
|
|
@@ -10156,6 +10830,9 @@ var ControlResponse = {
|
|
|
10156
10830
|
case "computerFramesOpen":
|
|
10157
10831
|
ComputerFramesOpenResponse.encode(message.result.computerFramesOpen, writer.uint32(306).fork()).join();
|
|
10158
10832
|
break;
|
|
10833
|
+
case "agentUpdateApply":
|
|
10834
|
+
AgentUpdateApplyResponse.encode(message.result.agentUpdateApply, writer.uint32(314).fork()).join();
|
|
10835
|
+
break;
|
|
10159
10836
|
}
|
|
10160
10837
|
return writer;
|
|
10161
10838
|
},
|
|
@@ -10201,13 +10878,6 @@ var ControlResponse = {
|
|
|
10201
10878
|
message.result = { $case: "resume", resume: ResumeResponse.decode(reader, reader.uint32()) };
|
|
10202
10879
|
continue;
|
|
10203
10880
|
}
|
|
10204
|
-
case 13: {
|
|
10205
|
-
if (tag !== 106) {
|
|
10206
|
-
break;
|
|
10207
|
-
}
|
|
10208
|
-
message.result = { $case: "exec", exec: ExecResponse.decode(reader, reader.uint32()) };
|
|
10209
|
-
continue;
|
|
10210
|
-
}
|
|
10211
10881
|
case 14: {
|
|
10212
10882
|
if (tag !== 114) {
|
|
10213
10883
|
break;
|
|
@@ -10390,6 +11060,16 @@ var ControlResponse = {
|
|
|
10390
11060
|
};
|
|
10391
11061
|
continue;
|
|
10392
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
|
+
}
|
|
10393
11073
|
}
|
|
10394
11074
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10395
11075
|
break;
|
|
@@ -10402,7 +11082,7 @@ var ControlResponse = {
|
|
|
10402
11082
|
return {
|
|
10403
11083
|
requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : isSet(object.request_id) ? globalThis.String(object.request_id) : "",
|
|
10404
11084
|
error: isSet(object.error) ? AgentError.fromJSON(object.error) : void 0,
|
|
10405
|
-
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) ? {
|
|
10406
11086
|
$case: "desktopScreenshot",
|
|
10407
11087
|
desktopScreenshot: DesktopScreenshotResponse.fromJSON(object.desktopScreenshot)
|
|
10408
11088
|
} : isSet(object.desktop_screenshot) ? {
|
|
@@ -10426,7 +11106,7 @@ var ControlResponse = {
|
|
|
10426
11106
|
} : isSet(object.computer_frames_open) ? {
|
|
10427
11107
|
$case: "computerFramesOpen",
|
|
10428
11108
|
computerFramesOpen: ComputerFramesOpenResponse.fromJSON(object.computer_frames_open)
|
|
10429
|
-
} : 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
|
|
10430
11110
|
};
|
|
10431
11111
|
},
|
|
10432
11112
|
toJSON(message) {
|
|
@@ -10443,8 +11123,6 @@ var ControlResponse = {
|
|
|
10443
11123
|
obj.hello = HelloAck.toJSON(message.result.hello);
|
|
10444
11124
|
} else if (message.result?.$case === "resume") {
|
|
10445
11125
|
obj.resume = ResumeResponse.toJSON(message.result.resume);
|
|
10446
|
-
} else if (message.result?.$case === "exec") {
|
|
10447
|
-
obj.exec = ExecResponse.toJSON(message.result.exec);
|
|
10448
11126
|
} else if (message.result?.$case === "fsRead") {
|
|
10449
11127
|
obj.fsRead = FsReadResponse.toJSON(message.result.fsRead);
|
|
10450
11128
|
} else if (message.result?.$case === "fsWrite") {
|
|
@@ -10491,6 +11169,8 @@ var ControlResponse = {
|
|
|
10491
11169
|
obj.browserFramesOpen = BrowserFramesOpenResponse.toJSON(message.result.browserFramesOpen);
|
|
10492
11170
|
} else if (message.result?.$case === "computerFramesOpen") {
|
|
10493
11171
|
obj.computerFramesOpen = ComputerFramesOpenResponse.toJSON(message.result.computerFramesOpen);
|
|
11172
|
+
} else if (message.result?.$case === "agentUpdateApply") {
|
|
11173
|
+
obj.agentUpdateApply = AgentUpdateApplyResponse.toJSON(message.result.agentUpdateApply);
|
|
10494
11174
|
}
|
|
10495
11175
|
return obj;
|
|
10496
11176
|
},
|
|
@@ -10520,12 +11200,6 @@ var ControlResponse = {
|
|
|
10520
11200
|
}
|
|
10521
11201
|
break;
|
|
10522
11202
|
}
|
|
10523
|
-
case "exec": {
|
|
10524
|
-
if (object.result?.exec !== void 0 && object.result?.exec !== null) {
|
|
10525
|
-
message.result = { $case: "exec", exec: ExecResponse.fromPartial(object.result.exec) };
|
|
10526
|
-
}
|
|
10527
|
-
break;
|
|
10528
|
-
}
|
|
10529
11203
|
case "fsRead": {
|
|
10530
11204
|
if (object.result?.fsRead !== void 0 && object.result?.fsRead !== null) {
|
|
10531
11205
|
message.result = { $case: "fsRead", fsRead: FsReadResponse.fromPartial(object.result.fsRead) };
|
|
@@ -10685,6 +11359,15 @@ var ControlResponse = {
|
|
|
10685
11359
|
}
|
|
10686
11360
|
break;
|
|
10687
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
|
+
}
|
|
10688
11371
|
}
|
|
10689
11372
|
return message;
|
|
10690
11373
|
}
|
|
@@ -10787,6 +11470,9 @@ var AgentEvent = {
|
|
|
10787
11470
|
case "goingOffline":
|
|
10788
11471
|
GoingOffline.encode(message.event.goingOffline, writer.uint32(90).fork()).join();
|
|
10789
11472
|
break;
|
|
11473
|
+
case "agentUpdateProgress":
|
|
11474
|
+
AgentUpdateProgress.encode(message.event.agentUpdateProgress, writer.uint32(98).fork()).join();
|
|
11475
|
+
break;
|
|
10790
11476
|
}
|
|
10791
11477
|
return writer;
|
|
10792
11478
|
},
|
|
@@ -10818,6 +11504,16 @@ var AgentEvent = {
|
|
|
10818
11504
|
message.event = { $case: "goingOffline", goingOffline: GoingOffline.decode(reader, reader.uint32()) };
|
|
10819
11505
|
continue;
|
|
10820
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
|
+
}
|
|
10821
11517
|
}
|
|
10822
11518
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10823
11519
|
break;
|
|
@@ -10829,7 +11525,13 @@ var AgentEvent = {
|
|
|
10829
11525
|
fromJSON(object) {
|
|
10830
11526
|
return {
|
|
10831
11527
|
agentId: isSet(object.agentId) ? globalThis.String(object.agentId) : isSet(object.agent_id) ? globalThis.String(object.agent_id) : "",
|
|
10832
|
-
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
|
|
10833
11535
|
};
|
|
10834
11536
|
},
|
|
10835
11537
|
toJSON(message) {
|
|
@@ -10841,6 +11543,8 @@ var AgentEvent = {
|
|
|
10841
11543
|
obj.heartbeat = Heartbeat.toJSON(message.event.heartbeat);
|
|
10842
11544
|
} else if (message.event?.$case === "goingOffline") {
|
|
10843
11545
|
obj.goingOffline = GoingOffline.toJSON(message.event.goingOffline);
|
|
11546
|
+
} else if (message.event?.$case === "agentUpdateProgress") {
|
|
11547
|
+
obj.agentUpdateProgress = AgentUpdateProgress.toJSON(message.event.agentUpdateProgress);
|
|
10844
11548
|
}
|
|
10845
11549
|
return obj;
|
|
10846
11550
|
},
|
|
@@ -10863,6 +11567,15 @@ var AgentEvent = {
|
|
|
10863
11567
|
}
|
|
10864
11568
|
break;
|
|
10865
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
|
+
}
|
|
10866
11579
|
}
|
|
10867
11580
|
return message;
|
|
10868
11581
|
}
|
|
@@ -11831,6 +12544,10 @@ export {
|
|
|
11831
12544
|
AgentError_DetailEntry,
|
|
11832
12545
|
AgentEvent,
|
|
11833
12546
|
AgentEventAck,
|
|
12547
|
+
AgentUpdateApplyRequest,
|
|
12548
|
+
AgentUpdateApplyResponse,
|
|
12549
|
+
AgentUpdateProgress,
|
|
12550
|
+
AgentUpdateStage,
|
|
11834
12551
|
Arch,
|
|
11835
12552
|
AttachedBrowserDeviceAnnouncement,
|
|
11836
12553
|
AttachedBrowserDeviceCapabilities,
|
|
@@ -11913,6 +12630,7 @@ export {
|
|
|
11913
12630
|
OpStarted,
|
|
11914
12631
|
OpState,
|
|
11915
12632
|
OpStatus,
|
|
12633
|
+
OperationResourcePolicy,
|
|
11916
12634
|
Os,
|
|
11917
12635
|
PingRequest,
|
|
11918
12636
|
PingResponse,
|
|
@@ -11947,6 +12665,8 @@ export {
|
|
|
11947
12665
|
UpdateMayProceedResponse,
|
|
11948
12666
|
WriteChunk,
|
|
11949
12667
|
WriteChunkAck,
|
|
12668
|
+
agentUpdateStageFromJSON,
|
|
12669
|
+
agentUpdateStageToJSON,
|
|
11950
12670
|
archFromJSON,
|
|
11951
12671
|
archToJSON,
|
|
11952
12672
|
deviceAuthStateFromJSON,
|