modal 0.7.3 → 0.7.4

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
@@ -4595,6 +4595,108 @@ var AppGetLayoutResponse = {
4595
4595
  return message;
4596
4596
  }
4597
4597
  };
4598
+ function createBaseAppGetLifecycleRequest() {
4599
+ return { appId: "" };
4600
+ }
4601
+ var AppGetLifecycleRequest = {
4602
+ encode(message, writer = new BinaryWriter()) {
4603
+ if (message.appId !== "") {
4604
+ writer.uint32(10).string(message.appId);
4605
+ }
4606
+ return writer;
4607
+ },
4608
+ decode(input, length) {
4609
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4610
+ let end = length === void 0 ? reader.len : reader.pos + length;
4611
+ const message = createBaseAppGetLifecycleRequest();
4612
+ while (reader.pos < end) {
4613
+ const tag = reader.uint32();
4614
+ switch (tag >>> 3) {
4615
+ case 1: {
4616
+ if (tag !== 10) {
4617
+ break;
4618
+ }
4619
+ message.appId = reader.string();
4620
+ continue;
4621
+ }
4622
+ }
4623
+ if ((tag & 7) === 4 || tag === 0) {
4624
+ break;
4625
+ }
4626
+ reader.skip(tag & 7);
4627
+ }
4628
+ return message;
4629
+ },
4630
+ fromJSON(object) {
4631
+ return { appId: isSet4(object.appId) ? globalThis.String(object.appId) : "" };
4632
+ },
4633
+ toJSON(message) {
4634
+ const obj = {};
4635
+ if (message.appId !== "") {
4636
+ obj.appId = message.appId;
4637
+ }
4638
+ return obj;
4639
+ },
4640
+ create(base) {
4641
+ return AppGetLifecycleRequest.fromPartial(base ?? {});
4642
+ },
4643
+ fromPartial(object) {
4644
+ const message = createBaseAppGetLifecycleRequest();
4645
+ message.appId = object.appId ?? "";
4646
+ return message;
4647
+ }
4648
+ };
4649
+ function createBaseAppGetLifecycleResponse() {
4650
+ return { lifecycle: void 0 };
4651
+ }
4652
+ var AppGetLifecycleResponse = {
4653
+ encode(message, writer = new BinaryWriter()) {
4654
+ if (message.lifecycle !== void 0) {
4655
+ AppLifecycle.encode(message.lifecycle, writer.uint32(10).fork()).join();
4656
+ }
4657
+ return writer;
4658
+ },
4659
+ decode(input, length) {
4660
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4661
+ let end = length === void 0 ? reader.len : reader.pos + length;
4662
+ const message = createBaseAppGetLifecycleResponse();
4663
+ while (reader.pos < end) {
4664
+ const tag = reader.uint32();
4665
+ switch (tag >>> 3) {
4666
+ case 1: {
4667
+ if (tag !== 10) {
4668
+ break;
4669
+ }
4670
+ message.lifecycle = AppLifecycle.decode(reader, reader.uint32());
4671
+ continue;
4672
+ }
4673
+ }
4674
+ if ((tag & 7) === 4 || tag === 0) {
4675
+ break;
4676
+ }
4677
+ reader.skip(tag & 7);
4678
+ }
4679
+ return message;
4680
+ },
4681
+ fromJSON(object) {
4682
+ return { lifecycle: isSet4(object.lifecycle) ? AppLifecycle.fromJSON(object.lifecycle) : void 0 };
4683
+ },
4684
+ toJSON(message) {
4685
+ const obj = {};
4686
+ if (message.lifecycle !== void 0) {
4687
+ obj.lifecycle = AppLifecycle.toJSON(message.lifecycle);
4688
+ }
4689
+ return obj;
4690
+ },
4691
+ create(base) {
4692
+ return AppGetLifecycleResponse.fromPartial(base ?? {});
4693
+ },
4694
+ fromPartial(object) {
4695
+ const message = createBaseAppGetLifecycleResponse();
4696
+ message.lifecycle = object.lifecycle !== void 0 && object.lifecycle !== null ? AppLifecycle.fromPartial(object.lifecycle) : void 0;
4697
+ return message;
4698
+ }
4699
+ };
4598
4700
  function createBaseAppGetLogsRequest() {
4599
4701
  return {
4600
4702
  appId: "",
@@ -4606,7 +4708,8 @@ function createBaseAppGetLogsRequest() {
4606
4708
  taskId: "",
4607
4709
  functionCallId: "",
4608
4710
  fileDescriptor: 0,
4609
- sandboxId: ""
4711
+ sandboxId: "",
4712
+ searchText: ""
4610
4713
  };
4611
4714
  }
4612
4715
  var AppGetLogsRequest = {
@@ -4641,6 +4744,9 @@ var AppGetLogsRequest = {
4641
4744
  if (message.sandboxId !== "") {
4642
4745
  writer.uint32(82).string(message.sandboxId);
4643
4746
  }
4747
+ if (message.searchText !== "") {
4748
+ writer.uint32(98).string(message.searchText);
4749
+ }
4644
4750
  return writer;
4645
4751
  },
4646
4752
  decode(input, length) {
@@ -4720,6 +4826,13 @@ var AppGetLogsRequest = {
4720
4826
  message.sandboxId = reader.string();
4721
4827
  continue;
4722
4828
  }
4829
+ case 12: {
4830
+ if (tag !== 98) {
4831
+ break;
4832
+ }
4833
+ message.searchText = reader.string();
4834
+ continue;
4835
+ }
4723
4836
  }
4724
4837
  if ((tag & 7) === 4 || tag === 0) {
4725
4838
  break;
@@ -4739,7 +4852,8 @@ var AppGetLogsRequest = {
4739
4852
  taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
4740
4853
  functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
4741
4854
  fileDescriptor: isSet4(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
4742
- sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
4855
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
4856
+ searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : ""
4743
4857
  };
4744
4858
  },
4745
4859
  toJSON(message) {
@@ -4774,6 +4888,9 @@ var AppGetLogsRequest = {
4774
4888
  if (message.sandboxId !== "") {
4775
4889
  obj.sandboxId = message.sandboxId;
4776
4890
  }
4891
+ if (message.searchText !== "") {
4892
+ obj.searchText = message.searchText;
4893
+ }
4777
4894
  return obj;
4778
4895
  },
4779
4896
  create(base) {
@@ -4791,6 +4908,7 @@ var AppGetLogsRequest = {
4791
4908
  message.functionCallId = object.functionCallId ?? "";
4792
4909
  message.fileDescriptor = object.fileDescriptor ?? 0;
4793
4910
  message.sandboxId = object.sandboxId ?? "";
4911
+ message.searchText = object.searchText ?? "";
4794
4912
  return message;
4795
4913
  }
4796
4914
  };
@@ -5628,6 +5746,173 @@ var AppLayout_ClassIdsEntry = {
5628
5746
  return message;
5629
5747
  }
5630
5748
  };
5749
+ function createBaseAppLifecycle() {
5750
+ return {
5751
+ appState: 0,
5752
+ createdAt: 0,
5753
+ createdBy: "",
5754
+ deployedAt: 0,
5755
+ deployedBy: "",
5756
+ version: 0,
5757
+ stoppedAt: 0,
5758
+ stoppedBy: ""
5759
+ };
5760
+ }
5761
+ var AppLifecycle = {
5762
+ encode(message, writer = new BinaryWriter()) {
5763
+ if (message.appState !== 0) {
5764
+ writer.uint32(8).int32(message.appState);
5765
+ }
5766
+ if (message.createdAt !== 0) {
5767
+ writer.uint32(17).double(message.createdAt);
5768
+ }
5769
+ if (message.createdBy !== "") {
5770
+ writer.uint32(26).string(message.createdBy);
5771
+ }
5772
+ if (message.deployedAt !== 0) {
5773
+ writer.uint32(33).double(message.deployedAt);
5774
+ }
5775
+ if (message.deployedBy !== "") {
5776
+ writer.uint32(42).string(message.deployedBy);
5777
+ }
5778
+ if (message.version !== 0) {
5779
+ writer.uint32(48).int32(message.version);
5780
+ }
5781
+ if (message.stoppedAt !== 0) {
5782
+ writer.uint32(57).double(message.stoppedAt);
5783
+ }
5784
+ if (message.stoppedBy !== "") {
5785
+ writer.uint32(66).string(message.stoppedBy);
5786
+ }
5787
+ return writer;
5788
+ },
5789
+ decode(input, length) {
5790
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5791
+ let end = length === void 0 ? reader.len : reader.pos + length;
5792
+ const message = createBaseAppLifecycle();
5793
+ while (reader.pos < end) {
5794
+ const tag = reader.uint32();
5795
+ switch (tag >>> 3) {
5796
+ case 1: {
5797
+ if (tag !== 8) {
5798
+ break;
5799
+ }
5800
+ message.appState = reader.int32();
5801
+ continue;
5802
+ }
5803
+ case 2: {
5804
+ if (tag !== 17) {
5805
+ break;
5806
+ }
5807
+ message.createdAt = reader.double();
5808
+ continue;
5809
+ }
5810
+ case 3: {
5811
+ if (tag !== 26) {
5812
+ break;
5813
+ }
5814
+ message.createdBy = reader.string();
5815
+ continue;
5816
+ }
5817
+ case 4: {
5818
+ if (tag !== 33) {
5819
+ break;
5820
+ }
5821
+ message.deployedAt = reader.double();
5822
+ continue;
5823
+ }
5824
+ case 5: {
5825
+ if (tag !== 42) {
5826
+ break;
5827
+ }
5828
+ message.deployedBy = reader.string();
5829
+ continue;
5830
+ }
5831
+ case 6: {
5832
+ if (tag !== 48) {
5833
+ break;
5834
+ }
5835
+ message.version = reader.int32();
5836
+ continue;
5837
+ }
5838
+ case 7: {
5839
+ if (tag !== 57) {
5840
+ break;
5841
+ }
5842
+ message.stoppedAt = reader.double();
5843
+ continue;
5844
+ }
5845
+ case 8: {
5846
+ if (tag !== 66) {
5847
+ break;
5848
+ }
5849
+ message.stoppedBy = reader.string();
5850
+ continue;
5851
+ }
5852
+ }
5853
+ if ((tag & 7) === 4 || tag === 0) {
5854
+ break;
5855
+ }
5856
+ reader.skip(tag & 7);
5857
+ }
5858
+ return message;
5859
+ },
5860
+ fromJSON(object) {
5861
+ return {
5862
+ appState: isSet4(object.appState) ? appStateFromJSON(object.appState) : 0,
5863
+ createdAt: isSet4(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
5864
+ createdBy: isSet4(object.createdBy) ? globalThis.String(object.createdBy) : "",
5865
+ deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0,
5866
+ deployedBy: isSet4(object.deployedBy) ? globalThis.String(object.deployedBy) : "",
5867
+ version: isSet4(object.version) ? globalThis.Number(object.version) : 0,
5868
+ stoppedAt: isSet4(object.stoppedAt) ? globalThis.Number(object.stoppedAt) : 0,
5869
+ stoppedBy: isSet4(object.stoppedBy) ? globalThis.String(object.stoppedBy) : ""
5870
+ };
5871
+ },
5872
+ toJSON(message) {
5873
+ const obj = {};
5874
+ if (message.appState !== 0) {
5875
+ obj.appState = appStateToJSON(message.appState);
5876
+ }
5877
+ if (message.createdAt !== 0) {
5878
+ obj.createdAt = message.createdAt;
5879
+ }
5880
+ if (message.createdBy !== "") {
5881
+ obj.createdBy = message.createdBy;
5882
+ }
5883
+ if (message.deployedAt !== 0) {
5884
+ obj.deployedAt = message.deployedAt;
5885
+ }
5886
+ if (message.deployedBy !== "") {
5887
+ obj.deployedBy = message.deployedBy;
5888
+ }
5889
+ if (message.version !== 0) {
5890
+ obj.version = Math.round(message.version);
5891
+ }
5892
+ if (message.stoppedAt !== 0) {
5893
+ obj.stoppedAt = message.stoppedAt;
5894
+ }
5895
+ if (message.stoppedBy !== "") {
5896
+ obj.stoppedBy = message.stoppedBy;
5897
+ }
5898
+ return obj;
5899
+ },
5900
+ create(base) {
5901
+ return AppLifecycle.fromPartial(base ?? {});
5902
+ },
5903
+ fromPartial(object) {
5904
+ const message = createBaseAppLifecycle();
5905
+ message.appState = object.appState ?? 0;
5906
+ message.createdAt = object.createdAt ?? 0;
5907
+ message.createdBy = object.createdBy ?? "";
5908
+ message.deployedAt = object.deployedAt ?? 0;
5909
+ message.deployedBy = object.deployedBy ?? "";
5910
+ message.version = object.version ?? 0;
5911
+ message.stoppedAt = object.stoppedAt ?? 0;
5912
+ message.stoppedBy = object.stoppedBy ?? "";
5913
+ return message;
5914
+ }
5915
+ };
5631
5916
  function createBaseAppListRequest() {
5632
5917
  return { environmentName: "" };
5633
5918
  }
@@ -6706,6 +6991,140 @@ var AppRollbackRequest = {
6706
6991
  return message;
6707
6992
  }
6708
6993
  };
6994
+ function createBaseAppRolloverRequest() {
6995
+ return { appId: "" };
6996
+ }
6997
+ var AppRolloverRequest = {
6998
+ encode(message, writer = new BinaryWriter()) {
6999
+ if (message.appId !== "") {
7000
+ writer.uint32(10).string(message.appId);
7001
+ }
7002
+ return writer;
7003
+ },
7004
+ decode(input, length) {
7005
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7006
+ let end = length === void 0 ? reader.len : reader.pos + length;
7007
+ const message = createBaseAppRolloverRequest();
7008
+ while (reader.pos < end) {
7009
+ const tag = reader.uint32();
7010
+ switch (tag >>> 3) {
7011
+ case 1: {
7012
+ if (tag !== 10) {
7013
+ break;
7014
+ }
7015
+ message.appId = reader.string();
7016
+ continue;
7017
+ }
7018
+ }
7019
+ if ((tag & 7) === 4 || tag === 0) {
7020
+ break;
7021
+ }
7022
+ reader.skip(tag & 7);
7023
+ }
7024
+ return message;
7025
+ },
7026
+ fromJSON(object) {
7027
+ return { appId: isSet4(object.appId) ? globalThis.String(object.appId) : "" };
7028
+ },
7029
+ toJSON(message) {
7030
+ const obj = {};
7031
+ if (message.appId !== "") {
7032
+ obj.appId = message.appId;
7033
+ }
7034
+ return obj;
7035
+ },
7036
+ create(base) {
7037
+ return AppRolloverRequest.fromPartial(base ?? {});
7038
+ },
7039
+ fromPartial(object) {
7040
+ const message = createBaseAppRolloverRequest();
7041
+ message.appId = object.appId ?? "";
7042
+ return message;
7043
+ }
7044
+ };
7045
+ function createBaseAppRolloverResponse() {
7046
+ return { url: "", serverWarnings: [], deployedAt: 0 };
7047
+ }
7048
+ var AppRolloverResponse = {
7049
+ encode(message, writer = new BinaryWriter()) {
7050
+ if (message.url !== "") {
7051
+ writer.uint32(10).string(message.url);
7052
+ }
7053
+ for (const v of message.serverWarnings) {
7054
+ Warning.encode(v, writer.uint32(26).fork()).join();
7055
+ }
7056
+ if (message.deployedAt !== 0) {
7057
+ writer.uint32(33).double(message.deployedAt);
7058
+ }
7059
+ return writer;
7060
+ },
7061
+ decode(input, length) {
7062
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7063
+ let end = length === void 0 ? reader.len : reader.pos + length;
7064
+ const message = createBaseAppRolloverResponse();
7065
+ while (reader.pos < end) {
7066
+ const tag = reader.uint32();
7067
+ switch (tag >>> 3) {
7068
+ case 1: {
7069
+ if (tag !== 10) {
7070
+ break;
7071
+ }
7072
+ message.url = reader.string();
7073
+ continue;
7074
+ }
7075
+ case 3: {
7076
+ if (tag !== 26) {
7077
+ break;
7078
+ }
7079
+ message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
7080
+ continue;
7081
+ }
7082
+ case 4: {
7083
+ if (tag !== 33) {
7084
+ break;
7085
+ }
7086
+ message.deployedAt = reader.double();
7087
+ continue;
7088
+ }
7089
+ }
7090
+ if ((tag & 7) === 4 || tag === 0) {
7091
+ break;
7092
+ }
7093
+ reader.skip(tag & 7);
7094
+ }
7095
+ return message;
7096
+ },
7097
+ fromJSON(object) {
7098
+ return {
7099
+ url: isSet4(object.url) ? globalThis.String(object.url) : "",
7100
+ serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
7101
+ deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
7102
+ };
7103
+ },
7104
+ toJSON(message) {
7105
+ const obj = {};
7106
+ if (message.url !== "") {
7107
+ obj.url = message.url;
7108
+ }
7109
+ if (message.serverWarnings?.length) {
7110
+ obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
7111
+ }
7112
+ if (message.deployedAt !== 0) {
7113
+ obj.deployedAt = message.deployedAt;
7114
+ }
7115
+ return obj;
7116
+ },
7117
+ create(base) {
7118
+ return AppRolloverResponse.fromPartial(base ?? {});
7119
+ },
7120
+ fromPartial(object) {
7121
+ const message = createBaseAppRolloverResponse();
7122
+ message.url = object.url ?? "";
7123
+ message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
7124
+ message.deployedAt = object.deployedAt ?? 0;
7125
+ return message;
7126
+ }
7127
+ };
6709
7128
  function createBaseAppSetObjectsRequest() {
6710
7129
  return { appId: "", indexedObjectIds: {}, clientId: "", unindexedObjectIds: [], newAppState: 0 };
6711
7130
  }
@@ -29154,6 +29573,140 @@ var PortSpecs = {
29154
29573
  return message;
29155
29574
  }
29156
29575
  };
29576
+ function createBaseProbe() {
29577
+ return { tcpPort: void 0, execCommand: void 0, intervalMs: void 0 };
29578
+ }
29579
+ var Probe = {
29580
+ encode(message, writer = new BinaryWriter()) {
29581
+ if (message.tcpPort !== void 0) {
29582
+ writer.uint32(8).uint32(message.tcpPort);
29583
+ }
29584
+ if (message.execCommand !== void 0) {
29585
+ Probe_ExecCommand.encode(message.execCommand, writer.uint32(18).fork()).join();
29586
+ }
29587
+ if (message.intervalMs !== void 0) {
29588
+ writer.uint32(24).uint32(message.intervalMs);
29589
+ }
29590
+ return writer;
29591
+ },
29592
+ decode(input, length) {
29593
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
29594
+ let end = length === void 0 ? reader.len : reader.pos + length;
29595
+ const message = createBaseProbe();
29596
+ while (reader.pos < end) {
29597
+ const tag = reader.uint32();
29598
+ switch (tag >>> 3) {
29599
+ case 1: {
29600
+ if (tag !== 8) {
29601
+ break;
29602
+ }
29603
+ message.tcpPort = reader.uint32();
29604
+ continue;
29605
+ }
29606
+ case 2: {
29607
+ if (tag !== 18) {
29608
+ break;
29609
+ }
29610
+ message.execCommand = Probe_ExecCommand.decode(reader, reader.uint32());
29611
+ continue;
29612
+ }
29613
+ case 3: {
29614
+ if (tag !== 24) {
29615
+ break;
29616
+ }
29617
+ message.intervalMs = reader.uint32();
29618
+ continue;
29619
+ }
29620
+ }
29621
+ if ((tag & 7) === 4 || tag === 0) {
29622
+ break;
29623
+ }
29624
+ reader.skip(tag & 7);
29625
+ }
29626
+ return message;
29627
+ },
29628
+ fromJSON(object) {
29629
+ return {
29630
+ tcpPort: isSet4(object.tcpPort) ? globalThis.Number(object.tcpPort) : void 0,
29631
+ execCommand: isSet4(object.execCommand) ? Probe_ExecCommand.fromJSON(object.execCommand) : void 0,
29632
+ intervalMs: isSet4(object.intervalMs) ? globalThis.Number(object.intervalMs) : void 0
29633
+ };
29634
+ },
29635
+ toJSON(message) {
29636
+ const obj = {};
29637
+ if (message.tcpPort !== void 0) {
29638
+ obj.tcpPort = Math.round(message.tcpPort);
29639
+ }
29640
+ if (message.execCommand !== void 0) {
29641
+ obj.execCommand = Probe_ExecCommand.toJSON(message.execCommand);
29642
+ }
29643
+ if (message.intervalMs !== void 0) {
29644
+ obj.intervalMs = Math.round(message.intervalMs);
29645
+ }
29646
+ return obj;
29647
+ },
29648
+ create(base) {
29649
+ return Probe.fromPartial(base ?? {});
29650
+ },
29651
+ fromPartial(object) {
29652
+ const message = createBaseProbe();
29653
+ message.tcpPort = object.tcpPort ?? void 0;
29654
+ message.execCommand = object.execCommand !== void 0 && object.execCommand !== null ? Probe_ExecCommand.fromPartial(object.execCommand) : void 0;
29655
+ message.intervalMs = object.intervalMs ?? void 0;
29656
+ return message;
29657
+ }
29658
+ };
29659
+ function createBaseProbe_ExecCommand() {
29660
+ return { argv: [] };
29661
+ }
29662
+ var Probe_ExecCommand = {
29663
+ encode(message, writer = new BinaryWriter()) {
29664
+ for (const v of message.argv) {
29665
+ writer.uint32(10).string(v);
29666
+ }
29667
+ return writer;
29668
+ },
29669
+ decode(input, length) {
29670
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
29671
+ let end = length === void 0 ? reader.len : reader.pos + length;
29672
+ const message = createBaseProbe_ExecCommand();
29673
+ while (reader.pos < end) {
29674
+ const tag = reader.uint32();
29675
+ switch (tag >>> 3) {
29676
+ case 1: {
29677
+ if (tag !== 10) {
29678
+ break;
29679
+ }
29680
+ message.argv.push(reader.string());
29681
+ continue;
29682
+ }
29683
+ }
29684
+ if ((tag & 7) === 4 || tag === 0) {
29685
+ break;
29686
+ }
29687
+ reader.skip(tag & 7);
29688
+ }
29689
+ return message;
29690
+ },
29691
+ fromJSON(object) {
29692
+ return { argv: globalThis.Array.isArray(object?.argv) ? object.argv.map((e) => globalThis.String(e)) : [] };
29693
+ },
29694
+ toJSON(message) {
29695
+ const obj = {};
29696
+ if (message.argv?.length) {
29697
+ obj.argv = message.argv;
29698
+ }
29699
+ return obj;
29700
+ },
29701
+ create(base) {
29702
+ return Probe_ExecCommand.fromPartial(base ?? {});
29703
+ },
29704
+ fromPartial(object) {
29705
+ const message = createBaseProbe_ExecCommand();
29706
+ message.argv = object.argv?.map((e) => e) || [];
29707
+ return message;
29708
+ }
29709
+ };
29157
29710
  function createBaseProxy() {
29158
29711
  return { name: "", createdAt: 0, environmentName: "", proxyIps: [], proxyId: "", region: "" };
29159
29712
  }
@@ -32271,7 +32824,8 @@ function createBaseSandbox() {
32271
32824
  directSandboxCommandsEnabled: false,
32272
32825
  RestoreInstanceType: "",
32273
32826
  customDomain: "",
32274
- includeOidcIdentityToken: false
32827
+ includeOidcIdentityToken: false,
32828
+ readinessProbe: void 0
32275
32829
  };
32276
32830
  }
32277
32831
  var Sandbox = {
@@ -32381,6 +32935,9 @@ var Sandbox = {
32381
32935
  if (message.includeOidcIdentityToken !== false) {
32382
32936
  writer.uint32(296).bool(message.includeOidcIdentityToken);
32383
32937
  }
32938
+ if (message.readinessProbe !== void 0) {
32939
+ Probe.encode(message.readinessProbe, writer.uint32(306).fork()).join();
32940
+ }
32384
32941
  return writer;
32385
32942
  },
32386
32943
  decode(input, length) {
@@ -32638,6 +33195,13 @@ var Sandbox = {
32638
33195
  message.includeOidcIdentityToken = reader.bool();
32639
33196
  continue;
32640
33197
  }
33198
+ case 38: {
33199
+ if (tag !== 306) {
33200
+ break;
33201
+ }
33202
+ message.readinessProbe = Probe.decode(reader, reader.uint32());
33203
+ continue;
33204
+ }
32641
33205
  }
32642
33206
  if ((tag & 7) === 4 || tag === 0) {
32643
33207
  break;
@@ -32685,7 +33249,8 @@ var Sandbox = {
32685
33249
  directSandboxCommandsEnabled: isSet4(object.directSandboxCommandsEnabled) ? globalThis.Boolean(object.directSandboxCommandsEnabled) : false,
32686
33250
  RestoreInstanceType: isSet4(object.RestoreInstanceType) ? globalThis.String(object.RestoreInstanceType) : "",
32687
33251
  customDomain: isSet4(object.customDomain) ? globalThis.String(object.customDomain) : "",
32688
- includeOidcIdentityToken: isSet4(object.includeOidcIdentityToken) ? globalThis.Boolean(object.includeOidcIdentityToken) : false
33252
+ includeOidcIdentityToken: isSet4(object.includeOidcIdentityToken) ? globalThis.Boolean(object.includeOidcIdentityToken) : false,
33253
+ readinessProbe: isSet4(object.readinessProbe) ? Probe.fromJSON(object.readinessProbe) : void 0
32689
33254
  };
32690
33255
  },
32691
33256
  toJSON(message) {
@@ -32801,6 +33366,9 @@ var Sandbox = {
32801
33366
  if (message.includeOidcIdentityToken !== false) {
32802
33367
  obj.includeOidcIdentityToken = message.includeOidcIdentityToken;
32803
33368
  }
33369
+ if (message.readinessProbe !== void 0) {
33370
+ obj.readinessProbe = Probe.toJSON(message.readinessProbe);
33371
+ }
32804
33372
  return obj;
32805
33373
  },
32806
33374
  create(base) {
@@ -32851,6 +33419,7 @@ var Sandbox = {
32851
33419
  message.RestoreInstanceType = object.RestoreInstanceType ?? "";
32852
33420
  message.customDomain = object.customDomain ?? "";
32853
33421
  message.includeOidcIdentityToken = object.includeOidcIdentityToken ?? false;
33422
+ message.readinessProbe = object.readinessProbe !== void 0 && object.readinessProbe !== null ? Probe.fromPartial(object.readinessProbe) : void 0;
32854
33423
  return message;
32855
33424
  }
32856
33425
  };
@@ -33261,7 +33830,7 @@ var SandboxCreateV2Request = {
33261
33830
  }
33262
33831
  };
33263
33832
  function createBaseSandboxCreateV2Response() {
33264
- return { sandboxId: "", tunnels: [] };
33833
+ return { sandboxId: "", tunnels: [], taskId: "" };
33265
33834
  }
33266
33835
  var SandboxCreateV2Response = {
33267
33836
  encode(message, writer = new BinaryWriter()) {
@@ -33271,6 +33840,9 @@ var SandboxCreateV2Response = {
33271
33840
  for (const v of message.tunnels) {
33272
33841
  TunnelData.encode(v, writer.uint32(18).fork()).join();
33273
33842
  }
33843
+ if (message.taskId !== "") {
33844
+ writer.uint32(26).string(message.taskId);
33845
+ }
33274
33846
  return writer;
33275
33847
  },
33276
33848
  decode(input, length) {
@@ -33294,6 +33866,13 @@ var SandboxCreateV2Response = {
33294
33866
  message.tunnels.push(TunnelData.decode(reader, reader.uint32()));
33295
33867
  continue;
33296
33868
  }
33869
+ case 3: {
33870
+ if (tag !== 26) {
33871
+ break;
33872
+ }
33873
+ message.taskId = reader.string();
33874
+ continue;
33875
+ }
33297
33876
  }
33298
33877
  if ((tag & 7) === 4 || tag === 0) {
33299
33878
  break;
@@ -33305,7 +33884,8 @@ var SandboxCreateV2Response = {
33305
33884
  fromJSON(object) {
33306
33885
  return {
33307
33886
  sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
33308
- tunnels: globalThis.Array.isArray(object?.tunnels) ? object.tunnels.map((e) => TunnelData.fromJSON(e)) : []
33887
+ tunnels: globalThis.Array.isArray(object?.tunnels) ? object.tunnels.map((e) => TunnelData.fromJSON(e)) : [],
33888
+ taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : ""
33309
33889
  };
33310
33890
  },
33311
33891
  toJSON(message) {
@@ -33316,6 +33896,9 @@ var SandboxCreateV2Response = {
33316
33896
  if (message.tunnels?.length) {
33317
33897
  obj.tunnels = message.tunnels.map((e) => TunnelData.toJSON(e));
33318
33898
  }
33899
+ if (message.taskId !== "") {
33900
+ obj.taskId = message.taskId;
33901
+ }
33319
33902
  return obj;
33320
33903
  },
33321
33904
  create(base) {
@@ -33325,29 +33908,24 @@ var SandboxCreateV2Response = {
33325
33908
  const message = createBaseSandboxCreateV2Response();
33326
33909
  message.sandboxId = object.sandboxId ?? "";
33327
33910
  message.tunnels = object.tunnels?.map((e) => TunnelData.fromPartial(e)) || [];
33911
+ message.taskId = object.taskId ?? "";
33328
33912
  return message;
33329
33913
  }
33330
33914
  };
33331
- function createBaseSandboxGetFromNameRequest() {
33332
- return { sandboxName: "", environmentName: "", appName: "" };
33915
+ function createBaseSandboxGetCommandRouterAccessRequest() {
33916
+ return { sandboxId: "" };
33333
33917
  }
33334
- var SandboxGetFromNameRequest = {
33918
+ var SandboxGetCommandRouterAccessRequest = {
33335
33919
  encode(message, writer = new BinaryWriter()) {
33336
- if (message.sandboxName !== "") {
33337
- writer.uint32(10).string(message.sandboxName);
33338
- }
33339
- if (message.environmentName !== "") {
33340
- writer.uint32(18).string(message.environmentName);
33341
- }
33342
- if (message.appName !== "") {
33343
- writer.uint32(26).string(message.appName);
33920
+ if (message.sandboxId !== "") {
33921
+ writer.uint32(10).string(message.sandboxId);
33344
33922
  }
33345
33923
  return writer;
33346
33924
  },
33347
33925
  decode(input, length) {
33348
33926
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33349
33927
  let end = length === void 0 ? reader.len : reader.pos + length;
33350
- const message = createBaseSandboxGetFromNameRequest();
33928
+ const message = createBaseSandboxGetCommandRouterAccessRequest();
33351
33929
  while (reader.pos < end) {
33352
33930
  const tag = reader.uint32();
33353
33931
  switch (tag >>> 3) {
@@ -33355,21 +33933,7 @@ var SandboxGetFromNameRequest = {
33355
33933
  if (tag !== 10) {
33356
33934
  break;
33357
33935
  }
33358
- message.sandboxName = reader.string();
33359
- continue;
33360
- }
33361
- case 2: {
33362
- if (tag !== 18) {
33363
- break;
33364
- }
33365
- message.environmentName = reader.string();
33366
- continue;
33367
- }
33368
- case 3: {
33369
- if (tag !== 26) {
33370
- break;
33371
- }
33372
- message.appName = reader.string();
33936
+ message.sandboxId = reader.string();
33373
33937
  continue;
33374
33938
  }
33375
33939
  }
@@ -33381,50 +33945,41 @@ var SandboxGetFromNameRequest = {
33381
33945
  return message;
33382
33946
  },
33383
33947
  fromJSON(object) {
33384
- return {
33385
- sandboxName: isSet4(object.sandboxName) ? globalThis.String(object.sandboxName) : "",
33386
- environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
33387
- appName: isSet4(object.appName) ? globalThis.String(object.appName) : ""
33388
- };
33948
+ return { sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "" };
33389
33949
  },
33390
33950
  toJSON(message) {
33391
33951
  const obj = {};
33392
- if (message.sandboxName !== "") {
33393
- obj.sandboxName = message.sandboxName;
33394
- }
33395
- if (message.environmentName !== "") {
33396
- obj.environmentName = message.environmentName;
33397
- }
33398
- if (message.appName !== "") {
33399
- obj.appName = message.appName;
33952
+ if (message.sandboxId !== "") {
33953
+ obj.sandboxId = message.sandboxId;
33400
33954
  }
33401
33955
  return obj;
33402
33956
  },
33403
33957
  create(base) {
33404
- return SandboxGetFromNameRequest.fromPartial(base ?? {});
33958
+ return SandboxGetCommandRouterAccessRequest.fromPartial(base ?? {});
33405
33959
  },
33406
33960
  fromPartial(object) {
33407
- const message = createBaseSandboxGetFromNameRequest();
33408
- message.sandboxName = object.sandboxName ?? "";
33409
- message.environmentName = object.environmentName ?? "";
33410
- message.appName = object.appName ?? "";
33961
+ const message = createBaseSandboxGetCommandRouterAccessRequest();
33962
+ message.sandboxId = object.sandboxId ?? "";
33411
33963
  return message;
33412
33964
  }
33413
33965
  };
33414
- function createBaseSandboxGetFromNameResponse() {
33415
- return { sandboxId: "" };
33966
+ function createBaseSandboxGetCommandRouterAccessResponse() {
33967
+ return { jwt: "", url: "" };
33416
33968
  }
33417
- var SandboxGetFromNameResponse = {
33969
+ var SandboxGetCommandRouterAccessResponse = {
33418
33970
  encode(message, writer = new BinaryWriter()) {
33419
- if (message.sandboxId !== "") {
33420
- writer.uint32(10).string(message.sandboxId);
33971
+ if (message.jwt !== "") {
33972
+ writer.uint32(10).string(message.jwt);
33973
+ }
33974
+ if (message.url !== "") {
33975
+ writer.uint32(18).string(message.url);
33421
33976
  }
33422
33977
  return writer;
33423
33978
  },
33424
33979
  decode(input, length) {
33425
33980
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33426
33981
  let end = length === void 0 ? reader.len : reader.pos + length;
33427
- const message = createBaseSandboxGetFromNameResponse();
33982
+ const message = createBaseSandboxGetCommandRouterAccessResponse();
33428
33983
  while (reader.pos < end) {
33429
33984
  const tag = reader.uint32();
33430
33985
  switch (tag >>> 3) {
@@ -33432,7 +33987,14 @@ var SandboxGetFromNameResponse = {
33432
33987
  if (tag !== 10) {
33433
33988
  break;
33434
33989
  }
33435
- message.sandboxId = reader.string();
33990
+ message.jwt = reader.string();
33991
+ continue;
33992
+ }
33993
+ case 2: {
33994
+ if (tag !== 18) {
33995
+ break;
33996
+ }
33997
+ message.url = reader.string();
33436
33998
  continue;
33437
33999
  }
33438
34000
  }
@@ -33444,47 +34006,51 @@ var SandboxGetFromNameResponse = {
33444
34006
  return message;
33445
34007
  },
33446
34008
  fromJSON(object) {
33447
- return { sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "" };
34009
+ return {
34010
+ jwt: isSet4(object.jwt) ? globalThis.String(object.jwt) : "",
34011
+ url: isSet4(object.url) ? globalThis.String(object.url) : ""
34012
+ };
33448
34013
  },
33449
34014
  toJSON(message) {
33450
34015
  const obj = {};
33451
- if (message.sandboxId !== "") {
33452
- obj.sandboxId = message.sandboxId;
34016
+ if (message.jwt !== "") {
34017
+ obj.jwt = message.jwt;
34018
+ }
34019
+ if (message.url !== "") {
34020
+ obj.url = message.url;
33453
34021
  }
33454
34022
  return obj;
33455
34023
  },
33456
34024
  create(base) {
33457
- return SandboxGetFromNameResponse.fromPartial(base ?? {});
34025
+ return SandboxGetCommandRouterAccessResponse.fromPartial(base ?? {});
33458
34026
  },
33459
34027
  fromPartial(object) {
33460
- const message = createBaseSandboxGetFromNameResponse();
33461
- message.sandboxId = object.sandboxId ?? "";
34028
+ const message = createBaseSandboxGetCommandRouterAccessResponse();
34029
+ message.jwt = object.jwt ?? "";
34030
+ message.url = object.url ?? "";
33462
34031
  return message;
33463
34032
  }
33464
34033
  };
33465
- function createBaseSandboxGetLogsRequest() {
33466
- return { sandboxId: "", fileDescriptor: 0, timeout: 0, lastEntryId: "" };
34034
+ function createBaseSandboxGetFromNameRequest() {
34035
+ return { sandboxName: "", environmentName: "", appName: "" };
33467
34036
  }
33468
- var SandboxGetLogsRequest = {
34037
+ var SandboxGetFromNameRequest = {
33469
34038
  encode(message, writer = new BinaryWriter()) {
33470
- if (message.sandboxId !== "") {
33471
- writer.uint32(10).string(message.sandboxId);
33472
- }
33473
- if (message.fileDescriptor !== 0) {
33474
- writer.uint32(16).int32(message.fileDescriptor);
34039
+ if (message.sandboxName !== "") {
34040
+ writer.uint32(10).string(message.sandboxName);
33475
34041
  }
33476
- if (message.timeout !== 0) {
33477
- writer.uint32(29).float(message.timeout);
34042
+ if (message.environmentName !== "") {
34043
+ writer.uint32(18).string(message.environmentName);
33478
34044
  }
33479
- if (message.lastEntryId !== "") {
33480
- writer.uint32(34).string(message.lastEntryId);
34045
+ if (message.appName !== "") {
34046
+ writer.uint32(26).string(message.appName);
33481
34047
  }
33482
34048
  return writer;
33483
34049
  },
33484
34050
  decode(input, length) {
33485
34051
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33486
34052
  let end = length === void 0 ? reader.len : reader.pos + length;
33487
- const message = createBaseSandboxGetLogsRequest();
34053
+ const message = createBaseSandboxGetFromNameRequest();
33488
34054
  while (reader.pos < end) {
33489
34055
  const tag = reader.uint32();
33490
34056
  switch (tag >>> 3) {
@@ -33492,28 +34058,21 @@ var SandboxGetLogsRequest = {
33492
34058
  if (tag !== 10) {
33493
34059
  break;
33494
34060
  }
33495
- message.sandboxId = reader.string();
34061
+ message.sandboxName = reader.string();
33496
34062
  continue;
33497
34063
  }
33498
34064
  case 2: {
33499
- if (tag !== 16) {
34065
+ if (tag !== 18) {
33500
34066
  break;
33501
34067
  }
33502
- message.fileDescriptor = reader.int32();
34068
+ message.environmentName = reader.string();
33503
34069
  continue;
33504
34070
  }
33505
34071
  case 3: {
33506
- if (tag !== 29) {
33507
- break;
33508
- }
33509
- message.timeout = reader.float();
33510
- continue;
33511
- }
33512
- case 4: {
33513
- if (tag !== 34) {
34072
+ if (tag !== 26) {
33514
34073
  break;
33515
34074
  }
33516
- message.lastEntryId = reader.string();
34075
+ message.appName = reader.string();
33517
34076
  continue;
33518
34077
  }
33519
34078
  }
@@ -33526,44 +34085,39 @@ var SandboxGetLogsRequest = {
33526
34085
  },
33527
34086
  fromJSON(object) {
33528
34087
  return {
33529
- sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
33530
- fileDescriptor: isSet4(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
33531
- timeout: isSet4(object.timeout) ? globalThis.Number(object.timeout) : 0,
33532
- lastEntryId: isSet4(object.lastEntryId) ? globalThis.String(object.lastEntryId) : ""
34088
+ sandboxName: isSet4(object.sandboxName) ? globalThis.String(object.sandboxName) : "",
34089
+ environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
34090
+ appName: isSet4(object.appName) ? globalThis.String(object.appName) : ""
33533
34091
  };
33534
34092
  },
33535
34093
  toJSON(message) {
33536
34094
  const obj = {};
33537
- if (message.sandboxId !== "") {
33538
- obj.sandboxId = message.sandboxId;
33539
- }
33540
- if (message.fileDescriptor !== 0) {
33541
- obj.fileDescriptor = fileDescriptorToJSON(message.fileDescriptor);
34095
+ if (message.sandboxName !== "") {
34096
+ obj.sandboxName = message.sandboxName;
33542
34097
  }
33543
- if (message.timeout !== 0) {
33544
- obj.timeout = message.timeout;
34098
+ if (message.environmentName !== "") {
34099
+ obj.environmentName = message.environmentName;
33545
34100
  }
33546
- if (message.lastEntryId !== "") {
33547
- obj.lastEntryId = message.lastEntryId;
34101
+ if (message.appName !== "") {
34102
+ obj.appName = message.appName;
33548
34103
  }
33549
34104
  return obj;
33550
34105
  },
33551
34106
  create(base) {
33552
- return SandboxGetLogsRequest.fromPartial(base ?? {});
34107
+ return SandboxGetFromNameRequest.fromPartial(base ?? {});
33553
34108
  },
33554
34109
  fromPartial(object) {
33555
- const message = createBaseSandboxGetLogsRequest();
33556
- message.sandboxId = object.sandboxId ?? "";
33557
- message.fileDescriptor = object.fileDescriptor ?? 0;
33558
- message.timeout = object.timeout ?? 0;
33559
- message.lastEntryId = object.lastEntryId ?? "";
34110
+ const message = createBaseSandboxGetFromNameRequest();
34111
+ message.sandboxName = object.sandboxName ?? "";
34112
+ message.environmentName = object.environmentName ?? "";
34113
+ message.appName = object.appName ?? "";
33560
34114
  return message;
33561
34115
  }
33562
34116
  };
33563
- function createBaseSandboxGetResourceUsageRequest() {
34117
+ function createBaseSandboxGetFromNameResponse() {
33564
34118
  return { sandboxId: "" };
33565
34119
  }
33566
- var SandboxGetResourceUsageRequest = {
34120
+ var SandboxGetFromNameResponse = {
33567
34121
  encode(message, writer = new BinaryWriter()) {
33568
34122
  if (message.sandboxId !== "") {
33569
34123
  writer.uint32(10).string(message.sandboxId);
@@ -33573,7 +34127,156 @@ var SandboxGetResourceUsageRequest = {
33573
34127
  decode(input, length) {
33574
34128
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
33575
34129
  let end = length === void 0 ? reader.len : reader.pos + length;
33576
- const message = createBaseSandboxGetResourceUsageRequest();
34130
+ const message = createBaseSandboxGetFromNameResponse();
34131
+ while (reader.pos < end) {
34132
+ const tag = reader.uint32();
34133
+ switch (tag >>> 3) {
34134
+ case 1: {
34135
+ if (tag !== 10) {
34136
+ break;
34137
+ }
34138
+ message.sandboxId = reader.string();
34139
+ continue;
34140
+ }
34141
+ }
34142
+ if ((tag & 7) === 4 || tag === 0) {
34143
+ break;
34144
+ }
34145
+ reader.skip(tag & 7);
34146
+ }
34147
+ return message;
34148
+ },
34149
+ fromJSON(object) {
34150
+ return { sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "" };
34151
+ },
34152
+ toJSON(message) {
34153
+ const obj = {};
34154
+ if (message.sandboxId !== "") {
34155
+ obj.sandboxId = message.sandboxId;
34156
+ }
34157
+ return obj;
34158
+ },
34159
+ create(base) {
34160
+ return SandboxGetFromNameResponse.fromPartial(base ?? {});
34161
+ },
34162
+ fromPartial(object) {
34163
+ const message = createBaseSandboxGetFromNameResponse();
34164
+ message.sandboxId = object.sandboxId ?? "";
34165
+ return message;
34166
+ }
34167
+ };
34168
+ function createBaseSandboxGetLogsRequest() {
34169
+ return { sandboxId: "", fileDescriptor: 0, timeout: 0, lastEntryId: "" };
34170
+ }
34171
+ var SandboxGetLogsRequest = {
34172
+ encode(message, writer = new BinaryWriter()) {
34173
+ if (message.sandboxId !== "") {
34174
+ writer.uint32(10).string(message.sandboxId);
34175
+ }
34176
+ if (message.fileDescriptor !== 0) {
34177
+ writer.uint32(16).int32(message.fileDescriptor);
34178
+ }
34179
+ if (message.timeout !== 0) {
34180
+ writer.uint32(29).float(message.timeout);
34181
+ }
34182
+ if (message.lastEntryId !== "") {
34183
+ writer.uint32(34).string(message.lastEntryId);
34184
+ }
34185
+ return writer;
34186
+ },
34187
+ decode(input, length) {
34188
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
34189
+ let end = length === void 0 ? reader.len : reader.pos + length;
34190
+ const message = createBaseSandboxGetLogsRequest();
34191
+ while (reader.pos < end) {
34192
+ const tag = reader.uint32();
34193
+ switch (tag >>> 3) {
34194
+ case 1: {
34195
+ if (tag !== 10) {
34196
+ break;
34197
+ }
34198
+ message.sandboxId = reader.string();
34199
+ continue;
34200
+ }
34201
+ case 2: {
34202
+ if (tag !== 16) {
34203
+ break;
34204
+ }
34205
+ message.fileDescriptor = reader.int32();
34206
+ continue;
34207
+ }
34208
+ case 3: {
34209
+ if (tag !== 29) {
34210
+ break;
34211
+ }
34212
+ message.timeout = reader.float();
34213
+ continue;
34214
+ }
34215
+ case 4: {
34216
+ if (tag !== 34) {
34217
+ break;
34218
+ }
34219
+ message.lastEntryId = reader.string();
34220
+ continue;
34221
+ }
34222
+ }
34223
+ if ((tag & 7) === 4 || tag === 0) {
34224
+ break;
34225
+ }
34226
+ reader.skip(tag & 7);
34227
+ }
34228
+ return message;
34229
+ },
34230
+ fromJSON(object) {
34231
+ return {
34232
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
34233
+ fileDescriptor: isSet4(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
34234
+ timeout: isSet4(object.timeout) ? globalThis.Number(object.timeout) : 0,
34235
+ lastEntryId: isSet4(object.lastEntryId) ? globalThis.String(object.lastEntryId) : ""
34236
+ };
34237
+ },
34238
+ toJSON(message) {
34239
+ const obj = {};
34240
+ if (message.sandboxId !== "") {
34241
+ obj.sandboxId = message.sandboxId;
34242
+ }
34243
+ if (message.fileDescriptor !== 0) {
34244
+ obj.fileDescriptor = fileDescriptorToJSON(message.fileDescriptor);
34245
+ }
34246
+ if (message.timeout !== 0) {
34247
+ obj.timeout = message.timeout;
34248
+ }
34249
+ if (message.lastEntryId !== "") {
34250
+ obj.lastEntryId = message.lastEntryId;
34251
+ }
34252
+ return obj;
34253
+ },
34254
+ create(base) {
34255
+ return SandboxGetLogsRequest.fromPartial(base ?? {});
34256
+ },
34257
+ fromPartial(object) {
34258
+ const message = createBaseSandboxGetLogsRequest();
34259
+ message.sandboxId = object.sandboxId ?? "";
34260
+ message.fileDescriptor = object.fileDescriptor ?? 0;
34261
+ message.timeout = object.timeout ?? 0;
34262
+ message.lastEntryId = object.lastEntryId ?? "";
34263
+ return message;
34264
+ }
34265
+ };
34266
+ function createBaseSandboxGetResourceUsageRequest() {
34267
+ return { sandboxId: "" };
34268
+ }
34269
+ var SandboxGetResourceUsageRequest = {
34270
+ encode(message, writer = new BinaryWriter()) {
34271
+ if (message.sandboxId !== "") {
34272
+ writer.uint32(10).string(message.sandboxId);
34273
+ }
34274
+ return writer;
34275
+ },
34276
+ decode(input, length) {
34277
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
34278
+ let end = length === void 0 ? reader.len : reader.pos + length;
34279
+ const message = createBaseSandboxGetResourceUsageRequest();
33577
34280
  while (reader.pos < end) {
33578
34281
  const tag = reader.uint32();
33579
34282
  switch (tag >>> 3) {
@@ -34059,7 +34762,8 @@ function createBaseSandboxInfo() {
34059
34762
  resourceInfo: void 0,
34060
34763
  regions: [],
34061
34764
  timeoutSecs: 0,
34062
- idleTimeoutSecs: void 0
34765
+ idleTimeoutSecs: void 0,
34766
+ readyAt: void 0
34063
34767
  };
34064
34768
  }
34065
34769
  var SandboxInfo = {
@@ -34097,6 +34801,9 @@ var SandboxInfo = {
34097
34801
  if (message.idleTimeoutSecs !== void 0) {
34098
34802
  writer.uint32(96).uint32(message.idleTimeoutSecs);
34099
34803
  }
34804
+ if (message.readyAt !== void 0) {
34805
+ writer.uint32(105).double(message.readyAt);
34806
+ }
34100
34807
  return writer;
34101
34808
  },
34102
34809
  decode(input, length) {
@@ -34183,6 +34890,13 @@ var SandboxInfo = {
34183
34890
  message.idleTimeoutSecs = reader.uint32();
34184
34891
  continue;
34185
34892
  }
34893
+ case 13: {
34894
+ if (tag !== 105) {
34895
+ break;
34896
+ }
34897
+ message.readyAt = reader.double();
34898
+ continue;
34899
+ }
34186
34900
  }
34187
34901
  if ((tag & 7) === 4 || tag === 0) {
34188
34902
  break;
@@ -34203,7 +34917,8 @@ var SandboxInfo = {
34203
34917
  resourceInfo: isSet4(object.resourceInfo) ? ResourceInfo.fromJSON(object.resourceInfo) : void 0,
34204
34918
  regions: globalThis.Array.isArray(object?.regions) ? object.regions.map((e) => globalThis.String(e)) : [],
34205
34919
  timeoutSecs: isSet4(object.timeoutSecs) ? globalThis.Number(object.timeoutSecs) : 0,
34206
- idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0
34920
+ idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0,
34921
+ readyAt: isSet4(object.readyAt) ? globalThis.Number(object.readyAt) : void 0
34207
34922
  };
34208
34923
  },
34209
34924
  toJSON(message) {
@@ -34241,6 +34956,9 @@ var SandboxInfo = {
34241
34956
  if (message.idleTimeoutSecs !== void 0) {
34242
34957
  obj.idleTimeoutSecs = Math.round(message.idleTimeoutSecs);
34243
34958
  }
34959
+ if (message.readyAt !== void 0) {
34960
+ obj.readyAt = message.readyAt;
34961
+ }
34244
34962
  return obj;
34245
34963
  },
34246
34964
  create(base) {
@@ -34259,6 +34977,7 @@ var SandboxInfo = {
34259
34977
  message.regions = object.regions?.map((e) => e) || [];
34260
34978
  message.timeoutSecs = object.timeoutSecs ?? 0;
34261
34979
  message.idleTimeoutSecs = object.idleTimeoutSecs ?? void 0;
34980
+ message.readyAt = object.readyAt ?? void 0;
34262
34981
  return message;
34263
34982
  }
34264
34983
  };
@@ -35817,6 +36536,125 @@ var SandboxWaitResponse = {
35817
36536
  return message;
35818
36537
  }
35819
36538
  };
36539
+ function createBaseSandboxWaitUntilReadyRequest() {
36540
+ return { sandboxId: "", timeout: 0 };
36541
+ }
36542
+ var SandboxWaitUntilReadyRequest = {
36543
+ encode(message, writer = new BinaryWriter()) {
36544
+ if (message.sandboxId !== "") {
36545
+ writer.uint32(10).string(message.sandboxId);
36546
+ }
36547
+ if (message.timeout !== 0) {
36548
+ writer.uint32(21).float(message.timeout);
36549
+ }
36550
+ return writer;
36551
+ },
36552
+ decode(input, length) {
36553
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36554
+ let end = length === void 0 ? reader.len : reader.pos + length;
36555
+ const message = createBaseSandboxWaitUntilReadyRequest();
36556
+ while (reader.pos < end) {
36557
+ const tag = reader.uint32();
36558
+ switch (tag >>> 3) {
36559
+ case 1: {
36560
+ if (tag !== 10) {
36561
+ break;
36562
+ }
36563
+ message.sandboxId = reader.string();
36564
+ continue;
36565
+ }
36566
+ case 2: {
36567
+ if (tag !== 21) {
36568
+ break;
36569
+ }
36570
+ message.timeout = reader.float();
36571
+ continue;
36572
+ }
36573
+ }
36574
+ if ((tag & 7) === 4 || tag === 0) {
36575
+ break;
36576
+ }
36577
+ reader.skip(tag & 7);
36578
+ }
36579
+ return message;
36580
+ },
36581
+ fromJSON(object) {
36582
+ return {
36583
+ sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
36584
+ timeout: isSet4(object.timeout) ? globalThis.Number(object.timeout) : 0
36585
+ };
36586
+ },
36587
+ toJSON(message) {
36588
+ const obj = {};
36589
+ if (message.sandboxId !== "") {
36590
+ obj.sandboxId = message.sandboxId;
36591
+ }
36592
+ if (message.timeout !== 0) {
36593
+ obj.timeout = message.timeout;
36594
+ }
36595
+ return obj;
36596
+ },
36597
+ create(base) {
36598
+ return SandboxWaitUntilReadyRequest.fromPartial(base ?? {});
36599
+ },
36600
+ fromPartial(object) {
36601
+ const message = createBaseSandboxWaitUntilReadyRequest();
36602
+ message.sandboxId = object.sandboxId ?? "";
36603
+ message.timeout = object.timeout ?? 0;
36604
+ return message;
36605
+ }
36606
+ };
36607
+ function createBaseSandboxWaitUntilReadyResponse() {
36608
+ return { readyAt: 0 };
36609
+ }
36610
+ var SandboxWaitUntilReadyResponse = {
36611
+ encode(message, writer = new BinaryWriter()) {
36612
+ if (message.readyAt !== 0) {
36613
+ writer.uint32(9).double(message.readyAt);
36614
+ }
36615
+ return writer;
36616
+ },
36617
+ decode(input, length) {
36618
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36619
+ let end = length === void 0 ? reader.len : reader.pos + length;
36620
+ const message = createBaseSandboxWaitUntilReadyResponse();
36621
+ while (reader.pos < end) {
36622
+ const tag = reader.uint32();
36623
+ switch (tag >>> 3) {
36624
+ case 1: {
36625
+ if (tag !== 9) {
36626
+ break;
36627
+ }
36628
+ message.readyAt = reader.double();
36629
+ continue;
36630
+ }
36631
+ }
36632
+ if ((tag & 7) === 4 || tag === 0) {
36633
+ break;
36634
+ }
36635
+ reader.skip(tag & 7);
36636
+ }
36637
+ return message;
36638
+ },
36639
+ fromJSON(object) {
36640
+ return { readyAt: isSet4(object.readyAt) ? globalThis.Number(object.readyAt) : 0 };
36641
+ },
36642
+ toJSON(message) {
36643
+ const obj = {};
36644
+ if (message.readyAt !== 0) {
36645
+ obj.readyAt = message.readyAt;
36646
+ }
36647
+ return obj;
36648
+ },
36649
+ create(base) {
36650
+ return SandboxWaitUntilReadyResponse.fromPartial(base ?? {});
36651
+ },
36652
+ fromPartial(object) {
36653
+ const message = createBaseSandboxWaitUntilReadyResponse();
36654
+ message.readyAt = object.readyAt ?? 0;
36655
+ return message;
36656
+ }
36657
+ };
35820
36658
  function createBaseSchedule() {
35821
36659
  return { cron: void 0, period: void 0 };
35822
36660
  }
@@ -38568,6 +39406,125 @@ var TaskGetCommandRouterAccessResponse = {
38568
39406
  return message;
38569
39407
  }
38570
39408
  };
39409
+ function createBaseTaskGetInfoRequest() {
39410
+ return { taskId: "" };
39411
+ }
39412
+ var TaskGetInfoRequest = {
39413
+ encode(message, writer = new BinaryWriter()) {
39414
+ if (message.taskId !== "") {
39415
+ writer.uint32(10).string(message.taskId);
39416
+ }
39417
+ return writer;
39418
+ },
39419
+ decode(input, length) {
39420
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
39421
+ let end = length === void 0 ? reader.len : reader.pos + length;
39422
+ const message = createBaseTaskGetInfoRequest();
39423
+ while (reader.pos < end) {
39424
+ const tag = reader.uint32();
39425
+ switch (tag >>> 3) {
39426
+ case 1: {
39427
+ if (tag !== 10) {
39428
+ break;
39429
+ }
39430
+ message.taskId = reader.string();
39431
+ continue;
39432
+ }
39433
+ }
39434
+ if ((tag & 7) === 4 || tag === 0) {
39435
+ break;
39436
+ }
39437
+ reader.skip(tag & 7);
39438
+ }
39439
+ return message;
39440
+ },
39441
+ fromJSON(object) {
39442
+ return { taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "" };
39443
+ },
39444
+ toJSON(message) {
39445
+ const obj = {};
39446
+ if (message.taskId !== "") {
39447
+ obj.taskId = message.taskId;
39448
+ }
39449
+ return obj;
39450
+ },
39451
+ create(base) {
39452
+ return TaskGetInfoRequest.fromPartial(base ?? {});
39453
+ },
39454
+ fromPartial(object) {
39455
+ const message = createBaseTaskGetInfoRequest();
39456
+ message.taskId = object.taskId ?? "";
39457
+ return message;
39458
+ }
39459
+ };
39460
+ function createBaseTaskGetInfoResponse() {
39461
+ return { appId: "", info: void 0 };
39462
+ }
39463
+ var TaskGetInfoResponse = {
39464
+ encode(message, writer = new BinaryWriter()) {
39465
+ if (message.appId !== "") {
39466
+ writer.uint32(10).string(message.appId);
39467
+ }
39468
+ if (message.info !== void 0) {
39469
+ TaskInfo.encode(message.info, writer.uint32(18).fork()).join();
39470
+ }
39471
+ return writer;
39472
+ },
39473
+ decode(input, length) {
39474
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
39475
+ let end = length === void 0 ? reader.len : reader.pos + length;
39476
+ const message = createBaseTaskGetInfoResponse();
39477
+ while (reader.pos < end) {
39478
+ const tag = reader.uint32();
39479
+ switch (tag >>> 3) {
39480
+ case 1: {
39481
+ if (tag !== 10) {
39482
+ break;
39483
+ }
39484
+ message.appId = reader.string();
39485
+ continue;
39486
+ }
39487
+ case 2: {
39488
+ if (tag !== 18) {
39489
+ break;
39490
+ }
39491
+ message.info = TaskInfo.decode(reader, reader.uint32());
39492
+ continue;
39493
+ }
39494
+ }
39495
+ if ((tag & 7) === 4 || tag === 0) {
39496
+ break;
39497
+ }
39498
+ reader.skip(tag & 7);
39499
+ }
39500
+ return message;
39501
+ },
39502
+ fromJSON(object) {
39503
+ return {
39504
+ appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
39505
+ info: isSet4(object.info) ? TaskInfo.fromJSON(object.info) : void 0
39506
+ };
39507
+ },
39508
+ toJSON(message) {
39509
+ const obj = {};
39510
+ if (message.appId !== "") {
39511
+ obj.appId = message.appId;
39512
+ }
39513
+ if (message.info !== void 0) {
39514
+ obj.info = TaskInfo.toJSON(message.info);
39515
+ }
39516
+ return obj;
39517
+ },
39518
+ create(base) {
39519
+ return TaskGetInfoResponse.fromPartial(base ?? {});
39520
+ },
39521
+ fromPartial(object) {
39522
+ const message = createBaseTaskGetInfoResponse();
39523
+ message.appId = object.appId ?? "";
39524
+ message.info = object.info !== void 0 && object.info !== null ? TaskInfo.fromPartial(object.info) : void 0;
39525
+ return message;
39526
+ }
39527
+ };
38571
39528
  function createBaseTaskInfo() {
38572
39529
  return {
38573
39530
  id: "",
@@ -38881,7 +39838,9 @@ function createBaseTaskLogs() {
38881
39838
  taskProgress: void 0,
38882
39839
  functionCallId: "",
38883
39840
  inputId: "",
38884
- timestampNs: 0
39841
+ timestampNs: 0,
39842
+ containerId: "",
39843
+ containerName: ""
38885
39844
  };
38886
39845
  }
38887
39846
  var TaskLogs = {
@@ -38910,6 +39869,12 @@ var TaskLogs = {
38910
39869
  if (message.timestampNs !== 0) {
38911
39870
  writer.uint32(96).uint64(message.timestampNs);
38912
39871
  }
39872
+ if (message.containerId !== "") {
39873
+ writer.uint32(106).string(message.containerId);
39874
+ }
39875
+ if (message.containerName !== "") {
39876
+ writer.uint32(114).string(message.containerName);
39877
+ }
38913
39878
  return writer;
38914
39879
  },
38915
39880
  decode(input, length) {
@@ -38975,6 +39940,20 @@ var TaskLogs = {
38975
39940
  message.timestampNs = longToNumber2(reader.uint64());
38976
39941
  continue;
38977
39942
  }
39943
+ case 13: {
39944
+ if (tag !== 106) {
39945
+ break;
39946
+ }
39947
+ message.containerId = reader.string();
39948
+ continue;
39949
+ }
39950
+ case 14: {
39951
+ if (tag !== 114) {
39952
+ break;
39953
+ }
39954
+ message.containerName = reader.string();
39955
+ continue;
39956
+ }
38978
39957
  }
38979
39958
  if ((tag & 7) === 4 || tag === 0) {
38980
39959
  break;
@@ -38992,7 +39971,9 @@ var TaskLogs = {
38992
39971
  taskProgress: isSet4(object.taskProgress) ? TaskProgress.fromJSON(object.taskProgress) : void 0,
38993
39972
  functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
38994
39973
  inputId: isSet4(object.inputId) ? globalThis.String(object.inputId) : "",
38995
- timestampNs: isSet4(object.timestampNs) ? globalThis.Number(object.timestampNs) : 0
39974
+ timestampNs: isSet4(object.timestampNs) ? globalThis.Number(object.timestampNs) : 0,
39975
+ containerId: isSet4(object.containerId) ? globalThis.String(object.containerId) : "",
39976
+ containerName: isSet4(object.containerName) ? globalThis.String(object.containerName) : ""
38996
39977
  };
38997
39978
  },
38998
39979
  toJSON(message) {
@@ -39021,6 +40002,12 @@ var TaskLogs = {
39021
40002
  if (message.timestampNs !== 0) {
39022
40003
  obj.timestampNs = Math.round(message.timestampNs);
39023
40004
  }
40005
+ if (message.containerId !== "") {
40006
+ obj.containerId = message.containerId;
40007
+ }
40008
+ if (message.containerName !== "") {
40009
+ obj.containerName = message.containerName;
40010
+ }
39024
40011
  return obj;
39025
40012
  },
39026
40013
  create(base) {
@@ -39036,6 +40023,8 @@ var TaskLogs = {
39036
40023
  message.functionCallId = object.functionCallId ?? "";
39037
40024
  message.inputId = object.inputId ?? "";
39038
40025
  message.timestampNs = object.timestampNs ?? 0;
40026
+ message.containerId = object.containerId ?? "";
40027
+ message.containerName = object.containerName ?? "";
39039
40028
  return message;
39040
40029
  }
39041
40030
  };
@@ -39629,6 +40618,179 @@ var TaskTemplate = {
39629
40618
  return message;
39630
40619
  }
39631
40620
  };
40621
+ function createBaseTemplateListRequest() {
40622
+ return {};
40623
+ }
40624
+ var TemplateListRequest = {
40625
+ encode(_, writer = new BinaryWriter()) {
40626
+ return writer;
40627
+ },
40628
+ decode(input, length) {
40629
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
40630
+ let end = length === void 0 ? reader.len : reader.pos + length;
40631
+ const message = createBaseTemplateListRequest();
40632
+ while (reader.pos < end) {
40633
+ const tag = reader.uint32();
40634
+ switch (tag >>> 3) {
40635
+ }
40636
+ if ((tag & 7) === 4 || tag === 0) {
40637
+ break;
40638
+ }
40639
+ reader.skip(tag & 7);
40640
+ }
40641
+ return message;
40642
+ },
40643
+ fromJSON(_) {
40644
+ return {};
40645
+ },
40646
+ toJSON(_) {
40647
+ const obj = {};
40648
+ return obj;
40649
+ },
40650
+ create(base) {
40651
+ return TemplateListRequest.fromPartial(base ?? {});
40652
+ },
40653
+ fromPartial(_) {
40654
+ const message = createBaseTemplateListRequest();
40655
+ return message;
40656
+ }
40657
+ };
40658
+ function createBaseTemplateListResponse() {
40659
+ return { items: [] };
40660
+ }
40661
+ var TemplateListResponse = {
40662
+ encode(message, writer = new BinaryWriter()) {
40663
+ for (const v of message.items) {
40664
+ TemplateListResponse_TemplateListItem.encode(v, writer.uint32(10).fork()).join();
40665
+ }
40666
+ return writer;
40667
+ },
40668
+ decode(input, length) {
40669
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
40670
+ let end = length === void 0 ? reader.len : reader.pos + length;
40671
+ const message = createBaseTemplateListResponse();
40672
+ while (reader.pos < end) {
40673
+ const tag = reader.uint32();
40674
+ switch (tag >>> 3) {
40675
+ case 1: {
40676
+ if (tag !== 10) {
40677
+ break;
40678
+ }
40679
+ message.items.push(TemplateListResponse_TemplateListItem.decode(reader, reader.uint32()));
40680
+ continue;
40681
+ }
40682
+ }
40683
+ if ((tag & 7) === 4 || tag === 0) {
40684
+ break;
40685
+ }
40686
+ reader.skip(tag & 7);
40687
+ }
40688
+ return message;
40689
+ },
40690
+ fromJSON(object) {
40691
+ return {
40692
+ items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => TemplateListResponse_TemplateListItem.fromJSON(e)) : []
40693
+ };
40694
+ },
40695
+ toJSON(message) {
40696
+ const obj = {};
40697
+ if (message.items?.length) {
40698
+ obj.items = message.items.map((e) => TemplateListResponse_TemplateListItem.toJSON(e));
40699
+ }
40700
+ return obj;
40701
+ },
40702
+ create(base) {
40703
+ return TemplateListResponse.fromPartial(base ?? {});
40704
+ },
40705
+ fromPartial(object) {
40706
+ const message = createBaseTemplateListResponse();
40707
+ message.items = object.items?.map((e) => TemplateListResponse_TemplateListItem.fromPartial(e)) || [];
40708
+ return message;
40709
+ }
40710
+ };
40711
+ function createBaseTemplateListResponse_TemplateListItem() {
40712
+ return { name: "", repo: "", ref: "" };
40713
+ }
40714
+ var TemplateListResponse_TemplateListItem = {
40715
+ encode(message, writer = new BinaryWriter()) {
40716
+ if (message.name !== "") {
40717
+ writer.uint32(10).string(message.name);
40718
+ }
40719
+ if (message.repo !== "") {
40720
+ writer.uint32(18).string(message.repo);
40721
+ }
40722
+ if (message.ref !== "") {
40723
+ writer.uint32(26).string(message.ref);
40724
+ }
40725
+ return writer;
40726
+ },
40727
+ decode(input, length) {
40728
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
40729
+ let end = length === void 0 ? reader.len : reader.pos + length;
40730
+ const message = createBaseTemplateListResponse_TemplateListItem();
40731
+ while (reader.pos < end) {
40732
+ const tag = reader.uint32();
40733
+ switch (tag >>> 3) {
40734
+ case 1: {
40735
+ if (tag !== 10) {
40736
+ break;
40737
+ }
40738
+ message.name = reader.string();
40739
+ continue;
40740
+ }
40741
+ case 2: {
40742
+ if (tag !== 18) {
40743
+ break;
40744
+ }
40745
+ message.repo = reader.string();
40746
+ continue;
40747
+ }
40748
+ case 3: {
40749
+ if (tag !== 26) {
40750
+ break;
40751
+ }
40752
+ message.ref = reader.string();
40753
+ continue;
40754
+ }
40755
+ }
40756
+ if ((tag & 7) === 4 || tag === 0) {
40757
+ break;
40758
+ }
40759
+ reader.skip(tag & 7);
40760
+ }
40761
+ return message;
40762
+ },
40763
+ fromJSON(object) {
40764
+ return {
40765
+ name: isSet4(object.name) ? globalThis.String(object.name) : "",
40766
+ repo: isSet4(object.repo) ? globalThis.String(object.repo) : "",
40767
+ ref: isSet4(object.ref) ? globalThis.String(object.ref) : ""
40768
+ };
40769
+ },
40770
+ toJSON(message) {
40771
+ const obj = {};
40772
+ if (message.name !== "") {
40773
+ obj.name = message.name;
40774
+ }
40775
+ if (message.repo !== "") {
40776
+ obj.repo = message.repo;
40777
+ }
40778
+ if (message.ref !== "") {
40779
+ obj.ref = message.ref;
40780
+ }
40781
+ return obj;
40782
+ },
40783
+ create(base) {
40784
+ return TemplateListResponse_TemplateListItem.fromPartial(base ?? {});
40785
+ },
40786
+ fromPartial(object) {
40787
+ const message = createBaseTemplateListResponse_TemplateListItem();
40788
+ message.name = object.name ?? "";
40789
+ message.repo = object.repo ?? "";
40790
+ message.ref = object.ref ?? "";
40791
+ return message;
40792
+ }
40793
+ };
39632
40794
  function createBaseTokenFlowCreateRequest() {
39633
40795
  return { utmSource: "", localhostPort: 0, nextUrl: "" };
39634
40796
  }
@@ -44219,6 +45381,14 @@ var ModalClientDefinition = {
44219
45381
  responseStream: false,
44220
45382
  options: {}
44221
45383
  },
45384
+ appGetLifecycle: {
45385
+ name: "AppGetLifecycle",
45386
+ requestType: AppGetLifecycleRequest,
45387
+ requestStream: false,
45388
+ responseType: AppGetLifecycleResponse,
45389
+ responseStream: false,
45390
+ options: {}
45391
+ },
44222
45392
  appGetLogs: {
44223
45393
  name: "AppGetLogs",
44224
45394
  requestType: AppGetLogsRequest,
@@ -44291,6 +45461,14 @@ var ModalClientDefinition = {
44291
45461
  responseStream: false,
44292
45462
  options: {}
44293
45463
  },
45464
+ appRollover: {
45465
+ name: "AppRollover",
45466
+ requestType: AppRolloverRequest,
45467
+ requestStream: false,
45468
+ responseType: AppRolloverResponse,
45469
+ responseStream: false,
45470
+ options: {}
45471
+ },
44294
45472
  appSetObjects: {
44295
45473
  name: "AppSetObjects",
44296
45474
  requestType: AppSetObjectsRequest,
@@ -45146,6 +46324,14 @@ var ModalClientDefinition = {
45146
46324
  responseStream: false,
45147
46325
  options: {}
45148
46326
  },
46327
+ sandboxGetCommandRouterAccess: {
46328
+ name: "SandboxGetCommandRouterAccess",
46329
+ requestType: SandboxGetCommandRouterAccessRequest,
46330
+ requestStream: false,
46331
+ responseType: SandboxGetCommandRouterAccessResponse,
46332
+ responseStream: false,
46333
+ options: {}
46334
+ },
45149
46335
  sandboxGetFromName: {
45150
46336
  name: "SandboxGetFromName",
45151
46337
  requestType: SandboxGetFromNameRequest,
@@ -45179,6 +46365,14 @@ var ModalClientDefinition = {
45179
46365
  responseStream: false,
45180
46366
  options: {}
45181
46367
  },
46368
+ sandboxGetTaskIdV2: {
46369
+ name: "SandboxGetTaskIdV2",
46370
+ requestType: SandboxGetTaskIdRequest,
46371
+ requestStream: false,
46372
+ responseType: SandboxGetTaskIdResponse,
46373
+ responseStream: false,
46374
+ options: {}
46375
+ },
45182
46376
  sandboxGetTunnels: {
45183
46377
  name: "SandboxGetTunnels",
45184
46378
  requestType: SandboxGetTunnelsRequest,
@@ -45187,6 +46381,14 @@ var ModalClientDefinition = {
45187
46381
  responseStream: false,
45188
46382
  options: {}
45189
46383
  },
46384
+ sandboxGetTunnelsV2: {
46385
+ name: "SandboxGetTunnelsV2",
46386
+ requestType: SandboxGetTunnelsRequest,
46387
+ requestStream: false,
46388
+ responseType: SandboxGetTunnelsResponse,
46389
+ responseStream: false,
46390
+ options: {}
46391
+ },
45190
46392
  sandboxList: {
45191
46393
  name: "SandboxList",
45192
46394
  requestType: SandboxListRequest,
@@ -45283,6 +46485,14 @@ var ModalClientDefinition = {
45283
46485
  responseStream: false,
45284
46486
  options: {}
45285
46487
  },
46488
+ sandboxTerminateV2: {
46489
+ name: "SandboxTerminateV2",
46490
+ requestType: SandboxTerminateRequest,
46491
+ requestStream: false,
46492
+ responseType: SandboxTerminateResponse,
46493
+ responseStream: false,
46494
+ options: {}
46495
+ },
45286
46496
  sandboxWait: {
45287
46497
  name: "SandboxWait",
45288
46498
  requestType: SandboxWaitRequest,
@@ -45291,6 +46501,22 @@ var ModalClientDefinition = {
45291
46501
  responseStream: false,
45292
46502
  options: {}
45293
46503
  },
46504
+ sandboxWaitUntilReady: {
46505
+ name: "SandboxWaitUntilReady",
46506
+ requestType: SandboxWaitUntilReadyRequest,
46507
+ requestStream: false,
46508
+ responseType: SandboxWaitUntilReadyResponse,
46509
+ responseStream: false,
46510
+ options: {}
46511
+ },
46512
+ sandboxWaitV2: {
46513
+ name: "SandboxWaitV2",
46514
+ requestType: SandboxWaitRequest,
46515
+ requestStream: false,
46516
+ responseType: SandboxWaitResponse,
46517
+ responseStream: false,
46518
+ options: {}
46519
+ },
45294
46520
  /** Secrets */
45295
46521
  secretDelete: {
45296
46522
  name: "SecretDelete",
@@ -45422,6 +46648,14 @@ var ModalClientDefinition = {
45422
46648
  responseStream: false,
45423
46649
  options: {}
45424
46650
  },
46651
+ taskGetInfo: {
46652
+ name: "TaskGetInfo",
46653
+ requestType: TaskGetInfoRequest,
46654
+ requestStream: false,
46655
+ responseType: TaskGetInfoResponse,
46656
+ responseStream: false,
46657
+ options: {}
46658
+ },
45425
46659
  taskList: {
45426
46660
  name: "TaskList",
45427
46661
  requestType: TaskListRequest,
@@ -45438,6 +46672,15 @@ var ModalClientDefinition = {
45438
46672
  responseStream: false,
45439
46673
  options: {}
45440
46674
  },
46675
+ /** Templates */
46676
+ templateList: {
46677
+ name: "TemplateList",
46678
+ requestType: TemplateListRequest,
46679
+ requestStream: false,
46680
+ responseType: TemplateListResponse,
46681
+ responseStream: false,
46682
+ options: {}
46683
+ },
45441
46684
  /** Tokens (web auth flow) */
45442
46685
  tokenFlowCreate: {
45443
46686
  name: "TokenFlowCreate",
@@ -45808,6 +47051,12 @@ var CloudBucketMount2 = class {
45808
47051
  import { ClientError as ClientError3, Status as Status3 } from "nice-grpc";
45809
47052
 
45810
47053
  // src/errors.ts
47054
+ var TimeoutError = class extends Error {
47055
+ constructor(message = "Operation timed out") {
47056
+ super(message);
47057
+ this.name = "TimeoutError";
47058
+ }
47059
+ };
45811
47060
  var FunctionTimeoutError = class extends Error {
45812
47061
  constructor(message) {
45813
47062
  super(message);
@@ -48013,6 +49262,894 @@ function taskExecStdoutConfigToJSON(object) {
48013
49262
  return "UNRECOGNIZED";
48014
49263
  }
48015
49264
  }
49265
+ function createBaseTaskContainerCreateRequest() {
49266
+ return { taskId: "", containerName: "", imageId: "", args: [], env: {}, workdir: "", secretIds: [] };
49267
+ }
49268
+ var TaskContainerCreateRequest = {
49269
+ encode(message, writer = new BinaryWriter()) {
49270
+ if (message.taskId !== "") {
49271
+ writer.uint32(10).string(message.taskId);
49272
+ }
49273
+ if (message.containerName !== "") {
49274
+ writer.uint32(18).string(message.containerName);
49275
+ }
49276
+ if (message.imageId !== "") {
49277
+ writer.uint32(26).string(message.imageId);
49278
+ }
49279
+ for (const v of message.args) {
49280
+ writer.uint32(42).string(v);
49281
+ }
49282
+ Object.entries(message.env).forEach(([key, value]) => {
49283
+ TaskContainerCreateRequest_EnvEntry.encode({ key, value }, writer.uint32(50).fork()).join();
49284
+ });
49285
+ if (message.workdir !== "") {
49286
+ writer.uint32(58).string(message.workdir);
49287
+ }
49288
+ for (const v of message.secretIds) {
49289
+ writer.uint32(66).string(v);
49290
+ }
49291
+ return writer;
49292
+ },
49293
+ decode(input, length) {
49294
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49295
+ let end = length === void 0 ? reader.len : reader.pos + length;
49296
+ const message = createBaseTaskContainerCreateRequest();
49297
+ while (reader.pos < end) {
49298
+ const tag = reader.uint32();
49299
+ switch (tag >>> 3) {
49300
+ case 1: {
49301
+ if (tag !== 10) {
49302
+ break;
49303
+ }
49304
+ message.taskId = reader.string();
49305
+ continue;
49306
+ }
49307
+ case 2: {
49308
+ if (tag !== 18) {
49309
+ break;
49310
+ }
49311
+ message.containerName = reader.string();
49312
+ continue;
49313
+ }
49314
+ case 3: {
49315
+ if (tag !== 26) {
49316
+ break;
49317
+ }
49318
+ message.imageId = reader.string();
49319
+ continue;
49320
+ }
49321
+ case 5: {
49322
+ if (tag !== 42) {
49323
+ break;
49324
+ }
49325
+ message.args.push(reader.string());
49326
+ continue;
49327
+ }
49328
+ case 6: {
49329
+ if (tag !== 50) {
49330
+ break;
49331
+ }
49332
+ const entry6 = TaskContainerCreateRequest_EnvEntry.decode(reader, reader.uint32());
49333
+ if (entry6.value !== void 0) {
49334
+ message.env[entry6.key] = entry6.value;
49335
+ }
49336
+ continue;
49337
+ }
49338
+ case 7: {
49339
+ if (tag !== 58) {
49340
+ break;
49341
+ }
49342
+ message.workdir = reader.string();
49343
+ continue;
49344
+ }
49345
+ case 8: {
49346
+ if (tag !== 66) {
49347
+ break;
49348
+ }
49349
+ message.secretIds.push(reader.string());
49350
+ continue;
49351
+ }
49352
+ }
49353
+ if ((tag & 7) === 4 || tag === 0) {
49354
+ break;
49355
+ }
49356
+ reader.skip(tag & 7);
49357
+ }
49358
+ return message;
49359
+ },
49360
+ fromJSON(object) {
49361
+ return {
49362
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
49363
+ containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
49364
+ imageId: isSet5(object.imageId) ? globalThis.String(object.imageId) : "",
49365
+ args: globalThis.Array.isArray(object?.args) ? object.args.map((e) => globalThis.String(e)) : [],
49366
+ env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
49367
+ acc[key] = String(value);
49368
+ return acc;
49369
+ }, {}) : {},
49370
+ workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : "",
49371
+ secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : []
49372
+ };
49373
+ },
49374
+ toJSON(message) {
49375
+ const obj = {};
49376
+ if (message.taskId !== "") {
49377
+ obj.taskId = message.taskId;
49378
+ }
49379
+ if (message.containerName !== "") {
49380
+ obj.containerName = message.containerName;
49381
+ }
49382
+ if (message.imageId !== "") {
49383
+ obj.imageId = message.imageId;
49384
+ }
49385
+ if (message.args?.length) {
49386
+ obj.args = message.args;
49387
+ }
49388
+ if (message.env) {
49389
+ const entries = Object.entries(message.env);
49390
+ if (entries.length > 0) {
49391
+ obj.env = {};
49392
+ entries.forEach(([k, v]) => {
49393
+ obj.env[k] = v;
49394
+ });
49395
+ }
49396
+ }
49397
+ if (message.workdir !== "") {
49398
+ obj.workdir = message.workdir;
49399
+ }
49400
+ if (message.secretIds?.length) {
49401
+ obj.secretIds = message.secretIds;
49402
+ }
49403
+ return obj;
49404
+ },
49405
+ create(base) {
49406
+ return TaskContainerCreateRequest.fromPartial(base ?? {});
49407
+ },
49408
+ fromPartial(object) {
49409
+ const message = createBaseTaskContainerCreateRequest();
49410
+ message.taskId = object.taskId ?? "";
49411
+ message.containerName = object.containerName ?? "";
49412
+ message.imageId = object.imageId ?? "";
49413
+ message.args = object.args?.map((e) => e) || [];
49414
+ message.env = Object.entries(object.env ?? {}).reduce((acc, [key, value]) => {
49415
+ if (value !== void 0) {
49416
+ acc[key] = globalThis.String(value);
49417
+ }
49418
+ return acc;
49419
+ }, {});
49420
+ message.workdir = object.workdir ?? "";
49421
+ message.secretIds = object.secretIds?.map((e) => e) || [];
49422
+ return message;
49423
+ }
49424
+ };
49425
+ function createBaseTaskContainerCreateRequest_EnvEntry() {
49426
+ return { key: "", value: "" };
49427
+ }
49428
+ var TaskContainerCreateRequest_EnvEntry = {
49429
+ encode(message, writer = new BinaryWriter()) {
49430
+ if (message.key !== "") {
49431
+ writer.uint32(10).string(message.key);
49432
+ }
49433
+ if (message.value !== "") {
49434
+ writer.uint32(18).string(message.value);
49435
+ }
49436
+ return writer;
49437
+ },
49438
+ decode(input, length) {
49439
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49440
+ let end = length === void 0 ? reader.len : reader.pos + length;
49441
+ const message = createBaseTaskContainerCreateRequest_EnvEntry();
49442
+ while (reader.pos < end) {
49443
+ const tag = reader.uint32();
49444
+ switch (tag >>> 3) {
49445
+ case 1: {
49446
+ if (tag !== 10) {
49447
+ break;
49448
+ }
49449
+ message.key = reader.string();
49450
+ continue;
49451
+ }
49452
+ case 2: {
49453
+ if (tag !== 18) {
49454
+ break;
49455
+ }
49456
+ message.value = reader.string();
49457
+ continue;
49458
+ }
49459
+ }
49460
+ if ((tag & 7) === 4 || tag === 0) {
49461
+ break;
49462
+ }
49463
+ reader.skip(tag & 7);
49464
+ }
49465
+ return message;
49466
+ },
49467
+ fromJSON(object) {
49468
+ return {
49469
+ key: isSet5(object.key) ? globalThis.String(object.key) : "",
49470
+ value: isSet5(object.value) ? globalThis.String(object.value) : ""
49471
+ };
49472
+ },
49473
+ toJSON(message) {
49474
+ const obj = {};
49475
+ if (message.key !== "") {
49476
+ obj.key = message.key;
49477
+ }
49478
+ if (message.value !== "") {
49479
+ obj.value = message.value;
49480
+ }
49481
+ return obj;
49482
+ },
49483
+ create(base) {
49484
+ return TaskContainerCreateRequest_EnvEntry.fromPartial(base ?? {});
49485
+ },
49486
+ fromPartial(object) {
49487
+ const message = createBaseTaskContainerCreateRequest_EnvEntry();
49488
+ message.key = object.key ?? "";
49489
+ message.value = object.value ?? "";
49490
+ return message;
49491
+ }
49492
+ };
49493
+ function createBaseTaskContainerCreateResponse() {
49494
+ return { containerId: "", containerName: "" };
49495
+ }
49496
+ var TaskContainerCreateResponse = {
49497
+ encode(message, writer = new BinaryWriter()) {
49498
+ if (message.containerId !== "") {
49499
+ writer.uint32(10).string(message.containerId);
49500
+ }
49501
+ if (message.containerName !== "") {
49502
+ writer.uint32(18).string(message.containerName);
49503
+ }
49504
+ return writer;
49505
+ },
49506
+ decode(input, length) {
49507
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49508
+ let end = length === void 0 ? reader.len : reader.pos + length;
49509
+ const message = createBaseTaskContainerCreateResponse();
49510
+ while (reader.pos < end) {
49511
+ const tag = reader.uint32();
49512
+ switch (tag >>> 3) {
49513
+ case 1: {
49514
+ if (tag !== 10) {
49515
+ break;
49516
+ }
49517
+ message.containerId = reader.string();
49518
+ continue;
49519
+ }
49520
+ case 2: {
49521
+ if (tag !== 18) {
49522
+ break;
49523
+ }
49524
+ message.containerName = reader.string();
49525
+ continue;
49526
+ }
49527
+ }
49528
+ if ((tag & 7) === 4 || tag === 0) {
49529
+ break;
49530
+ }
49531
+ reader.skip(tag & 7);
49532
+ }
49533
+ return message;
49534
+ },
49535
+ fromJSON(object) {
49536
+ return {
49537
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
49538
+ containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : ""
49539
+ };
49540
+ },
49541
+ toJSON(message) {
49542
+ const obj = {};
49543
+ if (message.containerId !== "") {
49544
+ obj.containerId = message.containerId;
49545
+ }
49546
+ if (message.containerName !== "") {
49547
+ obj.containerName = message.containerName;
49548
+ }
49549
+ return obj;
49550
+ },
49551
+ create(base) {
49552
+ return TaskContainerCreateResponse.fromPartial(base ?? {});
49553
+ },
49554
+ fromPartial(object) {
49555
+ const message = createBaseTaskContainerCreateResponse();
49556
+ message.containerId = object.containerId ?? "";
49557
+ message.containerName = object.containerName ?? "";
49558
+ return message;
49559
+ }
49560
+ };
49561
+ function createBaseTaskContainerGetRequest() {
49562
+ return { taskId: "", containerName: "", includeTerminated: false };
49563
+ }
49564
+ var TaskContainerGetRequest = {
49565
+ encode(message, writer = new BinaryWriter()) {
49566
+ if (message.taskId !== "") {
49567
+ writer.uint32(10).string(message.taskId);
49568
+ }
49569
+ if (message.containerName !== "") {
49570
+ writer.uint32(18).string(message.containerName);
49571
+ }
49572
+ if (message.includeTerminated !== false) {
49573
+ writer.uint32(24).bool(message.includeTerminated);
49574
+ }
49575
+ return writer;
49576
+ },
49577
+ decode(input, length) {
49578
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49579
+ let end = length === void 0 ? reader.len : reader.pos + length;
49580
+ const message = createBaseTaskContainerGetRequest();
49581
+ while (reader.pos < end) {
49582
+ const tag = reader.uint32();
49583
+ switch (tag >>> 3) {
49584
+ case 1: {
49585
+ if (tag !== 10) {
49586
+ break;
49587
+ }
49588
+ message.taskId = reader.string();
49589
+ continue;
49590
+ }
49591
+ case 2: {
49592
+ if (tag !== 18) {
49593
+ break;
49594
+ }
49595
+ message.containerName = reader.string();
49596
+ continue;
49597
+ }
49598
+ case 3: {
49599
+ if (tag !== 24) {
49600
+ break;
49601
+ }
49602
+ message.includeTerminated = reader.bool();
49603
+ continue;
49604
+ }
49605
+ }
49606
+ if ((tag & 7) === 4 || tag === 0) {
49607
+ break;
49608
+ }
49609
+ reader.skip(tag & 7);
49610
+ }
49611
+ return message;
49612
+ },
49613
+ fromJSON(object) {
49614
+ return {
49615
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
49616
+ containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
49617
+ includeTerminated: isSet5(object.includeTerminated) ? globalThis.Boolean(object.includeTerminated) : false
49618
+ };
49619
+ },
49620
+ toJSON(message) {
49621
+ const obj = {};
49622
+ if (message.taskId !== "") {
49623
+ obj.taskId = message.taskId;
49624
+ }
49625
+ if (message.containerName !== "") {
49626
+ obj.containerName = message.containerName;
49627
+ }
49628
+ if (message.includeTerminated !== false) {
49629
+ obj.includeTerminated = message.includeTerminated;
49630
+ }
49631
+ return obj;
49632
+ },
49633
+ create(base) {
49634
+ return TaskContainerGetRequest.fromPartial(base ?? {});
49635
+ },
49636
+ fromPartial(object) {
49637
+ const message = createBaseTaskContainerGetRequest();
49638
+ message.taskId = object.taskId ?? "";
49639
+ message.containerName = object.containerName ?? "";
49640
+ message.includeTerminated = object.includeTerminated ?? false;
49641
+ return message;
49642
+ }
49643
+ };
49644
+ function createBaseTaskContainerGetResponse() {
49645
+ return { container: void 0 };
49646
+ }
49647
+ var TaskContainerGetResponse = {
49648
+ encode(message, writer = new BinaryWriter()) {
49649
+ if (message.container !== void 0) {
49650
+ TaskContainerInfo.encode(message.container, writer.uint32(10).fork()).join();
49651
+ }
49652
+ return writer;
49653
+ },
49654
+ decode(input, length) {
49655
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49656
+ let end = length === void 0 ? reader.len : reader.pos + length;
49657
+ const message = createBaseTaskContainerGetResponse();
49658
+ while (reader.pos < end) {
49659
+ const tag = reader.uint32();
49660
+ switch (tag >>> 3) {
49661
+ case 1: {
49662
+ if (tag !== 10) {
49663
+ break;
49664
+ }
49665
+ message.container = TaskContainerInfo.decode(reader, reader.uint32());
49666
+ continue;
49667
+ }
49668
+ }
49669
+ if ((tag & 7) === 4 || tag === 0) {
49670
+ break;
49671
+ }
49672
+ reader.skip(tag & 7);
49673
+ }
49674
+ return message;
49675
+ },
49676
+ fromJSON(object) {
49677
+ return { container: isSet5(object.container) ? TaskContainerInfo.fromJSON(object.container) : void 0 };
49678
+ },
49679
+ toJSON(message) {
49680
+ const obj = {};
49681
+ if (message.container !== void 0) {
49682
+ obj.container = TaskContainerInfo.toJSON(message.container);
49683
+ }
49684
+ return obj;
49685
+ },
49686
+ create(base) {
49687
+ return TaskContainerGetResponse.fromPartial(base ?? {});
49688
+ },
49689
+ fromPartial(object) {
49690
+ const message = createBaseTaskContainerGetResponse();
49691
+ message.container = object.container !== void 0 && object.container !== null ? TaskContainerInfo.fromPartial(object.container) : void 0;
49692
+ return message;
49693
+ }
49694
+ };
49695
+ function createBaseTaskContainerInfo() {
49696
+ return { containerId: "", containerName: "", status: "", result: void 0 };
49697
+ }
49698
+ var TaskContainerInfo = {
49699
+ encode(message, writer = new BinaryWriter()) {
49700
+ if (message.containerId !== "") {
49701
+ writer.uint32(10).string(message.containerId);
49702
+ }
49703
+ if (message.containerName !== "") {
49704
+ writer.uint32(18).string(message.containerName);
49705
+ }
49706
+ if (message.status !== "") {
49707
+ writer.uint32(26).string(message.status);
49708
+ }
49709
+ if (message.result !== void 0) {
49710
+ GenericResult.encode(message.result, writer.uint32(34).fork()).join();
49711
+ }
49712
+ return writer;
49713
+ },
49714
+ decode(input, length) {
49715
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49716
+ let end = length === void 0 ? reader.len : reader.pos + length;
49717
+ const message = createBaseTaskContainerInfo();
49718
+ while (reader.pos < end) {
49719
+ const tag = reader.uint32();
49720
+ switch (tag >>> 3) {
49721
+ case 1: {
49722
+ if (tag !== 10) {
49723
+ break;
49724
+ }
49725
+ message.containerId = reader.string();
49726
+ continue;
49727
+ }
49728
+ case 2: {
49729
+ if (tag !== 18) {
49730
+ break;
49731
+ }
49732
+ message.containerName = reader.string();
49733
+ continue;
49734
+ }
49735
+ case 3: {
49736
+ if (tag !== 26) {
49737
+ break;
49738
+ }
49739
+ message.status = reader.string();
49740
+ continue;
49741
+ }
49742
+ case 4: {
49743
+ if (tag !== 34) {
49744
+ break;
49745
+ }
49746
+ message.result = GenericResult.decode(reader, reader.uint32());
49747
+ continue;
49748
+ }
49749
+ }
49750
+ if ((tag & 7) === 4 || tag === 0) {
49751
+ break;
49752
+ }
49753
+ reader.skip(tag & 7);
49754
+ }
49755
+ return message;
49756
+ },
49757
+ fromJSON(object) {
49758
+ return {
49759
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
49760
+ containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
49761
+ status: isSet5(object.status) ? globalThis.String(object.status) : "",
49762
+ result: isSet5(object.result) ? GenericResult.fromJSON(object.result) : void 0
49763
+ };
49764
+ },
49765
+ toJSON(message) {
49766
+ const obj = {};
49767
+ if (message.containerId !== "") {
49768
+ obj.containerId = message.containerId;
49769
+ }
49770
+ if (message.containerName !== "") {
49771
+ obj.containerName = message.containerName;
49772
+ }
49773
+ if (message.status !== "") {
49774
+ obj.status = message.status;
49775
+ }
49776
+ if (message.result !== void 0) {
49777
+ obj.result = GenericResult.toJSON(message.result);
49778
+ }
49779
+ return obj;
49780
+ },
49781
+ create(base) {
49782
+ return TaskContainerInfo.fromPartial(base ?? {});
49783
+ },
49784
+ fromPartial(object) {
49785
+ const message = createBaseTaskContainerInfo();
49786
+ message.containerId = object.containerId ?? "";
49787
+ message.containerName = object.containerName ?? "";
49788
+ message.status = object.status ?? "";
49789
+ message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
49790
+ return message;
49791
+ }
49792
+ };
49793
+ function createBaseTaskContainerListRequest() {
49794
+ return { taskId: "", includeTerminated: false };
49795
+ }
49796
+ var TaskContainerListRequest = {
49797
+ encode(message, writer = new BinaryWriter()) {
49798
+ if (message.taskId !== "") {
49799
+ writer.uint32(10).string(message.taskId);
49800
+ }
49801
+ if (message.includeTerminated !== false) {
49802
+ writer.uint32(16).bool(message.includeTerminated);
49803
+ }
49804
+ return writer;
49805
+ },
49806
+ decode(input, length) {
49807
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49808
+ let end = length === void 0 ? reader.len : reader.pos + length;
49809
+ const message = createBaseTaskContainerListRequest();
49810
+ while (reader.pos < end) {
49811
+ const tag = reader.uint32();
49812
+ switch (tag >>> 3) {
49813
+ case 1: {
49814
+ if (tag !== 10) {
49815
+ break;
49816
+ }
49817
+ message.taskId = reader.string();
49818
+ continue;
49819
+ }
49820
+ case 2: {
49821
+ if (tag !== 16) {
49822
+ break;
49823
+ }
49824
+ message.includeTerminated = reader.bool();
49825
+ continue;
49826
+ }
49827
+ }
49828
+ if ((tag & 7) === 4 || tag === 0) {
49829
+ break;
49830
+ }
49831
+ reader.skip(tag & 7);
49832
+ }
49833
+ return message;
49834
+ },
49835
+ fromJSON(object) {
49836
+ return {
49837
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
49838
+ includeTerminated: isSet5(object.includeTerminated) ? globalThis.Boolean(object.includeTerminated) : false
49839
+ };
49840
+ },
49841
+ toJSON(message) {
49842
+ const obj = {};
49843
+ if (message.taskId !== "") {
49844
+ obj.taskId = message.taskId;
49845
+ }
49846
+ if (message.includeTerminated !== false) {
49847
+ obj.includeTerminated = message.includeTerminated;
49848
+ }
49849
+ return obj;
49850
+ },
49851
+ create(base) {
49852
+ return TaskContainerListRequest.fromPartial(base ?? {});
49853
+ },
49854
+ fromPartial(object) {
49855
+ const message = createBaseTaskContainerListRequest();
49856
+ message.taskId = object.taskId ?? "";
49857
+ message.includeTerminated = object.includeTerminated ?? false;
49858
+ return message;
49859
+ }
49860
+ };
49861
+ function createBaseTaskContainerListResponse() {
49862
+ return { containers: [] };
49863
+ }
49864
+ var TaskContainerListResponse = {
49865
+ encode(message, writer = new BinaryWriter()) {
49866
+ for (const v of message.containers) {
49867
+ TaskContainerInfo.encode(v, writer.uint32(10).fork()).join();
49868
+ }
49869
+ return writer;
49870
+ },
49871
+ decode(input, length) {
49872
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49873
+ let end = length === void 0 ? reader.len : reader.pos + length;
49874
+ const message = createBaseTaskContainerListResponse();
49875
+ while (reader.pos < end) {
49876
+ const tag = reader.uint32();
49877
+ switch (tag >>> 3) {
49878
+ case 1: {
49879
+ if (tag !== 10) {
49880
+ break;
49881
+ }
49882
+ message.containers.push(TaskContainerInfo.decode(reader, reader.uint32()));
49883
+ continue;
49884
+ }
49885
+ }
49886
+ if ((tag & 7) === 4 || tag === 0) {
49887
+ break;
49888
+ }
49889
+ reader.skip(tag & 7);
49890
+ }
49891
+ return message;
49892
+ },
49893
+ fromJSON(object) {
49894
+ return {
49895
+ containers: globalThis.Array.isArray(object?.containers) ? object.containers.map((e) => TaskContainerInfo.fromJSON(e)) : []
49896
+ };
49897
+ },
49898
+ toJSON(message) {
49899
+ const obj = {};
49900
+ if (message.containers?.length) {
49901
+ obj.containers = message.containers.map((e) => TaskContainerInfo.toJSON(e));
49902
+ }
49903
+ return obj;
49904
+ },
49905
+ create(base) {
49906
+ return TaskContainerListResponse.fromPartial(base ?? {});
49907
+ },
49908
+ fromPartial(object) {
49909
+ const message = createBaseTaskContainerListResponse();
49910
+ message.containers = object.containers?.map((e) => TaskContainerInfo.fromPartial(e)) || [];
49911
+ return message;
49912
+ }
49913
+ };
49914
+ function createBaseTaskContainerTerminateRequest() {
49915
+ return { taskId: "", containerId: "" };
49916
+ }
49917
+ var TaskContainerTerminateRequest = {
49918
+ encode(message, writer = new BinaryWriter()) {
49919
+ if (message.taskId !== "") {
49920
+ writer.uint32(10).string(message.taskId);
49921
+ }
49922
+ if (message.containerId !== "") {
49923
+ writer.uint32(18).string(message.containerId);
49924
+ }
49925
+ return writer;
49926
+ },
49927
+ decode(input, length) {
49928
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49929
+ let end = length === void 0 ? reader.len : reader.pos + length;
49930
+ const message = createBaseTaskContainerTerminateRequest();
49931
+ while (reader.pos < end) {
49932
+ const tag = reader.uint32();
49933
+ switch (tag >>> 3) {
49934
+ case 1: {
49935
+ if (tag !== 10) {
49936
+ break;
49937
+ }
49938
+ message.taskId = reader.string();
49939
+ continue;
49940
+ }
49941
+ case 2: {
49942
+ if (tag !== 18) {
49943
+ break;
49944
+ }
49945
+ message.containerId = reader.string();
49946
+ continue;
49947
+ }
49948
+ }
49949
+ if ((tag & 7) === 4 || tag === 0) {
49950
+ break;
49951
+ }
49952
+ reader.skip(tag & 7);
49953
+ }
49954
+ return message;
49955
+ },
49956
+ fromJSON(object) {
49957
+ return {
49958
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
49959
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : ""
49960
+ };
49961
+ },
49962
+ toJSON(message) {
49963
+ const obj = {};
49964
+ if (message.taskId !== "") {
49965
+ obj.taskId = message.taskId;
49966
+ }
49967
+ if (message.containerId !== "") {
49968
+ obj.containerId = message.containerId;
49969
+ }
49970
+ return obj;
49971
+ },
49972
+ create(base) {
49973
+ return TaskContainerTerminateRequest.fromPartial(base ?? {});
49974
+ },
49975
+ fromPartial(object) {
49976
+ const message = createBaseTaskContainerTerminateRequest();
49977
+ message.taskId = object.taskId ?? "";
49978
+ message.containerId = object.containerId ?? "";
49979
+ return message;
49980
+ }
49981
+ };
49982
+ function createBaseTaskContainerTerminateResponse() {
49983
+ return {};
49984
+ }
49985
+ var TaskContainerTerminateResponse = {
49986
+ encode(_, writer = new BinaryWriter()) {
49987
+ return writer;
49988
+ },
49989
+ decode(input, length) {
49990
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49991
+ let end = length === void 0 ? reader.len : reader.pos + length;
49992
+ const message = createBaseTaskContainerTerminateResponse();
49993
+ while (reader.pos < end) {
49994
+ const tag = reader.uint32();
49995
+ switch (tag >>> 3) {
49996
+ }
49997
+ if ((tag & 7) === 4 || tag === 0) {
49998
+ break;
49999
+ }
50000
+ reader.skip(tag & 7);
50001
+ }
50002
+ return message;
50003
+ },
50004
+ fromJSON(_) {
50005
+ return {};
50006
+ },
50007
+ toJSON(_) {
50008
+ const obj = {};
50009
+ return obj;
50010
+ },
50011
+ create(base) {
50012
+ return TaskContainerTerminateResponse.fromPartial(base ?? {});
50013
+ },
50014
+ fromPartial(_) {
50015
+ const message = createBaseTaskContainerTerminateResponse();
50016
+ return message;
50017
+ }
50018
+ };
50019
+ function createBaseTaskContainerWaitRequest() {
50020
+ return { taskId: "", containerId: "", timeout: 0 };
50021
+ }
50022
+ var TaskContainerWaitRequest = {
50023
+ encode(message, writer = new BinaryWriter()) {
50024
+ if (message.taskId !== "") {
50025
+ writer.uint32(10).string(message.taskId);
50026
+ }
50027
+ if (message.containerId !== "") {
50028
+ writer.uint32(18).string(message.containerId);
50029
+ }
50030
+ if (message.timeout !== 0) {
50031
+ writer.uint32(29).float(message.timeout);
50032
+ }
50033
+ return writer;
50034
+ },
50035
+ decode(input, length) {
50036
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50037
+ let end = length === void 0 ? reader.len : reader.pos + length;
50038
+ const message = createBaseTaskContainerWaitRequest();
50039
+ while (reader.pos < end) {
50040
+ const tag = reader.uint32();
50041
+ switch (tag >>> 3) {
50042
+ case 1: {
50043
+ if (tag !== 10) {
50044
+ break;
50045
+ }
50046
+ message.taskId = reader.string();
50047
+ continue;
50048
+ }
50049
+ case 2: {
50050
+ if (tag !== 18) {
50051
+ break;
50052
+ }
50053
+ message.containerId = reader.string();
50054
+ continue;
50055
+ }
50056
+ case 3: {
50057
+ if (tag !== 29) {
50058
+ break;
50059
+ }
50060
+ message.timeout = reader.float();
50061
+ continue;
50062
+ }
50063
+ }
50064
+ if ((tag & 7) === 4 || tag === 0) {
50065
+ break;
50066
+ }
50067
+ reader.skip(tag & 7);
50068
+ }
50069
+ return message;
50070
+ },
50071
+ fromJSON(object) {
50072
+ return {
50073
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
50074
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
50075
+ timeout: isSet5(object.timeout) ? globalThis.Number(object.timeout) : 0
50076
+ };
50077
+ },
50078
+ toJSON(message) {
50079
+ const obj = {};
50080
+ if (message.taskId !== "") {
50081
+ obj.taskId = message.taskId;
50082
+ }
50083
+ if (message.containerId !== "") {
50084
+ obj.containerId = message.containerId;
50085
+ }
50086
+ if (message.timeout !== 0) {
50087
+ obj.timeout = message.timeout;
50088
+ }
50089
+ return obj;
50090
+ },
50091
+ create(base) {
50092
+ return TaskContainerWaitRequest.fromPartial(base ?? {});
50093
+ },
50094
+ fromPartial(object) {
50095
+ const message = createBaseTaskContainerWaitRequest();
50096
+ message.taskId = object.taskId ?? "";
50097
+ message.containerId = object.containerId ?? "";
50098
+ message.timeout = object.timeout ?? 0;
50099
+ return message;
50100
+ }
50101
+ };
50102
+ function createBaseTaskContainerWaitResponse() {
50103
+ return { result: void 0 };
50104
+ }
50105
+ var TaskContainerWaitResponse = {
50106
+ encode(message, writer = new BinaryWriter()) {
50107
+ if (message.result !== void 0) {
50108
+ GenericResult.encode(message.result, writer.uint32(10).fork()).join();
50109
+ }
50110
+ return writer;
50111
+ },
50112
+ decode(input, length) {
50113
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50114
+ let end = length === void 0 ? reader.len : reader.pos + length;
50115
+ const message = createBaseTaskContainerWaitResponse();
50116
+ while (reader.pos < end) {
50117
+ const tag = reader.uint32();
50118
+ switch (tag >>> 3) {
50119
+ case 1: {
50120
+ if (tag !== 10) {
50121
+ break;
50122
+ }
50123
+ message.result = GenericResult.decode(reader, reader.uint32());
50124
+ continue;
50125
+ }
50126
+ }
50127
+ if ((tag & 7) === 4 || tag === 0) {
50128
+ break;
50129
+ }
50130
+ reader.skip(tag & 7);
50131
+ }
50132
+ return message;
50133
+ },
50134
+ fromJSON(object) {
50135
+ return { result: isSet5(object.result) ? GenericResult.fromJSON(object.result) : void 0 };
50136
+ },
50137
+ toJSON(message) {
50138
+ const obj = {};
50139
+ if (message.result !== void 0) {
50140
+ obj.result = GenericResult.toJSON(message.result);
50141
+ }
50142
+ return obj;
50143
+ },
50144
+ create(base) {
50145
+ return TaskContainerWaitResponse.fromPartial(base ?? {});
50146
+ },
50147
+ fromPartial(object) {
50148
+ const message = createBaseTaskContainerWaitResponse();
50149
+ message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
50150
+ return message;
50151
+ }
50152
+ };
48016
50153
  function createBaseTaskExecPollRequest() {
48017
50154
  return { taskId: "", execId: "" };
48018
50155
  }
@@ -48160,7 +50297,9 @@ function createBaseTaskExecStartRequest() {
48160
50297
  workdir: void 0,
48161
50298
  secretIds: [],
48162
50299
  ptyInfo: void 0,
48163
- runtimeDebug: false
50300
+ runtimeDebug: false,
50301
+ containerId: "",
50302
+ env: {}
48164
50303
  };
48165
50304
  }
48166
50305
  var TaskExecStartRequest = {
@@ -48195,6 +50334,12 @@ var TaskExecStartRequest = {
48195
50334
  if (message.runtimeDebug !== false) {
48196
50335
  writer.uint32(80).bool(message.runtimeDebug);
48197
50336
  }
50337
+ if (message.containerId !== "") {
50338
+ writer.uint32(90).string(message.containerId);
50339
+ }
50340
+ Object.entries(message.env).forEach(([key, value]) => {
50341
+ TaskExecStartRequest_EnvEntry.encode({ key, value }, writer.uint32(98).fork()).join();
50342
+ });
48198
50343
  return writer;
48199
50344
  },
48200
50345
  decode(input, length) {
@@ -48274,6 +50419,23 @@ var TaskExecStartRequest = {
48274
50419
  message.runtimeDebug = reader.bool();
48275
50420
  continue;
48276
50421
  }
50422
+ case 11: {
50423
+ if (tag !== 90) {
50424
+ break;
50425
+ }
50426
+ message.containerId = reader.string();
50427
+ continue;
50428
+ }
50429
+ case 12: {
50430
+ if (tag !== 98) {
50431
+ break;
50432
+ }
50433
+ const entry12 = TaskExecStartRequest_EnvEntry.decode(reader, reader.uint32());
50434
+ if (entry12.value !== void 0) {
50435
+ message.env[entry12.key] = entry12.value;
50436
+ }
50437
+ continue;
50438
+ }
48277
50439
  }
48278
50440
  if ((tag & 7) === 4 || tag === 0) {
48279
50441
  break;
@@ -48293,7 +50455,12 @@ var TaskExecStartRequest = {
48293
50455
  workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : void 0,
48294
50456
  secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : [],
48295
50457
  ptyInfo: isSet5(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
48296
- runtimeDebug: isSet5(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false
50458
+ runtimeDebug: isSet5(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false,
50459
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
50460
+ env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
50461
+ acc[key] = String(value);
50462
+ return acc;
50463
+ }, {}) : {}
48297
50464
  };
48298
50465
  },
48299
50466
  toJSON(message) {
@@ -48328,6 +50495,18 @@ var TaskExecStartRequest = {
48328
50495
  if (message.runtimeDebug !== false) {
48329
50496
  obj.runtimeDebug = message.runtimeDebug;
48330
50497
  }
50498
+ if (message.containerId !== "") {
50499
+ obj.containerId = message.containerId;
50500
+ }
50501
+ if (message.env) {
50502
+ const entries = Object.entries(message.env);
50503
+ if (entries.length > 0) {
50504
+ obj.env = {};
50505
+ entries.forEach(([k, v]) => {
50506
+ obj.env[k] = v;
50507
+ });
50508
+ }
50509
+ }
48331
50510
  return obj;
48332
50511
  },
48333
50512
  create(base) {
@@ -48345,6 +50524,81 @@ var TaskExecStartRequest = {
48345
50524
  message.secretIds = object.secretIds?.map((e) => e) || [];
48346
50525
  message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
48347
50526
  message.runtimeDebug = object.runtimeDebug ?? false;
50527
+ message.containerId = object.containerId ?? "";
50528
+ message.env = Object.entries(object.env ?? {}).reduce((acc, [key, value]) => {
50529
+ if (value !== void 0) {
50530
+ acc[key] = globalThis.String(value);
50531
+ }
50532
+ return acc;
50533
+ }, {});
50534
+ return message;
50535
+ }
50536
+ };
50537
+ function createBaseTaskExecStartRequest_EnvEntry() {
50538
+ return { key: "", value: "" };
50539
+ }
50540
+ var TaskExecStartRequest_EnvEntry = {
50541
+ encode(message, writer = new BinaryWriter()) {
50542
+ if (message.key !== "") {
50543
+ writer.uint32(10).string(message.key);
50544
+ }
50545
+ if (message.value !== "") {
50546
+ writer.uint32(18).string(message.value);
50547
+ }
50548
+ return writer;
50549
+ },
50550
+ decode(input, length) {
50551
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50552
+ let end = length === void 0 ? reader.len : reader.pos + length;
50553
+ const message = createBaseTaskExecStartRequest_EnvEntry();
50554
+ while (reader.pos < end) {
50555
+ const tag = reader.uint32();
50556
+ switch (tag >>> 3) {
50557
+ case 1: {
50558
+ if (tag !== 10) {
50559
+ break;
50560
+ }
50561
+ message.key = reader.string();
50562
+ continue;
50563
+ }
50564
+ case 2: {
50565
+ if (tag !== 18) {
50566
+ break;
50567
+ }
50568
+ message.value = reader.string();
50569
+ continue;
50570
+ }
50571
+ }
50572
+ if ((tag & 7) === 4 || tag === 0) {
50573
+ break;
50574
+ }
50575
+ reader.skip(tag & 7);
50576
+ }
50577
+ return message;
50578
+ },
50579
+ fromJSON(object) {
50580
+ return {
50581
+ key: isSet5(object.key) ? globalThis.String(object.key) : "",
50582
+ value: isSet5(object.value) ? globalThis.String(object.value) : ""
50583
+ };
50584
+ },
50585
+ toJSON(message) {
50586
+ const obj = {};
50587
+ if (message.key !== "") {
50588
+ obj.key = message.key;
50589
+ }
50590
+ if (message.value !== "") {
50591
+ obj.value = message.value;
50592
+ }
50593
+ return obj;
50594
+ },
50595
+ create(base) {
50596
+ return TaskExecStartRequest_EnvEntry.fromPartial(base ?? {});
50597
+ },
50598
+ fromPartial(object) {
50599
+ const message = createBaseTaskExecStartRequest_EnvEntry();
50600
+ message.key = object.key ?? "";
50601
+ message.value = object.value ?? "";
48348
50602
  return message;
48349
50603
  }
48350
50604
  };
@@ -49022,10 +51276,123 @@ var TaskSnapshotDirectoryResponse = {
49022
51276
  return message;
49023
51277
  }
49024
51278
  };
51279
+ function createBaseTaskUnmountDirectoryRequest() {
51280
+ return { taskId: "", path: new Uint8Array(0) };
51281
+ }
51282
+ var TaskUnmountDirectoryRequest = {
51283
+ encode(message, writer = new BinaryWriter()) {
51284
+ if (message.taskId !== "") {
51285
+ writer.uint32(10).string(message.taskId);
51286
+ }
51287
+ if (message.path.length !== 0) {
51288
+ writer.uint32(18).bytes(message.path);
51289
+ }
51290
+ return writer;
51291
+ },
51292
+ decode(input, length) {
51293
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51294
+ let end = length === void 0 ? reader.len : reader.pos + length;
51295
+ const message = createBaseTaskUnmountDirectoryRequest();
51296
+ while (reader.pos < end) {
51297
+ const tag = reader.uint32();
51298
+ switch (tag >>> 3) {
51299
+ case 1: {
51300
+ if (tag !== 10) {
51301
+ break;
51302
+ }
51303
+ message.taskId = reader.string();
51304
+ continue;
51305
+ }
51306
+ case 2: {
51307
+ if (tag !== 18) {
51308
+ break;
51309
+ }
51310
+ message.path = reader.bytes();
51311
+ continue;
51312
+ }
51313
+ }
51314
+ if ((tag & 7) === 4 || tag === 0) {
51315
+ break;
51316
+ }
51317
+ reader.skip(tag & 7);
51318
+ }
51319
+ return message;
51320
+ },
51321
+ fromJSON(object) {
51322
+ return {
51323
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
51324
+ path: isSet5(object.path) ? bytesFromBase642(object.path) : new Uint8Array(0)
51325
+ };
51326
+ },
51327
+ toJSON(message) {
51328
+ const obj = {};
51329
+ if (message.taskId !== "") {
51330
+ obj.taskId = message.taskId;
51331
+ }
51332
+ if (message.path.length !== 0) {
51333
+ obj.path = base64FromBytes2(message.path);
51334
+ }
51335
+ return obj;
51336
+ },
51337
+ create(base) {
51338
+ return TaskUnmountDirectoryRequest.fromPartial(base ?? {});
51339
+ },
51340
+ fromPartial(object) {
51341
+ const message = createBaseTaskUnmountDirectoryRequest();
51342
+ message.taskId = object.taskId ?? "";
51343
+ message.path = object.path ?? new Uint8Array(0);
51344
+ return message;
51345
+ }
51346
+ };
49025
51347
  var TaskCommandRouterDefinition = {
49026
51348
  name: "TaskCommandRouter",
49027
51349
  fullName: "modal.task_command_router.TaskCommandRouter",
49028
51350
  methods: {
51351
+ /** Create an additional container for a task. */
51352
+ taskContainerCreate: {
51353
+ name: "TaskContainerCreate",
51354
+ requestType: TaskContainerCreateRequest,
51355
+ requestStream: false,
51356
+ responseType: TaskContainerCreateResponse,
51357
+ responseStream: false,
51358
+ options: {}
51359
+ },
51360
+ /** Get the latest container associated with a logical name. */
51361
+ taskContainerGet: {
51362
+ name: "TaskContainerGet",
51363
+ requestType: TaskContainerGetRequest,
51364
+ requestStream: false,
51365
+ responseType: TaskContainerGetResponse,
51366
+ responseStream: false,
51367
+ options: {}
51368
+ },
51369
+ /** List containers associated with the task. */
51370
+ taskContainerList: {
51371
+ name: "TaskContainerList",
51372
+ requestType: TaskContainerListRequest,
51373
+ requestStream: false,
51374
+ responseType: TaskContainerListResponse,
51375
+ responseStream: false,
51376
+ options: {}
51377
+ },
51378
+ /** Terminate or release a tracked container. */
51379
+ taskContainerTerminate: {
51380
+ name: "TaskContainerTerminate",
51381
+ requestType: TaskContainerTerminateRequest,
51382
+ requestStream: false,
51383
+ responseType: TaskContainerTerminateResponse,
51384
+ responseStream: false,
51385
+ options: {}
51386
+ },
51387
+ /** Wait for a tracked container to reach a terminal result. */
51388
+ taskContainerWait: {
51389
+ name: "TaskContainerWait",
51390
+ requestType: TaskContainerWaitRequest,
51391
+ requestStream: false,
51392
+ responseType: TaskContainerWaitResponse,
51393
+ responseStream: false,
51394
+ options: {}
51395
+ },
49029
51396
  /** Poll for the exit status of an exec'd command. */
49030
51397
  taskExecPoll: {
49031
51398
  name: "TaskExecPoll",
@@ -49088,6 +51455,15 @@ var TaskCommandRouterDefinition = {
49088
51455
  responseType: TaskSnapshotDirectoryResponse,
49089
51456
  responseStream: false,
49090
51457
  options: {}
51458
+ },
51459
+ /** Unmount an image previously mounted at a directory in the container. */
51460
+ taskUnmountDirectory: {
51461
+ name: "TaskUnmountDirectory",
51462
+ requestType: TaskUnmountDirectoryRequest,
51463
+ requestStream: false,
51464
+ responseType: Empty,
51465
+ responseStream: false,
51466
+ options: {}
49091
51467
  }
49092
51468
  }
49093
51469
  };
@@ -49124,6 +51500,9 @@ function longToNumber3(int64) {
49124
51500
  }
49125
51501
  return num;
49126
51502
  }
51503
+ function isObject3(value) {
51504
+ return typeof value === "object" && value !== null;
51505
+ }
49127
51506
  function isSet5(value) {
49128
51507
  return value !== null && value !== void 0;
49129
51508
  }
@@ -49799,6 +52178,78 @@ function streamConsumingIter(iterable, onCancel) {
49799
52178
  var SB_LOGS_INITIAL_DELAY_MS = 10;
49800
52179
  var SB_LOGS_DELAY_FACTOR = 2;
49801
52180
  var SB_LOGS_MAX_RETRIES = 10;
52181
+ var Probe2 = class _Probe {
52182
+ #tcpPort;
52183
+ #execArgv;
52184
+ #intervalMs;
52185
+ constructor(params) {
52186
+ const { tcpPort, execArgv, intervalMs } = params;
52187
+ if (tcpPort === void 0 === (execArgv === void 0)) {
52188
+ throw new InvalidError(
52189
+ "Probe must be created with Probe.withTcp(...) or Probe.withExec(...)"
52190
+ );
52191
+ }
52192
+ this.#tcpPort = tcpPort;
52193
+ this.#execArgv = execArgv;
52194
+ this.#intervalMs = intervalMs;
52195
+ }
52196
+ static withTcp(port, params = { intervalMs: 100 }) {
52197
+ if (!Number.isInteger(port)) {
52198
+ throw new InvalidError("Probe.withTcp() expects an integer `port`");
52199
+ }
52200
+ if (port <= 0 || port > 65535) {
52201
+ throw new InvalidError(
52202
+ `Probe.withTcp() expects \`port\` in [1, 65535], got ${port}`
52203
+ );
52204
+ }
52205
+ const { intervalMs } = params;
52206
+ _Probe.#validateIntervalMs("Probe.withTcp", intervalMs);
52207
+ return new _Probe({ tcpPort: port, intervalMs });
52208
+ }
52209
+ static withExec(argv, params = { intervalMs: 100 }) {
52210
+ if (!Array.isArray(argv) || argv.length === 0) {
52211
+ throw new InvalidError("Probe.withExec() requires at least one argument");
52212
+ }
52213
+ if (!argv.every((arg) => typeof arg === "string")) {
52214
+ throw new InvalidError(
52215
+ "Probe.withExec() expects all arguments to be strings"
52216
+ );
52217
+ }
52218
+ const { intervalMs } = params;
52219
+ _Probe.#validateIntervalMs("Probe.withExec", intervalMs);
52220
+ return new _Probe({ execArgv: [...argv], intervalMs });
52221
+ }
52222
+ /** @ignore */
52223
+ toProto() {
52224
+ if (this.#tcpPort !== void 0) {
52225
+ return Probe.create({
52226
+ tcpPort: this.#tcpPort,
52227
+ intervalMs: this.#intervalMs
52228
+ });
52229
+ }
52230
+ if (this.#execArgv !== void 0) {
52231
+ return Probe.create({
52232
+ execCommand: { argv: this.#execArgv },
52233
+ intervalMs: this.#intervalMs
52234
+ });
52235
+ }
52236
+ throw new InvalidError(
52237
+ "Probe must be created with Probe.withTcp(...) or Probe.withExec(...)"
52238
+ );
52239
+ }
52240
+ static #validateIntervalMs(methodName, intervalMs) {
52241
+ if (!Number.isInteger(intervalMs)) {
52242
+ throw new InvalidError(
52243
+ `${methodName}() expects an integer \`intervalMs\``
52244
+ );
52245
+ }
52246
+ if (intervalMs <= 0) {
52247
+ throw new InvalidError(
52248
+ `${methodName}() expects \`intervalMs\` > 0, got ${intervalMs}`
52249
+ );
52250
+ }
52251
+ }
52252
+ };
49802
52253
  async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
49803
52254
  checkForRenamedParams(params, {
49804
52255
  memory: "memoryMiB",
@@ -49978,9 +52429,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
49978
52429
  schedulerPlacement,
49979
52430
  verbose: params.verbose ?? false,
49980
52431
  proxyId: params.proxy?.proxyId,
52432
+ readinessProbe: params.readinessProbe?.toProto(),
49981
52433
  name: params.name,
49982
52434
  experimentalOptions: protoExperimentalOptions,
49983
- customDomain: params.customDomain
52435
+ customDomain: params.customDomain,
52436
+ includeOidcIdentityToken: params.includeOidcIdentityToken ?? false
49984
52437
  }
49985
52438
  });
49986
52439
  }
@@ -50502,6 +52955,46 @@ var Sandbox2 = class _Sandbox {
50502
52955
  }
50503
52956
  }
50504
52957
  }
52958
+ /**
52959
+ * Wait until the Sandbox readiness probe reports the Sandbox is ready.
52960
+ *
52961
+ * This method only works for Sandboxes configured with a readiness probe.
52962
+ *
52963
+ * @param timeoutMs - Maximum total time to wait, in milliseconds.
52964
+ * @returns A promise that resolves once the Sandbox is ready.
52965
+ * @throws {@link TimeoutError} If readiness is not reported before `timeoutMs`.
52966
+ */
52967
+ async waitUntilReady(timeoutMs = 3e5) {
52968
+ this.#ensureAttached();
52969
+ if (timeoutMs <= 0) {
52970
+ throw new InvalidError(`timeoutMs must be positive, got ${timeoutMs}`);
52971
+ }
52972
+ const deadline = Date.now() + timeoutMs;
52973
+ while (true) {
52974
+ const remainingMs = deadline - Date.now();
52975
+ if (remainingMs <= 0) {
52976
+ throw new TimeoutError("Sandbox operation timed out");
52977
+ }
52978
+ const requestTimeoutMs = Math.min(
52979
+ remainingMs,
52980
+ 5e4
52981
+ // Max request timeout for each gRPC call
52982
+ );
52983
+ try {
52984
+ const resp = await this.#client.cpClient.sandboxWaitUntilReady({
52985
+ sandboxId: this.sandboxId,
52986
+ timeout: requestTimeoutMs / 1e3
52987
+ });
52988
+ if (resp.readyAt > 0) {
52989
+ return;
52990
+ }
52991
+ } catch (err) {
52992
+ if (err instanceof ClientError8 && err.code === Status8.DEADLINE_EXCEEDED)
52993
+ continue;
52994
+ throw err;
52995
+ }
52996
+ }
52997
+ }
50505
52998
  /** Get {@link Tunnel} metadata for the Sandbox.
50506
52999
  *
50507
53000
  * Raises {@link SandboxTimeoutError} if the tunnels are not available after the timeout.
@@ -51047,7 +53540,7 @@ var AuthTokenManager = class {
51047
53540
 
51048
53541
  // src/version.ts
51049
53542
  function getSDKVersion() {
51050
- return true ? "0.7.3" : "0.0.0";
53543
+ return true ? "0.7.4" : "0.0.0";
51051
53544
  }
51052
53545
 
51053
53546
  // src/logger.ts
@@ -51569,6 +54062,7 @@ export {
51569
54062
  InvalidError,
51570
54063
  ModalClient2 as ModalClient,
51571
54064
  NotFoundError,
54065
+ Probe2 as Probe,
51572
54066
  Proxy3 as Proxy,
51573
54067
  ProxyService,
51574
54068
  Queue,
@@ -51583,6 +54077,7 @@ export {
51583
54077
  SandboxTimeoutError,
51584
54078
  Secret,
51585
54079
  SecretService,
54080
+ TimeoutError,
51586
54081
  Volume,
51587
54082
  VolumeService,
51588
54083
  checkForRenamedParams,