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.cjs +2616 -119
- package/dist/index.d.cts +222 -3
- package/dist/index.d.ts +222 -3
- package/dist/index.js +2614 -119
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -51,6 +51,7 @@ __export(index_exports, {
|
|
|
51
51
|
InvalidError: () => InvalidError,
|
|
52
52
|
ModalClient: () => ModalClient2,
|
|
53
53
|
NotFoundError: () => NotFoundError,
|
|
54
|
+
Probe: () => Probe2,
|
|
54
55
|
Proxy: () => Proxy3,
|
|
55
56
|
ProxyService: () => ProxyService,
|
|
56
57
|
Queue: () => Queue,
|
|
@@ -65,6 +66,7 @@ __export(index_exports, {
|
|
|
65
66
|
SandboxTimeoutError: () => SandboxTimeoutError,
|
|
66
67
|
Secret: () => Secret,
|
|
67
68
|
SecretService: () => SecretService,
|
|
69
|
+
TimeoutError: () => TimeoutError,
|
|
68
70
|
Volume: () => Volume,
|
|
69
71
|
VolumeService: () => VolumeService,
|
|
70
72
|
checkForRenamedParams: () => checkForRenamedParams,
|
|
@@ -4670,6 +4672,108 @@ var AppGetLayoutResponse = {
|
|
|
4670
4672
|
return message;
|
|
4671
4673
|
}
|
|
4672
4674
|
};
|
|
4675
|
+
function createBaseAppGetLifecycleRequest() {
|
|
4676
|
+
return { appId: "" };
|
|
4677
|
+
}
|
|
4678
|
+
var AppGetLifecycleRequest = {
|
|
4679
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4680
|
+
if (message.appId !== "") {
|
|
4681
|
+
writer.uint32(10).string(message.appId);
|
|
4682
|
+
}
|
|
4683
|
+
return writer;
|
|
4684
|
+
},
|
|
4685
|
+
decode(input, length) {
|
|
4686
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4687
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4688
|
+
const message = createBaseAppGetLifecycleRequest();
|
|
4689
|
+
while (reader.pos < end) {
|
|
4690
|
+
const tag = reader.uint32();
|
|
4691
|
+
switch (tag >>> 3) {
|
|
4692
|
+
case 1: {
|
|
4693
|
+
if (tag !== 10) {
|
|
4694
|
+
break;
|
|
4695
|
+
}
|
|
4696
|
+
message.appId = reader.string();
|
|
4697
|
+
continue;
|
|
4698
|
+
}
|
|
4699
|
+
}
|
|
4700
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4701
|
+
break;
|
|
4702
|
+
}
|
|
4703
|
+
reader.skip(tag & 7);
|
|
4704
|
+
}
|
|
4705
|
+
return message;
|
|
4706
|
+
},
|
|
4707
|
+
fromJSON(object) {
|
|
4708
|
+
return { appId: isSet4(object.appId) ? globalThis.String(object.appId) : "" };
|
|
4709
|
+
},
|
|
4710
|
+
toJSON(message) {
|
|
4711
|
+
const obj = {};
|
|
4712
|
+
if (message.appId !== "") {
|
|
4713
|
+
obj.appId = message.appId;
|
|
4714
|
+
}
|
|
4715
|
+
return obj;
|
|
4716
|
+
},
|
|
4717
|
+
create(base) {
|
|
4718
|
+
return AppGetLifecycleRequest.fromPartial(base ?? {});
|
|
4719
|
+
},
|
|
4720
|
+
fromPartial(object) {
|
|
4721
|
+
const message = createBaseAppGetLifecycleRequest();
|
|
4722
|
+
message.appId = object.appId ?? "";
|
|
4723
|
+
return message;
|
|
4724
|
+
}
|
|
4725
|
+
};
|
|
4726
|
+
function createBaseAppGetLifecycleResponse() {
|
|
4727
|
+
return { lifecycle: void 0 };
|
|
4728
|
+
}
|
|
4729
|
+
var AppGetLifecycleResponse = {
|
|
4730
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4731
|
+
if (message.lifecycle !== void 0) {
|
|
4732
|
+
AppLifecycle.encode(message.lifecycle, writer.uint32(10).fork()).join();
|
|
4733
|
+
}
|
|
4734
|
+
return writer;
|
|
4735
|
+
},
|
|
4736
|
+
decode(input, length) {
|
|
4737
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4738
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
4739
|
+
const message = createBaseAppGetLifecycleResponse();
|
|
4740
|
+
while (reader.pos < end) {
|
|
4741
|
+
const tag = reader.uint32();
|
|
4742
|
+
switch (tag >>> 3) {
|
|
4743
|
+
case 1: {
|
|
4744
|
+
if (tag !== 10) {
|
|
4745
|
+
break;
|
|
4746
|
+
}
|
|
4747
|
+
message.lifecycle = AppLifecycle.decode(reader, reader.uint32());
|
|
4748
|
+
continue;
|
|
4749
|
+
}
|
|
4750
|
+
}
|
|
4751
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4752
|
+
break;
|
|
4753
|
+
}
|
|
4754
|
+
reader.skip(tag & 7);
|
|
4755
|
+
}
|
|
4756
|
+
return message;
|
|
4757
|
+
},
|
|
4758
|
+
fromJSON(object) {
|
|
4759
|
+
return { lifecycle: isSet4(object.lifecycle) ? AppLifecycle.fromJSON(object.lifecycle) : void 0 };
|
|
4760
|
+
},
|
|
4761
|
+
toJSON(message) {
|
|
4762
|
+
const obj = {};
|
|
4763
|
+
if (message.lifecycle !== void 0) {
|
|
4764
|
+
obj.lifecycle = AppLifecycle.toJSON(message.lifecycle);
|
|
4765
|
+
}
|
|
4766
|
+
return obj;
|
|
4767
|
+
},
|
|
4768
|
+
create(base) {
|
|
4769
|
+
return AppGetLifecycleResponse.fromPartial(base ?? {});
|
|
4770
|
+
},
|
|
4771
|
+
fromPartial(object) {
|
|
4772
|
+
const message = createBaseAppGetLifecycleResponse();
|
|
4773
|
+
message.lifecycle = object.lifecycle !== void 0 && object.lifecycle !== null ? AppLifecycle.fromPartial(object.lifecycle) : void 0;
|
|
4774
|
+
return message;
|
|
4775
|
+
}
|
|
4776
|
+
};
|
|
4673
4777
|
function createBaseAppGetLogsRequest() {
|
|
4674
4778
|
return {
|
|
4675
4779
|
appId: "",
|
|
@@ -4681,7 +4785,8 @@ function createBaseAppGetLogsRequest() {
|
|
|
4681
4785
|
taskId: "",
|
|
4682
4786
|
functionCallId: "",
|
|
4683
4787
|
fileDescriptor: 0,
|
|
4684
|
-
sandboxId: ""
|
|
4788
|
+
sandboxId: "",
|
|
4789
|
+
searchText: ""
|
|
4685
4790
|
};
|
|
4686
4791
|
}
|
|
4687
4792
|
var AppGetLogsRequest = {
|
|
@@ -4716,6 +4821,9 @@ var AppGetLogsRequest = {
|
|
|
4716
4821
|
if (message.sandboxId !== "") {
|
|
4717
4822
|
writer.uint32(82).string(message.sandboxId);
|
|
4718
4823
|
}
|
|
4824
|
+
if (message.searchText !== "") {
|
|
4825
|
+
writer.uint32(98).string(message.searchText);
|
|
4826
|
+
}
|
|
4719
4827
|
return writer;
|
|
4720
4828
|
},
|
|
4721
4829
|
decode(input, length) {
|
|
@@ -4795,6 +4903,13 @@ var AppGetLogsRequest = {
|
|
|
4795
4903
|
message.sandboxId = reader.string();
|
|
4796
4904
|
continue;
|
|
4797
4905
|
}
|
|
4906
|
+
case 12: {
|
|
4907
|
+
if (tag !== 98) {
|
|
4908
|
+
break;
|
|
4909
|
+
}
|
|
4910
|
+
message.searchText = reader.string();
|
|
4911
|
+
continue;
|
|
4912
|
+
}
|
|
4798
4913
|
}
|
|
4799
4914
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4800
4915
|
break;
|
|
@@ -4814,7 +4929,8 @@ var AppGetLogsRequest = {
|
|
|
4814
4929
|
taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
4815
4930
|
functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
4816
4931
|
fileDescriptor: isSet4(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
|
|
4817
|
-
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
|
|
4932
|
+
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
4933
|
+
searchText: isSet4(object.searchText) ? globalThis.String(object.searchText) : ""
|
|
4818
4934
|
};
|
|
4819
4935
|
},
|
|
4820
4936
|
toJSON(message) {
|
|
@@ -4849,6 +4965,9 @@ var AppGetLogsRequest = {
|
|
|
4849
4965
|
if (message.sandboxId !== "") {
|
|
4850
4966
|
obj.sandboxId = message.sandboxId;
|
|
4851
4967
|
}
|
|
4968
|
+
if (message.searchText !== "") {
|
|
4969
|
+
obj.searchText = message.searchText;
|
|
4970
|
+
}
|
|
4852
4971
|
return obj;
|
|
4853
4972
|
},
|
|
4854
4973
|
create(base) {
|
|
@@ -4866,6 +4985,7 @@ var AppGetLogsRequest = {
|
|
|
4866
4985
|
message.functionCallId = object.functionCallId ?? "";
|
|
4867
4986
|
message.fileDescriptor = object.fileDescriptor ?? 0;
|
|
4868
4987
|
message.sandboxId = object.sandboxId ?? "";
|
|
4988
|
+
message.searchText = object.searchText ?? "";
|
|
4869
4989
|
return message;
|
|
4870
4990
|
}
|
|
4871
4991
|
};
|
|
@@ -5703,6 +5823,173 @@ var AppLayout_ClassIdsEntry = {
|
|
|
5703
5823
|
return message;
|
|
5704
5824
|
}
|
|
5705
5825
|
};
|
|
5826
|
+
function createBaseAppLifecycle() {
|
|
5827
|
+
return {
|
|
5828
|
+
appState: 0,
|
|
5829
|
+
createdAt: 0,
|
|
5830
|
+
createdBy: "",
|
|
5831
|
+
deployedAt: 0,
|
|
5832
|
+
deployedBy: "",
|
|
5833
|
+
version: 0,
|
|
5834
|
+
stoppedAt: 0,
|
|
5835
|
+
stoppedBy: ""
|
|
5836
|
+
};
|
|
5837
|
+
}
|
|
5838
|
+
var AppLifecycle = {
|
|
5839
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5840
|
+
if (message.appState !== 0) {
|
|
5841
|
+
writer.uint32(8).int32(message.appState);
|
|
5842
|
+
}
|
|
5843
|
+
if (message.createdAt !== 0) {
|
|
5844
|
+
writer.uint32(17).double(message.createdAt);
|
|
5845
|
+
}
|
|
5846
|
+
if (message.createdBy !== "") {
|
|
5847
|
+
writer.uint32(26).string(message.createdBy);
|
|
5848
|
+
}
|
|
5849
|
+
if (message.deployedAt !== 0) {
|
|
5850
|
+
writer.uint32(33).double(message.deployedAt);
|
|
5851
|
+
}
|
|
5852
|
+
if (message.deployedBy !== "") {
|
|
5853
|
+
writer.uint32(42).string(message.deployedBy);
|
|
5854
|
+
}
|
|
5855
|
+
if (message.version !== 0) {
|
|
5856
|
+
writer.uint32(48).int32(message.version);
|
|
5857
|
+
}
|
|
5858
|
+
if (message.stoppedAt !== 0) {
|
|
5859
|
+
writer.uint32(57).double(message.stoppedAt);
|
|
5860
|
+
}
|
|
5861
|
+
if (message.stoppedBy !== "") {
|
|
5862
|
+
writer.uint32(66).string(message.stoppedBy);
|
|
5863
|
+
}
|
|
5864
|
+
return writer;
|
|
5865
|
+
},
|
|
5866
|
+
decode(input, length) {
|
|
5867
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5868
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5869
|
+
const message = createBaseAppLifecycle();
|
|
5870
|
+
while (reader.pos < end) {
|
|
5871
|
+
const tag = reader.uint32();
|
|
5872
|
+
switch (tag >>> 3) {
|
|
5873
|
+
case 1: {
|
|
5874
|
+
if (tag !== 8) {
|
|
5875
|
+
break;
|
|
5876
|
+
}
|
|
5877
|
+
message.appState = reader.int32();
|
|
5878
|
+
continue;
|
|
5879
|
+
}
|
|
5880
|
+
case 2: {
|
|
5881
|
+
if (tag !== 17) {
|
|
5882
|
+
break;
|
|
5883
|
+
}
|
|
5884
|
+
message.createdAt = reader.double();
|
|
5885
|
+
continue;
|
|
5886
|
+
}
|
|
5887
|
+
case 3: {
|
|
5888
|
+
if (tag !== 26) {
|
|
5889
|
+
break;
|
|
5890
|
+
}
|
|
5891
|
+
message.createdBy = reader.string();
|
|
5892
|
+
continue;
|
|
5893
|
+
}
|
|
5894
|
+
case 4: {
|
|
5895
|
+
if (tag !== 33) {
|
|
5896
|
+
break;
|
|
5897
|
+
}
|
|
5898
|
+
message.deployedAt = reader.double();
|
|
5899
|
+
continue;
|
|
5900
|
+
}
|
|
5901
|
+
case 5: {
|
|
5902
|
+
if (tag !== 42) {
|
|
5903
|
+
break;
|
|
5904
|
+
}
|
|
5905
|
+
message.deployedBy = reader.string();
|
|
5906
|
+
continue;
|
|
5907
|
+
}
|
|
5908
|
+
case 6: {
|
|
5909
|
+
if (tag !== 48) {
|
|
5910
|
+
break;
|
|
5911
|
+
}
|
|
5912
|
+
message.version = reader.int32();
|
|
5913
|
+
continue;
|
|
5914
|
+
}
|
|
5915
|
+
case 7: {
|
|
5916
|
+
if (tag !== 57) {
|
|
5917
|
+
break;
|
|
5918
|
+
}
|
|
5919
|
+
message.stoppedAt = reader.double();
|
|
5920
|
+
continue;
|
|
5921
|
+
}
|
|
5922
|
+
case 8: {
|
|
5923
|
+
if (tag !== 66) {
|
|
5924
|
+
break;
|
|
5925
|
+
}
|
|
5926
|
+
message.stoppedBy = reader.string();
|
|
5927
|
+
continue;
|
|
5928
|
+
}
|
|
5929
|
+
}
|
|
5930
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5931
|
+
break;
|
|
5932
|
+
}
|
|
5933
|
+
reader.skip(tag & 7);
|
|
5934
|
+
}
|
|
5935
|
+
return message;
|
|
5936
|
+
},
|
|
5937
|
+
fromJSON(object) {
|
|
5938
|
+
return {
|
|
5939
|
+
appState: isSet4(object.appState) ? appStateFromJSON(object.appState) : 0,
|
|
5940
|
+
createdAt: isSet4(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
5941
|
+
createdBy: isSet4(object.createdBy) ? globalThis.String(object.createdBy) : "",
|
|
5942
|
+
deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0,
|
|
5943
|
+
deployedBy: isSet4(object.deployedBy) ? globalThis.String(object.deployedBy) : "",
|
|
5944
|
+
version: isSet4(object.version) ? globalThis.Number(object.version) : 0,
|
|
5945
|
+
stoppedAt: isSet4(object.stoppedAt) ? globalThis.Number(object.stoppedAt) : 0,
|
|
5946
|
+
stoppedBy: isSet4(object.stoppedBy) ? globalThis.String(object.stoppedBy) : ""
|
|
5947
|
+
};
|
|
5948
|
+
},
|
|
5949
|
+
toJSON(message) {
|
|
5950
|
+
const obj = {};
|
|
5951
|
+
if (message.appState !== 0) {
|
|
5952
|
+
obj.appState = appStateToJSON(message.appState);
|
|
5953
|
+
}
|
|
5954
|
+
if (message.createdAt !== 0) {
|
|
5955
|
+
obj.createdAt = message.createdAt;
|
|
5956
|
+
}
|
|
5957
|
+
if (message.createdBy !== "") {
|
|
5958
|
+
obj.createdBy = message.createdBy;
|
|
5959
|
+
}
|
|
5960
|
+
if (message.deployedAt !== 0) {
|
|
5961
|
+
obj.deployedAt = message.deployedAt;
|
|
5962
|
+
}
|
|
5963
|
+
if (message.deployedBy !== "") {
|
|
5964
|
+
obj.deployedBy = message.deployedBy;
|
|
5965
|
+
}
|
|
5966
|
+
if (message.version !== 0) {
|
|
5967
|
+
obj.version = Math.round(message.version);
|
|
5968
|
+
}
|
|
5969
|
+
if (message.stoppedAt !== 0) {
|
|
5970
|
+
obj.stoppedAt = message.stoppedAt;
|
|
5971
|
+
}
|
|
5972
|
+
if (message.stoppedBy !== "") {
|
|
5973
|
+
obj.stoppedBy = message.stoppedBy;
|
|
5974
|
+
}
|
|
5975
|
+
return obj;
|
|
5976
|
+
},
|
|
5977
|
+
create(base) {
|
|
5978
|
+
return AppLifecycle.fromPartial(base ?? {});
|
|
5979
|
+
},
|
|
5980
|
+
fromPartial(object) {
|
|
5981
|
+
const message = createBaseAppLifecycle();
|
|
5982
|
+
message.appState = object.appState ?? 0;
|
|
5983
|
+
message.createdAt = object.createdAt ?? 0;
|
|
5984
|
+
message.createdBy = object.createdBy ?? "";
|
|
5985
|
+
message.deployedAt = object.deployedAt ?? 0;
|
|
5986
|
+
message.deployedBy = object.deployedBy ?? "";
|
|
5987
|
+
message.version = object.version ?? 0;
|
|
5988
|
+
message.stoppedAt = object.stoppedAt ?? 0;
|
|
5989
|
+
message.stoppedBy = object.stoppedBy ?? "";
|
|
5990
|
+
return message;
|
|
5991
|
+
}
|
|
5992
|
+
};
|
|
5706
5993
|
function createBaseAppListRequest() {
|
|
5707
5994
|
return { environmentName: "" };
|
|
5708
5995
|
}
|
|
@@ -6781,6 +7068,140 @@ var AppRollbackRequest = {
|
|
|
6781
7068
|
return message;
|
|
6782
7069
|
}
|
|
6783
7070
|
};
|
|
7071
|
+
function createBaseAppRolloverRequest() {
|
|
7072
|
+
return { appId: "" };
|
|
7073
|
+
}
|
|
7074
|
+
var AppRolloverRequest = {
|
|
7075
|
+
encode(message, writer = new BinaryWriter()) {
|
|
7076
|
+
if (message.appId !== "") {
|
|
7077
|
+
writer.uint32(10).string(message.appId);
|
|
7078
|
+
}
|
|
7079
|
+
return writer;
|
|
7080
|
+
},
|
|
7081
|
+
decode(input, length) {
|
|
7082
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7083
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7084
|
+
const message = createBaseAppRolloverRequest();
|
|
7085
|
+
while (reader.pos < end) {
|
|
7086
|
+
const tag = reader.uint32();
|
|
7087
|
+
switch (tag >>> 3) {
|
|
7088
|
+
case 1: {
|
|
7089
|
+
if (tag !== 10) {
|
|
7090
|
+
break;
|
|
7091
|
+
}
|
|
7092
|
+
message.appId = reader.string();
|
|
7093
|
+
continue;
|
|
7094
|
+
}
|
|
7095
|
+
}
|
|
7096
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7097
|
+
break;
|
|
7098
|
+
}
|
|
7099
|
+
reader.skip(tag & 7);
|
|
7100
|
+
}
|
|
7101
|
+
return message;
|
|
7102
|
+
},
|
|
7103
|
+
fromJSON(object) {
|
|
7104
|
+
return { appId: isSet4(object.appId) ? globalThis.String(object.appId) : "" };
|
|
7105
|
+
},
|
|
7106
|
+
toJSON(message) {
|
|
7107
|
+
const obj = {};
|
|
7108
|
+
if (message.appId !== "") {
|
|
7109
|
+
obj.appId = message.appId;
|
|
7110
|
+
}
|
|
7111
|
+
return obj;
|
|
7112
|
+
},
|
|
7113
|
+
create(base) {
|
|
7114
|
+
return AppRolloverRequest.fromPartial(base ?? {});
|
|
7115
|
+
},
|
|
7116
|
+
fromPartial(object) {
|
|
7117
|
+
const message = createBaseAppRolloverRequest();
|
|
7118
|
+
message.appId = object.appId ?? "";
|
|
7119
|
+
return message;
|
|
7120
|
+
}
|
|
7121
|
+
};
|
|
7122
|
+
function createBaseAppRolloverResponse() {
|
|
7123
|
+
return { url: "", serverWarnings: [], deployedAt: 0 };
|
|
7124
|
+
}
|
|
7125
|
+
var AppRolloverResponse = {
|
|
7126
|
+
encode(message, writer = new BinaryWriter()) {
|
|
7127
|
+
if (message.url !== "") {
|
|
7128
|
+
writer.uint32(10).string(message.url);
|
|
7129
|
+
}
|
|
7130
|
+
for (const v of message.serverWarnings) {
|
|
7131
|
+
Warning.encode(v, writer.uint32(26).fork()).join();
|
|
7132
|
+
}
|
|
7133
|
+
if (message.deployedAt !== 0) {
|
|
7134
|
+
writer.uint32(33).double(message.deployedAt);
|
|
7135
|
+
}
|
|
7136
|
+
return writer;
|
|
7137
|
+
},
|
|
7138
|
+
decode(input, length) {
|
|
7139
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7140
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7141
|
+
const message = createBaseAppRolloverResponse();
|
|
7142
|
+
while (reader.pos < end) {
|
|
7143
|
+
const tag = reader.uint32();
|
|
7144
|
+
switch (tag >>> 3) {
|
|
7145
|
+
case 1: {
|
|
7146
|
+
if (tag !== 10) {
|
|
7147
|
+
break;
|
|
7148
|
+
}
|
|
7149
|
+
message.url = reader.string();
|
|
7150
|
+
continue;
|
|
7151
|
+
}
|
|
7152
|
+
case 3: {
|
|
7153
|
+
if (tag !== 26) {
|
|
7154
|
+
break;
|
|
7155
|
+
}
|
|
7156
|
+
message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
|
|
7157
|
+
continue;
|
|
7158
|
+
}
|
|
7159
|
+
case 4: {
|
|
7160
|
+
if (tag !== 33) {
|
|
7161
|
+
break;
|
|
7162
|
+
}
|
|
7163
|
+
message.deployedAt = reader.double();
|
|
7164
|
+
continue;
|
|
7165
|
+
}
|
|
7166
|
+
}
|
|
7167
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7168
|
+
break;
|
|
7169
|
+
}
|
|
7170
|
+
reader.skip(tag & 7);
|
|
7171
|
+
}
|
|
7172
|
+
return message;
|
|
7173
|
+
},
|
|
7174
|
+
fromJSON(object) {
|
|
7175
|
+
return {
|
|
7176
|
+
url: isSet4(object.url) ? globalThis.String(object.url) : "",
|
|
7177
|
+
serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
|
|
7178
|
+
deployedAt: isSet4(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
|
|
7179
|
+
};
|
|
7180
|
+
},
|
|
7181
|
+
toJSON(message) {
|
|
7182
|
+
const obj = {};
|
|
7183
|
+
if (message.url !== "") {
|
|
7184
|
+
obj.url = message.url;
|
|
7185
|
+
}
|
|
7186
|
+
if (message.serverWarnings?.length) {
|
|
7187
|
+
obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
|
|
7188
|
+
}
|
|
7189
|
+
if (message.deployedAt !== 0) {
|
|
7190
|
+
obj.deployedAt = message.deployedAt;
|
|
7191
|
+
}
|
|
7192
|
+
return obj;
|
|
7193
|
+
},
|
|
7194
|
+
create(base) {
|
|
7195
|
+
return AppRolloverResponse.fromPartial(base ?? {});
|
|
7196
|
+
},
|
|
7197
|
+
fromPartial(object) {
|
|
7198
|
+
const message = createBaseAppRolloverResponse();
|
|
7199
|
+
message.url = object.url ?? "";
|
|
7200
|
+
message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
|
|
7201
|
+
message.deployedAt = object.deployedAt ?? 0;
|
|
7202
|
+
return message;
|
|
7203
|
+
}
|
|
7204
|
+
};
|
|
6784
7205
|
function createBaseAppSetObjectsRequest() {
|
|
6785
7206
|
return { appId: "", indexedObjectIds: {}, clientId: "", unindexedObjectIds: [], newAppState: 0 };
|
|
6786
7207
|
}
|
|
@@ -29229,6 +29650,140 @@ var PortSpecs = {
|
|
|
29229
29650
|
return message;
|
|
29230
29651
|
}
|
|
29231
29652
|
};
|
|
29653
|
+
function createBaseProbe() {
|
|
29654
|
+
return { tcpPort: void 0, execCommand: void 0, intervalMs: void 0 };
|
|
29655
|
+
}
|
|
29656
|
+
var Probe = {
|
|
29657
|
+
encode(message, writer = new BinaryWriter()) {
|
|
29658
|
+
if (message.tcpPort !== void 0) {
|
|
29659
|
+
writer.uint32(8).uint32(message.tcpPort);
|
|
29660
|
+
}
|
|
29661
|
+
if (message.execCommand !== void 0) {
|
|
29662
|
+
Probe_ExecCommand.encode(message.execCommand, writer.uint32(18).fork()).join();
|
|
29663
|
+
}
|
|
29664
|
+
if (message.intervalMs !== void 0) {
|
|
29665
|
+
writer.uint32(24).uint32(message.intervalMs);
|
|
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();
|
|
29673
|
+
while (reader.pos < end) {
|
|
29674
|
+
const tag = reader.uint32();
|
|
29675
|
+
switch (tag >>> 3) {
|
|
29676
|
+
case 1: {
|
|
29677
|
+
if (tag !== 8) {
|
|
29678
|
+
break;
|
|
29679
|
+
}
|
|
29680
|
+
message.tcpPort = reader.uint32();
|
|
29681
|
+
continue;
|
|
29682
|
+
}
|
|
29683
|
+
case 2: {
|
|
29684
|
+
if (tag !== 18) {
|
|
29685
|
+
break;
|
|
29686
|
+
}
|
|
29687
|
+
message.execCommand = Probe_ExecCommand.decode(reader, reader.uint32());
|
|
29688
|
+
continue;
|
|
29689
|
+
}
|
|
29690
|
+
case 3: {
|
|
29691
|
+
if (tag !== 24) {
|
|
29692
|
+
break;
|
|
29693
|
+
}
|
|
29694
|
+
message.intervalMs = reader.uint32();
|
|
29695
|
+
continue;
|
|
29696
|
+
}
|
|
29697
|
+
}
|
|
29698
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
29699
|
+
break;
|
|
29700
|
+
}
|
|
29701
|
+
reader.skip(tag & 7);
|
|
29702
|
+
}
|
|
29703
|
+
return message;
|
|
29704
|
+
},
|
|
29705
|
+
fromJSON(object) {
|
|
29706
|
+
return {
|
|
29707
|
+
tcpPort: isSet4(object.tcpPort) ? globalThis.Number(object.tcpPort) : void 0,
|
|
29708
|
+
execCommand: isSet4(object.execCommand) ? Probe_ExecCommand.fromJSON(object.execCommand) : void 0,
|
|
29709
|
+
intervalMs: isSet4(object.intervalMs) ? globalThis.Number(object.intervalMs) : void 0
|
|
29710
|
+
};
|
|
29711
|
+
},
|
|
29712
|
+
toJSON(message) {
|
|
29713
|
+
const obj = {};
|
|
29714
|
+
if (message.tcpPort !== void 0) {
|
|
29715
|
+
obj.tcpPort = Math.round(message.tcpPort);
|
|
29716
|
+
}
|
|
29717
|
+
if (message.execCommand !== void 0) {
|
|
29718
|
+
obj.execCommand = Probe_ExecCommand.toJSON(message.execCommand);
|
|
29719
|
+
}
|
|
29720
|
+
if (message.intervalMs !== void 0) {
|
|
29721
|
+
obj.intervalMs = Math.round(message.intervalMs);
|
|
29722
|
+
}
|
|
29723
|
+
return obj;
|
|
29724
|
+
},
|
|
29725
|
+
create(base) {
|
|
29726
|
+
return Probe.fromPartial(base ?? {});
|
|
29727
|
+
},
|
|
29728
|
+
fromPartial(object) {
|
|
29729
|
+
const message = createBaseProbe();
|
|
29730
|
+
message.tcpPort = object.tcpPort ?? void 0;
|
|
29731
|
+
message.execCommand = object.execCommand !== void 0 && object.execCommand !== null ? Probe_ExecCommand.fromPartial(object.execCommand) : void 0;
|
|
29732
|
+
message.intervalMs = object.intervalMs ?? void 0;
|
|
29733
|
+
return message;
|
|
29734
|
+
}
|
|
29735
|
+
};
|
|
29736
|
+
function createBaseProbe_ExecCommand() {
|
|
29737
|
+
return { argv: [] };
|
|
29738
|
+
}
|
|
29739
|
+
var Probe_ExecCommand = {
|
|
29740
|
+
encode(message, writer = new BinaryWriter()) {
|
|
29741
|
+
for (const v of message.argv) {
|
|
29742
|
+
writer.uint32(10).string(v);
|
|
29743
|
+
}
|
|
29744
|
+
return writer;
|
|
29745
|
+
},
|
|
29746
|
+
decode(input, length) {
|
|
29747
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
29748
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
29749
|
+
const message = createBaseProbe_ExecCommand();
|
|
29750
|
+
while (reader.pos < end) {
|
|
29751
|
+
const tag = reader.uint32();
|
|
29752
|
+
switch (tag >>> 3) {
|
|
29753
|
+
case 1: {
|
|
29754
|
+
if (tag !== 10) {
|
|
29755
|
+
break;
|
|
29756
|
+
}
|
|
29757
|
+
message.argv.push(reader.string());
|
|
29758
|
+
continue;
|
|
29759
|
+
}
|
|
29760
|
+
}
|
|
29761
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
29762
|
+
break;
|
|
29763
|
+
}
|
|
29764
|
+
reader.skip(tag & 7);
|
|
29765
|
+
}
|
|
29766
|
+
return message;
|
|
29767
|
+
},
|
|
29768
|
+
fromJSON(object) {
|
|
29769
|
+
return { argv: globalThis.Array.isArray(object?.argv) ? object.argv.map((e) => globalThis.String(e)) : [] };
|
|
29770
|
+
},
|
|
29771
|
+
toJSON(message) {
|
|
29772
|
+
const obj = {};
|
|
29773
|
+
if (message.argv?.length) {
|
|
29774
|
+
obj.argv = message.argv;
|
|
29775
|
+
}
|
|
29776
|
+
return obj;
|
|
29777
|
+
},
|
|
29778
|
+
create(base) {
|
|
29779
|
+
return Probe_ExecCommand.fromPartial(base ?? {});
|
|
29780
|
+
},
|
|
29781
|
+
fromPartial(object) {
|
|
29782
|
+
const message = createBaseProbe_ExecCommand();
|
|
29783
|
+
message.argv = object.argv?.map((e) => e) || [];
|
|
29784
|
+
return message;
|
|
29785
|
+
}
|
|
29786
|
+
};
|
|
29232
29787
|
function createBaseProxy() {
|
|
29233
29788
|
return { name: "", createdAt: 0, environmentName: "", proxyIps: [], proxyId: "", region: "" };
|
|
29234
29789
|
}
|
|
@@ -32346,7 +32901,8 @@ function createBaseSandbox() {
|
|
|
32346
32901
|
directSandboxCommandsEnabled: false,
|
|
32347
32902
|
RestoreInstanceType: "",
|
|
32348
32903
|
customDomain: "",
|
|
32349
|
-
includeOidcIdentityToken: false
|
|
32904
|
+
includeOidcIdentityToken: false,
|
|
32905
|
+
readinessProbe: void 0
|
|
32350
32906
|
};
|
|
32351
32907
|
}
|
|
32352
32908
|
var Sandbox = {
|
|
@@ -32456,6 +33012,9 @@ var Sandbox = {
|
|
|
32456
33012
|
if (message.includeOidcIdentityToken !== false) {
|
|
32457
33013
|
writer.uint32(296).bool(message.includeOidcIdentityToken);
|
|
32458
33014
|
}
|
|
33015
|
+
if (message.readinessProbe !== void 0) {
|
|
33016
|
+
Probe.encode(message.readinessProbe, writer.uint32(306).fork()).join();
|
|
33017
|
+
}
|
|
32459
33018
|
return writer;
|
|
32460
33019
|
},
|
|
32461
33020
|
decode(input, length) {
|
|
@@ -32713,6 +33272,13 @@ var Sandbox = {
|
|
|
32713
33272
|
message.includeOidcIdentityToken = reader.bool();
|
|
32714
33273
|
continue;
|
|
32715
33274
|
}
|
|
33275
|
+
case 38: {
|
|
33276
|
+
if (tag !== 306) {
|
|
33277
|
+
break;
|
|
33278
|
+
}
|
|
33279
|
+
message.readinessProbe = Probe.decode(reader, reader.uint32());
|
|
33280
|
+
continue;
|
|
33281
|
+
}
|
|
32716
33282
|
}
|
|
32717
33283
|
if ((tag & 7) === 4 || tag === 0) {
|
|
32718
33284
|
break;
|
|
@@ -32760,7 +33326,8 @@ var Sandbox = {
|
|
|
32760
33326
|
directSandboxCommandsEnabled: isSet4(object.directSandboxCommandsEnabled) ? globalThis.Boolean(object.directSandboxCommandsEnabled) : false,
|
|
32761
33327
|
RestoreInstanceType: isSet4(object.RestoreInstanceType) ? globalThis.String(object.RestoreInstanceType) : "",
|
|
32762
33328
|
customDomain: isSet4(object.customDomain) ? globalThis.String(object.customDomain) : "",
|
|
32763
|
-
includeOidcIdentityToken: isSet4(object.includeOidcIdentityToken) ? globalThis.Boolean(object.includeOidcIdentityToken) : false
|
|
33329
|
+
includeOidcIdentityToken: isSet4(object.includeOidcIdentityToken) ? globalThis.Boolean(object.includeOidcIdentityToken) : false,
|
|
33330
|
+
readinessProbe: isSet4(object.readinessProbe) ? Probe.fromJSON(object.readinessProbe) : void 0
|
|
32764
33331
|
};
|
|
32765
33332
|
},
|
|
32766
33333
|
toJSON(message) {
|
|
@@ -32876,6 +33443,9 @@ var Sandbox = {
|
|
|
32876
33443
|
if (message.includeOidcIdentityToken !== false) {
|
|
32877
33444
|
obj.includeOidcIdentityToken = message.includeOidcIdentityToken;
|
|
32878
33445
|
}
|
|
33446
|
+
if (message.readinessProbe !== void 0) {
|
|
33447
|
+
obj.readinessProbe = Probe.toJSON(message.readinessProbe);
|
|
33448
|
+
}
|
|
32879
33449
|
return obj;
|
|
32880
33450
|
},
|
|
32881
33451
|
create(base) {
|
|
@@ -32926,6 +33496,7 @@ var Sandbox = {
|
|
|
32926
33496
|
message.RestoreInstanceType = object.RestoreInstanceType ?? "";
|
|
32927
33497
|
message.customDomain = object.customDomain ?? "";
|
|
32928
33498
|
message.includeOidcIdentityToken = object.includeOidcIdentityToken ?? false;
|
|
33499
|
+
message.readinessProbe = object.readinessProbe !== void 0 && object.readinessProbe !== null ? Probe.fromPartial(object.readinessProbe) : void 0;
|
|
32929
33500
|
return message;
|
|
32930
33501
|
}
|
|
32931
33502
|
};
|
|
@@ -33336,7 +33907,7 @@ var SandboxCreateV2Request = {
|
|
|
33336
33907
|
}
|
|
33337
33908
|
};
|
|
33338
33909
|
function createBaseSandboxCreateV2Response() {
|
|
33339
|
-
return { sandboxId: "", tunnels: [] };
|
|
33910
|
+
return { sandboxId: "", tunnels: [], taskId: "" };
|
|
33340
33911
|
}
|
|
33341
33912
|
var SandboxCreateV2Response = {
|
|
33342
33913
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -33346,6 +33917,9 @@ var SandboxCreateV2Response = {
|
|
|
33346
33917
|
for (const v of message.tunnels) {
|
|
33347
33918
|
TunnelData.encode(v, writer.uint32(18).fork()).join();
|
|
33348
33919
|
}
|
|
33920
|
+
if (message.taskId !== "") {
|
|
33921
|
+
writer.uint32(26).string(message.taskId);
|
|
33922
|
+
}
|
|
33349
33923
|
return writer;
|
|
33350
33924
|
},
|
|
33351
33925
|
decode(input, length) {
|
|
@@ -33369,6 +33943,13 @@ var SandboxCreateV2Response = {
|
|
|
33369
33943
|
message.tunnels.push(TunnelData.decode(reader, reader.uint32()));
|
|
33370
33944
|
continue;
|
|
33371
33945
|
}
|
|
33946
|
+
case 3: {
|
|
33947
|
+
if (tag !== 26) {
|
|
33948
|
+
break;
|
|
33949
|
+
}
|
|
33950
|
+
message.taskId = reader.string();
|
|
33951
|
+
continue;
|
|
33952
|
+
}
|
|
33372
33953
|
}
|
|
33373
33954
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33374
33955
|
break;
|
|
@@ -33380,7 +33961,8 @@ var SandboxCreateV2Response = {
|
|
|
33380
33961
|
fromJSON(object) {
|
|
33381
33962
|
return {
|
|
33382
33963
|
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
33383
|
-
tunnels: globalThis.Array.isArray(object?.tunnels) ? object.tunnels.map((e) => TunnelData.fromJSON(e)) : []
|
|
33964
|
+
tunnels: globalThis.Array.isArray(object?.tunnels) ? object.tunnels.map((e) => TunnelData.fromJSON(e)) : [],
|
|
33965
|
+
taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : ""
|
|
33384
33966
|
};
|
|
33385
33967
|
},
|
|
33386
33968
|
toJSON(message) {
|
|
@@ -33391,6 +33973,9 @@ var SandboxCreateV2Response = {
|
|
|
33391
33973
|
if (message.tunnels?.length) {
|
|
33392
33974
|
obj.tunnels = message.tunnels.map((e) => TunnelData.toJSON(e));
|
|
33393
33975
|
}
|
|
33976
|
+
if (message.taskId !== "") {
|
|
33977
|
+
obj.taskId = message.taskId;
|
|
33978
|
+
}
|
|
33394
33979
|
return obj;
|
|
33395
33980
|
},
|
|
33396
33981
|
create(base) {
|
|
@@ -33400,29 +33985,24 @@ var SandboxCreateV2Response = {
|
|
|
33400
33985
|
const message = createBaseSandboxCreateV2Response();
|
|
33401
33986
|
message.sandboxId = object.sandboxId ?? "";
|
|
33402
33987
|
message.tunnels = object.tunnels?.map((e) => TunnelData.fromPartial(e)) || [];
|
|
33988
|
+
message.taskId = object.taskId ?? "";
|
|
33403
33989
|
return message;
|
|
33404
33990
|
}
|
|
33405
33991
|
};
|
|
33406
|
-
function
|
|
33407
|
-
return {
|
|
33992
|
+
function createBaseSandboxGetCommandRouterAccessRequest() {
|
|
33993
|
+
return { sandboxId: "" };
|
|
33408
33994
|
}
|
|
33409
|
-
var
|
|
33995
|
+
var SandboxGetCommandRouterAccessRequest = {
|
|
33410
33996
|
encode(message, writer = new BinaryWriter()) {
|
|
33411
|
-
if (message.
|
|
33412
|
-
writer.uint32(10).string(message.
|
|
33413
|
-
}
|
|
33414
|
-
if (message.environmentName !== "") {
|
|
33415
|
-
writer.uint32(18).string(message.environmentName);
|
|
33416
|
-
}
|
|
33417
|
-
if (message.appName !== "") {
|
|
33418
|
-
writer.uint32(26).string(message.appName);
|
|
33997
|
+
if (message.sandboxId !== "") {
|
|
33998
|
+
writer.uint32(10).string(message.sandboxId);
|
|
33419
33999
|
}
|
|
33420
34000
|
return writer;
|
|
33421
34001
|
},
|
|
33422
34002
|
decode(input, length) {
|
|
33423
34003
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33424
34004
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33425
|
-
const message =
|
|
34005
|
+
const message = createBaseSandboxGetCommandRouterAccessRequest();
|
|
33426
34006
|
while (reader.pos < end) {
|
|
33427
34007
|
const tag = reader.uint32();
|
|
33428
34008
|
switch (tag >>> 3) {
|
|
@@ -33430,21 +34010,7 @@ var SandboxGetFromNameRequest = {
|
|
|
33430
34010
|
if (tag !== 10) {
|
|
33431
34011
|
break;
|
|
33432
34012
|
}
|
|
33433
|
-
message.
|
|
33434
|
-
continue;
|
|
33435
|
-
}
|
|
33436
|
-
case 2: {
|
|
33437
|
-
if (tag !== 18) {
|
|
33438
|
-
break;
|
|
33439
|
-
}
|
|
33440
|
-
message.environmentName = reader.string();
|
|
33441
|
-
continue;
|
|
33442
|
-
}
|
|
33443
|
-
case 3: {
|
|
33444
|
-
if (tag !== 26) {
|
|
33445
|
-
break;
|
|
33446
|
-
}
|
|
33447
|
-
message.appName = reader.string();
|
|
34013
|
+
message.sandboxId = reader.string();
|
|
33448
34014
|
continue;
|
|
33449
34015
|
}
|
|
33450
34016
|
}
|
|
@@ -33456,50 +34022,41 @@ var SandboxGetFromNameRequest = {
|
|
|
33456
34022
|
return message;
|
|
33457
34023
|
},
|
|
33458
34024
|
fromJSON(object) {
|
|
33459
|
-
return {
|
|
33460
|
-
sandboxName: isSet4(object.sandboxName) ? globalThis.String(object.sandboxName) : "",
|
|
33461
|
-
environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
33462
|
-
appName: isSet4(object.appName) ? globalThis.String(object.appName) : ""
|
|
33463
|
-
};
|
|
34025
|
+
return { sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "" };
|
|
33464
34026
|
},
|
|
33465
34027
|
toJSON(message) {
|
|
33466
34028
|
const obj = {};
|
|
33467
|
-
if (message.
|
|
33468
|
-
obj.
|
|
33469
|
-
}
|
|
33470
|
-
if (message.environmentName !== "") {
|
|
33471
|
-
obj.environmentName = message.environmentName;
|
|
33472
|
-
}
|
|
33473
|
-
if (message.appName !== "") {
|
|
33474
|
-
obj.appName = message.appName;
|
|
34029
|
+
if (message.sandboxId !== "") {
|
|
34030
|
+
obj.sandboxId = message.sandboxId;
|
|
33475
34031
|
}
|
|
33476
34032
|
return obj;
|
|
33477
34033
|
},
|
|
33478
34034
|
create(base) {
|
|
33479
|
-
return
|
|
34035
|
+
return SandboxGetCommandRouterAccessRequest.fromPartial(base ?? {});
|
|
33480
34036
|
},
|
|
33481
34037
|
fromPartial(object) {
|
|
33482
|
-
const message =
|
|
33483
|
-
message.
|
|
33484
|
-
message.environmentName = object.environmentName ?? "";
|
|
33485
|
-
message.appName = object.appName ?? "";
|
|
34038
|
+
const message = createBaseSandboxGetCommandRouterAccessRequest();
|
|
34039
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
33486
34040
|
return message;
|
|
33487
34041
|
}
|
|
33488
34042
|
};
|
|
33489
|
-
function
|
|
33490
|
-
return {
|
|
34043
|
+
function createBaseSandboxGetCommandRouterAccessResponse() {
|
|
34044
|
+
return { jwt: "", url: "" };
|
|
33491
34045
|
}
|
|
33492
|
-
var
|
|
34046
|
+
var SandboxGetCommandRouterAccessResponse = {
|
|
33493
34047
|
encode(message, writer = new BinaryWriter()) {
|
|
33494
|
-
if (message.
|
|
33495
|
-
writer.uint32(10).string(message.
|
|
34048
|
+
if (message.jwt !== "") {
|
|
34049
|
+
writer.uint32(10).string(message.jwt);
|
|
34050
|
+
}
|
|
34051
|
+
if (message.url !== "") {
|
|
34052
|
+
writer.uint32(18).string(message.url);
|
|
33496
34053
|
}
|
|
33497
34054
|
return writer;
|
|
33498
34055
|
},
|
|
33499
34056
|
decode(input, length) {
|
|
33500
34057
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33501
34058
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33502
|
-
const message =
|
|
34059
|
+
const message = createBaseSandboxGetCommandRouterAccessResponse();
|
|
33503
34060
|
while (reader.pos < end) {
|
|
33504
34061
|
const tag = reader.uint32();
|
|
33505
34062
|
switch (tag >>> 3) {
|
|
@@ -33507,7 +34064,14 @@ var SandboxGetFromNameResponse = {
|
|
|
33507
34064
|
if (tag !== 10) {
|
|
33508
34065
|
break;
|
|
33509
34066
|
}
|
|
33510
|
-
message.
|
|
34067
|
+
message.jwt = reader.string();
|
|
34068
|
+
continue;
|
|
34069
|
+
}
|
|
34070
|
+
case 2: {
|
|
34071
|
+
if (tag !== 18) {
|
|
34072
|
+
break;
|
|
34073
|
+
}
|
|
34074
|
+
message.url = reader.string();
|
|
33511
34075
|
continue;
|
|
33512
34076
|
}
|
|
33513
34077
|
}
|
|
@@ -33519,47 +34083,51 @@ var SandboxGetFromNameResponse = {
|
|
|
33519
34083
|
return message;
|
|
33520
34084
|
},
|
|
33521
34085
|
fromJSON(object) {
|
|
33522
|
-
return {
|
|
34086
|
+
return {
|
|
34087
|
+
jwt: isSet4(object.jwt) ? globalThis.String(object.jwt) : "",
|
|
34088
|
+
url: isSet4(object.url) ? globalThis.String(object.url) : ""
|
|
34089
|
+
};
|
|
33523
34090
|
},
|
|
33524
34091
|
toJSON(message) {
|
|
33525
34092
|
const obj = {};
|
|
33526
|
-
if (message.
|
|
33527
|
-
obj.
|
|
34093
|
+
if (message.jwt !== "") {
|
|
34094
|
+
obj.jwt = message.jwt;
|
|
34095
|
+
}
|
|
34096
|
+
if (message.url !== "") {
|
|
34097
|
+
obj.url = message.url;
|
|
33528
34098
|
}
|
|
33529
34099
|
return obj;
|
|
33530
34100
|
},
|
|
33531
34101
|
create(base) {
|
|
33532
|
-
return
|
|
34102
|
+
return SandboxGetCommandRouterAccessResponse.fromPartial(base ?? {});
|
|
33533
34103
|
},
|
|
33534
34104
|
fromPartial(object) {
|
|
33535
|
-
const message =
|
|
33536
|
-
message.
|
|
34105
|
+
const message = createBaseSandboxGetCommandRouterAccessResponse();
|
|
34106
|
+
message.jwt = object.jwt ?? "";
|
|
34107
|
+
message.url = object.url ?? "";
|
|
33537
34108
|
return message;
|
|
33538
34109
|
}
|
|
33539
34110
|
};
|
|
33540
|
-
function
|
|
33541
|
-
return {
|
|
34111
|
+
function createBaseSandboxGetFromNameRequest() {
|
|
34112
|
+
return { sandboxName: "", environmentName: "", appName: "" };
|
|
33542
34113
|
}
|
|
33543
|
-
var
|
|
34114
|
+
var SandboxGetFromNameRequest = {
|
|
33544
34115
|
encode(message, writer = new BinaryWriter()) {
|
|
33545
|
-
if (message.
|
|
33546
|
-
writer.uint32(10).string(message.
|
|
33547
|
-
}
|
|
33548
|
-
if (message.fileDescriptor !== 0) {
|
|
33549
|
-
writer.uint32(16).int32(message.fileDescriptor);
|
|
34116
|
+
if (message.sandboxName !== "") {
|
|
34117
|
+
writer.uint32(10).string(message.sandboxName);
|
|
33550
34118
|
}
|
|
33551
|
-
if (message.
|
|
33552
|
-
writer.uint32(
|
|
34119
|
+
if (message.environmentName !== "") {
|
|
34120
|
+
writer.uint32(18).string(message.environmentName);
|
|
33553
34121
|
}
|
|
33554
|
-
if (message.
|
|
33555
|
-
writer.uint32(
|
|
34122
|
+
if (message.appName !== "") {
|
|
34123
|
+
writer.uint32(26).string(message.appName);
|
|
33556
34124
|
}
|
|
33557
34125
|
return writer;
|
|
33558
34126
|
},
|
|
33559
34127
|
decode(input, length) {
|
|
33560
34128
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33561
34129
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33562
|
-
const message =
|
|
34130
|
+
const message = createBaseSandboxGetFromNameRequest();
|
|
33563
34131
|
while (reader.pos < end) {
|
|
33564
34132
|
const tag = reader.uint32();
|
|
33565
34133
|
switch (tag >>> 3) {
|
|
@@ -33567,28 +34135,21 @@ var SandboxGetLogsRequest = {
|
|
|
33567
34135
|
if (tag !== 10) {
|
|
33568
34136
|
break;
|
|
33569
34137
|
}
|
|
33570
|
-
message.
|
|
34138
|
+
message.sandboxName = reader.string();
|
|
33571
34139
|
continue;
|
|
33572
34140
|
}
|
|
33573
34141
|
case 2: {
|
|
33574
|
-
if (tag !==
|
|
34142
|
+
if (tag !== 18) {
|
|
33575
34143
|
break;
|
|
33576
34144
|
}
|
|
33577
|
-
message.
|
|
34145
|
+
message.environmentName = reader.string();
|
|
33578
34146
|
continue;
|
|
33579
34147
|
}
|
|
33580
34148
|
case 3: {
|
|
33581
|
-
if (tag !==
|
|
33582
|
-
break;
|
|
33583
|
-
}
|
|
33584
|
-
message.timeout = reader.float();
|
|
33585
|
-
continue;
|
|
33586
|
-
}
|
|
33587
|
-
case 4: {
|
|
33588
|
-
if (tag !== 34) {
|
|
34149
|
+
if (tag !== 26) {
|
|
33589
34150
|
break;
|
|
33590
34151
|
}
|
|
33591
|
-
message.
|
|
34152
|
+
message.appName = reader.string();
|
|
33592
34153
|
continue;
|
|
33593
34154
|
}
|
|
33594
34155
|
}
|
|
@@ -33601,44 +34162,39 @@ var SandboxGetLogsRequest = {
|
|
|
33601
34162
|
},
|
|
33602
34163
|
fromJSON(object) {
|
|
33603
34164
|
return {
|
|
33604
|
-
|
|
33605
|
-
|
|
33606
|
-
|
|
33607
|
-
lastEntryId: isSet4(object.lastEntryId) ? globalThis.String(object.lastEntryId) : ""
|
|
34165
|
+
sandboxName: isSet4(object.sandboxName) ? globalThis.String(object.sandboxName) : "",
|
|
34166
|
+
environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
34167
|
+
appName: isSet4(object.appName) ? globalThis.String(object.appName) : ""
|
|
33608
34168
|
};
|
|
33609
34169
|
},
|
|
33610
34170
|
toJSON(message) {
|
|
33611
34171
|
const obj = {};
|
|
33612
|
-
if (message.
|
|
33613
|
-
obj.
|
|
33614
|
-
}
|
|
33615
|
-
if (message.fileDescriptor !== 0) {
|
|
33616
|
-
obj.fileDescriptor = fileDescriptorToJSON(message.fileDescriptor);
|
|
34172
|
+
if (message.sandboxName !== "") {
|
|
34173
|
+
obj.sandboxName = message.sandboxName;
|
|
33617
34174
|
}
|
|
33618
|
-
if (message.
|
|
33619
|
-
obj.
|
|
34175
|
+
if (message.environmentName !== "") {
|
|
34176
|
+
obj.environmentName = message.environmentName;
|
|
33620
34177
|
}
|
|
33621
|
-
if (message.
|
|
33622
|
-
obj.
|
|
34178
|
+
if (message.appName !== "") {
|
|
34179
|
+
obj.appName = message.appName;
|
|
33623
34180
|
}
|
|
33624
34181
|
return obj;
|
|
33625
34182
|
},
|
|
33626
34183
|
create(base) {
|
|
33627
|
-
return
|
|
34184
|
+
return SandboxGetFromNameRequest.fromPartial(base ?? {});
|
|
33628
34185
|
},
|
|
33629
34186
|
fromPartial(object) {
|
|
33630
|
-
const message =
|
|
33631
|
-
message.
|
|
33632
|
-
message.
|
|
33633
|
-
message.
|
|
33634
|
-
message.lastEntryId = object.lastEntryId ?? "";
|
|
34187
|
+
const message = createBaseSandboxGetFromNameRequest();
|
|
34188
|
+
message.sandboxName = object.sandboxName ?? "";
|
|
34189
|
+
message.environmentName = object.environmentName ?? "";
|
|
34190
|
+
message.appName = object.appName ?? "";
|
|
33635
34191
|
return message;
|
|
33636
34192
|
}
|
|
33637
34193
|
};
|
|
33638
|
-
function
|
|
34194
|
+
function createBaseSandboxGetFromNameResponse() {
|
|
33639
34195
|
return { sandboxId: "" };
|
|
33640
34196
|
}
|
|
33641
|
-
var
|
|
34197
|
+
var SandboxGetFromNameResponse = {
|
|
33642
34198
|
encode(message, writer = new BinaryWriter()) {
|
|
33643
34199
|
if (message.sandboxId !== "") {
|
|
33644
34200
|
writer.uint32(10).string(message.sandboxId);
|
|
@@ -33648,7 +34204,156 @@ var SandboxGetResourceUsageRequest = {
|
|
|
33648
34204
|
decode(input, length) {
|
|
33649
34205
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33650
34206
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33651
|
-
const message =
|
|
34207
|
+
const message = createBaseSandboxGetFromNameResponse();
|
|
34208
|
+
while (reader.pos < end) {
|
|
34209
|
+
const tag = reader.uint32();
|
|
34210
|
+
switch (tag >>> 3) {
|
|
34211
|
+
case 1: {
|
|
34212
|
+
if (tag !== 10) {
|
|
34213
|
+
break;
|
|
34214
|
+
}
|
|
34215
|
+
message.sandboxId = reader.string();
|
|
34216
|
+
continue;
|
|
34217
|
+
}
|
|
34218
|
+
}
|
|
34219
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34220
|
+
break;
|
|
34221
|
+
}
|
|
34222
|
+
reader.skip(tag & 7);
|
|
34223
|
+
}
|
|
34224
|
+
return message;
|
|
34225
|
+
},
|
|
34226
|
+
fromJSON(object) {
|
|
34227
|
+
return { sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "" };
|
|
34228
|
+
},
|
|
34229
|
+
toJSON(message) {
|
|
34230
|
+
const obj = {};
|
|
34231
|
+
if (message.sandboxId !== "") {
|
|
34232
|
+
obj.sandboxId = message.sandboxId;
|
|
34233
|
+
}
|
|
34234
|
+
return obj;
|
|
34235
|
+
},
|
|
34236
|
+
create(base) {
|
|
34237
|
+
return SandboxGetFromNameResponse.fromPartial(base ?? {});
|
|
34238
|
+
},
|
|
34239
|
+
fromPartial(object) {
|
|
34240
|
+
const message = createBaseSandboxGetFromNameResponse();
|
|
34241
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
34242
|
+
return message;
|
|
34243
|
+
}
|
|
34244
|
+
};
|
|
34245
|
+
function createBaseSandboxGetLogsRequest() {
|
|
34246
|
+
return { sandboxId: "", fileDescriptor: 0, timeout: 0, lastEntryId: "" };
|
|
34247
|
+
}
|
|
34248
|
+
var SandboxGetLogsRequest = {
|
|
34249
|
+
encode(message, writer = new BinaryWriter()) {
|
|
34250
|
+
if (message.sandboxId !== "") {
|
|
34251
|
+
writer.uint32(10).string(message.sandboxId);
|
|
34252
|
+
}
|
|
34253
|
+
if (message.fileDescriptor !== 0) {
|
|
34254
|
+
writer.uint32(16).int32(message.fileDescriptor);
|
|
34255
|
+
}
|
|
34256
|
+
if (message.timeout !== 0) {
|
|
34257
|
+
writer.uint32(29).float(message.timeout);
|
|
34258
|
+
}
|
|
34259
|
+
if (message.lastEntryId !== "") {
|
|
34260
|
+
writer.uint32(34).string(message.lastEntryId);
|
|
34261
|
+
}
|
|
34262
|
+
return writer;
|
|
34263
|
+
},
|
|
34264
|
+
decode(input, length) {
|
|
34265
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34266
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
34267
|
+
const message = createBaseSandboxGetLogsRequest();
|
|
34268
|
+
while (reader.pos < end) {
|
|
34269
|
+
const tag = reader.uint32();
|
|
34270
|
+
switch (tag >>> 3) {
|
|
34271
|
+
case 1: {
|
|
34272
|
+
if (tag !== 10) {
|
|
34273
|
+
break;
|
|
34274
|
+
}
|
|
34275
|
+
message.sandboxId = reader.string();
|
|
34276
|
+
continue;
|
|
34277
|
+
}
|
|
34278
|
+
case 2: {
|
|
34279
|
+
if (tag !== 16) {
|
|
34280
|
+
break;
|
|
34281
|
+
}
|
|
34282
|
+
message.fileDescriptor = reader.int32();
|
|
34283
|
+
continue;
|
|
34284
|
+
}
|
|
34285
|
+
case 3: {
|
|
34286
|
+
if (tag !== 29) {
|
|
34287
|
+
break;
|
|
34288
|
+
}
|
|
34289
|
+
message.timeout = reader.float();
|
|
34290
|
+
continue;
|
|
34291
|
+
}
|
|
34292
|
+
case 4: {
|
|
34293
|
+
if (tag !== 34) {
|
|
34294
|
+
break;
|
|
34295
|
+
}
|
|
34296
|
+
message.lastEntryId = reader.string();
|
|
34297
|
+
continue;
|
|
34298
|
+
}
|
|
34299
|
+
}
|
|
34300
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34301
|
+
break;
|
|
34302
|
+
}
|
|
34303
|
+
reader.skip(tag & 7);
|
|
34304
|
+
}
|
|
34305
|
+
return message;
|
|
34306
|
+
},
|
|
34307
|
+
fromJSON(object) {
|
|
34308
|
+
return {
|
|
34309
|
+
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
34310
|
+
fileDescriptor: isSet4(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
|
|
34311
|
+
timeout: isSet4(object.timeout) ? globalThis.Number(object.timeout) : 0,
|
|
34312
|
+
lastEntryId: isSet4(object.lastEntryId) ? globalThis.String(object.lastEntryId) : ""
|
|
34313
|
+
};
|
|
34314
|
+
},
|
|
34315
|
+
toJSON(message) {
|
|
34316
|
+
const obj = {};
|
|
34317
|
+
if (message.sandboxId !== "") {
|
|
34318
|
+
obj.sandboxId = message.sandboxId;
|
|
34319
|
+
}
|
|
34320
|
+
if (message.fileDescriptor !== 0) {
|
|
34321
|
+
obj.fileDescriptor = fileDescriptorToJSON(message.fileDescriptor);
|
|
34322
|
+
}
|
|
34323
|
+
if (message.timeout !== 0) {
|
|
34324
|
+
obj.timeout = message.timeout;
|
|
34325
|
+
}
|
|
34326
|
+
if (message.lastEntryId !== "") {
|
|
34327
|
+
obj.lastEntryId = message.lastEntryId;
|
|
34328
|
+
}
|
|
34329
|
+
return obj;
|
|
34330
|
+
},
|
|
34331
|
+
create(base) {
|
|
34332
|
+
return SandboxGetLogsRequest.fromPartial(base ?? {});
|
|
34333
|
+
},
|
|
34334
|
+
fromPartial(object) {
|
|
34335
|
+
const message = createBaseSandboxGetLogsRequest();
|
|
34336
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
34337
|
+
message.fileDescriptor = object.fileDescriptor ?? 0;
|
|
34338
|
+
message.timeout = object.timeout ?? 0;
|
|
34339
|
+
message.lastEntryId = object.lastEntryId ?? "";
|
|
34340
|
+
return message;
|
|
34341
|
+
}
|
|
34342
|
+
};
|
|
34343
|
+
function createBaseSandboxGetResourceUsageRequest() {
|
|
34344
|
+
return { sandboxId: "" };
|
|
34345
|
+
}
|
|
34346
|
+
var SandboxGetResourceUsageRequest = {
|
|
34347
|
+
encode(message, writer = new BinaryWriter()) {
|
|
34348
|
+
if (message.sandboxId !== "") {
|
|
34349
|
+
writer.uint32(10).string(message.sandboxId);
|
|
34350
|
+
}
|
|
34351
|
+
return writer;
|
|
34352
|
+
},
|
|
34353
|
+
decode(input, length) {
|
|
34354
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34355
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
34356
|
+
const message = createBaseSandboxGetResourceUsageRequest();
|
|
33652
34357
|
while (reader.pos < end) {
|
|
33653
34358
|
const tag = reader.uint32();
|
|
33654
34359
|
switch (tag >>> 3) {
|
|
@@ -34134,7 +34839,8 @@ function createBaseSandboxInfo() {
|
|
|
34134
34839
|
resourceInfo: void 0,
|
|
34135
34840
|
regions: [],
|
|
34136
34841
|
timeoutSecs: 0,
|
|
34137
|
-
idleTimeoutSecs: void 0
|
|
34842
|
+
idleTimeoutSecs: void 0,
|
|
34843
|
+
readyAt: void 0
|
|
34138
34844
|
};
|
|
34139
34845
|
}
|
|
34140
34846
|
var SandboxInfo = {
|
|
@@ -34172,6 +34878,9 @@ var SandboxInfo = {
|
|
|
34172
34878
|
if (message.idleTimeoutSecs !== void 0) {
|
|
34173
34879
|
writer.uint32(96).uint32(message.idleTimeoutSecs);
|
|
34174
34880
|
}
|
|
34881
|
+
if (message.readyAt !== void 0) {
|
|
34882
|
+
writer.uint32(105).double(message.readyAt);
|
|
34883
|
+
}
|
|
34175
34884
|
return writer;
|
|
34176
34885
|
},
|
|
34177
34886
|
decode(input, length) {
|
|
@@ -34258,6 +34967,13 @@ var SandboxInfo = {
|
|
|
34258
34967
|
message.idleTimeoutSecs = reader.uint32();
|
|
34259
34968
|
continue;
|
|
34260
34969
|
}
|
|
34970
|
+
case 13: {
|
|
34971
|
+
if (tag !== 105) {
|
|
34972
|
+
break;
|
|
34973
|
+
}
|
|
34974
|
+
message.readyAt = reader.double();
|
|
34975
|
+
continue;
|
|
34976
|
+
}
|
|
34261
34977
|
}
|
|
34262
34978
|
if ((tag & 7) === 4 || tag === 0) {
|
|
34263
34979
|
break;
|
|
@@ -34278,7 +34994,8 @@ var SandboxInfo = {
|
|
|
34278
34994
|
resourceInfo: isSet4(object.resourceInfo) ? ResourceInfo.fromJSON(object.resourceInfo) : void 0,
|
|
34279
34995
|
regions: globalThis.Array.isArray(object?.regions) ? object.regions.map((e) => globalThis.String(e)) : [],
|
|
34280
34996
|
timeoutSecs: isSet4(object.timeoutSecs) ? globalThis.Number(object.timeoutSecs) : 0,
|
|
34281
|
-
idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0
|
|
34997
|
+
idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0,
|
|
34998
|
+
readyAt: isSet4(object.readyAt) ? globalThis.Number(object.readyAt) : void 0
|
|
34282
34999
|
};
|
|
34283
35000
|
},
|
|
34284
35001
|
toJSON(message) {
|
|
@@ -34316,6 +35033,9 @@ var SandboxInfo = {
|
|
|
34316
35033
|
if (message.idleTimeoutSecs !== void 0) {
|
|
34317
35034
|
obj.idleTimeoutSecs = Math.round(message.idleTimeoutSecs);
|
|
34318
35035
|
}
|
|
35036
|
+
if (message.readyAt !== void 0) {
|
|
35037
|
+
obj.readyAt = message.readyAt;
|
|
35038
|
+
}
|
|
34319
35039
|
return obj;
|
|
34320
35040
|
},
|
|
34321
35041
|
create(base) {
|
|
@@ -34334,6 +35054,7 @@ var SandboxInfo = {
|
|
|
34334
35054
|
message.regions = object.regions?.map((e) => e) || [];
|
|
34335
35055
|
message.timeoutSecs = object.timeoutSecs ?? 0;
|
|
34336
35056
|
message.idleTimeoutSecs = object.idleTimeoutSecs ?? void 0;
|
|
35057
|
+
message.readyAt = object.readyAt ?? void 0;
|
|
34337
35058
|
return message;
|
|
34338
35059
|
}
|
|
34339
35060
|
};
|
|
@@ -35892,6 +36613,125 @@ var SandboxWaitResponse = {
|
|
|
35892
36613
|
return message;
|
|
35893
36614
|
}
|
|
35894
36615
|
};
|
|
36616
|
+
function createBaseSandboxWaitUntilReadyRequest() {
|
|
36617
|
+
return { sandboxId: "", timeout: 0 };
|
|
36618
|
+
}
|
|
36619
|
+
var SandboxWaitUntilReadyRequest = {
|
|
36620
|
+
encode(message, writer = new BinaryWriter()) {
|
|
36621
|
+
if (message.sandboxId !== "") {
|
|
36622
|
+
writer.uint32(10).string(message.sandboxId);
|
|
36623
|
+
}
|
|
36624
|
+
if (message.timeout !== 0) {
|
|
36625
|
+
writer.uint32(21).float(message.timeout);
|
|
36626
|
+
}
|
|
36627
|
+
return writer;
|
|
36628
|
+
},
|
|
36629
|
+
decode(input, length) {
|
|
36630
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
36631
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
36632
|
+
const message = createBaseSandboxWaitUntilReadyRequest();
|
|
36633
|
+
while (reader.pos < end) {
|
|
36634
|
+
const tag = reader.uint32();
|
|
36635
|
+
switch (tag >>> 3) {
|
|
36636
|
+
case 1: {
|
|
36637
|
+
if (tag !== 10) {
|
|
36638
|
+
break;
|
|
36639
|
+
}
|
|
36640
|
+
message.sandboxId = reader.string();
|
|
36641
|
+
continue;
|
|
36642
|
+
}
|
|
36643
|
+
case 2: {
|
|
36644
|
+
if (tag !== 21) {
|
|
36645
|
+
break;
|
|
36646
|
+
}
|
|
36647
|
+
message.timeout = reader.float();
|
|
36648
|
+
continue;
|
|
36649
|
+
}
|
|
36650
|
+
}
|
|
36651
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36652
|
+
break;
|
|
36653
|
+
}
|
|
36654
|
+
reader.skip(tag & 7);
|
|
36655
|
+
}
|
|
36656
|
+
return message;
|
|
36657
|
+
},
|
|
36658
|
+
fromJSON(object) {
|
|
36659
|
+
return {
|
|
36660
|
+
sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
36661
|
+
timeout: isSet4(object.timeout) ? globalThis.Number(object.timeout) : 0
|
|
36662
|
+
};
|
|
36663
|
+
},
|
|
36664
|
+
toJSON(message) {
|
|
36665
|
+
const obj = {};
|
|
36666
|
+
if (message.sandboxId !== "") {
|
|
36667
|
+
obj.sandboxId = message.sandboxId;
|
|
36668
|
+
}
|
|
36669
|
+
if (message.timeout !== 0) {
|
|
36670
|
+
obj.timeout = message.timeout;
|
|
36671
|
+
}
|
|
36672
|
+
return obj;
|
|
36673
|
+
},
|
|
36674
|
+
create(base) {
|
|
36675
|
+
return SandboxWaitUntilReadyRequest.fromPartial(base ?? {});
|
|
36676
|
+
},
|
|
36677
|
+
fromPartial(object) {
|
|
36678
|
+
const message = createBaseSandboxWaitUntilReadyRequest();
|
|
36679
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
36680
|
+
message.timeout = object.timeout ?? 0;
|
|
36681
|
+
return message;
|
|
36682
|
+
}
|
|
36683
|
+
};
|
|
36684
|
+
function createBaseSandboxWaitUntilReadyResponse() {
|
|
36685
|
+
return { readyAt: 0 };
|
|
36686
|
+
}
|
|
36687
|
+
var SandboxWaitUntilReadyResponse = {
|
|
36688
|
+
encode(message, writer = new BinaryWriter()) {
|
|
36689
|
+
if (message.readyAt !== 0) {
|
|
36690
|
+
writer.uint32(9).double(message.readyAt);
|
|
36691
|
+
}
|
|
36692
|
+
return writer;
|
|
36693
|
+
},
|
|
36694
|
+
decode(input, length) {
|
|
36695
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
36696
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
36697
|
+
const message = createBaseSandboxWaitUntilReadyResponse();
|
|
36698
|
+
while (reader.pos < end) {
|
|
36699
|
+
const tag = reader.uint32();
|
|
36700
|
+
switch (tag >>> 3) {
|
|
36701
|
+
case 1: {
|
|
36702
|
+
if (tag !== 9) {
|
|
36703
|
+
break;
|
|
36704
|
+
}
|
|
36705
|
+
message.readyAt = reader.double();
|
|
36706
|
+
continue;
|
|
36707
|
+
}
|
|
36708
|
+
}
|
|
36709
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36710
|
+
break;
|
|
36711
|
+
}
|
|
36712
|
+
reader.skip(tag & 7);
|
|
36713
|
+
}
|
|
36714
|
+
return message;
|
|
36715
|
+
},
|
|
36716
|
+
fromJSON(object) {
|
|
36717
|
+
return { readyAt: isSet4(object.readyAt) ? globalThis.Number(object.readyAt) : 0 };
|
|
36718
|
+
},
|
|
36719
|
+
toJSON(message) {
|
|
36720
|
+
const obj = {};
|
|
36721
|
+
if (message.readyAt !== 0) {
|
|
36722
|
+
obj.readyAt = message.readyAt;
|
|
36723
|
+
}
|
|
36724
|
+
return obj;
|
|
36725
|
+
},
|
|
36726
|
+
create(base) {
|
|
36727
|
+
return SandboxWaitUntilReadyResponse.fromPartial(base ?? {});
|
|
36728
|
+
},
|
|
36729
|
+
fromPartial(object) {
|
|
36730
|
+
const message = createBaseSandboxWaitUntilReadyResponse();
|
|
36731
|
+
message.readyAt = object.readyAt ?? 0;
|
|
36732
|
+
return message;
|
|
36733
|
+
}
|
|
36734
|
+
};
|
|
35895
36735
|
function createBaseSchedule() {
|
|
35896
36736
|
return { cron: void 0, period: void 0 };
|
|
35897
36737
|
}
|
|
@@ -38643,6 +39483,125 @@ var TaskGetCommandRouterAccessResponse = {
|
|
|
38643
39483
|
return message;
|
|
38644
39484
|
}
|
|
38645
39485
|
};
|
|
39486
|
+
function createBaseTaskGetInfoRequest() {
|
|
39487
|
+
return { taskId: "" };
|
|
39488
|
+
}
|
|
39489
|
+
var TaskGetInfoRequest = {
|
|
39490
|
+
encode(message, writer = new BinaryWriter()) {
|
|
39491
|
+
if (message.taskId !== "") {
|
|
39492
|
+
writer.uint32(10).string(message.taskId);
|
|
39493
|
+
}
|
|
39494
|
+
return writer;
|
|
39495
|
+
},
|
|
39496
|
+
decode(input, length) {
|
|
39497
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
39498
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
39499
|
+
const message = createBaseTaskGetInfoRequest();
|
|
39500
|
+
while (reader.pos < end) {
|
|
39501
|
+
const tag = reader.uint32();
|
|
39502
|
+
switch (tag >>> 3) {
|
|
39503
|
+
case 1: {
|
|
39504
|
+
if (tag !== 10) {
|
|
39505
|
+
break;
|
|
39506
|
+
}
|
|
39507
|
+
message.taskId = reader.string();
|
|
39508
|
+
continue;
|
|
39509
|
+
}
|
|
39510
|
+
}
|
|
39511
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39512
|
+
break;
|
|
39513
|
+
}
|
|
39514
|
+
reader.skip(tag & 7);
|
|
39515
|
+
}
|
|
39516
|
+
return message;
|
|
39517
|
+
},
|
|
39518
|
+
fromJSON(object) {
|
|
39519
|
+
return { taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "" };
|
|
39520
|
+
},
|
|
39521
|
+
toJSON(message) {
|
|
39522
|
+
const obj = {};
|
|
39523
|
+
if (message.taskId !== "") {
|
|
39524
|
+
obj.taskId = message.taskId;
|
|
39525
|
+
}
|
|
39526
|
+
return obj;
|
|
39527
|
+
},
|
|
39528
|
+
create(base) {
|
|
39529
|
+
return TaskGetInfoRequest.fromPartial(base ?? {});
|
|
39530
|
+
},
|
|
39531
|
+
fromPartial(object) {
|
|
39532
|
+
const message = createBaseTaskGetInfoRequest();
|
|
39533
|
+
message.taskId = object.taskId ?? "";
|
|
39534
|
+
return message;
|
|
39535
|
+
}
|
|
39536
|
+
};
|
|
39537
|
+
function createBaseTaskGetInfoResponse() {
|
|
39538
|
+
return { appId: "", info: void 0 };
|
|
39539
|
+
}
|
|
39540
|
+
var TaskGetInfoResponse = {
|
|
39541
|
+
encode(message, writer = new BinaryWriter()) {
|
|
39542
|
+
if (message.appId !== "") {
|
|
39543
|
+
writer.uint32(10).string(message.appId);
|
|
39544
|
+
}
|
|
39545
|
+
if (message.info !== void 0) {
|
|
39546
|
+
TaskInfo.encode(message.info, writer.uint32(18).fork()).join();
|
|
39547
|
+
}
|
|
39548
|
+
return writer;
|
|
39549
|
+
},
|
|
39550
|
+
decode(input, length) {
|
|
39551
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
39552
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
39553
|
+
const message = createBaseTaskGetInfoResponse();
|
|
39554
|
+
while (reader.pos < end) {
|
|
39555
|
+
const tag = reader.uint32();
|
|
39556
|
+
switch (tag >>> 3) {
|
|
39557
|
+
case 1: {
|
|
39558
|
+
if (tag !== 10) {
|
|
39559
|
+
break;
|
|
39560
|
+
}
|
|
39561
|
+
message.appId = reader.string();
|
|
39562
|
+
continue;
|
|
39563
|
+
}
|
|
39564
|
+
case 2: {
|
|
39565
|
+
if (tag !== 18) {
|
|
39566
|
+
break;
|
|
39567
|
+
}
|
|
39568
|
+
message.info = TaskInfo.decode(reader, reader.uint32());
|
|
39569
|
+
continue;
|
|
39570
|
+
}
|
|
39571
|
+
}
|
|
39572
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39573
|
+
break;
|
|
39574
|
+
}
|
|
39575
|
+
reader.skip(tag & 7);
|
|
39576
|
+
}
|
|
39577
|
+
return message;
|
|
39578
|
+
},
|
|
39579
|
+
fromJSON(object) {
|
|
39580
|
+
return {
|
|
39581
|
+
appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
|
|
39582
|
+
info: isSet4(object.info) ? TaskInfo.fromJSON(object.info) : void 0
|
|
39583
|
+
};
|
|
39584
|
+
},
|
|
39585
|
+
toJSON(message) {
|
|
39586
|
+
const obj = {};
|
|
39587
|
+
if (message.appId !== "") {
|
|
39588
|
+
obj.appId = message.appId;
|
|
39589
|
+
}
|
|
39590
|
+
if (message.info !== void 0) {
|
|
39591
|
+
obj.info = TaskInfo.toJSON(message.info);
|
|
39592
|
+
}
|
|
39593
|
+
return obj;
|
|
39594
|
+
},
|
|
39595
|
+
create(base) {
|
|
39596
|
+
return TaskGetInfoResponse.fromPartial(base ?? {});
|
|
39597
|
+
},
|
|
39598
|
+
fromPartial(object) {
|
|
39599
|
+
const message = createBaseTaskGetInfoResponse();
|
|
39600
|
+
message.appId = object.appId ?? "";
|
|
39601
|
+
message.info = object.info !== void 0 && object.info !== null ? TaskInfo.fromPartial(object.info) : void 0;
|
|
39602
|
+
return message;
|
|
39603
|
+
}
|
|
39604
|
+
};
|
|
38646
39605
|
function createBaseTaskInfo() {
|
|
38647
39606
|
return {
|
|
38648
39607
|
id: "",
|
|
@@ -38956,7 +39915,9 @@ function createBaseTaskLogs() {
|
|
|
38956
39915
|
taskProgress: void 0,
|
|
38957
39916
|
functionCallId: "",
|
|
38958
39917
|
inputId: "",
|
|
38959
|
-
timestampNs: 0
|
|
39918
|
+
timestampNs: 0,
|
|
39919
|
+
containerId: "",
|
|
39920
|
+
containerName: ""
|
|
38960
39921
|
};
|
|
38961
39922
|
}
|
|
38962
39923
|
var TaskLogs = {
|
|
@@ -38985,6 +39946,12 @@ var TaskLogs = {
|
|
|
38985
39946
|
if (message.timestampNs !== 0) {
|
|
38986
39947
|
writer.uint32(96).uint64(message.timestampNs);
|
|
38987
39948
|
}
|
|
39949
|
+
if (message.containerId !== "") {
|
|
39950
|
+
writer.uint32(106).string(message.containerId);
|
|
39951
|
+
}
|
|
39952
|
+
if (message.containerName !== "") {
|
|
39953
|
+
writer.uint32(114).string(message.containerName);
|
|
39954
|
+
}
|
|
38988
39955
|
return writer;
|
|
38989
39956
|
},
|
|
38990
39957
|
decode(input, length) {
|
|
@@ -39050,6 +40017,20 @@ var TaskLogs = {
|
|
|
39050
40017
|
message.timestampNs = longToNumber2(reader.uint64());
|
|
39051
40018
|
continue;
|
|
39052
40019
|
}
|
|
40020
|
+
case 13: {
|
|
40021
|
+
if (tag !== 106) {
|
|
40022
|
+
break;
|
|
40023
|
+
}
|
|
40024
|
+
message.containerId = reader.string();
|
|
40025
|
+
continue;
|
|
40026
|
+
}
|
|
40027
|
+
case 14: {
|
|
40028
|
+
if (tag !== 114) {
|
|
40029
|
+
break;
|
|
40030
|
+
}
|
|
40031
|
+
message.containerName = reader.string();
|
|
40032
|
+
continue;
|
|
40033
|
+
}
|
|
39053
40034
|
}
|
|
39054
40035
|
if ((tag & 7) === 4 || tag === 0) {
|
|
39055
40036
|
break;
|
|
@@ -39067,7 +40048,9 @@ var TaskLogs = {
|
|
|
39067
40048
|
taskProgress: isSet4(object.taskProgress) ? TaskProgress.fromJSON(object.taskProgress) : void 0,
|
|
39068
40049
|
functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
39069
40050
|
inputId: isSet4(object.inputId) ? globalThis.String(object.inputId) : "",
|
|
39070
|
-
timestampNs: isSet4(object.timestampNs) ? globalThis.Number(object.timestampNs) : 0
|
|
40051
|
+
timestampNs: isSet4(object.timestampNs) ? globalThis.Number(object.timestampNs) : 0,
|
|
40052
|
+
containerId: isSet4(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
40053
|
+
containerName: isSet4(object.containerName) ? globalThis.String(object.containerName) : ""
|
|
39071
40054
|
};
|
|
39072
40055
|
},
|
|
39073
40056
|
toJSON(message) {
|
|
@@ -39096,6 +40079,12 @@ var TaskLogs = {
|
|
|
39096
40079
|
if (message.timestampNs !== 0) {
|
|
39097
40080
|
obj.timestampNs = Math.round(message.timestampNs);
|
|
39098
40081
|
}
|
|
40082
|
+
if (message.containerId !== "") {
|
|
40083
|
+
obj.containerId = message.containerId;
|
|
40084
|
+
}
|
|
40085
|
+
if (message.containerName !== "") {
|
|
40086
|
+
obj.containerName = message.containerName;
|
|
40087
|
+
}
|
|
39099
40088
|
return obj;
|
|
39100
40089
|
},
|
|
39101
40090
|
create(base) {
|
|
@@ -39111,6 +40100,8 @@ var TaskLogs = {
|
|
|
39111
40100
|
message.functionCallId = object.functionCallId ?? "";
|
|
39112
40101
|
message.inputId = object.inputId ?? "";
|
|
39113
40102
|
message.timestampNs = object.timestampNs ?? 0;
|
|
40103
|
+
message.containerId = object.containerId ?? "";
|
|
40104
|
+
message.containerName = object.containerName ?? "";
|
|
39114
40105
|
return message;
|
|
39115
40106
|
}
|
|
39116
40107
|
};
|
|
@@ -39704,6 +40695,179 @@ var TaskTemplate = {
|
|
|
39704
40695
|
return message;
|
|
39705
40696
|
}
|
|
39706
40697
|
};
|
|
40698
|
+
function createBaseTemplateListRequest() {
|
|
40699
|
+
return {};
|
|
40700
|
+
}
|
|
40701
|
+
var TemplateListRequest = {
|
|
40702
|
+
encode(_, writer = new BinaryWriter()) {
|
|
40703
|
+
return writer;
|
|
40704
|
+
},
|
|
40705
|
+
decode(input, length) {
|
|
40706
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
40707
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
40708
|
+
const message = createBaseTemplateListRequest();
|
|
40709
|
+
while (reader.pos < end) {
|
|
40710
|
+
const tag = reader.uint32();
|
|
40711
|
+
switch (tag >>> 3) {
|
|
40712
|
+
}
|
|
40713
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40714
|
+
break;
|
|
40715
|
+
}
|
|
40716
|
+
reader.skip(tag & 7);
|
|
40717
|
+
}
|
|
40718
|
+
return message;
|
|
40719
|
+
},
|
|
40720
|
+
fromJSON(_) {
|
|
40721
|
+
return {};
|
|
40722
|
+
},
|
|
40723
|
+
toJSON(_) {
|
|
40724
|
+
const obj = {};
|
|
40725
|
+
return obj;
|
|
40726
|
+
},
|
|
40727
|
+
create(base) {
|
|
40728
|
+
return TemplateListRequest.fromPartial(base ?? {});
|
|
40729
|
+
},
|
|
40730
|
+
fromPartial(_) {
|
|
40731
|
+
const message = createBaseTemplateListRequest();
|
|
40732
|
+
return message;
|
|
40733
|
+
}
|
|
40734
|
+
};
|
|
40735
|
+
function createBaseTemplateListResponse() {
|
|
40736
|
+
return { items: [] };
|
|
40737
|
+
}
|
|
40738
|
+
var TemplateListResponse = {
|
|
40739
|
+
encode(message, writer = new BinaryWriter()) {
|
|
40740
|
+
for (const v of message.items) {
|
|
40741
|
+
TemplateListResponse_TemplateListItem.encode(v, writer.uint32(10).fork()).join();
|
|
40742
|
+
}
|
|
40743
|
+
return writer;
|
|
40744
|
+
},
|
|
40745
|
+
decode(input, length) {
|
|
40746
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
40747
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
40748
|
+
const message = createBaseTemplateListResponse();
|
|
40749
|
+
while (reader.pos < end) {
|
|
40750
|
+
const tag = reader.uint32();
|
|
40751
|
+
switch (tag >>> 3) {
|
|
40752
|
+
case 1: {
|
|
40753
|
+
if (tag !== 10) {
|
|
40754
|
+
break;
|
|
40755
|
+
}
|
|
40756
|
+
message.items.push(TemplateListResponse_TemplateListItem.decode(reader, reader.uint32()));
|
|
40757
|
+
continue;
|
|
40758
|
+
}
|
|
40759
|
+
}
|
|
40760
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40761
|
+
break;
|
|
40762
|
+
}
|
|
40763
|
+
reader.skip(tag & 7);
|
|
40764
|
+
}
|
|
40765
|
+
return message;
|
|
40766
|
+
},
|
|
40767
|
+
fromJSON(object) {
|
|
40768
|
+
return {
|
|
40769
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => TemplateListResponse_TemplateListItem.fromJSON(e)) : []
|
|
40770
|
+
};
|
|
40771
|
+
},
|
|
40772
|
+
toJSON(message) {
|
|
40773
|
+
const obj = {};
|
|
40774
|
+
if (message.items?.length) {
|
|
40775
|
+
obj.items = message.items.map((e) => TemplateListResponse_TemplateListItem.toJSON(e));
|
|
40776
|
+
}
|
|
40777
|
+
return obj;
|
|
40778
|
+
},
|
|
40779
|
+
create(base) {
|
|
40780
|
+
return TemplateListResponse.fromPartial(base ?? {});
|
|
40781
|
+
},
|
|
40782
|
+
fromPartial(object) {
|
|
40783
|
+
const message = createBaseTemplateListResponse();
|
|
40784
|
+
message.items = object.items?.map((e) => TemplateListResponse_TemplateListItem.fromPartial(e)) || [];
|
|
40785
|
+
return message;
|
|
40786
|
+
}
|
|
40787
|
+
};
|
|
40788
|
+
function createBaseTemplateListResponse_TemplateListItem() {
|
|
40789
|
+
return { name: "", repo: "", ref: "" };
|
|
40790
|
+
}
|
|
40791
|
+
var TemplateListResponse_TemplateListItem = {
|
|
40792
|
+
encode(message, writer = new BinaryWriter()) {
|
|
40793
|
+
if (message.name !== "") {
|
|
40794
|
+
writer.uint32(10).string(message.name);
|
|
40795
|
+
}
|
|
40796
|
+
if (message.repo !== "") {
|
|
40797
|
+
writer.uint32(18).string(message.repo);
|
|
40798
|
+
}
|
|
40799
|
+
if (message.ref !== "") {
|
|
40800
|
+
writer.uint32(26).string(message.ref);
|
|
40801
|
+
}
|
|
40802
|
+
return writer;
|
|
40803
|
+
},
|
|
40804
|
+
decode(input, length) {
|
|
40805
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
40806
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
40807
|
+
const message = createBaseTemplateListResponse_TemplateListItem();
|
|
40808
|
+
while (reader.pos < end) {
|
|
40809
|
+
const tag = reader.uint32();
|
|
40810
|
+
switch (tag >>> 3) {
|
|
40811
|
+
case 1: {
|
|
40812
|
+
if (tag !== 10) {
|
|
40813
|
+
break;
|
|
40814
|
+
}
|
|
40815
|
+
message.name = reader.string();
|
|
40816
|
+
continue;
|
|
40817
|
+
}
|
|
40818
|
+
case 2: {
|
|
40819
|
+
if (tag !== 18) {
|
|
40820
|
+
break;
|
|
40821
|
+
}
|
|
40822
|
+
message.repo = reader.string();
|
|
40823
|
+
continue;
|
|
40824
|
+
}
|
|
40825
|
+
case 3: {
|
|
40826
|
+
if (tag !== 26) {
|
|
40827
|
+
break;
|
|
40828
|
+
}
|
|
40829
|
+
message.ref = reader.string();
|
|
40830
|
+
continue;
|
|
40831
|
+
}
|
|
40832
|
+
}
|
|
40833
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40834
|
+
break;
|
|
40835
|
+
}
|
|
40836
|
+
reader.skip(tag & 7);
|
|
40837
|
+
}
|
|
40838
|
+
return message;
|
|
40839
|
+
},
|
|
40840
|
+
fromJSON(object) {
|
|
40841
|
+
return {
|
|
40842
|
+
name: isSet4(object.name) ? globalThis.String(object.name) : "",
|
|
40843
|
+
repo: isSet4(object.repo) ? globalThis.String(object.repo) : "",
|
|
40844
|
+
ref: isSet4(object.ref) ? globalThis.String(object.ref) : ""
|
|
40845
|
+
};
|
|
40846
|
+
},
|
|
40847
|
+
toJSON(message) {
|
|
40848
|
+
const obj = {};
|
|
40849
|
+
if (message.name !== "") {
|
|
40850
|
+
obj.name = message.name;
|
|
40851
|
+
}
|
|
40852
|
+
if (message.repo !== "") {
|
|
40853
|
+
obj.repo = message.repo;
|
|
40854
|
+
}
|
|
40855
|
+
if (message.ref !== "") {
|
|
40856
|
+
obj.ref = message.ref;
|
|
40857
|
+
}
|
|
40858
|
+
return obj;
|
|
40859
|
+
},
|
|
40860
|
+
create(base) {
|
|
40861
|
+
return TemplateListResponse_TemplateListItem.fromPartial(base ?? {});
|
|
40862
|
+
},
|
|
40863
|
+
fromPartial(object) {
|
|
40864
|
+
const message = createBaseTemplateListResponse_TemplateListItem();
|
|
40865
|
+
message.name = object.name ?? "";
|
|
40866
|
+
message.repo = object.repo ?? "";
|
|
40867
|
+
message.ref = object.ref ?? "";
|
|
40868
|
+
return message;
|
|
40869
|
+
}
|
|
40870
|
+
};
|
|
39707
40871
|
function createBaseTokenFlowCreateRequest() {
|
|
39708
40872
|
return { utmSource: "", localhostPort: 0, nextUrl: "" };
|
|
39709
40873
|
}
|
|
@@ -44294,6 +45458,14 @@ var ModalClientDefinition = {
|
|
|
44294
45458
|
responseStream: false,
|
|
44295
45459
|
options: {}
|
|
44296
45460
|
},
|
|
45461
|
+
appGetLifecycle: {
|
|
45462
|
+
name: "AppGetLifecycle",
|
|
45463
|
+
requestType: AppGetLifecycleRequest,
|
|
45464
|
+
requestStream: false,
|
|
45465
|
+
responseType: AppGetLifecycleResponse,
|
|
45466
|
+
responseStream: false,
|
|
45467
|
+
options: {}
|
|
45468
|
+
},
|
|
44297
45469
|
appGetLogs: {
|
|
44298
45470
|
name: "AppGetLogs",
|
|
44299
45471
|
requestType: AppGetLogsRequest,
|
|
@@ -44366,6 +45538,14 @@ var ModalClientDefinition = {
|
|
|
44366
45538
|
responseStream: false,
|
|
44367
45539
|
options: {}
|
|
44368
45540
|
},
|
|
45541
|
+
appRollover: {
|
|
45542
|
+
name: "AppRollover",
|
|
45543
|
+
requestType: AppRolloverRequest,
|
|
45544
|
+
requestStream: false,
|
|
45545
|
+
responseType: AppRolloverResponse,
|
|
45546
|
+
responseStream: false,
|
|
45547
|
+
options: {}
|
|
45548
|
+
},
|
|
44369
45549
|
appSetObjects: {
|
|
44370
45550
|
name: "AppSetObjects",
|
|
44371
45551
|
requestType: AppSetObjectsRequest,
|
|
@@ -45221,6 +46401,14 @@ var ModalClientDefinition = {
|
|
|
45221
46401
|
responseStream: false,
|
|
45222
46402
|
options: {}
|
|
45223
46403
|
},
|
|
46404
|
+
sandboxGetCommandRouterAccess: {
|
|
46405
|
+
name: "SandboxGetCommandRouterAccess",
|
|
46406
|
+
requestType: SandboxGetCommandRouterAccessRequest,
|
|
46407
|
+
requestStream: false,
|
|
46408
|
+
responseType: SandboxGetCommandRouterAccessResponse,
|
|
46409
|
+
responseStream: false,
|
|
46410
|
+
options: {}
|
|
46411
|
+
},
|
|
45224
46412
|
sandboxGetFromName: {
|
|
45225
46413
|
name: "SandboxGetFromName",
|
|
45226
46414
|
requestType: SandboxGetFromNameRequest,
|
|
@@ -45254,6 +46442,14 @@ var ModalClientDefinition = {
|
|
|
45254
46442
|
responseStream: false,
|
|
45255
46443
|
options: {}
|
|
45256
46444
|
},
|
|
46445
|
+
sandboxGetTaskIdV2: {
|
|
46446
|
+
name: "SandboxGetTaskIdV2",
|
|
46447
|
+
requestType: SandboxGetTaskIdRequest,
|
|
46448
|
+
requestStream: false,
|
|
46449
|
+
responseType: SandboxGetTaskIdResponse,
|
|
46450
|
+
responseStream: false,
|
|
46451
|
+
options: {}
|
|
46452
|
+
},
|
|
45257
46453
|
sandboxGetTunnels: {
|
|
45258
46454
|
name: "SandboxGetTunnels",
|
|
45259
46455
|
requestType: SandboxGetTunnelsRequest,
|
|
@@ -45262,6 +46458,14 @@ var ModalClientDefinition = {
|
|
|
45262
46458
|
responseStream: false,
|
|
45263
46459
|
options: {}
|
|
45264
46460
|
},
|
|
46461
|
+
sandboxGetTunnelsV2: {
|
|
46462
|
+
name: "SandboxGetTunnelsV2",
|
|
46463
|
+
requestType: SandboxGetTunnelsRequest,
|
|
46464
|
+
requestStream: false,
|
|
46465
|
+
responseType: SandboxGetTunnelsResponse,
|
|
46466
|
+
responseStream: false,
|
|
46467
|
+
options: {}
|
|
46468
|
+
},
|
|
45265
46469
|
sandboxList: {
|
|
45266
46470
|
name: "SandboxList",
|
|
45267
46471
|
requestType: SandboxListRequest,
|
|
@@ -45358,6 +46562,14 @@ var ModalClientDefinition = {
|
|
|
45358
46562
|
responseStream: false,
|
|
45359
46563
|
options: {}
|
|
45360
46564
|
},
|
|
46565
|
+
sandboxTerminateV2: {
|
|
46566
|
+
name: "SandboxTerminateV2",
|
|
46567
|
+
requestType: SandboxTerminateRequest,
|
|
46568
|
+
requestStream: false,
|
|
46569
|
+
responseType: SandboxTerminateResponse,
|
|
46570
|
+
responseStream: false,
|
|
46571
|
+
options: {}
|
|
46572
|
+
},
|
|
45361
46573
|
sandboxWait: {
|
|
45362
46574
|
name: "SandboxWait",
|
|
45363
46575
|
requestType: SandboxWaitRequest,
|
|
@@ -45366,6 +46578,22 @@ var ModalClientDefinition = {
|
|
|
45366
46578
|
responseStream: false,
|
|
45367
46579
|
options: {}
|
|
45368
46580
|
},
|
|
46581
|
+
sandboxWaitUntilReady: {
|
|
46582
|
+
name: "SandboxWaitUntilReady",
|
|
46583
|
+
requestType: SandboxWaitUntilReadyRequest,
|
|
46584
|
+
requestStream: false,
|
|
46585
|
+
responseType: SandboxWaitUntilReadyResponse,
|
|
46586
|
+
responseStream: false,
|
|
46587
|
+
options: {}
|
|
46588
|
+
},
|
|
46589
|
+
sandboxWaitV2: {
|
|
46590
|
+
name: "SandboxWaitV2",
|
|
46591
|
+
requestType: SandboxWaitRequest,
|
|
46592
|
+
requestStream: false,
|
|
46593
|
+
responseType: SandboxWaitResponse,
|
|
46594
|
+
responseStream: false,
|
|
46595
|
+
options: {}
|
|
46596
|
+
},
|
|
45369
46597
|
/** Secrets */
|
|
45370
46598
|
secretDelete: {
|
|
45371
46599
|
name: "SecretDelete",
|
|
@@ -45497,6 +46725,14 @@ var ModalClientDefinition = {
|
|
|
45497
46725
|
responseStream: false,
|
|
45498
46726
|
options: {}
|
|
45499
46727
|
},
|
|
46728
|
+
taskGetInfo: {
|
|
46729
|
+
name: "TaskGetInfo",
|
|
46730
|
+
requestType: TaskGetInfoRequest,
|
|
46731
|
+
requestStream: false,
|
|
46732
|
+
responseType: TaskGetInfoResponse,
|
|
46733
|
+
responseStream: false,
|
|
46734
|
+
options: {}
|
|
46735
|
+
},
|
|
45500
46736
|
taskList: {
|
|
45501
46737
|
name: "TaskList",
|
|
45502
46738
|
requestType: TaskListRequest,
|
|
@@ -45513,6 +46749,15 @@ var ModalClientDefinition = {
|
|
|
45513
46749
|
responseStream: false,
|
|
45514
46750
|
options: {}
|
|
45515
46751
|
},
|
|
46752
|
+
/** Templates */
|
|
46753
|
+
templateList: {
|
|
46754
|
+
name: "TemplateList",
|
|
46755
|
+
requestType: TemplateListRequest,
|
|
46756
|
+
requestStream: false,
|
|
46757
|
+
responseType: TemplateListResponse,
|
|
46758
|
+
responseStream: false,
|
|
46759
|
+
options: {}
|
|
46760
|
+
},
|
|
45516
46761
|
/** Tokens (web auth flow) */
|
|
45517
46762
|
tokenFlowCreate: {
|
|
45518
46763
|
name: "TokenFlowCreate",
|
|
@@ -45877,6 +47122,12 @@ var CloudBucketMount2 = class {
|
|
|
45877
47122
|
var import_nice_grpc3 = require("nice-grpc");
|
|
45878
47123
|
|
|
45879
47124
|
// src/errors.ts
|
|
47125
|
+
var TimeoutError = class extends Error {
|
|
47126
|
+
constructor(message = "Operation timed out") {
|
|
47127
|
+
super(message);
|
|
47128
|
+
this.name = "TimeoutError";
|
|
47129
|
+
}
|
|
47130
|
+
};
|
|
45880
47131
|
var FunctionTimeoutError = class extends Error {
|
|
45881
47132
|
constructor(message) {
|
|
45882
47133
|
super(message);
|
|
@@ -48082,6 +49333,894 @@ function taskExecStdoutConfigToJSON(object) {
|
|
|
48082
49333
|
return "UNRECOGNIZED";
|
|
48083
49334
|
}
|
|
48084
49335
|
}
|
|
49336
|
+
function createBaseTaskContainerCreateRequest() {
|
|
49337
|
+
return { taskId: "", containerName: "", imageId: "", args: [], env: {}, workdir: "", secretIds: [] };
|
|
49338
|
+
}
|
|
49339
|
+
var TaskContainerCreateRequest = {
|
|
49340
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49341
|
+
if (message.taskId !== "") {
|
|
49342
|
+
writer.uint32(10).string(message.taskId);
|
|
49343
|
+
}
|
|
49344
|
+
if (message.containerName !== "") {
|
|
49345
|
+
writer.uint32(18).string(message.containerName);
|
|
49346
|
+
}
|
|
49347
|
+
if (message.imageId !== "") {
|
|
49348
|
+
writer.uint32(26).string(message.imageId);
|
|
49349
|
+
}
|
|
49350
|
+
for (const v of message.args) {
|
|
49351
|
+
writer.uint32(42).string(v);
|
|
49352
|
+
}
|
|
49353
|
+
Object.entries(message.env).forEach(([key, value]) => {
|
|
49354
|
+
TaskContainerCreateRequest_EnvEntry.encode({ key, value }, writer.uint32(50).fork()).join();
|
|
49355
|
+
});
|
|
49356
|
+
if (message.workdir !== "") {
|
|
49357
|
+
writer.uint32(58).string(message.workdir);
|
|
49358
|
+
}
|
|
49359
|
+
for (const v of message.secretIds) {
|
|
49360
|
+
writer.uint32(66).string(v);
|
|
49361
|
+
}
|
|
49362
|
+
return writer;
|
|
49363
|
+
},
|
|
49364
|
+
decode(input, length) {
|
|
49365
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49366
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49367
|
+
const message = createBaseTaskContainerCreateRequest();
|
|
49368
|
+
while (reader.pos < end) {
|
|
49369
|
+
const tag = reader.uint32();
|
|
49370
|
+
switch (tag >>> 3) {
|
|
49371
|
+
case 1: {
|
|
49372
|
+
if (tag !== 10) {
|
|
49373
|
+
break;
|
|
49374
|
+
}
|
|
49375
|
+
message.taskId = reader.string();
|
|
49376
|
+
continue;
|
|
49377
|
+
}
|
|
49378
|
+
case 2: {
|
|
49379
|
+
if (tag !== 18) {
|
|
49380
|
+
break;
|
|
49381
|
+
}
|
|
49382
|
+
message.containerName = reader.string();
|
|
49383
|
+
continue;
|
|
49384
|
+
}
|
|
49385
|
+
case 3: {
|
|
49386
|
+
if (tag !== 26) {
|
|
49387
|
+
break;
|
|
49388
|
+
}
|
|
49389
|
+
message.imageId = reader.string();
|
|
49390
|
+
continue;
|
|
49391
|
+
}
|
|
49392
|
+
case 5: {
|
|
49393
|
+
if (tag !== 42) {
|
|
49394
|
+
break;
|
|
49395
|
+
}
|
|
49396
|
+
message.args.push(reader.string());
|
|
49397
|
+
continue;
|
|
49398
|
+
}
|
|
49399
|
+
case 6: {
|
|
49400
|
+
if (tag !== 50) {
|
|
49401
|
+
break;
|
|
49402
|
+
}
|
|
49403
|
+
const entry6 = TaskContainerCreateRequest_EnvEntry.decode(reader, reader.uint32());
|
|
49404
|
+
if (entry6.value !== void 0) {
|
|
49405
|
+
message.env[entry6.key] = entry6.value;
|
|
49406
|
+
}
|
|
49407
|
+
continue;
|
|
49408
|
+
}
|
|
49409
|
+
case 7: {
|
|
49410
|
+
if (tag !== 58) {
|
|
49411
|
+
break;
|
|
49412
|
+
}
|
|
49413
|
+
message.workdir = reader.string();
|
|
49414
|
+
continue;
|
|
49415
|
+
}
|
|
49416
|
+
case 8: {
|
|
49417
|
+
if (tag !== 66) {
|
|
49418
|
+
break;
|
|
49419
|
+
}
|
|
49420
|
+
message.secretIds.push(reader.string());
|
|
49421
|
+
continue;
|
|
49422
|
+
}
|
|
49423
|
+
}
|
|
49424
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49425
|
+
break;
|
|
49426
|
+
}
|
|
49427
|
+
reader.skip(tag & 7);
|
|
49428
|
+
}
|
|
49429
|
+
return message;
|
|
49430
|
+
},
|
|
49431
|
+
fromJSON(object) {
|
|
49432
|
+
return {
|
|
49433
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
49434
|
+
containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
|
|
49435
|
+
imageId: isSet5(object.imageId) ? globalThis.String(object.imageId) : "",
|
|
49436
|
+
args: globalThis.Array.isArray(object?.args) ? object.args.map((e) => globalThis.String(e)) : [],
|
|
49437
|
+
env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
|
|
49438
|
+
acc[key] = String(value);
|
|
49439
|
+
return acc;
|
|
49440
|
+
}, {}) : {},
|
|
49441
|
+
workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : "",
|
|
49442
|
+
secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : []
|
|
49443
|
+
};
|
|
49444
|
+
},
|
|
49445
|
+
toJSON(message) {
|
|
49446
|
+
const obj = {};
|
|
49447
|
+
if (message.taskId !== "") {
|
|
49448
|
+
obj.taskId = message.taskId;
|
|
49449
|
+
}
|
|
49450
|
+
if (message.containerName !== "") {
|
|
49451
|
+
obj.containerName = message.containerName;
|
|
49452
|
+
}
|
|
49453
|
+
if (message.imageId !== "") {
|
|
49454
|
+
obj.imageId = message.imageId;
|
|
49455
|
+
}
|
|
49456
|
+
if (message.args?.length) {
|
|
49457
|
+
obj.args = message.args;
|
|
49458
|
+
}
|
|
49459
|
+
if (message.env) {
|
|
49460
|
+
const entries = Object.entries(message.env);
|
|
49461
|
+
if (entries.length > 0) {
|
|
49462
|
+
obj.env = {};
|
|
49463
|
+
entries.forEach(([k, v]) => {
|
|
49464
|
+
obj.env[k] = v;
|
|
49465
|
+
});
|
|
49466
|
+
}
|
|
49467
|
+
}
|
|
49468
|
+
if (message.workdir !== "") {
|
|
49469
|
+
obj.workdir = message.workdir;
|
|
49470
|
+
}
|
|
49471
|
+
if (message.secretIds?.length) {
|
|
49472
|
+
obj.secretIds = message.secretIds;
|
|
49473
|
+
}
|
|
49474
|
+
return obj;
|
|
49475
|
+
},
|
|
49476
|
+
create(base) {
|
|
49477
|
+
return TaskContainerCreateRequest.fromPartial(base ?? {});
|
|
49478
|
+
},
|
|
49479
|
+
fromPartial(object) {
|
|
49480
|
+
const message = createBaseTaskContainerCreateRequest();
|
|
49481
|
+
message.taskId = object.taskId ?? "";
|
|
49482
|
+
message.containerName = object.containerName ?? "";
|
|
49483
|
+
message.imageId = object.imageId ?? "";
|
|
49484
|
+
message.args = object.args?.map((e) => e) || [];
|
|
49485
|
+
message.env = Object.entries(object.env ?? {}).reduce((acc, [key, value]) => {
|
|
49486
|
+
if (value !== void 0) {
|
|
49487
|
+
acc[key] = globalThis.String(value);
|
|
49488
|
+
}
|
|
49489
|
+
return acc;
|
|
49490
|
+
}, {});
|
|
49491
|
+
message.workdir = object.workdir ?? "";
|
|
49492
|
+
message.secretIds = object.secretIds?.map((e) => e) || [];
|
|
49493
|
+
return message;
|
|
49494
|
+
}
|
|
49495
|
+
};
|
|
49496
|
+
function createBaseTaskContainerCreateRequest_EnvEntry() {
|
|
49497
|
+
return { key: "", value: "" };
|
|
49498
|
+
}
|
|
49499
|
+
var TaskContainerCreateRequest_EnvEntry = {
|
|
49500
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49501
|
+
if (message.key !== "") {
|
|
49502
|
+
writer.uint32(10).string(message.key);
|
|
49503
|
+
}
|
|
49504
|
+
if (message.value !== "") {
|
|
49505
|
+
writer.uint32(18).string(message.value);
|
|
49506
|
+
}
|
|
49507
|
+
return writer;
|
|
49508
|
+
},
|
|
49509
|
+
decode(input, length) {
|
|
49510
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49511
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49512
|
+
const message = createBaseTaskContainerCreateRequest_EnvEntry();
|
|
49513
|
+
while (reader.pos < end) {
|
|
49514
|
+
const tag = reader.uint32();
|
|
49515
|
+
switch (tag >>> 3) {
|
|
49516
|
+
case 1: {
|
|
49517
|
+
if (tag !== 10) {
|
|
49518
|
+
break;
|
|
49519
|
+
}
|
|
49520
|
+
message.key = reader.string();
|
|
49521
|
+
continue;
|
|
49522
|
+
}
|
|
49523
|
+
case 2: {
|
|
49524
|
+
if (tag !== 18) {
|
|
49525
|
+
break;
|
|
49526
|
+
}
|
|
49527
|
+
message.value = reader.string();
|
|
49528
|
+
continue;
|
|
49529
|
+
}
|
|
49530
|
+
}
|
|
49531
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49532
|
+
break;
|
|
49533
|
+
}
|
|
49534
|
+
reader.skip(tag & 7);
|
|
49535
|
+
}
|
|
49536
|
+
return message;
|
|
49537
|
+
},
|
|
49538
|
+
fromJSON(object) {
|
|
49539
|
+
return {
|
|
49540
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
49541
|
+
value: isSet5(object.value) ? globalThis.String(object.value) : ""
|
|
49542
|
+
};
|
|
49543
|
+
},
|
|
49544
|
+
toJSON(message) {
|
|
49545
|
+
const obj = {};
|
|
49546
|
+
if (message.key !== "") {
|
|
49547
|
+
obj.key = message.key;
|
|
49548
|
+
}
|
|
49549
|
+
if (message.value !== "") {
|
|
49550
|
+
obj.value = message.value;
|
|
49551
|
+
}
|
|
49552
|
+
return obj;
|
|
49553
|
+
},
|
|
49554
|
+
create(base) {
|
|
49555
|
+
return TaskContainerCreateRequest_EnvEntry.fromPartial(base ?? {});
|
|
49556
|
+
},
|
|
49557
|
+
fromPartial(object) {
|
|
49558
|
+
const message = createBaseTaskContainerCreateRequest_EnvEntry();
|
|
49559
|
+
message.key = object.key ?? "";
|
|
49560
|
+
message.value = object.value ?? "";
|
|
49561
|
+
return message;
|
|
49562
|
+
}
|
|
49563
|
+
};
|
|
49564
|
+
function createBaseTaskContainerCreateResponse() {
|
|
49565
|
+
return { containerId: "", containerName: "" };
|
|
49566
|
+
}
|
|
49567
|
+
var TaskContainerCreateResponse = {
|
|
49568
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49569
|
+
if (message.containerId !== "") {
|
|
49570
|
+
writer.uint32(10).string(message.containerId);
|
|
49571
|
+
}
|
|
49572
|
+
if (message.containerName !== "") {
|
|
49573
|
+
writer.uint32(18).string(message.containerName);
|
|
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 = createBaseTaskContainerCreateResponse();
|
|
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.containerId = reader.string();
|
|
49589
|
+
continue;
|
|
49590
|
+
}
|
|
49591
|
+
case 2: {
|
|
49592
|
+
if (tag !== 18) {
|
|
49593
|
+
break;
|
|
49594
|
+
}
|
|
49595
|
+
message.containerName = reader.string();
|
|
49596
|
+
continue;
|
|
49597
|
+
}
|
|
49598
|
+
}
|
|
49599
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49600
|
+
break;
|
|
49601
|
+
}
|
|
49602
|
+
reader.skip(tag & 7);
|
|
49603
|
+
}
|
|
49604
|
+
return message;
|
|
49605
|
+
},
|
|
49606
|
+
fromJSON(object) {
|
|
49607
|
+
return {
|
|
49608
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
49609
|
+
containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : ""
|
|
49610
|
+
};
|
|
49611
|
+
},
|
|
49612
|
+
toJSON(message) {
|
|
49613
|
+
const obj = {};
|
|
49614
|
+
if (message.containerId !== "") {
|
|
49615
|
+
obj.containerId = message.containerId;
|
|
49616
|
+
}
|
|
49617
|
+
if (message.containerName !== "") {
|
|
49618
|
+
obj.containerName = message.containerName;
|
|
49619
|
+
}
|
|
49620
|
+
return obj;
|
|
49621
|
+
},
|
|
49622
|
+
create(base) {
|
|
49623
|
+
return TaskContainerCreateResponse.fromPartial(base ?? {});
|
|
49624
|
+
},
|
|
49625
|
+
fromPartial(object) {
|
|
49626
|
+
const message = createBaseTaskContainerCreateResponse();
|
|
49627
|
+
message.containerId = object.containerId ?? "";
|
|
49628
|
+
message.containerName = object.containerName ?? "";
|
|
49629
|
+
return message;
|
|
49630
|
+
}
|
|
49631
|
+
};
|
|
49632
|
+
function createBaseTaskContainerGetRequest() {
|
|
49633
|
+
return { taskId: "", containerName: "", includeTerminated: false };
|
|
49634
|
+
}
|
|
49635
|
+
var TaskContainerGetRequest = {
|
|
49636
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49637
|
+
if (message.taskId !== "") {
|
|
49638
|
+
writer.uint32(10).string(message.taskId);
|
|
49639
|
+
}
|
|
49640
|
+
if (message.containerName !== "") {
|
|
49641
|
+
writer.uint32(18).string(message.containerName);
|
|
49642
|
+
}
|
|
49643
|
+
if (message.includeTerminated !== false) {
|
|
49644
|
+
writer.uint32(24).bool(message.includeTerminated);
|
|
49645
|
+
}
|
|
49646
|
+
return writer;
|
|
49647
|
+
},
|
|
49648
|
+
decode(input, length) {
|
|
49649
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49650
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49651
|
+
const message = createBaseTaskContainerGetRequest();
|
|
49652
|
+
while (reader.pos < end) {
|
|
49653
|
+
const tag = reader.uint32();
|
|
49654
|
+
switch (tag >>> 3) {
|
|
49655
|
+
case 1: {
|
|
49656
|
+
if (tag !== 10) {
|
|
49657
|
+
break;
|
|
49658
|
+
}
|
|
49659
|
+
message.taskId = reader.string();
|
|
49660
|
+
continue;
|
|
49661
|
+
}
|
|
49662
|
+
case 2: {
|
|
49663
|
+
if (tag !== 18) {
|
|
49664
|
+
break;
|
|
49665
|
+
}
|
|
49666
|
+
message.containerName = reader.string();
|
|
49667
|
+
continue;
|
|
49668
|
+
}
|
|
49669
|
+
case 3: {
|
|
49670
|
+
if (tag !== 24) {
|
|
49671
|
+
break;
|
|
49672
|
+
}
|
|
49673
|
+
message.includeTerminated = reader.bool();
|
|
49674
|
+
continue;
|
|
49675
|
+
}
|
|
49676
|
+
}
|
|
49677
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49678
|
+
break;
|
|
49679
|
+
}
|
|
49680
|
+
reader.skip(tag & 7);
|
|
49681
|
+
}
|
|
49682
|
+
return message;
|
|
49683
|
+
},
|
|
49684
|
+
fromJSON(object) {
|
|
49685
|
+
return {
|
|
49686
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
49687
|
+
containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
|
|
49688
|
+
includeTerminated: isSet5(object.includeTerminated) ? globalThis.Boolean(object.includeTerminated) : false
|
|
49689
|
+
};
|
|
49690
|
+
},
|
|
49691
|
+
toJSON(message) {
|
|
49692
|
+
const obj = {};
|
|
49693
|
+
if (message.taskId !== "") {
|
|
49694
|
+
obj.taskId = message.taskId;
|
|
49695
|
+
}
|
|
49696
|
+
if (message.containerName !== "") {
|
|
49697
|
+
obj.containerName = message.containerName;
|
|
49698
|
+
}
|
|
49699
|
+
if (message.includeTerminated !== false) {
|
|
49700
|
+
obj.includeTerminated = message.includeTerminated;
|
|
49701
|
+
}
|
|
49702
|
+
return obj;
|
|
49703
|
+
},
|
|
49704
|
+
create(base) {
|
|
49705
|
+
return TaskContainerGetRequest.fromPartial(base ?? {});
|
|
49706
|
+
},
|
|
49707
|
+
fromPartial(object) {
|
|
49708
|
+
const message = createBaseTaskContainerGetRequest();
|
|
49709
|
+
message.taskId = object.taskId ?? "";
|
|
49710
|
+
message.containerName = object.containerName ?? "";
|
|
49711
|
+
message.includeTerminated = object.includeTerminated ?? false;
|
|
49712
|
+
return message;
|
|
49713
|
+
}
|
|
49714
|
+
};
|
|
49715
|
+
function createBaseTaskContainerGetResponse() {
|
|
49716
|
+
return { container: void 0 };
|
|
49717
|
+
}
|
|
49718
|
+
var TaskContainerGetResponse = {
|
|
49719
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49720
|
+
if (message.container !== void 0) {
|
|
49721
|
+
TaskContainerInfo.encode(message.container, writer.uint32(10).fork()).join();
|
|
49722
|
+
}
|
|
49723
|
+
return writer;
|
|
49724
|
+
},
|
|
49725
|
+
decode(input, length) {
|
|
49726
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49727
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49728
|
+
const message = createBaseTaskContainerGetResponse();
|
|
49729
|
+
while (reader.pos < end) {
|
|
49730
|
+
const tag = reader.uint32();
|
|
49731
|
+
switch (tag >>> 3) {
|
|
49732
|
+
case 1: {
|
|
49733
|
+
if (tag !== 10) {
|
|
49734
|
+
break;
|
|
49735
|
+
}
|
|
49736
|
+
message.container = TaskContainerInfo.decode(reader, reader.uint32());
|
|
49737
|
+
continue;
|
|
49738
|
+
}
|
|
49739
|
+
}
|
|
49740
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49741
|
+
break;
|
|
49742
|
+
}
|
|
49743
|
+
reader.skip(tag & 7);
|
|
49744
|
+
}
|
|
49745
|
+
return message;
|
|
49746
|
+
},
|
|
49747
|
+
fromJSON(object) {
|
|
49748
|
+
return { container: isSet5(object.container) ? TaskContainerInfo.fromJSON(object.container) : void 0 };
|
|
49749
|
+
},
|
|
49750
|
+
toJSON(message) {
|
|
49751
|
+
const obj = {};
|
|
49752
|
+
if (message.container !== void 0) {
|
|
49753
|
+
obj.container = TaskContainerInfo.toJSON(message.container);
|
|
49754
|
+
}
|
|
49755
|
+
return obj;
|
|
49756
|
+
},
|
|
49757
|
+
create(base) {
|
|
49758
|
+
return TaskContainerGetResponse.fromPartial(base ?? {});
|
|
49759
|
+
},
|
|
49760
|
+
fromPartial(object) {
|
|
49761
|
+
const message = createBaseTaskContainerGetResponse();
|
|
49762
|
+
message.container = object.container !== void 0 && object.container !== null ? TaskContainerInfo.fromPartial(object.container) : void 0;
|
|
49763
|
+
return message;
|
|
49764
|
+
}
|
|
49765
|
+
};
|
|
49766
|
+
function createBaseTaskContainerInfo() {
|
|
49767
|
+
return { containerId: "", containerName: "", status: "", result: void 0 };
|
|
49768
|
+
}
|
|
49769
|
+
var TaskContainerInfo = {
|
|
49770
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49771
|
+
if (message.containerId !== "") {
|
|
49772
|
+
writer.uint32(10).string(message.containerId);
|
|
49773
|
+
}
|
|
49774
|
+
if (message.containerName !== "") {
|
|
49775
|
+
writer.uint32(18).string(message.containerName);
|
|
49776
|
+
}
|
|
49777
|
+
if (message.status !== "") {
|
|
49778
|
+
writer.uint32(26).string(message.status);
|
|
49779
|
+
}
|
|
49780
|
+
if (message.result !== void 0) {
|
|
49781
|
+
GenericResult.encode(message.result, writer.uint32(34).fork()).join();
|
|
49782
|
+
}
|
|
49783
|
+
return writer;
|
|
49784
|
+
},
|
|
49785
|
+
decode(input, length) {
|
|
49786
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49787
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49788
|
+
const message = createBaseTaskContainerInfo();
|
|
49789
|
+
while (reader.pos < end) {
|
|
49790
|
+
const tag = reader.uint32();
|
|
49791
|
+
switch (tag >>> 3) {
|
|
49792
|
+
case 1: {
|
|
49793
|
+
if (tag !== 10) {
|
|
49794
|
+
break;
|
|
49795
|
+
}
|
|
49796
|
+
message.containerId = reader.string();
|
|
49797
|
+
continue;
|
|
49798
|
+
}
|
|
49799
|
+
case 2: {
|
|
49800
|
+
if (tag !== 18) {
|
|
49801
|
+
break;
|
|
49802
|
+
}
|
|
49803
|
+
message.containerName = reader.string();
|
|
49804
|
+
continue;
|
|
49805
|
+
}
|
|
49806
|
+
case 3: {
|
|
49807
|
+
if (tag !== 26) {
|
|
49808
|
+
break;
|
|
49809
|
+
}
|
|
49810
|
+
message.status = reader.string();
|
|
49811
|
+
continue;
|
|
49812
|
+
}
|
|
49813
|
+
case 4: {
|
|
49814
|
+
if (tag !== 34) {
|
|
49815
|
+
break;
|
|
49816
|
+
}
|
|
49817
|
+
message.result = GenericResult.decode(reader, reader.uint32());
|
|
49818
|
+
continue;
|
|
49819
|
+
}
|
|
49820
|
+
}
|
|
49821
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49822
|
+
break;
|
|
49823
|
+
}
|
|
49824
|
+
reader.skip(tag & 7);
|
|
49825
|
+
}
|
|
49826
|
+
return message;
|
|
49827
|
+
},
|
|
49828
|
+
fromJSON(object) {
|
|
49829
|
+
return {
|
|
49830
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
49831
|
+
containerName: isSet5(object.containerName) ? globalThis.String(object.containerName) : "",
|
|
49832
|
+
status: isSet5(object.status) ? globalThis.String(object.status) : "",
|
|
49833
|
+
result: isSet5(object.result) ? GenericResult.fromJSON(object.result) : void 0
|
|
49834
|
+
};
|
|
49835
|
+
},
|
|
49836
|
+
toJSON(message) {
|
|
49837
|
+
const obj = {};
|
|
49838
|
+
if (message.containerId !== "") {
|
|
49839
|
+
obj.containerId = message.containerId;
|
|
49840
|
+
}
|
|
49841
|
+
if (message.containerName !== "") {
|
|
49842
|
+
obj.containerName = message.containerName;
|
|
49843
|
+
}
|
|
49844
|
+
if (message.status !== "") {
|
|
49845
|
+
obj.status = message.status;
|
|
49846
|
+
}
|
|
49847
|
+
if (message.result !== void 0) {
|
|
49848
|
+
obj.result = GenericResult.toJSON(message.result);
|
|
49849
|
+
}
|
|
49850
|
+
return obj;
|
|
49851
|
+
},
|
|
49852
|
+
create(base) {
|
|
49853
|
+
return TaskContainerInfo.fromPartial(base ?? {});
|
|
49854
|
+
},
|
|
49855
|
+
fromPartial(object) {
|
|
49856
|
+
const message = createBaseTaskContainerInfo();
|
|
49857
|
+
message.containerId = object.containerId ?? "";
|
|
49858
|
+
message.containerName = object.containerName ?? "";
|
|
49859
|
+
message.status = object.status ?? "";
|
|
49860
|
+
message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
|
|
49861
|
+
return message;
|
|
49862
|
+
}
|
|
49863
|
+
};
|
|
49864
|
+
function createBaseTaskContainerListRequest() {
|
|
49865
|
+
return { taskId: "", includeTerminated: false };
|
|
49866
|
+
}
|
|
49867
|
+
var TaskContainerListRequest = {
|
|
49868
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49869
|
+
if (message.taskId !== "") {
|
|
49870
|
+
writer.uint32(10).string(message.taskId);
|
|
49871
|
+
}
|
|
49872
|
+
if (message.includeTerminated !== false) {
|
|
49873
|
+
writer.uint32(16).bool(message.includeTerminated);
|
|
49874
|
+
}
|
|
49875
|
+
return writer;
|
|
49876
|
+
},
|
|
49877
|
+
decode(input, length) {
|
|
49878
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49879
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49880
|
+
const message = createBaseTaskContainerListRequest();
|
|
49881
|
+
while (reader.pos < end) {
|
|
49882
|
+
const tag = reader.uint32();
|
|
49883
|
+
switch (tag >>> 3) {
|
|
49884
|
+
case 1: {
|
|
49885
|
+
if (tag !== 10) {
|
|
49886
|
+
break;
|
|
49887
|
+
}
|
|
49888
|
+
message.taskId = reader.string();
|
|
49889
|
+
continue;
|
|
49890
|
+
}
|
|
49891
|
+
case 2: {
|
|
49892
|
+
if (tag !== 16) {
|
|
49893
|
+
break;
|
|
49894
|
+
}
|
|
49895
|
+
message.includeTerminated = reader.bool();
|
|
49896
|
+
continue;
|
|
49897
|
+
}
|
|
49898
|
+
}
|
|
49899
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49900
|
+
break;
|
|
49901
|
+
}
|
|
49902
|
+
reader.skip(tag & 7);
|
|
49903
|
+
}
|
|
49904
|
+
return message;
|
|
49905
|
+
},
|
|
49906
|
+
fromJSON(object) {
|
|
49907
|
+
return {
|
|
49908
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
49909
|
+
includeTerminated: isSet5(object.includeTerminated) ? globalThis.Boolean(object.includeTerminated) : false
|
|
49910
|
+
};
|
|
49911
|
+
},
|
|
49912
|
+
toJSON(message) {
|
|
49913
|
+
const obj = {};
|
|
49914
|
+
if (message.taskId !== "") {
|
|
49915
|
+
obj.taskId = message.taskId;
|
|
49916
|
+
}
|
|
49917
|
+
if (message.includeTerminated !== false) {
|
|
49918
|
+
obj.includeTerminated = message.includeTerminated;
|
|
49919
|
+
}
|
|
49920
|
+
return obj;
|
|
49921
|
+
},
|
|
49922
|
+
create(base) {
|
|
49923
|
+
return TaskContainerListRequest.fromPartial(base ?? {});
|
|
49924
|
+
},
|
|
49925
|
+
fromPartial(object) {
|
|
49926
|
+
const message = createBaseTaskContainerListRequest();
|
|
49927
|
+
message.taskId = object.taskId ?? "";
|
|
49928
|
+
message.includeTerminated = object.includeTerminated ?? false;
|
|
49929
|
+
return message;
|
|
49930
|
+
}
|
|
49931
|
+
};
|
|
49932
|
+
function createBaseTaskContainerListResponse() {
|
|
49933
|
+
return { containers: [] };
|
|
49934
|
+
}
|
|
49935
|
+
var TaskContainerListResponse = {
|
|
49936
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49937
|
+
for (const v of message.containers) {
|
|
49938
|
+
TaskContainerInfo.encode(v, writer.uint32(10).fork()).join();
|
|
49939
|
+
}
|
|
49940
|
+
return writer;
|
|
49941
|
+
},
|
|
49942
|
+
decode(input, length) {
|
|
49943
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49944
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49945
|
+
const message = createBaseTaskContainerListResponse();
|
|
49946
|
+
while (reader.pos < end) {
|
|
49947
|
+
const tag = reader.uint32();
|
|
49948
|
+
switch (tag >>> 3) {
|
|
49949
|
+
case 1: {
|
|
49950
|
+
if (tag !== 10) {
|
|
49951
|
+
break;
|
|
49952
|
+
}
|
|
49953
|
+
message.containers.push(TaskContainerInfo.decode(reader, reader.uint32()));
|
|
49954
|
+
continue;
|
|
49955
|
+
}
|
|
49956
|
+
}
|
|
49957
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49958
|
+
break;
|
|
49959
|
+
}
|
|
49960
|
+
reader.skip(tag & 7);
|
|
49961
|
+
}
|
|
49962
|
+
return message;
|
|
49963
|
+
},
|
|
49964
|
+
fromJSON(object) {
|
|
49965
|
+
return {
|
|
49966
|
+
containers: globalThis.Array.isArray(object?.containers) ? object.containers.map((e) => TaskContainerInfo.fromJSON(e)) : []
|
|
49967
|
+
};
|
|
49968
|
+
},
|
|
49969
|
+
toJSON(message) {
|
|
49970
|
+
const obj = {};
|
|
49971
|
+
if (message.containers?.length) {
|
|
49972
|
+
obj.containers = message.containers.map((e) => TaskContainerInfo.toJSON(e));
|
|
49973
|
+
}
|
|
49974
|
+
return obj;
|
|
49975
|
+
},
|
|
49976
|
+
create(base) {
|
|
49977
|
+
return TaskContainerListResponse.fromPartial(base ?? {});
|
|
49978
|
+
},
|
|
49979
|
+
fromPartial(object) {
|
|
49980
|
+
const message = createBaseTaskContainerListResponse();
|
|
49981
|
+
message.containers = object.containers?.map((e) => TaskContainerInfo.fromPartial(e)) || [];
|
|
49982
|
+
return message;
|
|
49983
|
+
}
|
|
49984
|
+
};
|
|
49985
|
+
function createBaseTaskContainerTerminateRequest() {
|
|
49986
|
+
return { taskId: "", containerId: "" };
|
|
49987
|
+
}
|
|
49988
|
+
var TaskContainerTerminateRequest = {
|
|
49989
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49990
|
+
if (message.taskId !== "") {
|
|
49991
|
+
writer.uint32(10).string(message.taskId);
|
|
49992
|
+
}
|
|
49993
|
+
if (message.containerId !== "") {
|
|
49994
|
+
writer.uint32(18).string(message.containerId);
|
|
49995
|
+
}
|
|
49996
|
+
return writer;
|
|
49997
|
+
},
|
|
49998
|
+
decode(input, length) {
|
|
49999
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50000
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50001
|
+
const message = createBaseTaskContainerTerminateRequest();
|
|
50002
|
+
while (reader.pos < end) {
|
|
50003
|
+
const tag = reader.uint32();
|
|
50004
|
+
switch (tag >>> 3) {
|
|
50005
|
+
case 1: {
|
|
50006
|
+
if (tag !== 10) {
|
|
50007
|
+
break;
|
|
50008
|
+
}
|
|
50009
|
+
message.taskId = reader.string();
|
|
50010
|
+
continue;
|
|
50011
|
+
}
|
|
50012
|
+
case 2: {
|
|
50013
|
+
if (tag !== 18) {
|
|
50014
|
+
break;
|
|
50015
|
+
}
|
|
50016
|
+
message.containerId = reader.string();
|
|
50017
|
+
continue;
|
|
50018
|
+
}
|
|
50019
|
+
}
|
|
50020
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50021
|
+
break;
|
|
50022
|
+
}
|
|
50023
|
+
reader.skip(tag & 7);
|
|
50024
|
+
}
|
|
50025
|
+
return message;
|
|
50026
|
+
},
|
|
50027
|
+
fromJSON(object) {
|
|
50028
|
+
return {
|
|
50029
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
50030
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : ""
|
|
50031
|
+
};
|
|
50032
|
+
},
|
|
50033
|
+
toJSON(message) {
|
|
50034
|
+
const obj = {};
|
|
50035
|
+
if (message.taskId !== "") {
|
|
50036
|
+
obj.taskId = message.taskId;
|
|
50037
|
+
}
|
|
50038
|
+
if (message.containerId !== "") {
|
|
50039
|
+
obj.containerId = message.containerId;
|
|
50040
|
+
}
|
|
50041
|
+
return obj;
|
|
50042
|
+
},
|
|
50043
|
+
create(base) {
|
|
50044
|
+
return TaskContainerTerminateRequest.fromPartial(base ?? {});
|
|
50045
|
+
},
|
|
50046
|
+
fromPartial(object) {
|
|
50047
|
+
const message = createBaseTaskContainerTerminateRequest();
|
|
50048
|
+
message.taskId = object.taskId ?? "";
|
|
50049
|
+
message.containerId = object.containerId ?? "";
|
|
50050
|
+
return message;
|
|
50051
|
+
}
|
|
50052
|
+
};
|
|
50053
|
+
function createBaseTaskContainerTerminateResponse() {
|
|
50054
|
+
return {};
|
|
50055
|
+
}
|
|
50056
|
+
var TaskContainerTerminateResponse = {
|
|
50057
|
+
encode(_, writer = new BinaryWriter()) {
|
|
50058
|
+
return writer;
|
|
50059
|
+
},
|
|
50060
|
+
decode(input, length) {
|
|
50061
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50062
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50063
|
+
const message = createBaseTaskContainerTerminateResponse();
|
|
50064
|
+
while (reader.pos < end) {
|
|
50065
|
+
const tag = reader.uint32();
|
|
50066
|
+
switch (tag >>> 3) {
|
|
50067
|
+
}
|
|
50068
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50069
|
+
break;
|
|
50070
|
+
}
|
|
50071
|
+
reader.skip(tag & 7);
|
|
50072
|
+
}
|
|
50073
|
+
return message;
|
|
50074
|
+
},
|
|
50075
|
+
fromJSON(_) {
|
|
50076
|
+
return {};
|
|
50077
|
+
},
|
|
50078
|
+
toJSON(_) {
|
|
50079
|
+
const obj = {};
|
|
50080
|
+
return obj;
|
|
50081
|
+
},
|
|
50082
|
+
create(base) {
|
|
50083
|
+
return TaskContainerTerminateResponse.fromPartial(base ?? {});
|
|
50084
|
+
},
|
|
50085
|
+
fromPartial(_) {
|
|
50086
|
+
const message = createBaseTaskContainerTerminateResponse();
|
|
50087
|
+
return message;
|
|
50088
|
+
}
|
|
50089
|
+
};
|
|
50090
|
+
function createBaseTaskContainerWaitRequest() {
|
|
50091
|
+
return { taskId: "", containerId: "", timeout: 0 };
|
|
50092
|
+
}
|
|
50093
|
+
var TaskContainerWaitRequest = {
|
|
50094
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50095
|
+
if (message.taskId !== "") {
|
|
50096
|
+
writer.uint32(10).string(message.taskId);
|
|
50097
|
+
}
|
|
50098
|
+
if (message.containerId !== "") {
|
|
50099
|
+
writer.uint32(18).string(message.containerId);
|
|
50100
|
+
}
|
|
50101
|
+
if (message.timeout !== 0) {
|
|
50102
|
+
writer.uint32(29).float(message.timeout);
|
|
50103
|
+
}
|
|
50104
|
+
return writer;
|
|
50105
|
+
},
|
|
50106
|
+
decode(input, length) {
|
|
50107
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50108
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50109
|
+
const message = createBaseTaskContainerWaitRequest();
|
|
50110
|
+
while (reader.pos < end) {
|
|
50111
|
+
const tag = reader.uint32();
|
|
50112
|
+
switch (tag >>> 3) {
|
|
50113
|
+
case 1: {
|
|
50114
|
+
if (tag !== 10) {
|
|
50115
|
+
break;
|
|
50116
|
+
}
|
|
50117
|
+
message.taskId = reader.string();
|
|
50118
|
+
continue;
|
|
50119
|
+
}
|
|
50120
|
+
case 2: {
|
|
50121
|
+
if (tag !== 18) {
|
|
50122
|
+
break;
|
|
50123
|
+
}
|
|
50124
|
+
message.containerId = reader.string();
|
|
50125
|
+
continue;
|
|
50126
|
+
}
|
|
50127
|
+
case 3: {
|
|
50128
|
+
if (tag !== 29) {
|
|
50129
|
+
break;
|
|
50130
|
+
}
|
|
50131
|
+
message.timeout = reader.float();
|
|
50132
|
+
continue;
|
|
50133
|
+
}
|
|
50134
|
+
}
|
|
50135
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50136
|
+
break;
|
|
50137
|
+
}
|
|
50138
|
+
reader.skip(tag & 7);
|
|
50139
|
+
}
|
|
50140
|
+
return message;
|
|
50141
|
+
},
|
|
50142
|
+
fromJSON(object) {
|
|
50143
|
+
return {
|
|
50144
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
50145
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
50146
|
+
timeout: isSet5(object.timeout) ? globalThis.Number(object.timeout) : 0
|
|
50147
|
+
};
|
|
50148
|
+
},
|
|
50149
|
+
toJSON(message) {
|
|
50150
|
+
const obj = {};
|
|
50151
|
+
if (message.taskId !== "") {
|
|
50152
|
+
obj.taskId = message.taskId;
|
|
50153
|
+
}
|
|
50154
|
+
if (message.containerId !== "") {
|
|
50155
|
+
obj.containerId = message.containerId;
|
|
50156
|
+
}
|
|
50157
|
+
if (message.timeout !== 0) {
|
|
50158
|
+
obj.timeout = message.timeout;
|
|
50159
|
+
}
|
|
50160
|
+
return obj;
|
|
50161
|
+
},
|
|
50162
|
+
create(base) {
|
|
50163
|
+
return TaskContainerWaitRequest.fromPartial(base ?? {});
|
|
50164
|
+
},
|
|
50165
|
+
fromPartial(object) {
|
|
50166
|
+
const message = createBaseTaskContainerWaitRequest();
|
|
50167
|
+
message.taskId = object.taskId ?? "";
|
|
50168
|
+
message.containerId = object.containerId ?? "";
|
|
50169
|
+
message.timeout = object.timeout ?? 0;
|
|
50170
|
+
return message;
|
|
50171
|
+
}
|
|
50172
|
+
};
|
|
50173
|
+
function createBaseTaskContainerWaitResponse() {
|
|
50174
|
+
return { result: void 0 };
|
|
50175
|
+
}
|
|
50176
|
+
var TaskContainerWaitResponse = {
|
|
50177
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50178
|
+
if (message.result !== void 0) {
|
|
50179
|
+
GenericResult.encode(message.result, writer.uint32(10).fork()).join();
|
|
50180
|
+
}
|
|
50181
|
+
return writer;
|
|
50182
|
+
},
|
|
50183
|
+
decode(input, length) {
|
|
50184
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50185
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50186
|
+
const message = createBaseTaskContainerWaitResponse();
|
|
50187
|
+
while (reader.pos < end) {
|
|
50188
|
+
const tag = reader.uint32();
|
|
50189
|
+
switch (tag >>> 3) {
|
|
50190
|
+
case 1: {
|
|
50191
|
+
if (tag !== 10) {
|
|
50192
|
+
break;
|
|
50193
|
+
}
|
|
50194
|
+
message.result = GenericResult.decode(reader, reader.uint32());
|
|
50195
|
+
continue;
|
|
50196
|
+
}
|
|
50197
|
+
}
|
|
50198
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50199
|
+
break;
|
|
50200
|
+
}
|
|
50201
|
+
reader.skip(tag & 7);
|
|
50202
|
+
}
|
|
50203
|
+
return message;
|
|
50204
|
+
},
|
|
50205
|
+
fromJSON(object) {
|
|
50206
|
+
return { result: isSet5(object.result) ? GenericResult.fromJSON(object.result) : void 0 };
|
|
50207
|
+
},
|
|
50208
|
+
toJSON(message) {
|
|
50209
|
+
const obj = {};
|
|
50210
|
+
if (message.result !== void 0) {
|
|
50211
|
+
obj.result = GenericResult.toJSON(message.result);
|
|
50212
|
+
}
|
|
50213
|
+
return obj;
|
|
50214
|
+
},
|
|
50215
|
+
create(base) {
|
|
50216
|
+
return TaskContainerWaitResponse.fromPartial(base ?? {});
|
|
50217
|
+
},
|
|
50218
|
+
fromPartial(object) {
|
|
50219
|
+
const message = createBaseTaskContainerWaitResponse();
|
|
50220
|
+
message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
|
|
50221
|
+
return message;
|
|
50222
|
+
}
|
|
50223
|
+
};
|
|
48085
50224
|
function createBaseTaskExecPollRequest() {
|
|
48086
50225
|
return { taskId: "", execId: "" };
|
|
48087
50226
|
}
|
|
@@ -48229,7 +50368,9 @@ function createBaseTaskExecStartRequest() {
|
|
|
48229
50368
|
workdir: void 0,
|
|
48230
50369
|
secretIds: [],
|
|
48231
50370
|
ptyInfo: void 0,
|
|
48232
|
-
runtimeDebug: false
|
|
50371
|
+
runtimeDebug: false,
|
|
50372
|
+
containerId: "",
|
|
50373
|
+
env: {}
|
|
48233
50374
|
};
|
|
48234
50375
|
}
|
|
48235
50376
|
var TaskExecStartRequest = {
|
|
@@ -48264,6 +50405,12 @@ var TaskExecStartRequest = {
|
|
|
48264
50405
|
if (message.runtimeDebug !== false) {
|
|
48265
50406
|
writer.uint32(80).bool(message.runtimeDebug);
|
|
48266
50407
|
}
|
|
50408
|
+
if (message.containerId !== "") {
|
|
50409
|
+
writer.uint32(90).string(message.containerId);
|
|
50410
|
+
}
|
|
50411
|
+
Object.entries(message.env).forEach(([key, value]) => {
|
|
50412
|
+
TaskExecStartRequest_EnvEntry.encode({ key, value }, writer.uint32(98).fork()).join();
|
|
50413
|
+
});
|
|
48267
50414
|
return writer;
|
|
48268
50415
|
},
|
|
48269
50416
|
decode(input, length) {
|
|
@@ -48343,6 +50490,23 @@ var TaskExecStartRequest = {
|
|
|
48343
50490
|
message.runtimeDebug = reader.bool();
|
|
48344
50491
|
continue;
|
|
48345
50492
|
}
|
|
50493
|
+
case 11: {
|
|
50494
|
+
if (tag !== 90) {
|
|
50495
|
+
break;
|
|
50496
|
+
}
|
|
50497
|
+
message.containerId = reader.string();
|
|
50498
|
+
continue;
|
|
50499
|
+
}
|
|
50500
|
+
case 12: {
|
|
50501
|
+
if (tag !== 98) {
|
|
50502
|
+
break;
|
|
50503
|
+
}
|
|
50504
|
+
const entry12 = TaskExecStartRequest_EnvEntry.decode(reader, reader.uint32());
|
|
50505
|
+
if (entry12.value !== void 0) {
|
|
50506
|
+
message.env[entry12.key] = entry12.value;
|
|
50507
|
+
}
|
|
50508
|
+
continue;
|
|
50509
|
+
}
|
|
48346
50510
|
}
|
|
48347
50511
|
if ((tag & 7) === 4 || tag === 0) {
|
|
48348
50512
|
break;
|
|
@@ -48362,7 +50526,12 @@ var TaskExecStartRequest = {
|
|
|
48362
50526
|
workdir: isSet5(object.workdir) ? globalThis.String(object.workdir) : void 0,
|
|
48363
50527
|
secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : [],
|
|
48364
50528
|
ptyInfo: isSet5(object.ptyInfo) ? PTYInfo.fromJSON(object.ptyInfo) : void 0,
|
|
48365
|
-
runtimeDebug: isSet5(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false
|
|
50529
|
+
runtimeDebug: isSet5(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false,
|
|
50530
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
50531
|
+
env: isObject3(object.env) ? Object.entries(object.env).reduce((acc, [key, value]) => {
|
|
50532
|
+
acc[key] = String(value);
|
|
50533
|
+
return acc;
|
|
50534
|
+
}, {}) : {}
|
|
48366
50535
|
};
|
|
48367
50536
|
},
|
|
48368
50537
|
toJSON(message) {
|
|
@@ -48397,6 +50566,18 @@ var TaskExecStartRequest = {
|
|
|
48397
50566
|
if (message.runtimeDebug !== false) {
|
|
48398
50567
|
obj.runtimeDebug = message.runtimeDebug;
|
|
48399
50568
|
}
|
|
50569
|
+
if (message.containerId !== "") {
|
|
50570
|
+
obj.containerId = message.containerId;
|
|
50571
|
+
}
|
|
50572
|
+
if (message.env) {
|
|
50573
|
+
const entries = Object.entries(message.env);
|
|
50574
|
+
if (entries.length > 0) {
|
|
50575
|
+
obj.env = {};
|
|
50576
|
+
entries.forEach(([k, v]) => {
|
|
50577
|
+
obj.env[k] = v;
|
|
50578
|
+
});
|
|
50579
|
+
}
|
|
50580
|
+
}
|
|
48400
50581
|
return obj;
|
|
48401
50582
|
},
|
|
48402
50583
|
create(base) {
|
|
@@ -48414,6 +50595,81 @@ var TaskExecStartRequest = {
|
|
|
48414
50595
|
message.secretIds = object.secretIds?.map((e) => e) || [];
|
|
48415
50596
|
message.ptyInfo = object.ptyInfo !== void 0 && object.ptyInfo !== null ? PTYInfo.fromPartial(object.ptyInfo) : void 0;
|
|
48416
50597
|
message.runtimeDebug = object.runtimeDebug ?? false;
|
|
50598
|
+
message.containerId = object.containerId ?? "";
|
|
50599
|
+
message.env = Object.entries(object.env ?? {}).reduce((acc, [key, value]) => {
|
|
50600
|
+
if (value !== void 0) {
|
|
50601
|
+
acc[key] = globalThis.String(value);
|
|
50602
|
+
}
|
|
50603
|
+
return acc;
|
|
50604
|
+
}, {});
|
|
50605
|
+
return message;
|
|
50606
|
+
}
|
|
50607
|
+
};
|
|
50608
|
+
function createBaseTaskExecStartRequest_EnvEntry() {
|
|
50609
|
+
return { key: "", value: "" };
|
|
50610
|
+
}
|
|
50611
|
+
var TaskExecStartRequest_EnvEntry = {
|
|
50612
|
+
encode(message, writer = new BinaryWriter()) {
|
|
50613
|
+
if (message.key !== "") {
|
|
50614
|
+
writer.uint32(10).string(message.key);
|
|
50615
|
+
}
|
|
50616
|
+
if (message.value !== "") {
|
|
50617
|
+
writer.uint32(18).string(message.value);
|
|
50618
|
+
}
|
|
50619
|
+
return writer;
|
|
50620
|
+
},
|
|
50621
|
+
decode(input, length) {
|
|
50622
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50623
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
50624
|
+
const message = createBaseTaskExecStartRequest_EnvEntry();
|
|
50625
|
+
while (reader.pos < end) {
|
|
50626
|
+
const tag = reader.uint32();
|
|
50627
|
+
switch (tag >>> 3) {
|
|
50628
|
+
case 1: {
|
|
50629
|
+
if (tag !== 10) {
|
|
50630
|
+
break;
|
|
50631
|
+
}
|
|
50632
|
+
message.key = reader.string();
|
|
50633
|
+
continue;
|
|
50634
|
+
}
|
|
50635
|
+
case 2: {
|
|
50636
|
+
if (tag !== 18) {
|
|
50637
|
+
break;
|
|
50638
|
+
}
|
|
50639
|
+
message.value = reader.string();
|
|
50640
|
+
continue;
|
|
50641
|
+
}
|
|
50642
|
+
}
|
|
50643
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50644
|
+
break;
|
|
50645
|
+
}
|
|
50646
|
+
reader.skip(tag & 7);
|
|
50647
|
+
}
|
|
50648
|
+
return message;
|
|
50649
|
+
},
|
|
50650
|
+
fromJSON(object) {
|
|
50651
|
+
return {
|
|
50652
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
50653
|
+
value: isSet5(object.value) ? globalThis.String(object.value) : ""
|
|
50654
|
+
};
|
|
50655
|
+
},
|
|
50656
|
+
toJSON(message) {
|
|
50657
|
+
const obj = {};
|
|
50658
|
+
if (message.key !== "") {
|
|
50659
|
+
obj.key = message.key;
|
|
50660
|
+
}
|
|
50661
|
+
if (message.value !== "") {
|
|
50662
|
+
obj.value = message.value;
|
|
50663
|
+
}
|
|
50664
|
+
return obj;
|
|
50665
|
+
},
|
|
50666
|
+
create(base) {
|
|
50667
|
+
return TaskExecStartRequest_EnvEntry.fromPartial(base ?? {});
|
|
50668
|
+
},
|
|
50669
|
+
fromPartial(object) {
|
|
50670
|
+
const message = createBaseTaskExecStartRequest_EnvEntry();
|
|
50671
|
+
message.key = object.key ?? "";
|
|
50672
|
+
message.value = object.value ?? "";
|
|
48417
50673
|
return message;
|
|
48418
50674
|
}
|
|
48419
50675
|
};
|
|
@@ -49091,10 +51347,123 @@ var TaskSnapshotDirectoryResponse = {
|
|
|
49091
51347
|
return message;
|
|
49092
51348
|
}
|
|
49093
51349
|
};
|
|
51350
|
+
function createBaseTaskUnmountDirectoryRequest() {
|
|
51351
|
+
return { taskId: "", path: new Uint8Array(0) };
|
|
51352
|
+
}
|
|
51353
|
+
var TaskUnmountDirectoryRequest = {
|
|
51354
|
+
encode(message, writer = new BinaryWriter()) {
|
|
51355
|
+
if (message.taskId !== "") {
|
|
51356
|
+
writer.uint32(10).string(message.taskId);
|
|
51357
|
+
}
|
|
51358
|
+
if (message.path.length !== 0) {
|
|
51359
|
+
writer.uint32(18).bytes(message.path);
|
|
51360
|
+
}
|
|
51361
|
+
return writer;
|
|
51362
|
+
},
|
|
51363
|
+
decode(input, length) {
|
|
51364
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51365
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51366
|
+
const message = createBaseTaskUnmountDirectoryRequest();
|
|
51367
|
+
while (reader.pos < end) {
|
|
51368
|
+
const tag = reader.uint32();
|
|
51369
|
+
switch (tag >>> 3) {
|
|
51370
|
+
case 1: {
|
|
51371
|
+
if (tag !== 10) {
|
|
51372
|
+
break;
|
|
51373
|
+
}
|
|
51374
|
+
message.taskId = reader.string();
|
|
51375
|
+
continue;
|
|
51376
|
+
}
|
|
51377
|
+
case 2: {
|
|
51378
|
+
if (tag !== 18) {
|
|
51379
|
+
break;
|
|
51380
|
+
}
|
|
51381
|
+
message.path = reader.bytes();
|
|
51382
|
+
continue;
|
|
51383
|
+
}
|
|
51384
|
+
}
|
|
51385
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
51386
|
+
break;
|
|
51387
|
+
}
|
|
51388
|
+
reader.skip(tag & 7);
|
|
51389
|
+
}
|
|
51390
|
+
return message;
|
|
51391
|
+
},
|
|
51392
|
+
fromJSON(object) {
|
|
51393
|
+
return {
|
|
51394
|
+
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
51395
|
+
path: isSet5(object.path) ? bytesFromBase642(object.path) : new Uint8Array(0)
|
|
51396
|
+
};
|
|
51397
|
+
},
|
|
51398
|
+
toJSON(message) {
|
|
51399
|
+
const obj = {};
|
|
51400
|
+
if (message.taskId !== "") {
|
|
51401
|
+
obj.taskId = message.taskId;
|
|
51402
|
+
}
|
|
51403
|
+
if (message.path.length !== 0) {
|
|
51404
|
+
obj.path = base64FromBytes2(message.path);
|
|
51405
|
+
}
|
|
51406
|
+
return obj;
|
|
51407
|
+
},
|
|
51408
|
+
create(base) {
|
|
51409
|
+
return TaskUnmountDirectoryRequest.fromPartial(base ?? {});
|
|
51410
|
+
},
|
|
51411
|
+
fromPartial(object) {
|
|
51412
|
+
const message = createBaseTaskUnmountDirectoryRequest();
|
|
51413
|
+
message.taskId = object.taskId ?? "";
|
|
51414
|
+
message.path = object.path ?? new Uint8Array(0);
|
|
51415
|
+
return message;
|
|
51416
|
+
}
|
|
51417
|
+
};
|
|
49094
51418
|
var TaskCommandRouterDefinition = {
|
|
49095
51419
|
name: "TaskCommandRouter",
|
|
49096
51420
|
fullName: "modal.task_command_router.TaskCommandRouter",
|
|
49097
51421
|
methods: {
|
|
51422
|
+
/** Create an additional container for a task. */
|
|
51423
|
+
taskContainerCreate: {
|
|
51424
|
+
name: "TaskContainerCreate",
|
|
51425
|
+
requestType: TaskContainerCreateRequest,
|
|
51426
|
+
requestStream: false,
|
|
51427
|
+
responseType: TaskContainerCreateResponse,
|
|
51428
|
+
responseStream: false,
|
|
51429
|
+
options: {}
|
|
51430
|
+
},
|
|
51431
|
+
/** Get the latest container associated with a logical name. */
|
|
51432
|
+
taskContainerGet: {
|
|
51433
|
+
name: "TaskContainerGet",
|
|
51434
|
+
requestType: TaskContainerGetRequest,
|
|
51435
|
+
requestStream: false,
|
|
51436
|
+
responseType: TaskContainerGetResponse,
|
|
51437
|
+
responseStream: false,
|
|
51438
|
+
options: {}
|
|
51439
|
+
},
|
|
51440
|
+
/** List containers associated with the task. */
|
|
51441
|
+
taskContainerList: {
|
|
51442
|
+
name: "TaskContainerList",
|
|
51443
|
+
requestType: TaskContainerListRequest,
|
|
51444
|
+
requestStream: false,
|
|
51445
|
+
responseType: TaskContainerListResponse,
|
|
51446
|
+
responseStream: false,
|
|
51447
|
+
options: {}
|
|
51448
|
+
},
|
|
51449
|
+
/** Terminate or release a tracked container. */
|
|
51450
|
+
taskContainerTerminate: {
|
|
51451
|
+
name: "TaskContainerTerminate",
|
|
51452
|
+
requestType: TaskContainerTerminateRequest,
|
|
51453
|
+
requestStream: false,
|
|
51454
|
+
responseType: TaskContainerTerminateResponse,
|
|
51455
|
+
responseStream: false,
|
|
51456
|
+
options: {}
|
|
51457
|
+
},
|
|
51458
|
+
/** Wait for a tracked container to reach a terminal result. */
|
|
51459
|
+
taskContainerWait: {
|
|
51460
|
+
name: "TaskContainerWait",
|
|
51461
|
+
requestType: TaskContainerWaitRequest,
|
|
51462
|
+
requestStream: false,
|
|
51463
|
+
responseType: TaskContainerWaitResponse,
|
|
51464
|
+
responseStream: false,
|
|
51465
|
+
options: {}
|
|
51466
|
+
},
|
|
49098
51467
|
/** Poll for the exit status of an exec'd command. */
|
|
49099
51468
|
taskExecPoll: {
|
|
49100
51469
|
name: "TaskExecPoll",
|
|
@@ -49157,6 +51526,15 @@ var TaskCommandRouterDefinition = {
|
|
|
49157
51526
|
responseType: TaskSnapshotDirectoryResponse,
|
|
49158
51527
|
responseStream: false,
|
|
49159
51528
|
options: {}
|
|
51529
|
+
},
|
|
51530
|
+
/** Unmount an image previously mounted at a directory in the container. */
|
|
51531
|
+
taskUnmountDirectory: {
|
|
51532
|
+
name: "TaskUnmountDirectory",
|
|
51533
|
+
requestType: TaskUnmountDirectoryRequest,
|
|
51534
|
+
requestStream: false,
|
|
51535
|
+
responseType: Empty,
|
|
51536
|
+
responseStream: false,
|
|
51537
|
+
options: {}
|
|
49160
51538
|
}
|
|
49161
51539
|
}
|
|
49162
51540
|
};
|
|
@@ -49193,6 +51571,9 @@ function longToNumber3(int64) {
|
|
|
49193
51571
|
}
|
|
49194
51572
|
return num;
|
|
49195
51573
|
}
|
|
51574
|
+
function isObject3(value) {
|
|
51575
|
+
return typeof value === "object" && value !== null;
|
|
51576
|
+
}
|
|
49196
51577
|
function isSet5(value) {
|
|
49197
51578
|
return value !== null && value !== void 0;
|
|
49198
51579
|
}
|
|
@@ -49861,6 +52242,78 @@ function streamConsumingIter(iterable, onCancel) {
|
|
|
49861
52242
|
var SB_LOGS_INITIAL_DELAY_MS = 10;
|
|
49862
52243
|
var SB_LOGS_DELAY_FACTOR = 2;
|
|
49863
52244
|
var SB_LOGS_MAX_RETRIES = 10;
|
|
52245
|
+
var Probe2 = class _Probe {
|
|
52246
|
+
#tcpPort;
|
|
52247
|
+
#execArgv;
|
|
52248
|
+
#intervalMs;
|
|
52249
|
+
constructor(params) {
|
|
52250
|
+
const { tcpPort, execArgv, intervalMs } = params;
|
|
52251
|
+
if (tcpPort === void 0 === (execArgv === void 0)) {
|
|
52252
|
+
throw new InvalidError(
|
|
52253
|
+
"Probe must be created with Probe.withTcp(...) or Probe.withExec(...)"
|
|
52254
|
+
);
|
|
52255
|
+
}
|
|
52256
|
+
this.#tcpPort = tcpPort;
|
|
52257
|
+
this.#execArgv = execArgv;
|
|
52258
|
+
this.#intervalMs = intervalMs;
|
|
52259
|
+
}
|
|
52260
|
+
static withTcp(port, params = { intervalMs: 100 }) {
|
|
52261
|
+
if (!Number.isInteger(port)) {
|
|
52262
|
+
throw new InvalidError("Probe.withTcp() expects an integer `port`");
|
|
52263
|
+
}
|
|
52264
|
+
if (port <= 0 || port > 65535) {
|
|
52265
|
+
throw new InvalidError(
|
|
52266
|
+
`Probe.withTcp() expects \`port\` in [1, 65535], got ${port}`
|
|
52267
|
+
);
|
|
52268
|
+
}
|
|
52269
|
+
const { intervalMs } = params;
|
|
52270
|
+
_Probe.#validateIntervalMs("Probe.withTcp", intervalMs);
|
|
52271
|
+
return new _Probe({ tcpPort: port, intervalMs });
|
|
52272
|
+
}
|
|
52273
|
+
static withExec(argv, params = { intervalMs: 100 }) {
|
|
52274
|
+
if (!Array.isArray(argv) || argv.length === 0) {
|
|
52275
|
+
throw new InvalidError("Probe.withExec() requires at least one argument");
|
|
52276
|
+
}
|
|
52277
|
+
if (!argv.every((arg) => typeof arg === "string")) {
|
|
52278
|
+
throw new InvalidError(
|
|
52279
|
+
"Probe.withExec() expects all arguments to be strings"
|
|
52280
|
+
);
|
|
52281
|
+
}
|
|
52282
|
+
const { intervalMs } = params;
|
|
52283
|
+
_Probe.#validateIntervalMs("Probe.withExec", intervalMs);
|
|
52284
|
+
return new _Probe({ execArgv: [...argv], intervalMs });
|
|
52285
|
+
}
|
|
52286
|
+
/** @ignore */
|
|
52287
|
+
toProto() {
|
|
52288
|
+
if (this.#tcpPort !== void 0) {
|
|
52289
|
+
return Probe.create({
|
|
52290
|
+
tcpPort: this.#tcpPort,
|
|
52291
|
+
intervalMs: this.#intervalMs
|
|
52292
|
+
});
|
|
52293
|
+
}
|
|
52294
|
+
if (this.#execArgv !== void 0) {
|
|
52295
|
+
return Probe.create({
|
|
52296
|
+
execCommand: { argv: this.#execArgv },
|
|
52297
|
+
intervalMs: this.#intervalMs
|
|
52298
|
+
});
|
|
52299
|
+
}
|
|
52300
|
+
throw new InvalidError(
|
|
52301
|
+
"Probe must be created with Probe.withTcp(...) or Probe.withExec(...)"
|
|
52302
|
+
);
|
|
52303
|
+
}
|
|
52304
|
+
static #validateIntervalMs(methodName, intervalMs) {
|
|
52305
|
+
if (!Number.isInteger(intervalMs)) {
|
|
52306
|
+
throw new InvalidError(
|
|
52307
|
+
`${methodName}() expects an integer \`intervalMs\``
|
|
52308
|
+
);
|
|
52309
|
+
}
|
|
52310
|
+
if (intervalMs <= 0) {
|
|
52311
|
+
throw new InvalidError(
|
|
52312
|
+
`${methodName}() expects \`intervalMs\` > 0, got ${intervalMs}`
|
|
52313
|
+
);
|
|
52314
|
+
}
|
|
52315
|
+
}
|
|
52316
|
+
};
|
|
49864
52317
|
async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
49865
52318
|
checkForRenamedParams(params, {
|
|
49866
52319
|
memory: "memoryMiB",
|
|
@@ -50040,9 +52493,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
50040
52493
|
schedulerPlacement,
|
|
50041
52494
|
verbose: params.verbose ?? false,
|
|
50042
52495
|
proxyId: params.proxy?.proxyId,
|
|
52496
|
+
readinessProbe: params.readinessProbe?.toProto(),
|
|
50043
52497
|
name: params.name,
|
|
50044
52498
|
experimentalOptions: protoExperimentalOptions,
|
|
50045
|
-
customDomain: params.customDomain
|
|
52499
|
+
customDomain: params.customDomain,
|
|
52500
|
+
includeOidcIdentityToken: params.includeOidcIdentityToken ?? false
|
|
50046
52501
|
}
|
|
50047
52502
|
});
|
|
50048
52503
|
}
|
|
@@ -50564,6 +53019,46 @@ var Sandbox2 = class _Sandbox {
|
|
|
50564
53019
|
}
|
|
50565
53020
|
}
|
|
50566
53021
|
}
|
|
53022
|
+
/**
|
|
53023
|
+
* Wait until the Sandbox readiness probe reports the Sandbox is ready.
|
|
53024
|
+
*
|
|
53025
|
+
* This method only works for Sandboxes configured with a readiness probe.
|
|
53026
|
+
*
|
|
53027
|
+
* @param timeoutMs - Maximum total time to wait, in milliseconds.
|
|
53028
|
+
* @returns A promise that resolves once the Sandbox is ready.
|
|
53029
|
+
* @throws {@link TimeoutError} If readiness is not reported before `timeoutMs`.
|
|
53030
|
+
*/
|
|
53031
|
+
async waitUntilReady(timeoutMs = 3e5) {
|
|
53032
|
+
this.#ensureAttached();
|
|
53033
|
+
if (timeoutMs <= 0) {
|
|
53034
|
+
throw new InvalidError(`timeoutMs must be positive, got ${timeoutMs}`);
|
|
53035
|
+
}
|
|
53036
|
+
const deadline = Date.now() + timeoutMs;
|
|
53037
|
+
while (true) {
|
|
53038
|
+
const remainingMs = deadline - Date.now();
|
|
53039
|
+
if (remainingMs <= 0) {
|
|
53040
|
+
throw new TimeoutError("Sandbox operation timed out");
|
|
53041
|
+
}
|
|
53042
|
+
const requestTimeoutMs = Math.min(
|
|
53043
|
+
remainingMs,
|
|
53044
|
+
5e4
|
|
53045
|
+
// Max request timeout for each gRPC call
|
|
53046
|
+
);
|
|
53047
|
+
try {
|
|
53048
|
+
const resp = await this.#client.cpClient.sandboxWaitUntilReady({
|
|
53049
|
+
sandboxId: this.sandboxId,
|
|
53050
|
+
timeout: requestTimeoutMs / 1e3
|
|
53051
|
+
});
|
|
53052
|
+
if (resp.readyAt > 0) {
|
|
53053
|
+
return;
|
|
53054
|
+
}
|
|
53055
|
+
} catch (err) {
|
|
53056
|
+
if (err instanceof import_nice_grpc9.ClientError && err.code === import_nice_grpc9.Status.DEADLINE_EXCEEDED)
|
|
53057
|
+
continue;
|
|
53058
|
+
throw err;
|
|
53059
|
+
}
|
|
53060
|
+
}
|
|
53061
|
+
}
|
|
50567
53062
|
/** Get {@link Tunnel} metadata for the Sandbox.
|
|
50568
53063
|
*
|
|
50569
53064
|
* Raises {@link SandboxTimeoutError} if the tunnels are not available after the timeout.
|
|
@@ -51109,7 +53604,7 @@ var AuthTokenManager = class {
|
|
|
51109
53604
|
|
|
51110
53605
|
// src/version.ts
|
|
51111
53606
|
function getSDKVersion() {
|
|
51112
|
-
return true ? "0.7.
|
|
53607
|
+
return true ? "0.7.4" : "0.0.0";
|
|
51113
53608
|
}
|
|
51114
53609
|
|
|
51115
53610
|
// src/logger.ts
|
|
@@ -51632,6 +54127,7 @@ var App2 = class {
|
|
|
51632
54127
|
InvalidError,
|
|
51633
54128
|
ModalClient,
|
|
51634
54129
|
NotFoundError,
|
|
54130
|
+
Probe,
|
|
51635
54131
|
Proxy,
|
|
51636
54132
|
ProxyService,
|
|
51637
54133
|
Queue,
|
|
@@ -51646,6 +54142,7 @@ var App2 = class {
|
|
|
51646
54142
|
SandboxTimeoutError,
|
|
51647
54143
|
Secret,
|
|
51648
54144
|
SecretService,
|
|
54145
|
+
TimeoutError,
|
|
51649
54146
|
Volume,
|
|
51650
54147
|
VolumeService,
|
|
51651
54148
|
checkForRenamedParams,
|