@opengeni/agent-proto 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13,6 +13,7 @@ var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
13
13
  ErrorCode2[ErrorCode2["ERROR_CODE_STREAM"] = 8] = "ERROR_CODE_STREAM";
14
14
  ErrorCode2[ErrorCode2["ERROR_CODE_AGENT_OFFLINE"] = 9] = "ERROR_CODE_AGENT_OFFLINE";
15
15
  ErrorCode2[ErrorCode2["ERROR_CODE_FENCED"] = 10] = "ERROR_CODE_FENCED";
16
+ ErrorCode2[ErrorCode2["ERROR_CODE_PAYLOAD_TOO_LARGE"] = 11] = "ERROR_CODE_PAYLOAD_TOO_LARGE";
16
17
  return ErrorCode2;
17
18
  })(ErrorCode || {});
18
19
  function errorCodeFromJSON(object) {
@@ -50,6 +51,9 @@ function errorCodeFromJSON(object) {
50
51
  case 10:
51
52
  case "ERROR_CODE_FENCED":
52
53
  return 10 /* ERROR_CODE_FENCED */;
54
+ case 11:
55
+ case "ERROR_CODE_PAYLOAD_TOO_LARGE":
56
+ return 11 /* ERROR_CODE_PAYLOAD_TOO_LARGE */;
53
57
  default:
54
58
  throw new globalThis.Error("Unrecognized enum value " + object + " for enum ErrorCode");
55
59
  }
@@ -78,6 +82,8 @@ function errorCodeToJSON(object) {
78
82
  return "ERROR_CODE_AGENT_OFFLINE";
79
83
  case 10 /* ERROR_CODE_FENCED */:
80
84
  return "ERROR_CODE_FENCED";
85
+ case 11 /* ERROR_CODE_PAYLOAD_TOO_LARGE */:
86
+ return "ERROR_CODE_PAYLOAD_TOO_LARGE";
81
87
  default:
82
88
  throw new globalThis.Error("Unrecognized enum value " + object + " for enum ErrorCode");
83
89
  }
@@ -380,7 +386,9 @@ function goingOfflineReasonFromJSON(object) {
380
386
  case "GOING_OFFLINE_REASON_HOST_SHUTDOWN":
381
387
  return 3 /* GOING_OFFLINE_REASON_HOST_SHUTDOWN */;
382
388
  default:
383
- throw new globalThis.Error("Unrecognized enum value " + object + " for enum GoingOfflineReason");
389
+ throw new globalThis.Error(
390
+ "Unrecognized enum value " + object + " for enum GoingOfflineReason"
391
+ );
384
392
  }
385
393
  }
386
394
  function goingOfflineReasonToJSON(object) {
@@ -394,7 +402,126 @@ function goingOfflineReasonToJSON(object) {
394
402
  case 3 /* GOING_OFFLINE_REASON_HOST_SHUTDOWN */:
395
403
  return "GOING_OFFLINE_REASON_HOST_SHUTDOWN";
396
404
  default:
397
- throw new globalThis.Error("Unrecognized enum value " + object + " for enum GoingOfflineReason");
405
+ throw new globalThis.Error(
406
+ "Unrecognized enum value " + object + " for enum GoingOfflineReason"
407
+ );
408
+ }
409
+ }
410
+ var OpChannel = /* @__PURE__ */ ((OpChannel2) => {
411
+ OpChannel2[OpChannel2["OP_CHANNEL_UNSPECIFIED"] = 0] = "OP_CHANNEL_UNSPECIFIED";
412
+ OpChannel2[OpChannel2["OP_CHANNEL_STDOUT"] = 1] = "OP_CHANNEL_STDOUT";
413
+ OpChannel2[OpChannel2["OP_CHANNEL_STDERR"] = 2] = "OP_CHANNEL_STDERR";
414
+ OpChannel2[OpChannel2["OP_CHANNEL_CONTENT"] = 3] = "OP_CHANNEL_CONTENT";
415
+ return OpChannel2;
416
+ })(OpChannel || {});
417
+ function opChannelFromJSON(object) {
418
+ switch (object) {
419
+ case 0:
420
+ case "OP_CHANNEL_UNSPECIFIED":
421
+ return 0 /* OP_CHANNEL_UNSPECIFIED */;
422
+ case 1:
423
+ case "OP_CHANNEL_STDOUT":
424
+ return 1 /* OP_CHANNEL_STDOUT */;
425
+ case 2:
426
+ case "OP_CHANNEL_STDERR":
427
+ return 2 /* OP_CHANNEL_STDERR */;
428
+ case 3:
429
+ case "OP_CHANNEL_CONTENT":
430
+ return 3 /* OP_CHANNEL_CONTENT */;
431
+ default:
432
+ throw new globalThis.Error("Unrecognized enum value " + object + " for enum OpChannel");
433
+ }
434
+ }
435
+ function opChannelToJSON(object) {
436
+ switch (object) {
437
+ case 0 /* OP_CHANNEL_UNSPECIFIED */:
438
+ return "OP_CHANNEL_UNSPECIFIED";
439
+ case 1 /* OP_CHANNEL_STDOUT */:
440
+ return "OP_CHANNEL_STDOUT";
441
+ case 2 /* OP_CHANNEL_STDERR */:
442
+ return "OP_CHANNEL_STDERR";
443
+ case 3 /* OP_CHANNEL_CONTENT */:
444
+ return "OP_CHANNEL_CONTENT";
445
+ default:
446
+ throw new globalThis.Error("Unrecognized enum value " + object + " for enum OpChannel");
447
+ }
448
+ }
449
+ var OpState = /* @__PURE__ */ ((OpState2) => {
450
+ OpState2[OpState2["OP_STATE_UNSPECIFIED"] = 0] = "OP_STATE_UNSPECIFIED";
451
+ OpState2[OpState2["OP_STATE_ACCEPTED"] = 1] = "OP_STATE_ACCEPTED";
452
+ OpState2[OpState2["OP_STATE_RUNNING"] = 2] = "OP_STATE_RUNNING";
453
+ OpState2[OpState2["OP_STATE_COMPLETE"] = 3] = "OP_STATE_COMPLETE";
454
+ OpState2[OpState2["OP_STATE_LOST"] = 4] = "OP_STATE_LOST";
455
+ return OpState2;
456
+ })(OpState || {});
457
+ function opStateFromJSON(object) {
458
+ switch (object) {
459
+ case 0:
460
+ case "OP_STATE_UNSPECIFIED":
461
+ return 0 /* OP_STATE_UNSPECIFIED */;
462
+ case 1:
463
+ case "OP_STATE_ACCEPTED":
464
+ return 1 /* OP_STATE_ACCEPTED */;
465
+ case 2:
466
+ case "OP_STATE_RUNNING":
467
+ return 2 /* OP_STATE_RUNNING */;
468
+ case 3:
469
+ case "OP_STATE_COMPLETE":
470
+ return 3 /* OP_STATE_COMPLETE */;
471
+ case 4:
472
+ case "OP_STATE_LOST":
473
+ return 4 /* OP_STATE_LOST */;
474
+ default:
475
+ throw new globalThis.Error("Unrecognized enum value " + object + " for enum OpState");
476
+ }
477
+ }
478
+ function opStateToJSON(object) {
479
+ switch (object) {
480
+ case 0 /* OP_STATE_UNSPECIFIED */:
481
+ return "OP_STATE_UNSPECIFIED";
482
+ case 1 /* OP_STATE_ACCEPTED */:
483
+ return "OP_STATE_ACCEPTED";
484
+ case 2 /* OP_STATE_RUNNING */:
485
+ return "OP_STATE_RUNNING";
486
+ case 3 /* OP_STATE_COMPLETE */:
487
+ return "OP_STATE_COMPLETE";
488
+ case 4 /* OP_STATE_LOST */:
489
+ return "OP_STATE_LOST";
490
+ default:
491
+ throw new globalThis.Error("Unrecognized enum value " + object + " for enum OpState");
492
+ }
493
+ }
494
+ var OpLostReason = /* @__PURE__ */ ((OpLostReason2) => {
495
+ OpLostReason2[OpLostReason2["OP_LOST_REASON_UNSPECIFIED"] = 0] = "OP_LOST_REASON_UNSPECIFIED";
496
+ OpLostReason2[OpLostReason2["OP_LOST_REASON_EVICTED"] = 1] = "OP_LOST_REASON_EVICTED";
497
+ OpLostReason2[OpLostReason2["OP_LOST_REASON_AGENT_RESTARTED"] = 2] = "OP_LOST_REASON_AGENT_RESTARTED";
498
+ return OpLostReason2;
499
+ })(OpLostReason || {});
500
+ function opLostReasonFromJSON(object) {
501
+ switch (object) {
502
+ case 0:
503
+ case "OP_LOST_REASON_UNSPECIFIED":
504
+ return 0 /* OP_LOST_REASON_UNSPECIFIED */;
505
+ case 1:
506
+ case "OP_LOST_REASON_EVICTED":
507
+ return 1 /* OP_LOST_REASON_EVICTED */;
508
+ case 2:
509
+ case "OP_LOST_REASON_AGENT_RESTARTED":
510
+ return 2 /* OP_LOST_REASON_AGENT_RESTARTED */;
511
+ default:
512
+ throw new globalThis.Error("Unrecognized enum value " + object + " for enum OpLostReason");
513
+ }
514
+ }
515
+ function opLostReasonToJSON(object) {
516
+ switch (object) {
517
+ case 0 /* OP_LOST_REASON_UNSPECIFIED */:
518
+ return "OP_LOST_REASON_UNSPECIFIED";
519
+ case 1 /* OP_LOST_REASON_EVICTED */:
520
+ return "OP_LOST_REASON_EVICTED";
521
+ case 2 /* OP_LOST_REASON_AGENT_RESTARTED */:
522
+ return "OP_LOST_REASON_AGENT_RESTARTED";
523
+ default:
524
+ throw new globalThis.Error("Unrecognized enum value " + object + " for enum OpLostReason");
398
525
  }
399
526
  }
400
527
  var StreamRole = /* @__PURE__ */ ((StreamRole2) => {
@@ -460,7 +587,9 @@ function streamCloseReasonFromJSON(object) {
460
587
  case "STREAM_CLOSE_REASON_RATE_LIMITED":
461
588
  return 5 /* STREAM_CLOSE_REASON_RATE_LIMITED */;
462
589
  default:
463
- throw new globalThis.Error("Unrecognized enum value " + object + " for enum StreamCloseReason");
590
+ throw new globalThis.Error(
591
+ "Unrecognized enum value " + object + " for enum StreamCloseReason"
592
+ );
464
593
  }
465
594
  }
466
595
  function streamCloseReasonToJSON(object) {
@@ -478,7 +607,9 @@ function streamCloseReasonToJSON(object) {
478
607
  case 5 /* STREAM_CLOSE_REASON_RATE_LIMITED */:
479
608
  return "STREAM_CLOSE_REASON_RATE_LIMITED";
480
609
  default:
481
- throw new globalThis.Error("Unrecognized enum value " + object + " for enum StreamCloseReason");
610
+ throw new globalThis.Error(
611
+ "Unrecognized enum value " + object + " for enum StreamCloseReason"
612
+ );
482
613
  }
483
614
  }
484
615
  var PointerAction = /* @__PURE__ */ ((PointerAction2) => {
@@ -1007,7 +1138,9 @@ function createBaseCapabilities() {
1007
1138
  desktop: false,
1008
1139
  consentedWholeMachine: false,
1009
1140
  consentedScreenControl: false,
1010
- display: void 0
1141
+ display: void 0,
1142
+ desktopUnavailableReason: "",
1143
+ opStream: false
1011
1144
  };
1012
1145
  }
1013
1146
  var Capabilities = {
@@ -1036,6 +1169,12 @@ var Capabilities = {
1036
1169
  if (message.display !== void 0) {
1037
1170
  Display.encode(message.display, writer.uint32(66).fork()).join();
1038
1171
  }
1172
+ if (message.desktopUnavailableReason !== "") {
1173
+ writer.uint32(74).string(message.desktopUnavailableReason);
1174
+ }
1175
+ if (message.opStream !== false) {
1176
+ writer.uint32(80).bool(message.opStream);
1177
+ }
1039
1178
  return writer;
1040
1179
  },
1041
1180
  decode(input, length) {
@@ -1101,6 +1240,20 @@ var Capabilities = {
1101
1240
  message.display = Display.decode(reader, reader.uint32());
1102
1241
  continue;
1103
1242
  }
1243
+ case 9: {
1244
+ if (tag !== 74) {
1245
+ break;
1246
+ }
1247
+ message.desktopUnavailableReason = reader.string();
1248
+ continue;
1249
+ }
1250
+ case 10: {
1251
+ if (tag !== 80) {
1252
+ break;
1253
+ }
1254
+ message.opStream = reader.bool();
1255
+ continue;
1256
+ }
1104
1257
  }
1105
1258
  if ((tag & 7) === 4 || tag === 0) {
1106
1259
  break;
@@ -1118,7 +1271,9 @@ var Capabilities = {
1118
1271
  desktop: isSet(object.desktop) ? globalThis.Boolean(object.desktop) : false,
1119
1272
  consentedWholeMachine: isSet(object.consentedWholeMachine) ? globalThis.Boolean(object.consentedWholeMachine) : isSet(object.consented_whole_machine) ? globalThis.Boolean(object.consented_whole_machine) : false,
1120
1273
  consentedScreenControl: isSet(object.consentedScreenControl) ? globalThis.Boolean(object.consentedScreenControl) : isSet(object.consented_screen_control) ? globalThis.Boolean(object.consented_screen_control) : false,
1121
- display: isSet(object.display) ? Display.fromJSON(object.display) : void 0
1274
+ display: isSet(object.display) ? Display.fromJSON(object.display) : void 0,
1275
+ desktopUnavailableReason: isSet(object.desktopUnavailableReason) ? globalThis.String(object.desktopUnavailableReason) : isSet(object.desktop_unavailable_reason) ? globalThis.String(object.desktop_unavailable_reason) : "",
1276
+ opStream: isSet(object.opStream) ? globalThis.Boolean(object.opStream) : isSet(object.op_stream) ? globalThis.Boolean(object.op_stream) : false
1122
1277
  };
1123
1278
  },
1124
1279
  toJSON(message) {
@@ -1147,6 +1302,12 @@ var Capabilities = {
1147
1302
  if (message.display !== void 0) {
1148
1303
  obj.display = Display.toJSON(message.display);
1149
1304
  }
1305
+ if (message.desktopUnavailableReason !== "") {
1306
+ obj.desktopUnavailableReason = message.desktopUnavailableReason;
1307
+ }
1308
+ if (message.opStream !== false) {
1309
+ obj.opStream = message.opStream;
1310
+ }
1150
1311
  return obj;
1151
1312
  },
1152
1313
  create(base) {
@@ -1162,6 +1323,8 @@ var Capabilities = {
1162
1323
  message.consentedWholeMachine = object.consentedWholeMachine ?? false;
1163
1324
  message.consentedScreenControl = object.consentedScreenControl ?? false;
1164
1325
  message.display = object.display !== void 0 && object.display !== null ? Display.fromPartial(object.display) : void 0;
1326
+ message.desktopUnavailableReason = object.desktopUnavailableReason ?? "";
1327
+ message.opStream = object.opStream ?? false;
1165
1328
  return message;
1166
1329
  }
1167
1330
  };
@@ -2035,7 +2198,13 @@ var ExecRequest_EnvEntry = {
2035
2198
  }
2036
2199
  };
2037
2200
  function createBaseExecResponse() {
2038
- return { exitCode: 0, stdout: new Uint8Array(0), stderr: new Uint8Array(0), timedOut: false, durationMs: "0" };
2201
+ return {
2202
+ exitCode: 0,
2203
+ stdout: new Uint8Array(0),
2204
+ stderr: new Uint8Array(0),
2205
+ timedOut: false,
2206
+ durationMs: "0"
2207
+ };
2039
2208
  }
2040
2209
  var ExecResponse = {
2041
2210
  encode(message, writer = new BinaryWriter()) {
@@ -4368,7 +4537,10 @@ var DesktopInputRequest = {
4368
4537
  if (tag !== 10) {
4369
4538
  break;
4370
4539
  }
4371
- message.event = { $case: "pointer", pointer: PointerEvent.decode(reader, reader.uint32()) };
4540
+ message.event = {
4541
+ $case: "pointer",
4542
+ pointer: PointerEvent.decode(reader, reader.uint32())
4543
+ };
4372
4544
  continue;
4373
4545
  }
4374
4546
  case 2: {
@@ -4417,7 +4589,10 @@ var DesktopInputRequest = {
4417
4589
  switch (object.event?.$case) {
4418
4590
  case "pointer": {
4419
4591
  if (object.event?.pointer !== void 0 && object.event?.pointer !== null) {
4420
- message.event = { $case: "pointer", pointer: PointerEvent.fromPartial(object.event.pointer) };
4592
+ message.event = {
4593
+ $case: "pointer",
4594
+ pointer: PointerEvent.fromPartial(object.event.pointer)
4595
+ };
4421
4596
  }
4422
4597
  break;
4423
4598
  }
@@ -4512,7 +4687,7 @@ var DesktopScreenshotRequest = {
4512
4687
  }
4513
4688
  };
4514
4689
  function createBaseDesktopScreenshotResponse() {
4515
- return { png: new Uint8Array(0), width: 0, height: 0 };
4690
+ return { png: new Uint8Array(0), width: 0, height: 0, nativeWidth: 0, nativeHeight: 0 };
4516
4691
  }
4517
4692
  var DesktopScreenshotResponse = {
4518
4693
  encode(message, writer = new BinaryWriter()) {
@@ -4525,6 +4700,12 @@ var DesktopScreenshotResponse = {
4525
4700
  if (message.height !== 0) {
4526
4701
  writer.uint32(24).uint32(message.height);
4527
4702
  }
4703
+ if (message.nativeWidth !== 0) {
4704
+ writer.uint32(32).uint32(message.nativeWidth);
4705
+ }
4706
+ if (message.nativeHeight !== 0) {
4707
+ writer.uint32(40).uint32(message.nativeHeight);
4708
+ }
4528
4709
  return writer;
4529
4710
  },
4530
4711
  decode(input, length) {
@@ -4555,6 +4736,20 @@ var DesktopScreenshotResponse = {
4555
4736
  message.height = reader.uint32();
4556
4737
  continue;
4557
4738
  }
4739
+ case 4: {
4740
+ if (tag !== 32) {
4741
+ break;
4742
+ }
4743
+ message.nativeWidth = reader.uint32();
4744
+ continue;
4745
+ }
4746
+ case 5: {
4747
+ if (tag !== 40) {
4748
+ break;
4749
+ }
4750
+ message.nativeHeight = reader.uint32();
4751
+ continue;
4752
+ }
4558
4753
  }
4559
4754
  if ((tag & 7) === 4 || tag === 0) {
4560
4755
  break;
@@ -4567,7 +4762,9 @@ var DesktopScreenshotResponse = {
4567
4762
  return {
4568
4763
  png: isSet(object.png) ? bytesFromBase64(object.png) : new Uint8Array(0),
4569
4764
  width: isSet(object.width) ? globalThis.Number(object.width) : 0,
4570
- height: isSet(object.height) ? globalThis.Number(object.height) : 0
4765
+ height: isSet(object.height) ? globalThis.Number(object.height) : 0,
4766
+ nativeWidth: isSet(object.nativeWidth) ? globalThis.Number(object.nativeWidth) : isSet(object.native_width) ? globalThis.Number(object.native_width) : 0,
4767
+ nativeHeight: isSet(object.nativeHeight) ? globalThis.Number(object.nativeHeight) : isSet(object.native_height) ? globalThis.Number(object.native_height) : 0
4571
4768
  };
4572
4769
  },
4573
4770
  toJSON(message) {
@@ -4581,6 +4778,12 @@ var DesktopScreenshotResponse = {
4581
4778
  if (message.height !== 0) {
4582
4779
  obj.height = Math.round(message.height);
4583
4780
  }
4781
+ if (message.nativeWidth !== 0) {
4782
+ obj.nativeWidth = Math.round(message.nativeWidth);
4783
+ }
4784
+ if (message.nativeHeight !== 0) {
4785
+ obj.nativeHeight = Math.round(message.nativeHeight);
4786
+ }
4584
4787
  return obj;
4585
4788
  },
4586
4789
  create(base) {
@@ -4591,11 +4794,21 @@ var DesktopScreenshotResponse = {
4591
4794
  message.png = object.png ?? new Uint8Array(0);
4592
4795
  message.width = object.width ?? 0;
4593
4796
  message.height = object.height ?? 0;
4797
+ message.nativeWidth = object.nativeWidth ?? 0;
4798
+ message.nativeHeight = object.nativeHeight ?? 0;
4594
4799
  return message;
4595
4800
  }
4596
4801
  };
4597
4802
  function createBaseHeartbeat() {
4598
- return { seq: "0", uptimeMs: "0", activeSessions: 0, metrics: void 0, draining: false };
4803
+ return {
4804
+ seq: "0",
4805
+ uptimeMs: "0",
4806
+ activeSessions: 0,
4807
+ metrics: void 0,
4808
+ draining: false,
4809
+ capacity: void 0,
4810
+ admission: void 0
4811
+ };
4599
4812
  }
4600
4813
  var Heartbeat = {
4601
4814
  encode(message, writer = new BinaryWriter()) {
@@ -4614,6 +4827,12 @@ var Heartbeat = {
4614
4827
  if (message.draining !== false) {
4615
4828
  writer.uint32(40).bool(message.draining);
4616
4829
  }
4830
+ if (message.capacity !== void 0) {
4831
+ HostCapacitySample.encode(message.capacity, writer.uint32(50).fork()).join();
4832
+ }
4833
+ if (message.admission !== void 0) {
4834
+ AdmissionTelemetry.encode(message.admission, writer.uint32(58).fork()).join();
4835
+ }
4617
4836
  return writer;
4618
4837
  },
4619
4838
  decode(input, length) {
@@ -4658,6 +4877,20 @@ var Heartbeat = {
4658
4877
  message.draining = reader.bool();
4659
4878
  continue;
4660
4879
  }
4880
+ case 6: {
4881
+ if (tag !== 50) {
4882
+ break;
4883
+ }
4884
+ message.capacity = HostCapacitySample.decode(reader, reader.uint32());
4885
+ continue;
4886
+ }
4887
+ case 7: {
4888
+ if (tag !== 58) {
4889
+ break;
4890
+ }
4891
+ message.admission = AdmissionTelemetry.decode(reader, reader.uint32());
4892
+ continue;
4893
+ }
4661
4894
  }
4662
4895
  if ((tag & 7) === 4 || tag === 0) {
4663
4896
  break;
@@ -4672,7 +4905,9 @@ var Heartbeat = {
4672
4905
  uptimeMs: isSet(object.uptimeMs) ? globalThis.String(object.uptimeMs) : isSet(object.uptime_ms) ? globalThis.String(object.uptime_ms) : "0",
4673
4906
  activeSessions: isSet(object.activeSessions) ? globalThis.Number(object.activeSessions) : isSet(object.active_sessions) ? globalThis.Number(object.active_sessions) : 0,
4674
4907
  metrics: isSet(object.metrics) ? MetricsSample.fromJSON(object.metrics) : void 0,
4675
- draining: isSet(object.draining) ? globalThis.Boolean(object.draining) : false
4908
+ draining: isSet(object.draining) ? globalThis.Boolean(object.draining) : false,
4909
+ capacity: isSet(object.capacity) ? HostCapacitySample.fromJSON(object.capacity) : void 0,
4910
+ admission: isSet(object.admission) ? AdmissionTelemetry.fromJSON(object.admission) : void 0
4676
4911
  };
4677
4912
  },
4678
4913
  toJSON(message) {
@@ -4692,6 +4927,12 @@ var Heartbeat = {
4692
4927
  if (message.draining !== false) {
4693
4928
  obj.draining = message.draining;
4694
4929
  }
4930
+ if (message.capacity !== void 0) {
4931
+ obj.capacity = HostCapacitySample.toJSON(message.capacity);
4932
+ }
4933
+ if (message.admission !== void 0) {
4934
+ obj.admission = AdmissionTelemetry.toJSON(message.admission);
4935
+ }
4695
4936
  return obj;
4696
4937
  },
4697
4938
  create(base) {
@@ -4704,6 +4945,278 @@ var Heartbeat = {
4704
4945
  message.activeSessions = object.activeSessions ?? 0;
4705
4946
  message.metrics = object.metrics !== void 0 && object.metrics !== null ? MetricsSample.fromPartial(object.metrics) : void 0;
4706
4947
  message.draining = object.draining ?? false;
4948
+ message.capacity = object.capacity !== void 0 && object.capacity !== null ? HostCapacitySample.fromPartial(object.capacity) : void 0;
4949
+ message.admission = object.admission !== void 0 && object.admission !== null ? AdmissionTelemetry.fromPartial(object.admission) : void 0;
4950
+ return message;
4951
+ }
4952
+ };
4953
+ function createBaseHostCapacitySample() {
4954
+ return {
4955
+ memAvailableBytes: "0",
4956
+ diskFreeBytes: "0",
4957
+ fdHeadroom: "0",
4958
+ pidHeadroom: "0",
4959
+ nproc: "0"
4960
+ };
4961
+ }
4962
+ var HostCapacitySample = {
4963
+ encode(message, writer = new BinaryWriter()) {
4964
+ if (message.memAvailableBytes !== "0") {
4965
+ writer.uint32(8).uint64(message.memAvailableBytes);
4966
+ }
4967
+ if (message.diskFreeBytes !== "0") {
4968
+ writer.uint32(16).uint64(message.diskFreeBytes);
4969
+ }
4970
+ if (message.fdHeadroom !== "0") {
4971
+ writer.uint32(24).uint64(message.fdHeadroom);
4972
+ }
4973
+ if (message.pidHeadroom !== "0") {
4974
+ writer.uint32(32).uint64(message.pidHeadroom);
4975
+ }
4976
+ if (message.nproc !== "0") {
4977
+ writer.uint32(40).uint64(message.nproc);
4978
+ }
4979
+ return writer;
4980
+ },
4981
+ decode(input, length) {
4982
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4983
+ const end = length === void 0 ? reader.len : reader.pos + length;
4984
+ const message = createBaseHostCapacitySample();
4985
+ while (reader.pos < end) {
4986
+ const tag = reader.uint32();
4987
+ switch (tag >>> 3) {
4988
+ case 1: {
4989
+ if (tag !== 8) {
4990
+ break;
4991
+ }
4992
+ message.memAvailableBytes = reader.uint64().toString();
4993
+ continue;
4994
+ }
4995
+ case 2: {
4996
+ if (tag !== 16) {
4997
+ break;
4998
+ }
4999
+ message.diskFreeBytes = reader.uint64().toString();
5000
+ continue;
5001
+ }
5002
+ case 3: {
5003
+ if (tag !== 24) {
5004
+ break;
5005
+ }
5006
+ message.fdHeadroom = reader.uint64().toString();
5007
+ continue;
5008
+ }
5009
+ case 4: {
5010
+ if (tag !== 32) {
5011
+ break;
5012
+ }
5013
+ message.pidHeadroom = reader.uint64().toString();
5014
+ continue;
5015
+ }
5016
+ case 5: {
5017
+ if (tag !== 40) {
5018
+ break;
5019
+ }
5020
+ message.nproc = reader.uint64().toString();
5021
+ continue;
5022
+ }
5023
+ }
5024
+ if ((tag & 7) === 4 || tag === 0) {
5025
+ break;
5026
+ }
5027
+ reader.skip(tag & 7);
5028
+ }
5029
+ return message;
5030
+ },
5031
+ fromJSON(object) {
5032
+ return {
5033
+ memAvailableBytes: isSet(object.memAvailableBytes) ? globalThis.String(object.memAvailableBytes) : isSet(object.mem_available_bytes) ? globalThis.String(object.mem_available_bytes) : "0",
5034
+ diskFreeBytes: isSet(object.diskFreeBytes) ? globalThis.String(object.diskFreeBytes) : isSet(object.disk_free_bytes) ? globalThis.String(object.disk_free_bytes) : "0",
5035
+ fdHeadroom: isSet(object.fdHeadroom) ? globalThis.String(object.fdHeadroom) : isSet(object.fd_headroom) ? globalThis.String(object.fd_headroom) : "0",
5036
+ pidHeadroom: isSet(object.pidHeadroom) ? globalThis.String(object.pidHeadroom) : isSet(object.pid_headroom) ? globalThis.String(object.pid_headroom) : "0",
5037
+ nproc: isSet(object.nproc) ? globalThis.String(object.nproc) : "0"
5038
+ };
5039
+ },
5040
+ toJSON(message) {
5041
+ const obj = {};
5042
+ if (message.memAvailableBytes !== "0") {
5043
+ obj.memAvailableBytes = message.memAvailableBytes;
5044
+ }
5045
+ if (message.diskFreeBytes !== "0") {
5046
+ obj.diskFreeBytes = message.diskFreeBytes;
5047
+ }
5048
+ if (message.fdHeadroom !== "0") {
5049
+ obj.fdHeadroom = message.fdHeadroom;
5050
+ }
5051
+ if (message.pidHeadroom !== "0") {
5052
+ obj.pidHeadroom = message.pidHeadroom;
5053
+ }
5054
+ if (message.nproc !== "0") {
5055
+ obj.nproc = message.nproc;
5056
+ }
5057
+ return obj;
5058
+ },
5059
+ create(base) {
5060
+ return HostCapacitySample.fromPartial(base ?? {});
5061
+ },
5062
+ fromPartial(object) {
5063
+ const message = createBaseHostCapacitySample();
5064
+ message.memAvailableBytes = object.memAvailableBytes ?? "0";
5065
+ message.diskFreeBytes = object.diskFreeBytes ?? "0";
5066
+ message.fdHeadroom = object.fdHeadroom ?? "0";
5067
+ message.pidHeadroom = object.pidHeadroom ?? "0";
5068
+ message.nproc = object.nproc ?? "0";
5069
+ return message;
5070
+ }
5071
+ };
5072
+ function createBaseAdmissionTelemetry() {
5073
+ return {
5074
+ lightRunning: "0",
5075
+ lightQueued: "0",
5076
+ heavyRunning: "0",
5077
+ heavyQueued: "0",
5078
+ liveOps: "0",
5079
+ opFramesDroppedTotal: "0",
5080
+ evictedUnackedTotal: "0"
5081
+ };
5082
+ }
5083
+ var AdmissionTelemetry = {
5084
+ encode(message, writer = new BinaryWriter()) {
5085
+ if (message.lightRunning !== "0") {
5086
+ writer.uint32(8).uint64(message.lightRunning);
5087
+ }
5088
+ if (message.lightQueued !== "0") {
5089
+ writer.uint32(16).uint64(message.lightQueued);
5090
+ }
5091
+ if (message.heavyRunning !== "0") {
5092
+ writer.uint32(24).uint64(message.heavyRunning);
5093
+ }
5094
+ if (message.heavyQueued !== "0") {
5095
+ writer.uint32(32).uint64(message.heavyQueued);
5096
+ }
5097
+ if (message.liveOps !== "0") {
5098
+ writer.uint32(40).uint64(message.liveOps);
5099
+ }
5100
+ if (message.opFramesDroppedTotal !== "0") {
5101
+ writer.uint32(48).uint64(message.opFramesDroppedTotal);
5102
+ }
5103
+ if (message.evictedUnackedTotal !== "0") {
5104
+ writer.uint32(56).uint64(message.evictedUnackedTotal);
5105
+ }
5106
+ return writer;
5107
+ },
5108
+ decode(input, length) {
5109
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5110
+ const end = length === void 0 ? reader.len : reader.pos + length;
5111
+ const message = createBaseAdmissionTelemetry();
5112
+ while (reader.pos < end) {
5113
+ const tag = reader.uint32();
5114
+ switch (tag >>> 3) {
5115
+ case 1: {
5116
+ if (tag !== 8) {
5117
+ break;
5118
+ }
5119
+ message.lightRunning = reader.uint64().toString();
5120
+ continue;
5121
+ }
5122
+ case 2: {
5123
+ if (tag !== 16) {
5124
+ break;
5125
+ }
5126
+ message.lightQueued = reader.uint64().toString();
5127
+ continue;
5128
+ }
5129
+ case 3: {
5130
+ if (tag !== 24) {
5131
+ break;
5132
+ }
5133
+ message.heavyRunning = reader.uint64().toString();
5134
+ continue;
5135
+ }
5136
+ case 4: {
5137
+ if (tag !== 32) {
5138
+ break;
5139
+ }
5140
+ message.heavyQueued = reader.uint64().toString();
5141
+ continue;
5142
+ }
5143
+ case 5: {
5144
+ if (tag !== 40) {
5145
+ break;
5146
+ }
5147
+ message.liveOps = reader.uint64().toString();
5148
+ continue;
5149
+ }
5150
+ case 6: {
5151
+ if (tag !== 48) {
5152
+ break;
5153
+ }
5154
+ message.opFramesDroppedTotal = reader.uint64().toString();
5155
+ continue;
5156
+ }
5157
+ case 7: {
5158
+ if (tag !== 56) {
5159
+ break;
5160
+ }
5161
+ message.evictedUnackedTotal = reader.uint64().toString();
5162
+ continue;
5163
+ }
5164
+ }
5165
+ if ((tag & 7) === 4 || tag === 0) {
5166
+ break;
5167
+ }
5168
+ reader.skip(tag & 7);
5169
+ }
5170
+ return message;
5171
+ },
5172
+ fromJSON(object) {
5173
+ return {
5174
+ lightRunning: isSet(object.lightRunning) ? globalThis.String(object.lightRunning) : isSet(object.light_running) ? globalThis.String(object.light_running) : "0",
5175
+ lightQueued: isSet(object.lightQueued) ? globalThis.String(object.lightQueued) : isSet(object.light_queued) ? globalThis.String(object.light_queued) : "0",
5176
+ heavyRunning: isSet(object.heavyRunning) ? globalThis.String(object.heavyRunning) : isSet(object.heavy_running) ? globalThis.String(object.heavy_running) : "0",
5177
+ heavyQueued: isSet(object.heavyQueued) ? globalThis.String(object.heavyQueued) : isSet(object.heavy_queued) ? globalThis.String(object.heavy_queued) : "0",
5178
+ liveOps: isSet(object.liveOps) ? globalThis.String(object.liveOps) : isSet(object.live_ops) ? globalThis.String(object.live_ops) : "0",
5179
+ opFramesDroppedTotal: isSet(object.opFramesDroppedTotal) ? globalThis.String(object.opFramesDroppedTotal) : isSet(object.op_frames_dropped_total) ? globalThis.String(object.op_frames_dropped_total) : "0",
5180
+ evictedUnackedTotal: isSet(object.evictedUnackedTotal) ? globalThis.String(object.evictedUnackedTotal) : isSet(object.evicted_unacked_total) ? globalThis.String(object.evicted_unacked_total) : "0"
5181
+ };
5182
+ },
5183
+ toJSON(message) {
5184
+ const obj = {};
5185
+ if (message.lightRunning !== "0") {
5186
+ obj.lightRunning = message.lightRunning;
5187
+ }
5188
+ if (message.lightQueued !== "0") {
5189
+ obj.lightQueued = message.lightQueued;
5190
+ }
5191
+ if (message.heavyRunning !== "0") {
5192
+ obj.heavyRunning = message.heavyRunning;
5193
+ }
5194
+ if (message.heavyQueued !== "0") {
5195
+ obj.heavyQueued = message.heavyQueued;
5196
+ }
5197
+ if (message.liveOps !== "0") {
5198
+ obj.liveOps = message.liveOps;
5199
+ }
5200
+ if (message.opFramesDroppedTotal !== "0") {
5201
+ obj.opFramesDroppedTotal = message.opFramesDroppedTotal;
5202
+ }
5203
+ if (message.evictedUnackedTotal !== "0") {
5204
+ obj.evictedUnackedTotal = message.evictedUnackedTotal;
5205
+ }
5206
+ return obj;
5207
+ },
5208
+ create(base) {
5209
+ return AdmissionTelemetry.fromPartial(base ?? {});
5210
+ },
5211
+ fromPartial(object) {
5212
+ const message = createBaseAdmissionTelemetry();
5213
+ message.lightRunning = object.lightRunning ?? "0";
5214
+ message.lightQueued = object.lightQueued ?? "0";
5215
+ message.heavyRunning = object.heavyRunning ?? "0";
5216
+ message.heavyQueued = object.heavyQueued ?? "0";
5217
+ message.liveOps = object.liveOps ?? "0";
5218
+ message.opFramesDroppedTotal = object.opFramesDroppedTotal ?? "0";
5219
+ message.evictedUnackedTotal = object.evictedUnackedTotal ?? "0";
4707
5220
  return message;
4708
5221
  }
4709
5222
  };
@@ -6076,6 +6589,1588 @@ var UpdateMayProceedResponse = {
6076
6589
  return message;
6077
6590
  }
6078
6591
  };
6592
+ function createBaseOpExit() {
6593
+ return {
6594
+ exitCode: 0,
6595
+ timedOut: false,
6596
+ cancelled: false,
6597
+ durationMs: "0",
6598
+ digests: {},
6599
+ totals: {},
6600
+ failureCode: "",
6601
+ failureDetail: {}
6602
+ };
6603
+ }
6604
+ var OpExit = {
6605
+ encode(message, writer = new BinaryWriter()) {
6606
+ if (message.exitCode !== 0) {
6607
+ writer.uint32(8).int32(message.exitCode);
6608
+ }
6609
+ if (message.timedOut !== false) {
6610
+ writer.uint32(16).bool(message.timedOut);
6611
+ }
6612
+ if (message.cancelled !== false) {
6613
+ writer.uint32(24).bool(message.cancelled);
6614
+ }
6615
+ if (message.durationMs !== "0") {
6616
+ writer.uint32(32).uint64(message.durationMs);
6617
+ }
6618
+ globalThis.Object.entries(message.digests).forEach(([key, value]) => {
6619
+ OpExit_DigestsEntry.encode({ key, value }, writer.uint32(42).fork()).join();
6620
+ });
6621
+ globalThis.Object.entries(message.totals).forEach(([key, value]) => {
6622
+ OpExit_TotalsEntry.encode({ key, value }, writer.uint32(50).fork()).join();
6623
+ });
6624
+ if (message.failureCode !== "") {
6625
+ writer.uint32(58).string(message.failureCode);
6626
+ }
6627
+ globalThis.Object.entries(message.failureDetail).forEach(([key, value]) => {
6628
+ OpExit_FailureDetailEntry.encode({ key, value }, writer.uint32(66).fork()).join();
6629
+ });
6630
+ return writer;
6631
+ },
6632
+ decode(input, length) {
6633
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6634
+ const end = length === void 0 ? reader.len : reader.pos + length;
6635
+ const message = createBaseOpExit();
6636
+ while (reader.pos < end) {
6637
+ const tag = reader.uint32();
6638
+ switch (tag >>> 3) {
6639
+ case 1: {
6640
+ if (tag !== 8) {
6641
+ break;
6642
+ }
6643
+ message.exitCode = reader.int32();
6644
+ continue;
6645
+ }
6646
+ case 2: {
6647
+ if (tag !== 16) {
6648
+ break;
6649
+ }
6650
+ message.timedOut = reader.bool();
6651
+ continue;
6652
+ }
6653
+ case 3: {
6654
+ if (tag !== 24) {
6655
+ break;
6656
+ }
6657
+ message.cancelled = reader.bool();
6658
+ continue;
6659
+ }
6660
+ case 4: {
6661
+ if (tag !== 32) {
6662
+ break;
6663
+ }
6664
+ message.durationMs = reader.uint64().toString();
6665
+ continue;
6666
+ }
6667
+ case 5: {
6668
+ if (tag !== 42) {
6669
+ break;
6670
+ }
6671
+ const entry5 = OpExit_DigestsEntry.decode(reader, reader.uint32());
6672
+ if (entry5.value !== void 0) {
6673
+ message.digests[entry5.key] = entry5.value;
6674
+ }
6675
+ continue;
6676
+ }
6677
+ case 6: {
6678
+ if (tag !== 50) {
6679
+ break;
6680
+ }
6681
+ const entry6 = OpExit_TotalsEntry.decode(reader, reader.uint32());
6682
+ if (entry6.value !== void 0) {
6683
+ message.totals[entry6.key] = entry6.value;
6684
+ }
6685
+ continue;
6686
+ }
6687
+ case 7: {
6688
+ if (tag !== 58) {
6689
+ break;
6690
+ }
6691
+ message.failureCode = reader.string();
6692
+ continue;
6693
+ }
6694
+ case 8: {
6695
+ if (tag !== 66) {
6696
+ break;
6697
+ }
6698
+ const entry8 = OpExit_FailureDetailEntry.decode(reader, reader.uint32());
6699
+ if (entry8.value !== void 0) {
6700
+ message.failureDetail[entry8.key] = entry8.value;
6701
+ }
6702
+ continue;
6703
+ }
6704
+ }
6705
+ if ((tag & 7) === 4 || tag === 0) {
6706
+ break;
6707
+ }
6708
+ reader.skip(tag & 7);
6709
+ }
6710
+ return message;
6711
+ },
6712
+ fromJSON(object) {
6713
+ return {
6714
+ exitCode: isSet(object.exitCode) ? globalThis.Number(object.exitCode) : isSet(object.exit_code) ? globalThis.Number(object.exit_code) : 0,
6715
+ timedOut: isSet(object.timedOut) ? globalThis.Boolean(object.timedOut) : isSet(object.timed_out) ? globalThis.Boolean(object.timed_out) : false,
6716
+ cancelled: isSet(object.cancelled) ? globalThis.Boolean(object.cancelled) : false,
6717
+ durationMs: isSet(object.durationMs) ? globalThis.String(object.durationMs) : isSet(object.duration_ms) ? globalThis.String(object.duration_ms) : "0",
6718
+ digests: isObject(object.digests) ? globalThis.Object.entries(object.digests).reduce(
6719
+ (acc, [key, value]) => {
6720
+ acc[key] = globalThis.String(value);
6721
+ return acc;
6722
+ },
6723
+ {}
6724
+ ) : {},
6725
+ totals: isObject(object.totals) ? globalThis.Object.entries(object.totals).reduce(
6726
+ (acc, [key, value]) => {
6727
+ acc[key] = globalThis.String(value);
6728
+ return acc;
6729
+ },
6730
+ {}
6731
+ ) : {},
6732
+ failureCode: isSet(object.failureCode) ? globalThis.String(object.failureCode) : isSet(object.failure_code) ? globalThis.String(object.failure_code) : "",
6733
+ failureDetail: isObject(object.failureDetail) ? globalThis.Object.entries(object.failureDetail).reduce(
6734
+ (acc, [key, value]) => {
6735
+ acc[key] = globalThis.String(value);
6736
+ return acc;
6737
+ },
6738
+ {}
6739
+ ) : isObject(object.failure_detail) ? globalThis.Object.entries(object.failure_detail).reduce(
6740
+ (acc, [key, value]) => {
6741
+ acc[key] = globalThis.String(value);
6742
+ return acc;
6743
+ },
6744
+ {}
6745
+ ) : {}
6746
+ };
6747
+ },
6748
+ toJSON(message) {
6749
+ const obj = {};
6750
+ if (message.exitCode !== 0) {
6751
+ obj.exitCode = Math.round(message.exitCode);
6752
+ }
6753
+ if (message.timedOut !== false) {
6754
+ obj.timedOut = message.timedOut;
6755
+ }
6756
+ if (message.cancelled !== false) {
6757
+ obj.cancelled = message.cancelled;
6758
+ }
6759
+ if (message.durationMs !== "0") {
6760
+ obj.durationMs = message.durationMs;
6761
+ }
6762
+ if (message.digests) {
6763
+ const entries = globalThis.Object.entries(message.digests);
6764
+ if (entries.length > 0) {
6765
+ obj.digests = {};
6766
+ entries.forEach(([k, v]) => {
6767
+ obj.digests[k] = v;
6768
+ });
6769
+ }
6770
+ }
6771
+ if (message.totals) {
6772
+ const entries = globalThis.Object.entries(message.totals);
6773
+ if (entries.length > 0) {
6774
+ obj.totals = {};
6775
+ entries.forEach(([k, v]) => {
6776
+ obj.totals[k] = v;
6777
+ });
6778
+ }
6779
+ }
6780
+ if (message.failureCode !== "") {
6781
+ obj.failureCode = message.failureCode;
6782
+ }
6783
+ if (message.failureDetail) {
6784
+ const entries = globalThis.Object.entries(message.failureDetail);
6785
+ if (entries.length > 0) {
6786
+ obj.failureDetail = {};
6787
+ entries.forEach(([k, v]) => {
6788
+ obj.failureDetail[k] = v;
6789
+ });
6790
+ }
6791
+ }
6792
+ return obj;
6793
+ },
6794
+ create(base) {
6795
+ return OpExit.fromPartial(base ?? {});
6796
+ },
6797
+ fromPartial(object) {
6798
+ const message = createBaseOpExit();
6799
+ message.exitCode = object.exitCode ?? 0;
6800
+ message.timedOut = object.timedOut ?? false;
6801
+ message.cancelled = object.cancelled ?? false;
6802
+ message.durationMs = object.durationMs ?? "0";
6803
+ message.digests = globalThis.Object.entries(object.digests ?? {}).reduce((acc, [key, value]) => {
6804
+ if (value !== void 0) {
6805
+ acc[key] = globalThis.String(value);
6806
+ }
6807
+ return acc;
6808
+ }, {});
6809
+ message.totals = globalThis.Object.entries(object.totals ?? {}).reduce(
6810
+ (acc, [key, value]) => {
6811
+ if (value !== void 0) {
6812
+ acc[key] = globalThis.String(value);
6813
+ }
6814
+ return acc;
6815
+ },
6816
+ {}
6817
+ );
6818
+ message.failureCode = object.failureCode ?? "";
6819
+ message.failureDetail = globalThis.Object.entries(object.failureDetail ?? {}).reduce((acc, [key, value]) => {
6820
+ if (value !== void 0) {
6821
+ acc[key] = globalThis.String(value);
6822
+ }
6823
+ return acc;
6824
+ }, {});
6825
+ return message;
6826
+ }
6827
+ };
6828
+ function createBaseOpExit_DigestsEntry() {
6829
+ return { key: "", value: "" };
6830
+ }
6831
+ var OpExit_DigestsEntry = {
6832
+ encode(message, writer = new BinaryWriter()) {
6833
+ if (message.key !== "") {
6834
+ writer.uint32(10).string(message.key);
6835
+ }
6836
+ if (message.value !== "") {
6837
+ writer.uint32(18).string(message.value);
6838
+ }
6839
+ return writer;
6840
+ },
6841
+ decode(input, length) {
6842
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6843
+ const end = length === void 0 ? reader.len : reader.pos + length;
6844
+ const message = createBaseOpExit_DigestsEntry();
6845
+ while (reader.pos < end) {
6846
+ const tag = reader.uint32();
6847
+ switch (tag >>> 3) {
6848
+ case 1: {
6849
+ if (tag !== 10) {
6850
+ break;
6851
+ }
6852
+ message.key = reader.string();
6853
+ continue;
6854
+ }
6855
+ case 2: {
6856
+ if (tag !== 18) {
6857
+ break;
6858
+ }
6859
+ message.value = reader.string();
6860
+ continue;
6861
+ }
6862
+ }
6863
+ if ((tag & 7) === 4 || tag === 0) {
6864
+ break;
6865
+ }
6866
+ reader.skip(tag & 7);
6867
+ }
6868
+ return message;
6869
+ },
6870
+ fromJSON(object) {
6871
+ return {
6872
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
6873
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
6874
+ };
6875
+ },
6876
+ toJSON(message) {
6877
+ const obj = {};
6878
+ if (message.key !== "") {
6879
+ obj.key = message.key;
6880
+ }
6881
+ if (message.value !== "") {
6882
+ obj.value = message.value;
6883
+ }
6884
+ return obj;
6885
+ },
6886
+ create(base) {
6887
+ return OpExit_DigestsEntry.fromPartial(base ?? {});
6888
+ },
6889
+ fromPartial(object) {
6890
+ const message = createBaseOpExit_DigestsEntry();
6891
+ message.key = object.key ?? "";
6892
+ message.value = object.value ?? "";
6893
+ return message;
6894
+ }
6895
+ };
6896
+ function createBaseOpExit_TotalsEntry() {
6897
+ return { key: "", value: "0" };
6898
+ }
6899
+ var OpExit_TotalsEntry = {
6900
+ encode(message, writer = new BinaryWriter()) {
6901
+ if (message.key !== "") {
6902
+ writer.uint32(10).string(message.key);
6903
+ }
6904
+ if (message.value !== "0") {
6905
+ writer.uint32(16).uint64(message.value);
6906
+ }
6907
+ return writer;
6908
+ },
6909
+ decode(input, length) {
6910
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6911
+ const end = length === void 0 ? reader.len : reader.pos + length;
6912
+ const message = createBaseOpExit_TotalsEntry();
6913
+ while (reader.pos < end) {
6914
+ const tag = reader.uint32();
6915
+ switch (tag >>> 3) {
6916
+ case 1: {
6917
+ if (tag !== 10) {
6918
+ break;
6919
+ }
6920
+ message.key = reader.string();
6921
+ continue;
6922
+ }
6923
+ case 2: {
6924
+ if (tag !== 16) {
6925
+ break;
6926
+ }
6927
+ message.value = reader.uint64().toString();
6928
+ continue;
6929
+ }
6930
+ }
6931
+ if ((tag & 7) === 4 || tag === 0) {
6932
+ break;
6933
+ }
6934
+ reader.skip(tag & 7);
6935
+ }
6936
+ return message;
6937
+ },
6938
+ fromJSON(object) {
6939
+ return {
6940
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
6941
+ value: isSet(object.value) ? globalThis.String(object.value) : "0"
6942
+ };
6943
+ },
6944
+ toJSON(message) {
6945
+ const obj = {};
6946
+ if (message.key !== "") {
6947
+ obj.key = message.key;
6948
+ }
6949
+ if (message.value !== "0") {
6950
+ obj.value = message.value;
6951
+ }
6952
+ return obj;
6953
+ },
6954
+ create(base) {
6955
+ return OpExit_TotalsEntry.fromPartial(base ?? {});
6956
+ },
6957
+ fromPartial(object) {
6958
+ const message = createBaseOpExit_TotalsEntry();
6959
+ message.key = object.key ?? "";
6960
+ message.value = object.value ?? "0";
6961
+ return message;
6962
+ }
6963
+ };
6964
+ function createBaseOpExit_FailureDetailEntry() {
6965
+ return { key: "", value: "" };
6966
+ }
6967
+ var OpExit_FailureDetailEntry = {
6968
+ encode(message, writer = new BinaryWriter()) {
6969
+ if (message.key !== "") {
6970
+ writer.uint32(10).string(message.key);
6971
+ }
6972
+ if (message.value !== "") {
6973
+ writer.uint32(18).string(message.value);
6974
+ }
6975
+ return writer;
6976
+ },
6977
+ decode(input, length) {
6978
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6979
+ const end = length === void 0 ? reader.len : reader.pos + length;
6980
+ const message = createBaseOpExit_FailureDetailEntry();
6981
+ while (reader.pos < end) {
6982
+ const tag = reader.uint32();
6983
+ switch (tag >>> 3) {
6984
+ case 1: {
6985
+ if (tag !== 10) {
6986
+ break;
6987
+ }
6988
+ message.key = reader.string();
6989
+ continue;
6990
+ }
6991
+ case 2: {
6992
+ if (tag !== 18) {
6993
+ break;
6994
+ }
6995
+ message.value = reader.string();
6996
+ continue;
6997
+ }
6998
+ }
6999
+ if ((tag & 7) === 4 || tag === 0) {
7000
+ break;
7001
+ }
7002
+ reader.skip(tag & 7);
7003
+ }
7004
+ return message;
7005
+ },
7006
+ fromJSON(object) {
7007
+ return {
7008
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
7009
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
7010
+ };
7011
+ },
7012
+ toJSON(message) {
7013
+ const obj = {};
7014
+ if (message.key !== "") {
7015
+ obj.key = message.key;
7016
+ }
7017
+ if (message.value !== "") {
7018
+ obj.value = message.value;
7019
+ }
7020
+ return obj;
7021
+ },
7022
+ create(base) {
7023
+ return OpExit_FailureDetailEntry.fromPartial(base ?? {});
7024
+ },
7025
+ fromPartial(object) {
7026
+ const message = createBaseOpExit_FailureDetailEntry();
7027
+ message.key = object.key ?? "";
7028
+ message.value = object.value ?? "";
7029
+ return message;
7030
+ }
7031
+ };
7032
+ function createBaseFsWriteBegin() {
7033
+ return { path: "", createParents: false, mode: 0, expectedBaseDigest: "" };
7034
+ }
7035
+ var FsWriteBegin = {
7036
+ encode(message, writer = new BinaryWriter()) {
7037
+ if (message.path !== "") {
7038
+ writer.uint32(10).string(message.path);
7039
+ }
7040
+ if (message.createParents !== false) {
7041
+ writer.uint32(16).bool(message.createParents);
7042
+ }
7043
+ if (message.mode !== 0) {
7044
+ writer.uint32(24).uint32(message.mode);
7045
+ }
7046
+ if (message.expectedBaseDigest !== "") {
7047
+ writer.uint32(34).string(message.expectedBaseDigest);
7048
+ }
7049
+ return writer;
7050
+ },
7051
+ decode(input, length) {
7052
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7053
+ const end = length === void 0 ? reader.len : reader.pos + length;
7054
+ const message = createBaseFsWriteBegin();
7055
+ while (reader.pos < end) {
7056
+ const tag = reader.uint32();
7057
+ switch (tag >>> 3) {
7058
+ case 1: {
7059
+ if (tag !== 10) {
7060
+ break;
7061
+ }
7062
+ message.path = reader.string();
7063
+ continue;
7064
+ }
7065
+ case 2: {
7066
+ if (tag !== 16) {
7067
+ break;
7068
+ }
7069
+ message.createParents = reader.bool();
7070
+ continue;
7071
+ }
7072
+ case 3: {
7073
+ if (tag !== 24) {
7074
+ break;
7075
+ }
7076
+ message.mode = reader.uint32();
7077
+ continue;
7078
+ }
7079
+ case 4: {
7080
+ if (tag !== 34) {
7081
+ break;
7082
+ }
7083
+ message.expectedBaseDigest = reader.string();
7084
+ continue;
7085
+ }
7086
+ }
7087
+ if ((tag & 7) === 4 || tag === 0) {
7088
+ break;
7089
+ }
7090
+ reader.skip(tag & 7);
7091
+ }
7092
+ return message;
7093
+ },
7094
+ fromJSON(object) {
7095
+ return {
7096
+ path: isSet(object.path) ? globalThis.String(object.path) : "",
7097
+ createParents: isSet(object.createParents) ? globalThis.Boolean(object.createParents) : isSet(object.create_parents) ? globalThis.Boolean(object.create_parents) : false,
7098
+ mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
7099
+ expectedBaseDigest: isSet(object.expectedBaseDigest) ? globalThis.String(object.expectedBaseDigest) : isSet(object.expected_base_digest) ? globalThis.String(object.expected_base_digest) : ""
7100
+ };
7101
+ },
7102
+ toJSON(message) {
7103
+ const obj = {};
7104
+ if (message.path !== "") {
7105
+ obj.path = message.path;
7106
+ }
7107
+ if (message.createParents !== false) {
7108
+ obj.createParents = message.createParents;
7109
+ }
7110
+ if (message.mode !== 0) {
7111
+ obj.mode = Math.round(message.mode);
7112
+ }
7113
+ if (message.expectedBaseDigest !== "") {
7114
+ obj.expectedBaseDigest = message.expectedBaseDigest;
7115
+ }
7116
+ return obj;
7117
+ },
7118
+ create(base) {
7119
+ return FsWriteBegin.fromPartial(base ?? {});
7120
+ },
7121
+ fromPartial(object) {
7122
+ const message = createBaseFsWriteBegin();
7123
+ message.path = object.path ?? "";
7124
+ message.createParents = object.createParents ?? false;
7125
+ message.mode = object.mode ?? 0;
7126
+ message.expectedBaseDigest = object.expectedBaseDigest ?? "";
7127
+ return message;
7128
+ }
7129
+ };
7130
+ function createBaseOpStart() {
7131
+ return { op: void 0, windowBytes: "0", deadlineMs: "0", originId: "" };
7132
+ }
7133
+ var OpStart = {
7134
+ encode(message, writer = new BinaryWriter()) {
7135
+ switch (message.op?.$case) {
7136
+ case "exec":
7137
+ ExecRequest.encode(message.op.exec, writer.uint32(10).fork()).join();
7138
+ break;
7139
+ case "fsRead":
7140
+ FsReadRequest.encode(message.op.fsRead, writer.uint32(18).fork()).join();
7141
+ break;
7142
+ case "fsWrite":
7143
+ FsWriteBegin.encode(message.op.fsWrite, writer.uint32(26).fork()).join();
7144
+ break;
7145
+ }
7146
+ if (message.windowBytes !== "0") {
7147
+ writer.uint32(80).uint64(message.windowBytes);
7148
+ }
7149
+ if (message.deadlineMs !== "0") {
7150
+ writer.uint32(88).int64(message.deadlineMs);
7151
+ }
7152
+ if (message.originId !== "") {
7153
+ writer.uint32(98).string(message.originId);
7154
+ }
7155
+ return writer;
7156
+ },
7157
+ decode(input, length) {
7158
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7159
+ const end = length === void 0 ? reader.len : reader.pos + length;
7160
+ const message = createBaseOpStart();
7161
+ while (reader.pos < end) {
7162
+ const tag = reader.uint32();
7163
+ switch (tag >>> 3) {
7164
+ case 1: {
7165
+ if (tag !== 10) {
7166
+ break;
7167
+ }
7168
+ message.op = { $case: "exec", exec: ExecRequest.decode(reader, reader.uint32()) };
7169
+ continue;
7170
+ }
7171
+ case 2: {
7172
+ if (tag !== 18) {
7173
+ break;
7174
+ }
7175
+ message.op = { $case: "fsRead", fsRead: FsReadRequest.decode(reader, reader.uint32()) };
7176
+ continue;
7177
+ }
7178
+ case 3: {
7179
+ if (tag !== 26) {
7180
+ break;
7181
+ }
7182
+ message.op = { $case: "fsWrite", fsWrite: FsWriteBegin.decode(reader, reader.uint32()) };
7183
+ continue;
7184
+ }
7185
+ case 10: {
7186
+ if (tag !== 80) {
7187
+ break;
7188
+ }
7189
+ message.windowBytes = reader.uint64().toString();
7190
+ continue;
7191
+ }
7192
+ case 11: {
7193
+ if (tag !== 88) {
7194
+ break;
7195
+ }
7196
+ message.deadlineMs = reader.int64().toString();
7197
+ continue;
7198
+ }
7199
+ case 12: {
7200
+ if (tag !== 98) {
7201
+ break;
7202
+ }
7203
+ message.originId = reader.string();
7204
+ continue;
7205
+ }
7206
+ }
7207
+ if ((tag & 7) === 4 || tag === 0) {
7208
+ break;
7209
+ }
7210
+ reader.skip(tag & 7);
7211
+ }
7212
+ return message;
7213
+ },
7214
+ fromJSON(object) {
7215
+ return {
7216
+ op: isSet(object.exec) ? { $case: "exec", exec: ExecRequest.fromJSON(object.exec) } : 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: FsWriteBegin.fromJSON(object.fsWrite) } : isSet(object.fs_write) ? { $case: "fsWrite", fsWrite: FsWriteBegin.fromJSON(object.fs_write) } : void 0,
7217
+ windowBytes: isSet(object.windowBytes) ? globalThis.String(object.windowBytes) : isSet(object.window_bytes) ? globalThis.String(object.window_bytes) : "0",
7218
+ deadlineMs: isSet(object.deadlineMs) ? globalThis.String(object.deadlineMs) : isSet(object.deadline_ms) ? globalThis.String(object.deadline_ms) : "0",
7219
+ originId: isSet(object.originId) ? globalThis.String(object.originId) : isSet(object.origin_id) ? globalThis.String(object.origin_id) : ""
7220
+ };
7221
+ },
7222
+ toJSON(message) {
7223
+ const obj = {};
7224
+ if (message.op?.$case === "exec") {
7225
+ obj.exec = ExecRequest.toJSON(message.op.exec);
7226
+ } else if (message.op?.$case === "fsRead") {
7227
+ obj.fsRead = FsReadRequest.toJSON(message.op.fsRead);
7228
+ } else if (message.op?.$case === "fsWrite") {
7229
+ obj.fsWrite = FsWriteBegin.toJSON(message.op.fsWrite);
7230
+ }
7231
+ if (message.windowBytes !== "0") {
7232
+ obj.windowBytes = message.windowBytes;
7233
+ }
7234
+ if (message.deadlineMs !== "0") {
7235
+ obj.deadlineMs = message.deadlineMs;
7236
+ }
7237
+ if (message.originId !== "") {
7238
+ obj.originId = message.originId;
7239
+ }
7240
+ return obj;
7241
+ },
7242
+ create(base) {
7243
+ return OpStart.fromPartial(base ?? {});
7244
+ },
7245
+ fromPartial(object) {
7246
+ const message = createBaseOpStart();
7247
+ switch (object.op?.$case) {
7248
+ case "exec": {
7249
+ if (object.op?.exec !== void 0 && object.op?.exec !== null) {
7250
+ message.op = { $case: "exec", exec: ExecRequest.fromPartial(object.op.exec) };
7251
+ }
7252
+ break;
7253
+ }
7254
+ case "fsRead": {
7255
+ if (object.op?.fsRead !== void 0 && object.op?.fsRead !== null) {
7256
+ message.op = { $case: "fsRead", fsRead: FsReadRequest.fromPartial(object.op.fsRead) };
7257
+ }
7258
+ break;
7259
+ }
7260
+ case "fsWrite": {
7261
+ if (object.op?.fsWrite !== void 0 && object.op?.fsWrite !== null) {
7262
+ message.op = { $case: "fsWrite", fsWrite: FsWriteBegin.fromPartial(object.op.fsWrite) };
7263
+ }
7264
+ break;
7265
+ }
7266
+ }
7267
+ message.windowBytes = object.windowBytes ?? "0";
7268
+ message.deadlineMs = object.deadlineMs ?? "0";
7269
+ message.originId = object.originId ?? "";
7270
+ return message;
7271
+ }
7272
+ };
7273
+ function createBaseOpStarted() {
7274
+ return { accepted: false, status: void 0 };
7275
+ }
7276
+ var OpStarted = {
7277
+ encode(message, writer = new BinaryWriter()) {
7278
+ if (message.accepted !== false) {
7279
+ writer.uint32(8).bool(message.accepted);
7280
+ }
7281
+ if (message.status !== void 0) {
7282
+ OpStatus.encode(message.status, writer.uint32(18).fork()).join();
7283
+ }
7284
+ return writer;
7285
+ },
7286
+ decode(input, length) {
7287
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7288
+ const end = length === void 0 ? reader.len : reader.pos + length;
7289
+ const message = createBaseOpStarted();
7290
+ while (reader.pos < end) {
7291
+ const tag = reader.uint32();
7292
+ switch (tag >>> 3) {
7293
+ case 1: {
7294
+ if (tag !== 8) {
7295
+ break;
7296
+ }
7297
+ message.accepted = reader.bool();
7298
+ continue;
7299
+ }
7300
+ case 2: {
7301
+ if (tag !== 18) {
7302
+ break;
7303
+ }
7304
+ message.status = OpStatus.decode(reader, reader.uint32());
7305
+ continue;
7306
+ }
7307
+ }
7308
+ if ((tag & 7) === 4 || tag === 0) {
7309
+ break;
7310
+ }
7311
+ reader.skip(tag & 7);
7312
+ }
7313
+ return message;
7314
+ },
7315
+ fromJSON(object) {
7316
+ return {
7317
+ accepted: isSet(object.accepted) ? globalThis.Boolean(object.accepted) : false,
7318
+ status: isSet(object.status) ? OpStatus.fromJSON(object.status) : void 0
7319
+ };
7320
+ },
7321
+ toJSON(message) {
7322
+ const obj = {};
7323
+ if (message.accepted !== false) {
7324
+ obj.accepted = message.accepted;
7325
+ }
7326
+ if (message.status !== void 0) {
7327
+ obj.status = OpStatus.toJSON(message.status);
7328
+ }
7329
+ return obj;
7330
+ },
7331
+ create(base) {
7332
+ return OpStarted.fromPartial(base ?? {});
7333
+ },
7334
+ fromPartial(object) {
7335
+ const message = createBaseOpStarted();
7336
+ message.accepted = object.accepted ?? false;
7337
+ message.status = object.status !== void 0 && object.status !== null ? OpStatus.fromPartial(object.status) : void 0;
7338
+ return message;
7339
+ }
7340
+ };
7341
+ function createBaseOpCancel() {
7342
+ return { opId: "" };
7343
+ }
7344
+ var OpCancel = {
7345
+ encode(message, writer = new BinaryWriter()) {
7346
+ if (message.opId !== "") {
7347
+ writer.uint32(10).string(message.opId);
7348
+ }
7349
+ return writer;
7350
+ },
7351
+ decode(input, length) {
7352
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7353
+ const end = length === void 0 ? reader.len : reader.pos + length;
7354
+ const message = createBaseOpCancel();
7355
+ while (reader.pos < end) {
7356
+ const tag = reader.uint32();
7357
+ switch (tag >>> 3) {
7358
+ case 1: {
7359
+ if (tag !== 10) {
7360
+ break;
7361
+ }
7362
+ message.opId = reader.string();
7363
+ continue;
7364
+ }
7365
+ }
7366
+ if ((tag & 7) === 4 || tag === 0) {
7367
+ break;
7368
+ }
7369
+ reader.skip(tag & 7);
7370
+ }
7371
+ return message;
7372
+ },
7373
+ fromJSON(object) {
7374
+ return {
7375
+ opId: isSet(object.opId) ? globalThis.String(object.opId) : isSet(object.op_id) ? globalThis.String(object.op_id) : ""
7376
+ };
7377
+ },
7378
+ toJSON(message) {
7379
+ const obj = {};
7380
+ if (message.opId !== "") {
7381
+ obj.opId = message.opId;
7382
+ }
7383
+ return obj;
7384
+ },
7385
+ create(base) {
7386
+ return OpCancel.fromPartial(base ?? {});
7387
+ },
7388
+ fromPartial(object) {
7389
+ const message = createBaseOpCancel();
7390
+ message.opId = object.opId ?? "";
7391
+ return message;
7392
+ }
7393
+ };
7394
+ function createBaseOpQuery() {
7395
+ return { opId: "" };
7396
+ }
7397
+ var OpQuery = {
7398
+ encode(message, writer = new BinaryWriter()) {
7399
+ if (message.opId !== "") {
7400
+ writer.uint32(10).string(message.opId);
7401
+ }
7402
+ return writer;
7403
+ },
7404
+ decode(input, length) {
7405
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7406
+ const end = length === void 0 ? reader.len : reader.pos + length;
7407
+ const message = createBaseOpQuery();
7408
+ while (reader.pos < end) {
7409
+ const tag = reader.uint32();
7410
+ switch (tag >>> 3) {
7411
+ case 1: {
7412
+ if (tag !== 10) {
7413
+ break;
7414
+ }
7415
+ message.opId = reader.string();
7416
+ continue;
7417
+ }
7418
+ }
7419
+ if ((tag & 7) === 4 || tag === 0) {
7420
+ break;
7421
+ }
7422
+ reader.skip(tag & 7);
7423
+ }
7424
+ return message;
7425
+ },
7426
+ fromJSON(object) {
7427
+ return {
7428
+ opId: isSet(object.opId) ? globalThis.String(object.opId) : isSet(object.op_id) ? globalThis.String(object.op_id) : ""
7429
+ };
7430
+ },
7431
+ toJSON(message) {
7432
+ const obj = {};
7433
+ if (message.opId !== "") {
7434
+ obj.opId = message.opId;
7435
+ }
7436
+ return obj;
7437
+ },
7438
+ create(base) {
7439
+ return OpQuery.fromPartial(base ?? {});
7440
+ },
7441
+ fromPartial(object) {
7442
+ const message = createBaseOpQuery();
7443
+ message.opId = object.opId ?? "";
7444
+ return message;
7445
+ }
7446
+ };
7447
+ function createBaseOpAttach() {
7448
+ return { opId: "", fromSeq: "0", attachGeneration: "0", windowBytes: "0" };
7449
+ }
7450
+ var OpAttach = {
7451
+ encode(message, writer = new BinaryWriter()) {
7452
+ if (message.opId !== "") {
7453
+ writer.uint32(10).string(message.opId);
7454
+ }
7455
+ if (message.fromSeq !== "0") {
7456
+ writer.uint32(16).uint64(message.fromSeq);
7457
+ }
7458
+ if (message.attachGeneration !== "0") {
7459
+ writer.uint32(24).uint64(message.attachGeneration);
7460
+ }
7461
+ if (message.windowBytes !== "0") {
7462
+ writer.uint32(32).uint64(message.windowBytes);
7463
+ }
7464
+ return writer;
7465
+ },
7466
+ decode(input, length) {
7467
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7468
+ const end = length === void 0 ? reader.len : reader.pos + length;
7469
+ const message = createBaseOpAttach();
7470
+ while (reader.pos < end) {
7471
+ const tag = reader.uint32();
7472
+ switch (tag >>> 3) {
7473
+ case 1: {
7474
+ if (tag !== 10) {
7475
+ break;
7476
+ }
7477
+ message.opId = reader.string();
7478
+ continue;
7479
+ }
7480
+ case 2: {
7481
+ if (tag !== 16) {
7482
+ break;
7483
+ }
7484
+ message.fromSeq = reader.uint64().toString();
7485
+ continue;
7486
+ }
7487
+ case 3: {
7488
+ if (tag !== 24) {
7489
+ break;
7490
+ }
7491
+ message.attachGeneration = reader.uint64().toString();
7492
+ continue;
7493
+ }
7494
+ case 4: {
7495
+ if (tag !== 32) {
7496
+ break;
7497
+ }
7498
+ message.windowBytes = reader.uint64().toString();
7499
+ continue;
7500
+ }
7501
+ }
7502
+ if ((tag & 7) === 4 || tag === 0) {
7503
+ break;
7504
+ }
7505
+ reader.skip(tag & 7);
7506
+ }
7507
+ return message;
7508
+ },
7509
+ fromJSON(object) {
7510
+ return {
7511
+ opId: isSet(object.opId) ? globalThis.String(object.opId) : isSet(object.op_id) ? globalThis.String(object.op_id) : "",
7512
+ fromSeq: isSet(object.fromSeq) ? globalThis.String(object.fromSeq) : isSet(object.from_seq) ? globalThis.String(object.from_seq) : "0",
7513
+ attachGeneration: isSet(object.attachGeneration) ? globalThis.String(object.attachGeneration) : isSet(object.attach_generation) ? globalThis.String(object.attach_generation) : "0",
7514
+ windowBytes: isSet(object.windowBytes) ? globalThis.String(object.windowBytes) : isSet(object.window_bytes) ? globalThis.String(object.window_bytes) : "0"
7515
+ };
7516
+ },
7517
+ toJSON(message) {
7518
+ const obj = {};
7519
+ if (message.opId !== "") {
7520
+ obj.opId = message.opId;
7521
+ }
7522
+ if (message.fromSeq !== "0") {
7523
+ obj.fromSeq = message.fromSeq;
7524
+ }
7525
+ if (message.attachGeneration !== "0") {
7526
+ obj.attachGeneration = message.attachGeneration;
7527
+ }
7528
+ if (message.windowBytes !== "0") {
7529
+ obj.windowBytes = message.windowBytes;
7530
+ }
7531
+ return obj;
7532
+ },
7533
+ create(base) {
7534
+ return OpAttach.fromPartial(base ?? {});
7535
+ },
7536
+ fromPartial(object) {
7537
+ const message = createBaseOpAttach();
7538
+ message.opId = object.opId ?? "";
7539
+ message.fromSeq = object.fromSeq ?? "0";
7540
+ message.attachGeneration = object.attachGeneration ?? "0";
7541
+ message.windowBytes = object.windowBytes ?? "0";
7542
+ return message;
7543
+ }
7544
+ };
7545
+ function createBaseOpStatus() {
7546
+ return { opId: "", state: 0, nextSeq: "0", exit: void 0, lostReason: 0 };
7547
+ }
7548
+ var OpStatus = {
7549
+ encode(message, writer = new BinaryWriter()) {
7550
+ if (message.opId !== "") {
7551
+ writer.uint32(10).string(message.opId);
7552
+ }
7553
+ if (message.state !== 0) {
7554
+ writer.uint32(16).int32(message.state);
7555
+ }
7556
+ if (message.nextSeq !== "0") {
7557
+ writer.uint32(24).uint64(message.nextSeq);
7558
+ }
7559
+ if (message.exit !== void 0) {
7560
+ OpExit.encode(message.exit, writer.uint32(34).fork()).join();
7561
+ }
7562
+ if (message.lostReason !== 0) {
7563
+ writer.uint32(40).int32(message.lostReason);
7564
+ }
7565
+ return writer;
7566
+ },
7567
+ decode(input, length) {
7568
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7569
+ const end = length === void 0 ? reader.len : reader.pos + length;
7570
+ const message = createBaseOpStatus();
7571
+ while (reader.pos < end) {
7572
+ const tag = reader.uint32();
7573
+ switch (tag >>> 3) {
7574
+ case 1: {
7575
+ if (tag !== 10) {
7576
+ break;
7577
+ }
7578
+ message.opId = reader.string();
7579
+ continue;
7580
+ }
7581
+ case 2: {
7582
+ if (tag !== 16) {
7583
+ break;
7584
+ }
7585
+ message.state = reader.int32();
7586
+ continue;
7587
+ }
7588
+ case 3: {
7589
+ if (tag !== 24) {
7590
+ break;
7591
+ }
7592
+ message.nextSeq = reader.uint64().toString();
7593
+ continue;
7594
+ }
7595
+ case 4: {
7596
+ if (tag !== 34) {
7597
+ break;
7598
+ }
7599
+ message.exit = OpExit.decode(reader, reader.uint32());
7600
+ continue;
7601
+ }
7602
+ case 5: {
7603
+ if (tag !== 40) {
7604
+ break;
7605
+ }
7606
+ message.lostReason = reader.int32();
7607
+ continue;
7608
+ }
7609
+ }
7610
+ if ((tag & 7) === 4 || tag === 0) {
7611
+ break;
7612
+ }
7613
+ reader.skip(tag & 7);
7614
+ }
7615
+ return message;
7616
+ },
7617
+ fromJSON(object) {
7618
+ return {
7619
+ opId: isSet(object.opId) ? globalThis.String(object.opId) : isSet(object.op_id) ? globalThis.String(object.op_id) : "",
7620
+ state: isSet(object.state) ? opStateFromJSON(object.state) : 0,
7621
+ nextSeq: isSet(object.nextSeq) ? globalThis.String(object.nextSeq) : isSet(object.next_seq) ? globalThis.String(object.next_seq) : "0",
7622
+ exit: isSet(object.exit) ? OpExit.fromJSON(object.exit) : void 0,
7623
+ lostReason: isSet(object.lostReason) ? opLostReasonFromJSON(object.lostReason) : isSet(object.lost_reason) ? opLostReasonFromJSON(object.lost_reason) : 0
7624
+ };
7625
+ },
7626
+ toJSON(message) {
7627
+ const obj = {};
7628
+ if (message.opId !== "") {
7629
+ obj.opId = message.opId;
7630
+ }
7631
+ if (message.state !== 0) {
7632
+ obj.state = opStateToJSON(message.state);
7633
+ }
7634
+ if (message.nextSeq !== "0") {
7635
+ obj.nextSeq = message.nextSeq;
7636
+ }
7637
+ if (message.exit !== void 0) {
7638
+ obj.exit = OpExit.toJSON(message.exit);
7639
+ }
7640
+ if (message.lostReason !== 0) {
7641
+ obj.lostReason = opLostReasonToJSON(message.lostReason);
7642
+ }
7643
+ return obj;
7644
+ },
7645
+ create(base) {
7646
+ return OpStatus.fromPartial(base ?? {});
7647
+ },
7648
+ fromPartial(object) {
7649
+ const message = createBaseOpStatus();
7650
+ message.opId = object.opId ?? "";
7651
+ message.state = object.state ?? 0;
7652
+ message.nextSeq = object.nextSeq ?? "0";
7653
+ message.exit = object.exit !== void 0 && object.exit !== null ? OpExit.fromPartial(object.exit) : void 0;
7654
+ message.lostReason = object.lostReason ?? 0;
7655
+ return message;
7656
+ }
7657
+ };
7658
+ function createBaseWriteChunk() {
7659
+ return { opId: "", seq: "0", bytes: new Uint8Array(0), last: false, offset: "0" };
7660
+ }
7661
+ var WriteChunk = {
7662
+ encode(message, writer = new BinaryWriter()) {
7663
+ if (message.opId !== "") {
7664
+ writer.uint32(10).string(message.opId);
7665
+ }
7666
+ if (message.seq !== "0") {
7667
+ writer.uint32(16).uint64(message.seq);
7668
+ }
7669
+ if (message.bytes.length !== 0) {
7670
+ writer.uint32(26).bytes(message.bytes);
7671
+ }
7672
+ if (message.last !== false) {
7673
+ writer.uint32(32).bool(message.last);
7674
+ }
7675
+ if (message.offset !== "0") {
7676
+ writer.uint32(40).uint64(message.offset);
7677
+ }
7678
+ return writer;
7679
+ },
7680
+ decode(input, length) {
7681
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7682
+ const end = length === void 0 ? reader.len : reader.pos + length;
7683
+ const message = createBaseWriteChunk();
7684
+ while (reader.pos < end) {
7685
+ const tag = reader.uint32();
7686
+ switch (tag >>> 3) {
7687
+ case 1: {
7688
+ if (tag !== 10) {
7689
+ break;
7690
+ }
7691
+ message.opId = reader.string();
7692
+ continue;
7693
+ }
7694
+ case 2: {
7695
+ if (tag !== 16) {
7696
+ break;
7697
+ }
7698
+ message.seq = reader.uint64().toString();
7699
+ continue;
7700
+ }
7701
+ case 3: {
7702
+ if (tag !== 26) {
7703
+ break;
7704
+ }
7705
+ message.bytes = reader.bytes();
7706
+ continue;
7707
+ }
7708
+ case 4: {
7709
+ if (tag !== 32) {
7710
+ break;
7711
+ }
7712
+ message.last = reader.bool();
7713
+ continue;
7714
+ }
7715
+ case 5: {
7716
+ if (tag !== 40) {
7717
+ break;
7718
+ }
7719
+ message.offset = reader.uint64().toString();
7720
+ continue;
7721
+ }
7722
+ }
7723
+ if ((tag & 7) === 4 || tag === 0) {
7724
+ break;
7725
+ }
7726
+ reader.skip(tag & 7);
7727
+ }
7728
+ return message;
7729
+ },
7730
+ fromJSON(object) {
7731
+ return {
7732
+ opId: isSet(object.opId) ? globalThis.String(object.opId) : isSet(object.op_id) ? globalThis.String(object.op_id) : "",
7733
+ seq: isSet(object.seq) ? globalThis.String(object.seq) : "0",
7734
+ bytes: isSet(object.bytes) ? bytesFromBase64(object.bytes) : new Uint8Array(0),
7735
+ last: isSet(object.last) ? globalThis.Boolean(object.last) : false,
7736
+ offset: isSet(object.offset) ? globalThis.String(object.offset) : "0"
7737
+ };
7738
+ },
7739
+ toJSON(message) {
7740
+ const obj = {};
7741
+ if (message.opId !== "") {
7742
+ obj.opId = message.opId;
7743
+ }
7744
+ if (message.seq !== "0") {
7745
+ obj.seq = message.seq;
7746
+ }
7747
+ if (message.bytes.length !== 0) {
7748
+ obj.bytes = base64FromBytes(message.bytes);
7749
+ }
7750
+ if (message.last !== false) {
7751
+ obj.last = message.last;
7752
+ }
7753
+ if (message.offset !== "0") {
7754
+ obj.offset = message.offset;
7755
+ }
7756
+ return obj;
7757
+ },
7758
+ create(base) {
7759
+ return WriteChunk.fromPartial(base ?? {});
7760
+ },
7761
+ fromPartial(object) {
7762
+ const message = createBaseWriteChunk();
7763
+ message.opId = object.opId ?? "";
7764
+ message.seq = object.seq ?? "0";
7765
+ message.bytes = object.bytes ?? new Uint8Array(0);
7766
+ message.last = object.last ?? false;
7767
+ message.offset = object.offset ?? "0";
7768
+ return message;
7769
+ }
7770
+ };
7771
+ function createBaseWriteChunkAck() {
7772
+ return { seq: "0" };
7773
+ }
7774
+ var WriteChunkAck = {
7775
+ encode(message, writer = new BinaryWriter()) {
7776
+ if (message.seq !== "0") {
7777
+ writer.uint32(8).uint64(message.seq);
7778
+ }
7779
+ return writer;
7780
+ },
7781
+ decode(input, length) {
7782
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7783
+ const end = length === void 0 ? reader.len : reader.pos + length;
7784
+ const message = createBaseWriteChunkAck();
7785
+ while (reader.pos < end) {
7786
+ const tag = reader.uint32();
7787
+ switch (tag >>> 3) {
7788
+ case 1: {
7789
+ if (tag !== 8) {
7790
+ break;
7791
+ }
7792
+ message.seq = reader.uint64().toString();
7793
+ continue;
7794
+ }
7795
+ }
7796
+ if ((tag & 7) === 4 || tag === 0) {
7797
+ break;
7798
+ }
7799
+ reader.skip(tag & 7);
7800
+ }
7801
+ return message;
7802
+ },
7803
+ fromJSON(object) {
7804
+ return { seq: isSet(object.seq) ? globalThis.String(object.seq) : "0" };
7805
+ },
7806
+ toJSON(message) {
7807
+ const obj = {};
7808
+ if (message.seq !== "0") {
7809
+ obj.seq = message.seq;
7810
+ }
7811
+ return obj;
7812
+ },
7813
+ create(base) {
7814
+ return WriteChunkAck.fromPartial(base ?? {});
7815
+ },
7816
+ fromPartial(object) {
7817
+ const message = createBaseWriteChunkAck();
7818
+ message.seq = object.seq ?? "0";
7819
+ return message;
7820
+ }
7821
+ };
7822
+ function createBaseOpFrame() {
7823
+ return { opId: "", seq: "0", body: void 0 };
7824
+ }
7825
+ var OpFrame = {
7826
+ encode(message, writer = new BinaryWriter()) {
7827
+ if (message.opId !== "") {
7828
+ writer.uint32(10).string(message.opId);
7829
+ }
7830
+ if (message.seq !== "0") {
7831
+ writer.uint32(16).uint64(message.seq);
7832
+ }
7833
+ switch (message.body?.$case) {
7834
+ case "data":
7835
+ OpData.encode(message.body.data, writer.uint32(82).fork()).join();
7836
+ break;
7837
+ case "progress":
7838
+ OpProgress.encode(message.body.progress, writer.uint32(90).fork()).join();
7839
+ break;
7840
+ case "exit":
7841
+ OpExit.encode(message.body.exit, writer.uint32(98).fork()).join();
7842
+ break;
7843
+ }
7844
+ return writer;
7845
+ },
7846
+ decode(input, length) {
7847
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7848
+ const end = length === void 0 ? reader.len : reader.pos + length;
7849
+ const message = createBaseOpFrame();
7850
+ while (reader.pos < end) {
7851
+ const tag = reader.uint32();
7852
+ switch (tag >>> 3) {
7853
+ case 1: {
7854
+ if (tag !== 10) {
7855
+ break;
7856
+ }
7857
+ message.opId = reader.string();
7858
+ continue;
7859
+ }
7860
+ case 2: {
7861
+ if (tag !== 16) {
7862
+ break;
7863
+ }
7864
+ message.seq = reader.uint64().toString();
7865
+ continue;
7866
+ }
7867
+ case 10: {
7868
+ if (tag !== 82) {
7869
+ break;
7870
+ }
7871
+ message.body = { $case: "data", data: OpData.decode(reader, reader.uint32()) };
7872
+ continue;
7873
+ }
7874
+ case 11: {
7875
+ if (tag !== 90) {
7876
+ break;
7877
+ }
7878
+ message.body = {
7879
+ $case: "progress",
7880
+ progress: OpProgress.decode(reader, reader.uint32())
7881
+ };
7882
+ continue;
7883
+ }
7884
+ case 12: {
7885
+ if (tag !== 98) {
7886
+ break;
7887
+ }
7888
+ message.body = { $case: "exit", exit: OpExit.decode(reader, reader.uint32()) };
7889
+ continue;
7890
+ }
7891
+ }
7892
+ if ((tag & 7) === 4 || tag === 0) {
7893
+ break;
7894
+ }
7895
+ reader.skip(tag & 7);
7896
+ }
7897
+ return message;
7898
+ },
7899
+ fromJSON(object) {
7900
+ return {
7901
+ opId: isSet(object.opId) ? globalThis.String(object.opId) : isSet(object.op_id) ? globalThis.String(object.op_id) : "",
7902
+ seq: isSet(object.seq) ? globalThis.String(object.seq) : "0",
7903
+ body: isSet(object.data) ? { $case: "data", data: OpData.fromJSON(object.data) } : isSet(object.progress) ? { $case: "progress", progress: OpProgress.fromJSON(object.progress) } : isSet(object.exit) ? { $case: "exit", exit: OpExit.fromJSON(object.exit) } : void 0
7904
+ };
7905
+ },
7906
+ toJSON(message) {
7907
+ const obj = {};
7908
+ if (message.opId !== "") {
7909
+ obj.opId = message.opId;
7910
+ }
7911
+ if (message.seq !== "0") {
7912
+ obj.seq = message.seq;
7913
+ }
7914
+ if (message.body?.$case === "data") {
7915
+ obj.data = OpData.toJSON(message.body.data);
7916
+ } else if (message.body?.$case === "progress") {
7917
+ obj.progress = OpProgress.toJSON(message.body.progress);
7918
+ } else if (message.body?.$case === "exit") {
7919
+ obj.exit = OpExit.toJSON(message.body.exit);
7920
+ }
7921
+ return obj;
7922
+ },
7923
+ create(base) {
7924
+ return OpFrame.fromPartial(base ?? {});
7925
+ },
7926
+ fromPartial(object) {
7927
+ const message = createBaseOpFrame();
7928
+ message.opId = object.opId ?? "";
7929
+ message.seq = object.seq ?? "0";
7930
+ switch (object.body?.$case) {
7931
+ case "data": {
7932
+ if (object.body?.data !== void 0 && object.body?.data !== null) {
7933
+ message.body = { $case: "data", data: OpData.fromPartial(object.body.data) };
7934
+ }
7935
+ break;
7936
+ }
7937
+ case "progress": {
7938
+ if (object.body?.progress !== void 0 && object.body?.progress !== null) {
7939
+ message.body = {
7940
+ $case: "progress",
7941
+ progress: OpProgress.fromPartial(object.body.progress)
7942
+ };
7943
+ }
7944
+ break;
7945
+ }
7946
+ case "exit": {
7947
+ if (object.body?.exit !== void 0 && object.body?.exit !== null) {
7948
+ message.body = { $case: "exit", exit: OpExit.fromPartial(object.body.exit) };
7949
+ }
7950
+ break;
7951
+ }
7952
+ }
7953
+ return message;
7954
+ }
7955
+ };
7956
+ function createBaseOpData() {
7957
+ return { channel: 0, bytes: new Uint8Array(0) };
7958
+ }
7959
+ var OpData = {
7960
+ encode(message, writer = new BinaryWriter()) {
7961
+ if (message.channel !== 0) {
7962
+ writer.uint32(8).int32(message.channel);
7963
+ }
7964
+ if (message.bytes.length !== 0) {
7965
+ writer.uint32(18).bytes(message.bytes);
7966
+ }
7967
+ return writer;
7968
+ },
7969
+ decode(input, length) {
7970
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7971
+ const end = length === void 0 ? reader.len : reader.pos + length;
7972
+ const message = createBaseOpData();
7973
+ while (reader.pos < end) {
7974
+ const tag = reader.uint32();
7975
+ switch (tag >>> 3) {
7976
+ case 1: {
7977
+ if (tag !== 8) {
7978
+ break;
7979
+ }
7980
+ message.channel = reader.int32();
7981
+ continue;
7982
+ }
7983
+ case 2: {
7984
+ if (tag !== 18) {
7985
+ break;
7986
+ }
7987
+ message.bytes = reader.bytes();
7988
+ continue;
7989
+ }
7990
+ }
7991
+ if ((tag & 7) === 4 || tag === 0) {
7992
+ break;
7993
+ }
7994
+ reader.skip(tag & 7);
7995
+ }
7996
+ return message;
7997
+ },
7998
+ fromJSON(object) {
7999
+ return {
8000
+ channel: isSet(object.channel) ? opChannelFromJSON(object.channel) : 0,
8001
+ bytes: isSet(object.bytes) ? bytesFromBase64(object.bytes) : new Uint8Array(0)
8002
+ };
8003
+ },
8004
+ toJSON(message) {
8005
+ const obj = {};
8006
+ if (message.channel !== 0) {
8007
+ obj.channel = opChannelToJSON(message.channel);
8008
+ }
8009
+ if (message.bytes.length !== 0) {
8010
+ obj.bytes = base64FromBytes(message.bytes);
8011
+ }
8012
+ return obj;
8013
+ },
8014
+ create(base) {
8015
+ return OpData.fromPartial(base ?? {});
8016
+ },
8017
+ fromPartial(object) {
8018
+ const message = createBaseOpData();
8019
+ message.channel = object.channel ?? 0;
8020
+ message.bytes = object.bytes ?? new Uint8Array(0);
8021
+ return message;
8022
+ }
8023
+ };
8024
+ function createBaseOpProgress() {
8025
+ return {};
8026
+ }
8027
+ var OpProgress = {
8028
+ encode(_, writer = new BinaryWriter()) {
8029
+ return writer;
8030
+ },
8031
+ decode(input, length) {
8032
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8033
+ const end = length === void 0 ? reader.len : reader.pos + length;
8034
+ const message = createBaseOpProgress();
8035
+ while (reader.pos < end) {
8036
+ const tag = reader.uint32();
8037
+ switch (tag >>> 3) {
8038
+ }
8039
+ if ((tag & 7) === 4 || tag === 0) {
8040
+ break;
8041
+ }
8042
+ reader.skip(tag & 7);
8043
+ }
8044
+ return message;
8045
+ },
8046
+ fromJSON(_) {
8047
+ return {};
8048
+ },
8049
+ toJSON(_) {
8050
+ const obj = {};
8051
+ return obj;
8052
+ },
8053
+ create(base) {
8054
+ return OpProgress.fromPartial(base ?? {});
8055
+ },
8056
+ fromPartial(_) {
8057
+ const message = createBaseOpProgress();
8058
+ return message;
8059
+ }
8060
+ };
8061
+ function createBaseOpAck() {
8062
+ return { opId: "", ackedSeq: "0", creditBytes: "0", final: false, attachGeneration: "0" };
8063
+ }
8064
+ var OpAck = {
8065
+ encode(message, writer = new BinaryWriter()) {
8066
+ if (message.opId !== "") {
8067
+ writer.uint32(10).string(message.opId);
8068
+ }
8069
+ if (message.ackedSeq !== "0") {
8070
+ writer.uint32(16).uint64(message.ackedSeq);
8071
+ }
8072
+ if (message.creditBytes !== "0") {
8073
+ writer.uint32(24).uint64(message.creditBytes);
8074
+ }
8075
+ if (message.final !== false) {
8076
+ writer.uint32(32).bool(message.final);
8077
+ }
8078
+ if (message.attachGeneration !== "0") {
8079
+ writer.uint32(40).uint64(message.attachGeneration);
8080
+ }
8081
+ return writer;
8082
+ },
8083
+ decode(input, length) {
8084
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8085
+ const end = length === void 0 ? reader.len : reader.pos + length;
8086
+ const message = createBaseOpAck();
8087
+ while (reader.pos < end) {
8088
+ const tag = reader.uint32();
8089
+ switch (tag >>> 3) {
8090
+ case 1: {
8091
+ if (tag !== 10) {
8092
+ break;
8093
+ }
8094
+ message.opId = reader.string();
8095
+ continue;
8096
+ }
8097
+ case 2: {
8098
+ if (tag !== 16) {
8099
+ break;
8100
+ }
8101
+ message.ackedSeq = reader.uint64().toString();
8102
+ continue;
8103
+ }
8104
+ case 3: {
8105
+ if (tag !== 24) {
8106
+ break;
8107
+ }
8108
+ message.creditBytes = reader.uint64().toString();
8109
+ continue;
8110
+ }
8111
+ case 4: {
8112
+ if (tag !== 32) {
8113
+ break;
8114
+ }
8115
+ message.final = reader.bool();
8116
+ continue;
8117
+ }
8118
+ case 5: {
8119
+ if (tag !== 40) {
8120
+ break;
8121
+ }
8122
+ message.attachGeneration = reader.uint64().toString();
8123
+ continue;
8124
+ }
8125
+ }
8126
+ if ((tag & 7) === 4 || tag === 0) {
8127
+ break;
8128
+ }
8129
+ reader.skip(tag & 7);
8130
+ }
8131
+ return message;
8132
+ },
8133
+ fromJSON(object) {
8134
+ return {
8135
+ opId: isSet(object.opId) ? globalThis.String(object.opId) : isSet(object.op_id) ? globalThis.String(object.op_id) : "",
8136
+ ackedSeq: isSet(object.ackedSeq) ? globalThis.String(object.ackedSeq) : isSet(object.acked_seq) ? globalThis.String(object.acked_seq) : "0",
8137
+ creditBytes: isSet(object.creditBytes) ? globalThis.String(object.creditBytes) : isSet(object.credit_bytes) ? globalThis.String(object.credit_bytes) : "0",
8138
+ final: isSet(object.final) ? globalThis.Boolean(object.final) : false,
8139
+ attachGeneration: isSet(object.attachGeneration) ? globalThis.String(object.attachGeneration) : isSet(object.attach_generation) ? globalThis.String(object.attach_generation) : "0"
8140
+ };
8141
+ },
8142
+ toJSON(message) {
8143
+ const obj = {};
8144
+ if (message.opId !== "") {
8145
+ obj.opId = message.opId;
8146
+ }
8147
+ if (message.ackedSeq !== "0") {
8148
+ obj.ackedSeq = message.ackedSeq;
8149
+ }
8150
+ if (message.creditBytes !== "0") {
8151
+ obj.creditBytes = message.creditBytes;
8152
+ }
8153
+ if (message.final !== false) {
8154
+ obj.final = message.final;
8155
+ }
8156
+ if (message.attachGeneration !== "0") {
8157
+ obj.attachGeneration = message.attachGeneration;
8158
+ }
8159
+ return obj;
8160
+ },
8161
+ create(base) {
8162
+ return OpAck.fromPartial(base ?? {});
8163
+ },
8164
+ fromPartial(object) {
8165
+ const message = createBaseOpAck();
8166
+ message.opId = object.opId ?? "";
8167
+ message.ackedSeq = object.ackedSeq ?? "0";
8168
+ message.creditBytes = object.creditBytes ?? "0";
8169
+ message.final = object.final ?? false;
8170
+ message.attachGeneration = object.attachGeneration ?? "0";
8171
+ return message;
8172
+ }
8173
+ };
6079
8174
  function createBaseControlRequest() {
6080
8175
  return { requestId: "", epoch: 0, op: void 0 };
6081
8176
  }
@@ -6143,13 +8238,34 @@ var ControlRequest = {
6143
8238
  MetricsRequest.encode(message.op.metrics, writer.uint32(218).fork()).join();
6144
8239
  break;
6145
8240
  case "updateMayProceed":
6146
- UpdateMayProceedRequest.encode(message.op.updateMayProceed, writer.uint32(226).fork()).join();
8241
+ UpdateMayProceedRequest.encode(
8242
+ message.op.updateMayProceed,
8243
+ writer.uint32(226).fork()
8244
+ ).join();
6147
8245
  break;
6148
8246
  case "desktopInput":
6149
8247
  DesktopInputRequest.encode(message.op.desktopInput, writer.uint32(234).fork()).join();
6150
8248
  break;
6151
8249
  case "desktopScreenshot":
6152
- DesktopScreenshotRequest.encode(message.op.desktopScreenshot, writer.uint32(242).fork()).join();
8250
+ DesktopScreenshotRequest.encode(
8251
+ message.op.desktopScreenshot,
8252
+ writer.uint32(242).fork()
8253
+ ).join();
8254
+ break;
8255
+ case "opStart":
8256
+ OpStart.encode(message.op.opStart, writer.uint32(250).fork()).join();
8257
+ break;
8258
+ case "opCancel":
8259
+ OpCancel.encode(message.op.opCancel, writer.uint32(258).fork()).join();
8260
+ break;
8261
+ case "opQuery":
8262
+ OpQuery.encode(message.op.opQuery, writer.uint32(266).fork()).join();
8263
+ break;
8264
+ case "opAttach":
8265
+ OpAttach.encode(message.op.opAttach, writer.uint32(274).fork()).join();
8266
+ break;
8267
+ case "writeChunk":
8268
+ WriteChunk.encode(message.op.writeChunk, writer.uint32(282).fork()).join();
6153
8269
  break;
6154
8270
  }
6155
8271
  return writer;
@@ -6214,7 +8330,10 @@ var ControlRequest = {
6214
8330
  if (tag !== 122) {
6215
8331
  break;
6216
8332
  }
6217
- message.op = { $case: "fsWrite", fsWrite: FsWriteRequest.decode(reader, reader.uint32()) };
8333
+ message.op = {
8334
+ $case: "fsWrite",
8335
+ fsWrite: FsWriteRequest.decode(reader, reader.uint32())
8336
+ };
6218
8337
  continue;
6219
8338
  }
6220
8339
  case 16: {
@@ -6228,7 +8347,10 @@ var ControlRequest = {
6228
8347
  if (tag !== 138) {
6229
8348
  break;
6230
8349
  }
6231
- message.op = { $case: "fsMkdir", fsMkdir: FsMkdirRequest.decode(reader, reader.uint32()) };
8350
+ message.op = {
8351
+ $case: "fsMkdir",
8352
+ fsMkdir: FsMkdirRequest.decode(reader, reader.uint32())
8353
+ };
6232
8354
  continue;
6233
8355
  }
6234
8356
  case 18: {
@@ -6249,7 +8371,10 @@ var ControlRequest = {
6249
8371
  if (tag !== 162) {
6250
8372
  break;
6251
8373
  }
6252
- message.op = { $case: "fsRemove", fsRemove: FsRemoveRequest.decode(reader, reader.uint32()) };
8374
+ message.op = {
8375
+ $case: "fsRemove",
8376
+ fsRemove: FsRemoveRequest.decode(reader, reader.uint32())
8377
+ };
6253
8378
  continue;
6254
8379
  }
6255
8380
  case 21: {
@@ -6263,42 +8388,60 @@ var ControlRequest = {
6263
8388
  if (tag !== 178) {
6264
8389
  break;
6265
8390
  }
6266
- message.op = { $case: "ptyOpen", ptyOpen: PtyOpenRequest.decode(reader, reader.uint32()) };
8391
+ message.op = {
8392
+ $case: "ptyOpen",
8393
+ ptyOpen: PtyOpenRequest.decode(reader, reader.uint32())
8394
+ };
6267
8395
  continue;
6268
8396
  }
6269
8397
  case 23: {
6270
8398
  if (tag !== 186) {
6271
8399
  break;
6272
8400
  }
6273
- message.op = { $case: "ptyWrite", ptyWrite: PtyWriteRequest.decode(reader, reader.uint32()) };
8401
+ message.op = {
8402
+ $case: "ptyWrite",
8403
+ ptyWrite: PtyWriteRequest.decode(reader, reader.uint32())
8404
+ };
6274
8405
  continue;
6275
8406
  }
6276
8407
  case 24: {
6277
8408
  if (tag !== 194) {
6278
8409
  break;
6279
8410
  }
6280
- message.op = { $case: "ptyResize", ptyResize: PtyResizeRequest.decode(reader, reader.uint32()) };
8411
+ message.op = {
8412
+ $case: "ptyResize",
8413
+ ptyResize: PtyResizeRequest.decode(reader, reader.uint32())
8414
+ };
6281
8415
  continue;
6282
8416
  }
6283
8417
  case 25: {
6284
8418
  if (tag !== 202) {
6285
8419
  break;
6286
8420
  }
6287
- message.op = { $case: "ptyClose", ptyClose: PtyCloseRequest.decode(reader, reader.uint32()) };
8421
+ message.op = {
8422
+ $case: "ptyClose",
8423
+ ptyClose: PtyCloseRequest.decode(reader, reader.uint32())
8424
+ };
6288
8425
  continue;
6289
8426
  }
6290
8427
  case 26: {
6291
8428
  if (tag !== 210) {
6292
8429
  break;
6293
8430
  }
6294
- message.op = { $case: "desktopEnsure", desktopEnsure: DesktopEnsureRequest.decode(reader, reader.uint32()) };
8431
+ message.op = {
8432
+ $case: "desktopEnsure",
8433
+ desktopEnsure: DesktopEnsureRequest.decode(reader, reader.uint32())
8434
+ };
6295
8435
  continue;
6296
8436
  }
6297
8437
  case 27: {
6298
8438
  if (tag !== 218) {
6299
8439
  break;
6300
8440
  }
6301
- message.op = { $case: "metrics", metrics: MetricsRequest.decode(reader, reader.uint32()) };
8441
+ message.op = {
8442
+ $case: "metrics",
8443
+ metrics: MetricsRequest.decode(reader, reader.uint32())
8444
+ };
6302
8445
  continue;
6303
8446
  }
6304
8447
  case 28: {
@@ -6315,7 +8458,10 @@ var ControlRequest = {
6315
8458
  if (tag !== 234) {
6316
8459
  break;
6317
8460
  }
6318
- message.op = { $case: "desktopInput", desktopInput: DesktopInputRequest.decode(reader, reader.uint32()) };
8461
+ message.op = {
8462
+ $case: "desktopInput",
8463
+ desktopInput: DesktopInputRequest.decode(reader, reader.uint32())
8464
+ };
6319
8465
  continue;
6320
8466
  }
6321
8467
  case 30: {
@@ -6328,6 +8474,44 @@ var ControlRequest = {
6328
8474
  };
6329
8475
  continue;
6330
8476
  }
8477
+ case 31: {
8478
+ if (tag !== 250) {
8479
+ break;
8480
+ }
8481
+ message.op = { $case: "opStart", opStart: OpStart.decode(reader, reader.uint32()) };
8482
+ continue;
8483
+ }
8484
+ case 32: {
8485
+ if (tag !== 258) {
8486
+ break;
8487
+ }
8488
+ message.op = { $case: "opCancel", opCancel: OpCancel.decode(reader, reader.uint32()) };
8489
+ continue;
8490
+ }
8491
+ case 33: {
8492
+ if (tag !== 266) {
8493
+ break;
8494
+ }
8495
+ message.op = { $case: "opQuery", opQuery: OpQuery.decode(reader, reader.uint32()) };
8496
+ continue;
8497
+ }
8498
+ case 34: {
8499
+ if (tag !== 274) {
8500
+ break;
8501
+ }
8502
+ message.op = { $case: "opAttach", opAttach: OpAttach.decode(reader, reader.uint32()) };
8503
+ continue;
8504
+ }
8505
+ case 35: {
8506
+ if (tag !== 282) {
8507
+ break;
8508
+ }
8509
+ message.op = {
8510
+ $case: "writeChunk",
8511
+ writeChunk: WriteChunk.decode(reader, reader.uint32())
8512
+ };
8513
+ continue;
8514
+ }
6331
8515
  }
6332
8516
  if ((tag & 7) === 4 || tag === 0) {
6333
8517
  break;
@@ -6340,9 +8524,185 @@ var ControlRequest = {
6340
8524
  return {
6341
8525
  requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : isSet(object.request_id) ? globalThis.String(object.request_id) : "",
6342
8526
  epoch: isSet(object.epoch) ? globalThis.Number(object.epoch) : 0,
6343
- 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.exec) ? { $case: "exec", exec: ExecRequest.fromJSON(object.exec) } : 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) ? {
8527
+ 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.exec) ? { $case: "exec", exec: ExecRequest.fromJSON(object.exec) } : 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) ? {
8528
+ $case: "fsMkdir",
8529
+ fsMkdir: FsMkdirRequest.fromJSON(object.fs_mkdir)
8530
+ } : isSet(object.fsMove) ? { $case: "fsMove", fsMove: FsMoveRequest.fromJSON(object.fsMove) } : isSet(object.fs_move) ? {
8531
+ $case: "fsMove",
8532
+ fsMove: FsMoveRequest.fromJSON(object.fs_move)
8533
+ } : isSet(object.fsStat) ? {
8534
+ $case: "fsStat",
8535
+ fsStat: FsStatRequest.fromJSON(object.fsStat)
8536
+ } : isSet(object.fs_stat) ? {
8537
+ $case: "fsStat",
8538
+ fsStat: FsStatRequest.fromJSON(object.fs_stat)
8539
+ } : isSet(object.fsRemove) ? {
8540
+ $case: "fsRemove",
8541
+ fsRemove: FsRemoveRequest.fromJSON(object.fsRemove)
8542
+ } : isSet(object.fs_remove) ? {
8543
+ $case: "fsRemove",
8544
+ fsRemove: FsRemoveRequest.fromJSON(object.fs_remove)
8545
+ } : isSet(object.git) ? { $case: "git", git: GitRequest.fromJSON(object.git) } : isSet(object.ptyOpen) ? {
8546
+ $case: "ptyOpen",
8547
+ ptyOpen: PtyOpenRequest.fromJSON(object.ptyOpen)
8548
+ } : isSet(object.pty_open) ? {
8549
+ $case: "ptyOpen",
8550
+ ptyOpen: PtyOpenRequest.fromJSON(
8551
+ object.pty_open
8552
+ )
8553
+ } : isSet(object.ptyWrite) ? {
8554
+ $case: "ptyWrite",
8555
+ ptyWrite: PtyWriteRequest.fromJSON(
8556
+ object.ptyWrite
8557
+ )
8558
+ } : isSet(object.pty_write) ? {
8559
+ $case: "ptyWrite",
8560
+ ptyWrite: PtyWriteRequest.fromJSON(
8561
+ object.pty_write
8562
+ )
8563
+ } : isSet(object.ptyResize) ? {
8564
+ $case: "ptyResize",
8565
+ ptyResize: PtyResizeRequest.fromJSON(
8566
+ object.ptyResize
8567
+ )
8568
+ } : isSet(object.pty_resize) ? {
8569
+ $case: "ptyResize",
8570
+ ptyResize: PtyResizeRequest.fromJSON(
8571
+ object.pty_resize
8572
+ )
8573
+ } : isSet(object.ptyClose) ? {
8574
+ $case: "ptyClose",
8575
+ ptyClose: PtyCloseRequest.fromJSON(
8576
+ object.ptyClose
8577
+ )
8578
+ } : isSet(object.pty_close) ? {
8579
+ $case: "ptyClose",
8580
+ ptyClose: PtyCloseRequest.fromJSON(
8581
+ object.pty_close
8582
+ )
8583
+ } : isSet(object.desktopEnsure) ? {
8584
+ $case: "desktopEnsure",
8585
+ desktopEnsure: DesktopEnsureRequest.fromJSON(
8586
+ object.desktopEnsure
8587
+ )
8588
+ } : isSet(object.desktop_ensure) ? {
8589
+ $case: "desktopEnsure",
8590
+ desktopEnsure: DesktopEnsureRequest.fromJSON(
8591
+ object.desktop_ensure
8592
+ )
8593
+ } : isSet(object.metrics) ? {
8594
+ $case: "metrics",
8595
+ metrics: MetricsRequest.fromJSON(
8596
+ object.metrics
8597
+ )
8598
+ } : isSet(object.updateMayProceed) ? {
8599
+ $case: "updateMayProceed",
8600
+ updateMayProceed: UpdateMayProceedRequest.fromJSON(
8601
+ object.updateMayProceed
8602
+ )
8603
+ } : isSet(
8604
+ object.update_may_proceed
8605
+ ) ? {
8606
+ $case: "updateMayProceed",
8607
+ updateMayProceed: UpdateMayProceedRequest.fromJSON(
8608
+ object.update_may_proceed
8609
+ )
8610
+ } : isSet(object.desktopInput) ? {
8611
+ $case: "desktopInput",
8612
+ desktopInput: DesktopInputRequest.fromJSON(
8613
+ object.desktopInput
8614
+ )
8615
+ } : isSet(
8616
+ object.desktop_input
8617
+ ) ? {
8618
+ $case: "desktopInput",
8619
+ desktopInput: DesktopInputRequest.fromJSON(
8620
+ object.desktop_input
8621
+ )
8622
+ } : isSet(
8623
+ object.desktopScreenshot
8624
+ ) ? {
8625
+ $case: "desktopScreenshot",
8626
+ desktopScreenshot: DesktopScreenshotRequest.fromJSON(
8627
+ object.desktopScreenshot
8628
+ )
8629
+ } : isSet(
8630
+ object.desktop_screenshot
8631
+ ) ? {
6344
8632
  $case: "desktopScreenshot",
6345
- desktopScreenshot: DesktopScreenshotRequest.fromJSON(object.desktop_screenshot)
8633
+ desktopScreenshot: DesktopScreenshotRequest.fromJSON(
8634
+ object.desktop_screenshot
8635
+ )
8636
+ } : isSet(
8637
+ object.opStart
8638
+ ) ? {
8639
+ $case: "opStart",
8640
+ opStart: OpStart.fromJSON(
8641
+ object.opStart
8642
+ )
8643
+ } : isSet(
8644
+ object.op_start
8645
+ ) ? {
8646
+ $case: "opStart",
8647
+ opStart: OpStart.fromJSON(
8648
+ object.op_start
8649
+ )
8650
+ } : isSet(
8651
+ object.opCancel
8652
+ ) ? {
8653
+ $case: "opCancel",
8654
+ opCancel: OpCancel.fromJSON(
8655
+ object.opCancel
8656
+ )
8657
+ } : isSet(
8658
+ object.op_cancel
8659
+ ) ? {
8660
+ $case: "opCancel",
8661
+ opCancel: OpCancel.fromJSON(
8662
+ object.op_cancel
8663
+ )
8664
+ } : isSet(
8665
+ object.opQuery
8666
+ ) ? {
8667
+ $case: "opQuery",
8668
+ opQuery: OpQuery.fromJSON(
8669
+ object.opQuery
8670
+ )
8671
+ } : isSet(
8672
+ object.op_query
8673
+ ) ? {
8674
+ $case: "opQuery",
8675
+ opQuery: OpQuery.fromJSON(
8676
+ object.op_query
8677
+ )
8678
+ } : isSet(
8679
+ object.opAttach
8680
+ ) ? {
8681
+ $case: "opAttach",
8682
+ opAttach: OpAttach.fromJSON(
8683
+ object.opAttach
8684
+ )
8685
+ } : isSet(
8686
+ object.op_attach
8687
+ ) ? {
8688
+ $case: "opAttach",
8689
+ opAttach: OpAttach.fromJSON(
8690
+ object.op_attach
8691
+ )
8692
+ } : isSet(
8693
+ object.writeChunk
8694
+ ) ? {
8695
+ $case: "writeChunk",
8696
+ writeChunk: WriteChunk.fromJSON(
8697
+ object.writeChunk
8698
+ )
8699
+ } : isSet(
8700
+ object.write_chunk
8701
+ ) ? {
8702
+ $case: "writeChunk",
8703
+ writeChunk: WriteChunk.fromJSON(
8704
+ object.write_chunk
8705
+ )
6346
8706
  } : void 0
6347
8707
  };
6348
8708
  },
@@ -6396,6 +8756,16 @@ var ControlRequest = {
6396
8756
  obj.desktopInput = DesktopInputRequest.toJSON(message.op.desktopInput);
6397
8757
  } else if (message.op?.$case === "desktopScreenshot") {
6398
8758
  obj.desktopScreenshot = DesktopScreenshotRequest.toJSON(message.op.desktopScreenshot);
8759
+ } else if (message.op?.$case === "opStart") {
8760
+ obj.opStart = OpStart.toJSON(message.op.opStart);
8761
+ } else if (message.op?.$case === "opCancel") {
8762
+ obj.opCancel = OpCancel.toJSON(message.op.opCancel);
8763
+ } else if (message.op?.$case === "opQuery") {
8764
+ obj.opQuery = OpQuery.toJSON(message.op.opQuery);
8765
+ } else if (message.op?.$case === "opAttach") {
8766
+ obj.opAttach = OpAttach.toJSON(message.op.opAttach);
8767
+ } else if (message.op?.$case === "writeChunk") {
8768
+ obj.writeChunk = WriteChunk.toJSON(message.op.writeChunk);
6399
8769
  }
6400
8770
  return obj;
6401
8771
  },
@@ -6469,7 +8839,10 @@ var ControlRequest = {
6469
8839
  }
6470
8840
  case "fsRemove": {
6471
8841
  if (object.op?.fsRemove !== void 0 && object.op?.fsRemove !== null) {
6472
- message.op = { $case: "fsRemove", fsRemove: FsRemoveRequest.fromPartial(object.op.fsRemove) };
8842
+ message.op = {
8843
+ $case: "fsRemove",
8844
+ fsRemove: FsRemoveRequest.fromPartial(object.op.fsRemove)
8845
+ };
6473
8846
  }
6474
8847
  break;
6475
8848
  }
@@ -6487,19 +8860,28 @@ var ControlRequest = {
6487
8860
  }
6488
8861
  case "ptyWrite": {
6489
8862
  if (object.op?.ptyWrite !== void 0 && object.op?.ptyWrite !== null) {
6490
- message.op = { $case: "ptyWrite", ptyWrite: PtyWriteRequest.fromPartial(object.op.ptyWrite) };
8863
+ message.op = {
8864
+ $case: "ptyWrite",
8865
+ ptyWrite: PtyWriteRequest.fromPartial(object.op.ptyWrite)
8866
+ };
6491
8867
  }
6492
8868
  break;
6493
8869
  }
6494
8870
  case "ptyResize": {
6495
8871
  if (object.op?.ptyResize !== void 0 && object.op?.ptyResize !== null) {
6496
- message.op = { $case: "ptyResize", ptyResize: PtyResizeRequest.fromPartial(object.op.ptyResize) };
8872
+ message.op = {
8873
+ $case: "ptyResize",
8874
+ ptyResize: PtyResizeRequest.fromPartial(object.op.ptyResize)
8875
+ };
6497
8876
  }
6498
8877
  break;
6499
8878
  }
6500
8879
  case "ptyClose": {
6501
8880
  if (object.op?.ptyClose !== void 0 && object.op?.ptyClose !== null) {
6502
- message.op = { $case: "ptyClose", ptyClose: PtyCloseRequest.fromPartial(object.op.ptyClose) };
8881
+ message.op = {
8882
+ $case: "ptyClose",
8883
+ ptyClose: PtyCloseRequest.fromPartial(object.op.ptyClose)
8884
+ };
6503
8885
  }
6504
8886
  break;
6505
8887
  }
@@ -6529,7 +8911,10 @@ var ControlRequest = {
6529
8911
  }
6530
8912
  case "desktopInput": {
6531
8913
  if (object.op?.desktopInput !== void 0 && object.op?.desktopInput !== null) {
6532
- message.op = { $case: "desktopInput", desktopInput: DesktopInputRequest.fromPartial(object.op.desktopInput) };
8914
+ message.op = {
8915
+ $case: "desktopInput",
8916
+ desktopInput: DesktopInputRequest.fromPartial(object.op.desktopInput)
8917
+ };
6533
8918
  }
6534
8919
  break;
6535
8920
  }
@@ -6542,6 +8927,39 @@ var ControlRequest = {
6542
8927
  }
6543
8928
  break;
6544
8929
  }
8930
+ case "opStart": {
8931
+ if (object.op?.opStart !== void 0 && object.op?.opStart !== null) {
8932
+ message.op = { $case: "opStart", opStart: OpStart.fromPartial(object.op.opStart) };
8933
+ }
8934
+ break;
8935
+ }
8936
+ case "opCancel": {
8937
+ if (object.op?.opCancel !== void 0 && object.op?.opCancel !== null) {
8938
+ message.op = { $case: "opCancel", opCancel: OpCancel.fromPartial(object.op.opCancel) };
8939
+ }
8940
+ break;
8941
+ }
8942
+ case "opQuery": {
8943
+ if (object.op?.opQuery !== void 0 && object.op?.opQuery !== null) {
8944
+ message.op = { $case: "opQuery", opQuery: OpQuery.fromPartial(object.op.opQuery) };
8945
+ }
8946
+ break;
8947
+ }
8948
+ case "opAttach": {
8949
+ if (object.op?.opAttach !== void 0 && object.op?.opAttach !== null) {
8950
+ message.op = { $case: "opAttach", opAttach: OpAttach.fromPartial(object.op.opAttach) };
8951
+ }
8952
+ break;
8953
+ }
8954
+ case "writeChunk": {
8955
+ if (object.op?.writeChunk !== void 0 && object.op?.writeChunk !== null) {
8956
+ message.op = {
8957
+ $case: "writeChunk",
8958
+ writeChunk: WriteChunk.fromPartial(object.op.writeChunk)
8959
+ };
8960
+ }
8961
+ break;
8962
+ }
6545
8963
  }
6546
8964
  return message;
6547
8965
  }
@@ -6607,19 +9025,37 @@ var ControlResponse = {
6607
9025
  PtyCloseResponse.encode(message.result.ptyClose, writer.uint32(202).fork()).join();
6608
9026
  break;
6609
9027
  case "desktopEnsure":
6610
- DesktopEnsureResponse.encode(message.result.desktopEnsure, writer.uint32(210).fork()).join();
9028
+ DesktopEnsureResponse.encode(
9029
+ message.result.desktopEnsure,
9030
+ writer.uint32(210).fork()
9031
+ ).join();
6611
9032
  break;
6612
9033
  case "metrics":
6613
9034
  MetricsSample.encode(message.result.metrics, writer.uint32(218).fork()).join();
6614
9035
  break;
6615
9036
  case "updateMayProceed":
6616
- UpdateMayProceedResponse.encode(message.result.updateMayProceed, writer.uint32(226).fork()).join();
9037
+ UpdateMayProceedResponse.encode(
9038
+ message.result.updateMayProceed,
9039
+ writer.uint32(226).fork()
9040
+ ).join();
6617
9041
  break;
6618
9042
  case "desktopInput":
6619
9043
  DesktopInputResponse.encode(message.result.desktopInput, writer.uint32(234).fork()).join();
6620
9044
  break;
6621
9045
  case "desktopScreenshot":
6622
- DesktopScreenshotResponse.encode(message.result.desktopScreenshot, writer.uint32(242).fork()).join();
9046
+ DesktopScreenshotResponse.encode(
9047
+ message.result.desktopScreenshot,
9048
+ writer.uint32(242).fork()
9049
+ ).join();
9050
+ break;
9051
+ case "opStart":
9052
+ OpStarted.encode(message.result.opStart, writer.uint32(250).fork()).join();
9053
+ break;
9054
+ case "opStatus":
9055
+ OpStatus.encode(message.result.opStatus, writer.uint32(258).fork()).join();
9056
+ break;
9057
+ case "writeChunk":
9058
+ WriteChunkAck.encode(message.result.writeChunk, writer.uint32(282).fork()).join();
6623
9059
  break;
6624
9060
  }
6625
9061
  return writer;
@@ -6663,7 +9099,10 @@ var ControlResponse = {
6663
9099
  if (tag !== 98) {
6664
9100
  break;
6665
9101
  }
6666
- message.result = { $case: "resume", resume: ResumeResponse.decode(reader, reader.uint32()) };
9102
+ message.result = {
9103
+ $case: "resume",
9104
+ resume: ResumeResponse.decode(reader, reader.uint32())
9105
+ };
6667
9106
  continue;
6668
9107
  }
6669
9108
  case 13: {
@@ -6677,49 +9116,70 @@ var ControlResponse = {
6677
9116
  if (tag !== 114) {
6678
9117
  break;
6679
9118
  }
6680
- message.result = { $case: "fsRead", fsRead: FsReadResponse.decode(reader, reader.uint32()) };
9119
+ message.result = {
9120
+ $case: "fsRead",
9121
+ fsRead: FsReadResponse.decode(reader, reader.uint32())
9122
+ };
6681
9123
  continue;
6682
9124
  }
6683
9125
  case 15: {
6684
9126
  if (tag !== 122) {
6685
9127
  break;
6686
9128
  }
6687
- message.result = { $case: "fsWrite", fsWrite: FsWriteResponse.decode(reader, reader.uint32()) };
9129
+ message.result = {
9130
+ $case: "fsWrite",
9131
+ fsWrite: FsWriteResponse.decode(reader, reader.uint32())
9132
+ };
6688
9133
  continue;
6689
9134
  }
6690
9135
  case 16: {
6691
9136
  if (tag !== 130) {
6692
9137
  break;
6693
9138
  }
6694
- message.result = { $case: "fsList", fsList: FsListResponse.decode(reader, reader.uint32()) };
9139
+ message.result = {
9140
+ $case: "fsList",
9141
+ fsList: FsListResponse.decode(reader, reader.uint32())
9142
+ };
6695
9143
  continue;
6696
9144
  }
6697
9145
  case 17: {
6698
9146
  if (tag !== 138) {
6699
9147
  break;
6700
9148
  }
6701
- message.result = { $case: "fsMkdir", fsMkdir: FsMkdirResponse.decode(reader, reader.uint32()) };
9149
+ message.result = {
9150
+ $case: "fsMkdir",
9151
+ fsMkdir: FsMkdirResponse.decode(reader, reader.uint32())
9152
+ };
6702
9153
  continue;
6703
9154
  }
6704
9155
  case 18: {
6705
9156
  if (tag !== 146) {
6706
9157
  break;
6707
9158
  }
6708
- message.result = { $case: "fsMove", fsMove: FsMoveResponse.decode(reader, reader.uint32()) };
9159
+ message.result = {
9160
+ $case: "fsMove",
9161
+ fsMove: FsMoveResponse.decode(reader, reader.uint32())
9162
+ };
6709
9163
  continue;
6710
9164
  }
6711
9165
  case 19: {
6712
9166
  if (tag !== 154) {
6713
9167
  break;
6714
9168
  }
6715
- message.result = { $case: "fsStat", fsStat: FsStatResponse.decode(reader, reader.uint32()) };
9169
+ message.result = {
9170
+ $case: "fsStat",
9171
+ fsStat: FsStatResponse.decode(reader, reader.uint32())
9172
+ };
6716
9173
  continue;
6717
9174
  }
6718
9175
  case 20: {
6719
9176
  if (tag !== 162) {
6720
9177
  break;
6721
9178
  }
6722
- message.result = { $case: "fsRemove", fsRemove: FsRemoveResponse.decode(reader, reader.uint32()) };
9179
+ message.result = {
9180
+ $case: "fsRemove",
9181
+ fsRemove: FsRemoveResponse.decode(reader, reader.uint32())
9182
+ };
6723
9183
  continue;
6724
9184
  }
6725
9185
  case 21: {
@@ -6733,28 +9193,40 @@ var ControlResponse = {
6733
9193
  if (tag !== 178) {
6734
9194
  break;
6735
9195
  }
6736
- message.result = { $case: "ptyOpen", ptyOpen: PtyOpenResponse.decode(reader, reader.uint32()) };
9196
+ message.result = {
9197
+ $case: "ptyOpen",
9198
+ ptyOpen: PtyOpenResponse.decode(reader, reader.uint32())
9199
+ };
6737
9200
  continue;
6738
9201
  }
6739
9202
  case 23: {
6740
9203
  if (tag !== 186) {
6741
9204
  break;
6742
9205
  }
6743
- message.result = { $case: "ptyWrite", ptyWrite: PtyWriteResponse.decode(reader, reader.uint32()) };
9206
+ message.result = {
9207
+ $case: "ptyWrite",
9208
+ ptyWrite: PtyWriteResponse.decode(reader, reader.uint32())
9209
+ };
6744
9210
  continue;
6745
9211
  }
6746
9212
  case 24: {
6747
9213
  if (tag !== 194) {
6748
9214
  break;
6749
9215
  }
6750
- message.result = { $case: "ptyResize", ptyResize: PtyResizeResponse.decode(reader, reader.uint32()) };
9216
+ message.result = {
9217
+ $case: "ptyResize",
9218
+ ptyResize: PtyResizeResponse.decode(reader, reader.uint32())
9219
+ };
6751
9220
  continue;
6752
9221
  }
6753
9222
  case 25: {
6754
9223
  if (tag !== 202) {
6755
9224
  break;
6756
9225
  }
6757
- message.result = { $case: "ptyClose", ptyClose: PtyCloseResponse.decode(reader, reader.uint32()) };
9226
+ message.result = {
9227
+ $case: "ptyClose",
9228
+ ptyClose: PtyCloseResponse.decode(reader, reader.uint32())
9229
+ };
6758
9230
  continue;
6759
9231
  }
6760
9232
  case 26: {
@@ -6771,7 +9243,10 @@ var ControlResponse = {
6771
9243
  if (tag !== 218) {
6772
9244
  break;
6773
9245
  }
6774
- message.result = { $case: "metrics", metrics: MetricsSample.decode(reader, reader.uint32()) };
9246
+ message.result = {
9247
+ $case: "metrics",
9248
+ metrics: MetricsSample.decode(reader, reader.uint32())
9249
+ };
6775
9250
  continue;
6776
9251
  }
6777
9252
  case 28: {
@@ -6804,6 +9279,33 @@ var ControlResponse = {
6804
9279
  };
6805
9280
  continue;
6806
9281
  }
9282
+ case 31: {
9283
+ if (tag !== 250) {
9284
+ break;
9285
+ }
9286
+ message.result = { $case: "opStart", opStart: OpStarted.decode(reader, reader.uint32()) };
9287
+ continue;
9288
+ }
9289
+ case 32: {
9290
+ if (tag !== 258) {
9291
+ break;
9292
+ }
9293
+ message.result = {
9294
+ $case: "opStatus",
9295
+ opStatus: OpStatus.decode(reader, reader.uint32())
9296
+ };
9297
+ continue;
9298
+ }
9299
+ case 35: {
9300
+ if (tag !== 282) {
9301
+ break;
9302
+ }
9303
+ message.result = {
9304
+ $case: "writeChunk",
9305
+ writeChunk: WriteChunkAck.decode(reader, reader.uint32())
9306
+ };
9307
+ continue;
9308
+ }
6807
9309
  }
6808
9310
  if ((tag & 7) === 4 || tag === 0) {
6809
9311
  break;
@@ -6816,12 +9318,166 @@ var ControlResponse = {
6816
9318
  return {
6817
9319
  requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : isSet(object.request_id) ? globalThis.String(object.request_id) : "",
6818
9320
  error: isSet(object.error) ? AgentError.fromJSON(object.error) : void 0,
6819
- 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.exec) ? { $case: "exec", exec: ExecResponse.fromJSON(object.exec) } : 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) ? {
9321
+ 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.exec) ? { $case: "exec", exec: ExecResponse.fromJSON(object.exec) } : 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) ? {
9322
+ $case: "fsMkdir",
9323
+ fsMkdir: FsMkdirResponse.fromJSON(object.fsMkdir)
9324
+ } : isSet(object.fs_mkdir) ? {
9325
+ $case: "fsMkdir",
9326
+ fsMkdir: FsMkdirResponse.fromJSON(object.fs_mkdir)
9327
+ } : isSet(object.fsMove) ? {
9328
+ $case: "fsMove",
9329
+ fsMove: FsMoveResponse.fromJSON(object.fsMove)
9330
+ } : isSet(object.fs_move) ? {
9331
+ $case: "fsMove",
9332
+ fsMove: FsMoveResponse.fromJSON(object.fs_move)
9333
+ } : isSet(object.fsStat) ? {
9334
+ $case: "fsStat",
9335
+ fsStat: FsStatResponse.fromJSON(object.fsStat)
9336
+ } : isSet(object.fs_stat) ? {
9337
+ $case: "fsStat",
9338
+ fsStat: FsStatResponse.fromJSON(object.fs_stat)
9339
+ } : isSet(object.fsRemove) ? {
9340
+ $case: "fsRemove",
9341
+ fsRemove: FsRemoveResponse.fromJSON(object.fsRemove)
9342
+ } : isSet(object.fs_remove) ? {
9343
+ $case: "fsRemove",
9344
+ fsRemove: FsRemoveResponse.fromJSON(object.fs_remove)
9345
+ } : isSet(object.git) ? {
9346
+ $case: "git",
9347
+ git: GitResponse.fromJSON(object.git)
9348
+ } : isSet(object.ptyOpen) ? {
9349
+ $case: "ptyOpen",
9350
+ ptyOpen: PtyOpenResponse.fromJSON(object.ptyOpen)
9351
+ } : isSet(object.pty_open) ? {
9352
+ $case: "ptyOpen",
9353
+ ptyOpen: PtyOpenResponse.fromJSON(
9354
+ object.pty_open
9355
+ )
9356
+ } : isSet(object.ptyWrite) ? {
9357
+ $case: "ptyWrite",
9358
+ ptyWrite: PtyWriteResponse.fromJSON(
9359
+ object.ptyWrite
9360
+ )
9361
+ } : isSet(object.pty_write) ? {
9362
+ $case: "ptyWrite",
9363
+ ptyWrite: PtyWriteResponse.fromJSON(
9364
+ object.pty_write
9365
+ )
9366
+ } : isSet(object.ptyResize) ? {
9367
+ $case: "ptyResize",
9368
+ ptyResize: PtyResizeResponse.fromJSON(
9369
+ object.ptyResize
9370
+ )
9371
+ } : isSet(object.pty_resize) ? {
9372
+ $case: "ptyResize",
9373
+ ptyResize: PtyResizeResponse.fromJSON(
9374
+ object.pty_resize
9375
+ )
9376
+ } : isSet(object.ptyClose) ? {
9377
+ $case: "ptyClose",
9378
+ ptyClose: PtyCloseResponse.fromJSON(
9379
+ object.ptyClose
9380
+ )
9381
+ } : isSet(object.pty_close) ? {
9382
+ $case: "ptyClose",
9383
+ ptyClose: PtyCloseResponse.fromJSON(
9384
+ object.pty_close
9385
+ )
9386
+ } : isSet(object.desktopEnsure) ? {
9387
+ $case: "desktopEnsure",
9388
+ desktopEnsure: DesktopEnsureResponse.fromJSON(
9389
+ object.desktopEnsure
9390
+ )
9391
+ } : isSet(object.desktop_ensure) ? {
9392
+ $case: "desktopEnsure",
9393
+ desktopEnsure: DesktopEnsureResponse.fromJSON(
9394
+ object.desktop_ensure
9395
+ )
9396
+ } : isSet(object.metrics) ? {
9397
+ $case: "metrics",
9398
+ metrics: MetricsSample.fromJSON(
9399
+ object.metrics
9400
+ )
9401
+ } : isSet(object.updateMayProceed) ? {
9402
+ $case: "updateMayProceed",
9403
+ updateMayProceed: UpdateMayProceedResponse.fromJSON(
9404
+ object.updateMayProceed
9405
+ )
9406
+ } : isSet(
9407
+ object.update_may_proceed
9408
+ ) ? {
9409
+ $case: "updateMayProceed",
9410
+ updateMayProceed: UpdateMayProceedResponse.fromJSON(
9411
+ object.update_may_proceed
9412
+ )
9413
+ } : isSet(object.desktopInput) ? {
9414
+ $case: "desktopInput",
9415
+ desktopInput: DesktopInputResponse.fromJSON(
9416
+ object.desktopInput
9417
+ )
9418
+ } : isSet(
9419
+ object.desktop_input
9420
+ ) ? {
9421
+ $case: "desktopInput",
9422
+ desktopInput: DesktopInputResponse.fromJSON(
9423
+ object.desktop_input
9424
+ )
9425
+ } : isSet(
9426
+ object.desktopScreenshot
9427
+ ) ? {
6820
9428
  $case: "desktopScreenshot",
6821
- desktopScreenshot: DesktopScreenshotResponse.fromJSON(object.desktopScreenshot)
6822
- } : isSet(object.desktop_screenshot) ? {
9429
+ desktopScreenshot: DesktopScreenshotResponse.fromJSON(
9430
+ object.desktopScreenshot
9431
+ )
9432
+ } : isSet(
9433
+ object.desktop_screenshot
9434
+ ) ? {
6823
9435
  $case: "desktopScreenshot",
6824
- desktopScreenshot: DesktopScreenshotResponse.fromJSON(object.desktop_screenshot)
9436
+ desktopScreenshot: DesktopScreenshotResponse.fromJSON(
9437
+ object.desktop_screenshot
9438
+ )
9439
+ } : isSet(
9440
+ object.opStart
9441
+ ) ? {
9442
+ $case: "opStart",
9443
+ opStart: OpStarted.fromJSON(
9444
+ object.opStart
9445
+ )
9446
+ } : isSet(
9447
+ object.op_start
9448
+ ) ? {
9449
+ $case: "opStart",
9450
+ opStart: OpStarted.fromJSON(
9451
+ object.op_start
9452
+ )
9453
+ } : isSet(
9454
+ object.opStatus
9455
+ ) ? {
9456
+ $case: "opStatus",
9457
+ opStatus: OpStatus.fromJSON(
9458
+ object.opStatus
9459
+ )
9460
+ } : isSet(
9461
+ object.op_status
9462
+ ) ? {
9463
+ $case: "opStatus",
9464
+ opStatus: OpStatus.fromJSON(
9465
+ object.op_status
9466
+ )
9467
+ } : isSet(
9468
+ object.writeChunk
9469
+ ) ? {
9470
+ $case: "writeChunk",
9471
+ writeChunk: WriteChunkAck.fromJSON(
9472
+ object.writeChunk
9473
+ )
9474
+ } : isSet(
9475
+ object.write_chunk
9476
+ ) ? {
9477
+ $case: "writeChunk",
9478
+ writeChunk: WriteChunkAck.fromJSON(
9479
+ object.write_chunk
9480
+ )
6825
9481
  } : void 0
6826
9482
  };
6827
9483
  },
@@ -6875,6 +9531,12 @@ var ControlResponse = {
6875
9531
  obj.desktopInput = DesktopInputResponse.toJSON(message.result.desktopInput);
6876
9532
  } else if (message.result?.$case === "desktopScreenshot") {
6877
9533
  obj.desktopScreenshot = DesktopScreenshotResponse.toJSON(message.result.desktopScreenshot);
9534
+ } else if (message.result?.$case === "opStart") {
9535
+ obj.opStart = OpStarted.toJSON(message.result.opStart);
9536
+ } else if (message.result?.$case === "opStatus") {
9537
+ obj.opStatus = OpStatus.toJSON(message.result.opStatus);
9538
+ } else if (message.result?.$case === "writeChunk") {
9539
+ obj.writeChunk = WriteChunkAck.toJSON(message.result.writeChunk);
6878
9540
  }
6879
9541
  return obj;
6880
9542
  },
@@ -6900,7 +9562,10 @@ var ControlResponse = {
6900
9562
  }
6901
9563
  case "resume": {
6902
9564
  if (object.result?.resume !== void 0 && object.result?.resume !== null) {
6903
- message.result = { $case: "resume", resume: ResumeResponse.fromPartial(object.result.resume) };
9565
+ message.result = {
9566
+ $case: "resume",
9567
+ resume: ResumeResponse.fromPartial(object.result.resume)
9568
+ };
6904
9569
  }
6905
9570
  break;
6906
9571
  }
@@ -6912,43 +9577,64 @@ var ControlResponse = {
6912
9577
  }
6913
9578
  case "fsRead": {
6914
9579
  if (object.result?.fsRead !== void 0 && object.result?.fsRead !== null) {
6915
- message.result = { $case: "fsRead", fsRead: FsReadResponse.fromPartial(object.result.fsRead) };
9580
+ message.result = {
9581
+ $case: "fsRead",
9582
+ fsRead: FsReadResponse.fromPartial(object.result.fsRead)
9583
+ };
6916
9584
  }
6917
9585
  break;
6918
9586
  }
6919
9587
  case "fsWrite": {
6920
9588
  if (object.result?.fsWrite !== void 0 && object.result?.fsWrite !== null) {
6921
- message.result = { $case: "fsWrite", fsWrite: FsWriteResponse.fromPartial(object.result.fsWrite) };
9589
+ message.result = {
9590
+ $case: "fsWrite",
9591
+ fsWrite: FsWriteResponse.fromPartial(object.result.fsWrite)
9592
+ };
6922
9593
  }
6923
9594
  break;
6924
9595
  }
6925
9596
  case "fsList": {
6926
9597
  if (object.result?.fsList !== void 0 && object.result?.fsList !== null) {
6927
- message.result = { $case: "fsList", fsList: FsListResponse.fromPartial(object.result.fsList) };
9598
+ message.result = {
9599
+ $case: "fsList",
9600
+ fsList: FsListResponse.fromPartial(object.result.fsList)
9601
+ };
6928
9602
  }
6929
9603
  break;
6930
9604
  }
6931
9605
  case "fsMkdir": {
6932
9606
  if (object.result?.fsMkdir !== void 0 && object.result?.fsMkdir !== null) {
6933
- message.result = { $case: "fsMkdir", fsMkdir: FsMkdirResponse.fromPartial(object.result.fsMkdir) };
9607
+ message.result = {
9608
+ $case: "fsMkdir",
9609
+ fsMkdir: FsMkdirResponse.fromPartial(object.result.fsMkdir)
9610
+ };
6934
9611
  }
6935
9612
  break;
6936
9613
  }
6937
9614
  case "fsMove": {
6938
9615
  if (object.result?.fsMove !== void 0 && object.result?.fsMove !== null) {
6939
- message.result = { $case: "fsMove", fsMove: FsMoveResponse.fromPartial(object.result.fsMove) };
9616
+ message.result = {
9617
+ $case: "fsMove",
9618
+ fsMove: FsMoveResponse.fromPartial(object.result.fsMove)
9619
+ };
6940
9620
  }
6941
9621
  break;
6942
9622
  }
6943
9623
  case "fsStat": {
6944
9624
  if (object.result?.fsStat !== void 0 && object.result?.fsStat !== null) {
6945
- message.result = { $case: "fsStat", fsStat: FsStatResponse.fromPartial(object.result.fsStat) };
9625
+ message.result = {
9626
+ $case: "fsStat",
9627
+ fsStat: FsStatResponse.fromPartial(object.result.fsStat)
9628
+ };
6946
9629
  }
6947
9630
  break;
6948
9631
  }
6949
9632
  case "fsRemove": {
6950
9633
  if (object.result?.fsRemove !== void 0 && object.result?.fsRemove !== null) {
6951
- message.result = { $case: "fsRemove", fsRemove: FsRemoveResponse.fromPartial(object.result.fsRemove) };
9634
+ message.result = {
9635
+ $case: "fsRemove",
9636
+ fsRemove: FsRemoveResponse.fromPartial(object.result.fsRemove)
9637
+ };
6952
9638
  }
6953
9639
  break;
6954
9640
  }
@@ -6960,25 +9646,37 @@ var ControlResponse = {
6960
9646
  }
6961
9647
  case "ptyOpen": {
6962
9648
  if (object.result?.ptyOpen !== void 0 && object.result?.ptyOpen !== null) {
6963
- message.result = { $case: "ptyOpen", ptyOpen: PtyOpenResponse.fromPartial(object.result.ptyOpen) };
9649
+ message.result = {
9650
+ $case: "ptyOpen",
9651
+ ptyOpen: PtyOpenResponse.fromPartial(object.result.ptyOpen)
9652
+ };
6964
9653
  }
6965
9654
  break;
6966
9655
  }
6967
9656
  case "ptyWrite": {
6968
9657
  if (object.result?.ptyWrite !== void 0 && object.result?.ptyWrite !== null) {
6969
- message.result = { $case: "ptyWrite", ptyWrite: PtyWriteResponse.fromPartial(object.result.ptyWrite) };
9658
+ message.result = {
9659
+ $case: "ptyWrite",
9660
+ ptyWrite: PtyWriteResponse.fromPartial(object.result.ptyWrite)
9661
+ };
6970
9662
  }
6971
9663
  break;
6972
9664
  }
6973
9665
  case "ptyResize": {
6974
9666
  if (object.result?.ptyResize !== void 0 && object.result?.ptyResize !== null) {
6975
- message.result = { $case: "ptyResize", ptyResize: PtyResizeResponse.fromPartial(object.result.ptyResize) };
9667
+ message.result = {
9668
+ $case: "ptyResize",
9669
+ ptyResize: PtyResizeResponse.fromPartial(object.result.ptyResize)
9670
+ };
6976
9671
  }
6977
9672
  break;
6978
9673
  }
6979
9674
  case "ptyClose": {
6980
9675
  if (object.result?.ptyClose !== void 0 && object.result?.ptyClose !== null) {
6981
- message.result = { $case: "ptyClose", ptyClose: PtyCloseResponse.fromPartial(object.result.ptyClose) };
9676
+ message.result = {
9677
+ $case: "ptyClose",
9678
+ ptyClose: PtyCloseResponse.fromPartial(object.result.ptyClose)
9679
+ };
6982
9680
  }
6983
9681
  break;
6984
9682
  }
@@ -6993,7 +9691,10 @@ var ControlResponse = {
6993
9691
  }
6994
9692
  case "metrics": {
6995
9693
  if (object.result?.metrics !== void 0 && object.result?.metrics !== null) {
6996
- message.result = { $case: "metrics", metrics: MetricsSample.fromPartial(object.result.metrics) };
9694
+ message.result = {
9695
+ $case: "metrics",
9696
+ metrics: MetricsSample.fromPartial(object.result.metrics)
9697
+ };
6997
9698
  }
6998
9699
  break;
6999
9700
  }
@@ -7019,7 +9720,36 @@ var ControlResponse = {
7019
9720
  if (object.result?.desktopScreenshot !== void 0 && object.result?.desktopScreenshot !== null) {
7020
9721
  message.result = {
7021
9722
  $case: "desktopScreenshot",
7022
- desktopScreenshot: DesktopScreenshotResponse.fromPartial(object.result.desktopScreenshot)
9723
+ desktopScreenshot: DesktopScreenshotResponse.fromPartial(
9724
+ object.result.desktopScreenshot
9725
+ )
9726
+ };
9727
+ }
9728
+ break;
9729
+ }
9730
+ case "opStart": {
9731
+ if (object.result?.opStart !== void 0 && object.result?.opStart !== null) {
9732
+ message.result = {
9733
+ $case: "opStart",
9734
+ opStart: OpStarted.fromPartial(object.result.opStart)
9735
+ };
9736
+ }
9737
+ break;
9738
+ }
9739
+ case "opStatus": {
9740
+ if (object.result?.opStatus !== void 0 && object.result?.opStatus !== null) {
9741
+ message.result = {
9742
+ $case: "opStatus",
9743
+ opStatus: OpStatus.fromPartial(object.result.opStatus)
9744
+ };
9745
+ }
9746
+ break;
9747
+ }
9748
+ case "writeChunk": {
9749
+ if (object.result?.writeChunk !== void 0 && object.result?.writeChunk !== null) {
9750
+ message.result = {
9751
+ $case: "writeChunk",
9752
+ writeChunk: WriteChunkAck.fromPartial(object.result.writeChunk)
7023
9753
  };
7024
9754
  }
7025
9755
  break;
@@ -7147,14 +9877,20 @@ var AgentEvent = {
7147
9877
  if (tag !== 82) {
7148
9878
  break;
7149
9879
  }
7150
- message.event = { $case: "heartbeat", heartbeat: Heartbeat.decode(reader, reader.uint32()) };
9880
+ message.event = {
9881
+ $case: "heartbeat",
9882
+ heartbeat: Heartbeat.decode(reader, reader.uint32())
9883
+ };
7151
9884
  continue;
7152
9885
  }
7153
9886
  case 11: {
7154
9887
  if (tag !== 90) {
7155
9888
  break;
7156
9889
  }
7157
- message.event = { $case: "goingOffline", goingOffline: GoingOffline.decode(reader, reader.uint32()) };
9890
+ message.event = {
9891
+ $case: "goingOffline",
9892
+ goingOffline: GoingOffline.decode(reader, reader.uint32())
9893
+ };
7158
9894
  continue;
7159
9895
  }
7160
9896
  }
@@ -7192,13 +9928,19 @@ var AgentEvent = {
7192
9928
  switch (object.event?.$case) {
7193
9929
  case "heartbeat": {
7194
9930
  if (object.event?.heartbeat !== void 0 && object.event?.heartbeat !== null) {
7195
- message.event = { $case: "heartbeat", heartbeat: Heartbeat.fromPartial(object.event.heartbeat) };
9931
+ message.event = {
9932
+ $case: "heartbeat",
9933
+ heartbeat: Heartbeat.fromPartial(object.event.heartbeat)
9934
+ };
7196
9935
  }
7197
9936
  break;
7198
9937
  }
7199
9938
  case "goingOffline": {
7200
9939
  if (object.event?.goingOffline !== void 0 && object.event?.goingOffline !== null) {
7201
- message.event = { $case: "goingOffline", goingOffline: GoingOffline.fromPartial(object.event.goingOffline) };
9940
+ message.event = {
9941
+ $case: "goingOffline",
9942
+ goingOffline: GoingOffline.fromPartial(object.event.goingOffline)
9943
+ };
7202
9944
  }
7203
9945
  break;
7204
9946
  }
@@ -7229,7 +9971,10 @@ var AgentEventAck = {
7229
9971
  if (tag !== 82) {
7230
9972
  break;
7231
9973
  }
7232
- message.ack = { $case: "heartbeat", heartbeat: HeartbeatAck.decode(reader, reader.uint32()) };
9974
+ message.ack = {
9975
+ $case: "heartbeat",
9976
+ heartbeat: HeartbeatAck.decode(reader, reader.uint32())
9977
+ };
7233
9978
  continue;
7234
9979
  }
7235
9980
  }
@@ -7260,7 +10005,10 @@ var AgentEventAck = {
7260
10005
  switch (object.ack?.$case) {
7261
10006
  case "heartbeat": {
7262
10007
  if (object.ack?.heartbeat !== void 0 && object.ack?.heartbeat !== null) {
7263
- message.ack = { $case: "heartbeat", heartbeat: HeartbeatAck.fromPartial(object.ack.heartbeat) };
10008
+ message.ack = {
10009
+ $case: "heartbeat",
10010
+ heartbeat: HeartbeatAck.fromPartial(object.ack.heartbeat)
10011
+ };
7264
10012
  }
7265
10013
  break;
7266
10014
  }
@@ -7782,7 +10530,10 @@ var DesktopInput = {
7782
10530
  if (tag !== 18) {
7783
10531
  break;
7784
10532
  }
7785
- message.event = { $case: "pointer", pointer: PointerEvent.decode(reader, reader.uint32()) };
10533
+ message.event = {
10534
+ $case: "pointer",
10535
+ pointer: PointerEvent.decode(reader, reader.uint32())
10536
+ };
7786
10537
  continue;
7787
10538
  }
7788
10539
  case 3: {
@@ -7836,7 +10587,10 @@ var DesktopInput = {
7836
10587
  switch (object.event?.$case) {
7837
10588
  case "pointer": {
7838
10589
  if (object.event?.pointer !== void 0 && object.event?.pointer !== null) {
7839
- message.event = { $case: "pointer", pointer: PointerEvent.fromPartial(object.event.pointer) };
10590
+ message.event = {
10591
+ $case: "pointer",
10592
+ pointer: PointerEvent.fromPartial(object.event.pointer)
10593
+ };
7840
10594
  }
7841
10595
  break;
7842
10596
  }
@@ -8165,6 +10919,7 @@ function isSet(value) {
8165
10919
  return value !== null && value !== void 0;
8166
10920
  }
8167
10921
  export {
10922
+ AdmissionTelemetry,
8168
10923
  AgentError,
8169
10924
  AgentError_DetailEntry,
8170
10925
  AgentEvent,
@@ -8205,6 +10960,7 @@ export {
8205
10960
  FsRemoveResponse,
8206
10961
  FsStatRequest,
8207
10962
  FsStatResponse,
10963
+ FsWriteBegin,
8208
10964
  FsWriteRequest,
8209
10965
  FsWriteResponse,
8210
10966
  GitFileStatus,
@@ -8219,10 +10975,28 @@ export {
8219
10975
  HeartbeatAck,
8220
10976
  Hello,
8221
10977
  HelloAck,
10978
+ HostCapacitySample,
8222
10979
  KeyAction,
8223
10980
  KeyEvent,
8224
10981
  MetricsRequest,
8225
10982
  MetricsSample,
10983
+ OpAck,
10984
+ OpAttach,
10985
+ OpCancel,
10986
+ OpChannel,
10987
+ OpData,
10988
+ OpExit,
10989
+ OpExit_DigestsEntry,
10990
+ OpExit_FailureDetailEntry,
10991
+ OpExit_TotalsEntry,
10992
+ OpFrame,
10993
+ OpLostReason,
10994
+ OpProgress,
10995
+ OpQuery,
10996
+ OpStart,
10997
+ OpStarted,
10998
+ OpState,
10999
+ OpStatus,
8226
11000
  Os,
8227
11001
  PingRequest,
8228
11002
  PingResponse,
@@ -8255,6 +11029,8 @@ export {
8255
11029
  UpdateManifest,
8256
11030
  UpdateMayProceedRequest,
8257
11031
  UpdateMayProceedResponse,
11032
+ WriteChunk,
11033
+ WriteChunkAck,
8258
11034
  archFromJSON,
8259
11035
  archToJSON,
8260
11036
  deviceAuthStateFromJSON,
@@ -8269,6 +11045,12 @@ export {
8269
11045
  goingOfflineReasonToJSON,
8270
11046
  keyActionFromJSON,
8271
11047
  keyActionToJSON,
11048
+ opChannelFromJSON,
11049
+ opChannelToJSON,
11050
+ opLostReasonFromJSON,
11051
+ opLostReasonToJSON,
11052
+ opStateFromJSON,
11053
+ opStateToJSON,
8272
11054
  osFromJSON,
8273
11055
  osToJSON,
8274
11056
  pointerActionFromJSON,