modal 0.3.13 → 0.3.14
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 +1232 -372
- package/dist/index.d.cts +34 -3
- package/dist/index.d.ts +34 -3
- package/dist/index.js +1231 -372
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3003,16 +3003,13 @@ var AppCreateResponse = {
|
|
|
3003
3003
|
}
|
|
3004
3004
|
};
|
|
3005
3005
|
function createBaseAppDeployRequest() {
|
|
3006
|
-
return { appId: "",
|
|
3006
|
+
return { appId: "", name: "", objectEntity: "", visibility: 0, tag: "" };
|
|
3007
3007
|
}
|
|
3008
3008
|
var AppDeployRequest = {
|
|
3009
3009
|
encode(message, writer = new BinaryWriter()) {
|
|
3010
3010
|
if (message.appId !== "") {
|
|
3011
3011
|
writer.uint32(10).string(message.appId);
|
|
3012
3012
|
}
|
|
3013
|
-
if (message.namespace !== 0) {
|
|
3014
|
-
writer.uint32(16).int32(message.namespace);
|
|
3015
|
-
}
|
|
3016
3013
|
if (message.name !== "") {
|
|
3017
3014
|
writer.uint32(26).string(message.name);
|
|
3018
3015
|
}
|
|
@@ -3041,13 +3038,6 @@ var AppDeployRequest = {
|
|
|
3041
3038
|
message.appId = reader.string();
|
|
3042
3039
|
continue;
|
|
3043
3040
|
}
|
|
3044
|
-
case 2: {
|
|
3045
|
-
if (tag !== 16) {
|
|
3046
|
-
break;
|
|
3047
|
-
}
|
|
3048
|
-
message.namespace = reader.int32();
|
|
3049
|
-
continue;
|
|
3050
|
-
}
|
|
3051
3041
|
case 3: {
|
|
3052
3042
|
if (tag !== 26) {
|
|
3053
3043
|
break;
|
|
@@ -3087,7 +3077,6 @@ var AppDeployRequest = {
|
|
|
3087
3077
|
fromJSON(object) {
|
|
3088
3078
|
return {
|
|
3089
3079
|
appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
|
|
3090
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
3091
3080
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
3092
3081
|
objectEntity: isSet3(object.objectEntity) ? globalThis.String(object.objectEntity) : "",
|
|
3093
3082
|
visibility: isSet3(object.visibility) ? appDeployVisibilityFromJSON(object.visibility) : 0,
|
|
@@ -3099,9 +3088,6 @@ var AppDeployRequest = {
|
|
|
3099
3088
|
if (message.appId !== "") {
|
|
3100
3089
|
obj.appId = message.appId;
|
|
3101
3090
|
}
|
|
3102
|
-
if (message.namespace !== 0) {
|
|
3103
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
3104
|
-
}
|
|
3105
3091
|
if (message.name !== "") {
|
|
3106
3092
|
obj.name = message.name;
|
|
3107
3093
|
}
|
|
@@ -3122,7 +3108,6 @@ var AppDeployRequest = {
|
|
|
3122
3108
|
fromPartial(object) {
|
|
3123
3109
|
const message = createBaseAppDeployRequest();
|
|
3124
3110
|
message.appId = object.appId ?? "";
|
|
3125
|
-
message.namespace = object.namespace ?? 0;
|
|
3126
3111
|
message.name = object.name ?? "";
|
|
3127
3112
|
message.objectEntity = object.objectEntity ?? "";
|
|
3128
3113
|
message.visibility = object.visibility ?? 0;
|
|
@@ -3485,13 +3470,10 @@ var AppDeploymentHistoryResponse = {
|
|
|
3485
3470
|
}
|
|
3486
3471
|
};
|
|
3487
3472
|
function createBaseAppGetByDeploymentNameRequest() {
|
|
3488
|
-
return {
|
|
3473
|
+
return { name: "", environmentName: "" };
|
|
3489
3474
|
}
|
|
3490
3475
|
var AppGetByDeploymentNameRequest = {
|
|
3491
3476
|
encode(message, writer = new BinaryWriter()) {
|
|
3492
|
-
if (message.namespace !== 0) {
|
|
3493
|
-
writer.uint32(8).int32(message.namespace);
|
|
3494
|
-
}
|
|
3495
3477
|
if (message.name !== "") {
|
|
3496
3478
|
writer.uint32(18).string(message.name);
|
|
3497
3479
|
}
|
|
@@ -3507,13 +3489,6 @@ var AppGetByDeploymentNameRequest = {
|
|
|
3507
3489
|
while (reader.pos < end) {
|
|
3508
3490
|
const tag = reader.uint32();
|
|
3509
3491
|
switch (tag >>> 3) {
|
|
3510
|
-
case 1: {
|
|
3511
|
-
if (tag !== 8) {
|
|
3512
|
-
break;
|
|
3513
|
-
}
|
|
3514
|
-
message.namespace = reader.int32();
|
|
3515
|
-
continue;
|
|
3516
|
-
}
|
|
3517
3492
|
case 2: {
|
|
3518
3493
|
if (tag !== 18) {
|
|
3519
3494
|
break;
|
|
@@ -3538,16 +3513,12 @@ var AppGetByDeploymentNameRequest = {
|
|
|
3538
3513
|
},
|
|
3539
3514
|
fromJSON(object) {
|
|
3540
3515
|
return {
|
|
3541
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
3542
3516
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
3543
3517
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
3544
3518
|
};
|
|
3545
3519
|
},
|
|
3546
3520
|
toJSON(message) {
|
|
3547
3521
|
const obj = {};
|
|
3548
|
-
if (message.namespace !== 0) {
|
|
3549
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
3550
|
-
}
|
|
3551
3522
|
if (message.name !== "") {
|
|
3552
3523
|
obj.name = message.name;
|
|
3553
3524
|
}
|
|
@@ -3561,7 +3532,6 @@ var AppGetByDeploymentNameRequest = {
|
|
|
3561
3532
|
},
|
|
3562
3533
|
fromPartial(object) {
|
|
3563
3534
|
const message = createBaseAppGetByDeploymentNameRequest();
|
|
3564
|
-
message.namespace = object.namespace ?? 0;
|
|
3565
3535
|
message.name = object.name ?? "";
|
|
3566
3536
|
message.environmentName = object.environmentName ?? "";
|
|
3567
3537
|
return message;
|
|
@@ -3729,7 +3699,8 @@ function createBaseAppGetLogsRequest() {
|
|
|
3729
3699
|
inputId: "",
|
|
3730
3700
|
taskId: "",
|
|
3731
3701
|
functionCallId: "",
|
|
3732
|
-
fileDescriptor: 0
|
|
3702
|
+
fileDescriptor: 0,
|
|
3703
|
+
sandboxId: ""
|
|
3733
3704
|
};
|
|
3734
3705
|
}
|
|
3735
3706
|
var AppGetLogsRequest = {
|
|
@@ -3758,6 +3729,9 @@ var AppGetLogsRequest = {
|
|
|
3758
3729
|
if (message.fileDescriptor !== 0) {
|
|
3759
3730
|
writer.uint32(64).int32(message.fileDescriptor);
|
|
3760
3731
|
}
|
|
3732
|
+
if (message.sandboxId !== "") {
|
|
3733
|
+
writer.uint32(82).string(message.sandboxId);
|
|
3734
|
+
}
|
|
3761
3735
|
return writer;
|
|
3762
3736
|
},
|
|
3763
3737
|
decode(input, length) {
|
|
@@ -3823,6 +3797,13 @@ var AppGetLogsRequest = {
|
|
|
3823
3797
|
message.fileDescriptor = reader.int32();
|
|
3824
3798
|
continue;
|
|
3825
3799
|
}
|
|
3800
|
+
case 10: {
|
|
3801
|
+
if (tag !== 82) {
|
|
3802
|
+
break;
|
|
3803
|
+
}
|
|
3804
|
+
message.sandboxId = reader.string();
|
|
3805
|
+
continue;
|
|
3806
|
+
}
|
|
3826
3807
|
}
|
|
3827
3808
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3828
3809
|
break;
|
|
@@ -3840,7 +3821,8 @@ var AppGetLogsRequest = {
|
|
|
3840
3821
|
inputId: isSet3(object.inputId) ? globalThis.String(object.inputId) : "",
|
|
3841
3822
|
taskId: isSet3(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
3842
3823
|
functionCallId: isSet3(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
3843
|
-
fileDescriptor: isSet3(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0
|
|
3824
|
+
fileDescriptor: isSet3(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
|
|
3825
|
+
sandboxId: isSet3(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
|
|
3844
3826
|
};
|
|
3845
3827
|
},
|
|
3846
3828
|
toJSON(message) {
|
|
@@ -3869,6 +3851,9 @@ var AppGetLogsRequest = {
|
|
|
3869
3851
|
if (message.fileDescriptor !== 0) {
|
|
3870
3852
|
obj.fileDescriptor = fileDescriptorToJSON(message.fileDescriptor);
|
|
3871
3853
|
}
|
|
3854
|
+
if (message.sandboxId !== "") {
|
|
3855
|
+
obj.sandboxId = message.sandboxId;
|
|
3856
|
+
}
|
|
3872
3857
|
return obj;
|
|
3873
3858
|
},
|
|
3874
3859
|
create(base) {
|
|
@@ -3884,6 +3869,7 @@ var AppGetLogsRequest = {
|
|
|
3884
3869
|
message.taskId = object.taskId ?? "";
|
|
3885
3870
|
message.functionCallId = object.functionCallId ?? "";
|
|
3886
3871
|
message.fileDescriptor = object.fileDescriptor ?? 0;
|
|
3872
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
3887
3873
|
return message;
|
|
3888
3874
|
}
|
|
3889
3875
|
};
|
|
@@ -6468,7 +6454,14 @@ var BlobCreateRequest = {
|
|
|
6468
6454
|
}
|
|
6469
6455
|
};
|
|
6470
6456
|
function createBaseBlobCreateResponse() {
|
|
6471
|
-
return {
|
|
6457
|
+
return {
|
|
6458
|
+
blobId: "",
|
|
6459
|
+
uploadUrl: void 0,
|
|
6460
|
+
multipart: void 0,
|
|
6461
|
+
blobIds: [],
|
|
6462
|
+
uploadUrls: void 0,
|
|
6463
|
+
multiparts: void 0
|
|
6464
|
+
};
|
|
6472
6465
|
}
|
|
6473
6466
|
var BlobCreateResponse = {
|
|
6474
6467
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -6481,6 +6474,15 @@ var BlobCreateResponse = {
|
|
|
6481
6474
|
if (message.multipart !== void 0) {
|
|
6482
6475
|
MultiPartUpload.encode(message.multipart, writer.uint32(26).fork()).join();
|
|
6483
6476
|
}
|
|
6477
|
+
for (const v of message.blobIds) {
|
|
6478
|
+
writer.uint32(34).string(v);
|
|
6479
|
+
}
|
|
6480
|
+
if (message.uploadUrls !== void 0) {
|
|
6481
|
+
UploadUrlList.encode(message.uploadUrls, writer.uint32(42).fork()).join();
|
|
6482
|
+
}
|
|
6483
|
+
if (message.multiparts !== void 0) {
|
|
6484
|
+
MultiPartUploadList.encode(message.multiparts, writer.uint32(50).fork()).join();
|
|
6485
|
+
}
|
|
6484
6486
|
return writer;
|
|
6485
6487
|
},
|
|
6486
6488
|
decode(input, length) {
|
|
@@ -6511,6 +6513,27 @@ var BlobCreateResponse = {
|
|
|
6511
6513
|
message.multipart = MultiPartUpload.decode(reader, reader.uint32());
|
|
6512
6514
|
continue;
|
|
6513
6515
|
}
|
|
6516
|
+
case 4: {
|
|
6517
|
+
if (tag !== 34) {
|
|
6518
|
+
break;
|
|
6519
|
+
}
|
|
6520
|
+
message.blobIds.push(reader.string());
|
|
6521
|
+
continue;
|
|
6522
|
+
}
|
|
6523
|
+
case 5: {
|
|
6524
|
+
if (tag !== 42) {
|
|
6525
|
+
break;
|
|
6526
|
+
}
|
|
6527
|
+
message.uploadUrls = UploadUrlList.decode(reader, reader.uint32());
|
|
6528
|
+
continue;
|
|
6529
|
+
}
|
|
6530
|
+
case 6: {
|
|
6531
|
+
if (tag !== 50) {
|
|
6532
|
+
break;
|
|
6533
|
+
}
|
|
6534
|
+
message.multiparts = MultiPartUploadList.decode(reader, reader.uint32());
|
|
6535
|
+
continue;
|
|
6536
|
+
}
|
|
6514
6537
|
}
|
|
6515
6538
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6516
6539
|
break;
|
|
@@ -6523,7 +6546,10 @@ var BlobCreateResponse = {
|
|
|
6523
6546
|
return {
|
|
6524
6547
|
blobId: isSet3(object.blobId) ? globalThis.String(object.blobId) : "",
|
|
6525
6548
|
uploadUrl: isSet3(object.uploadUrl) ? globalThis.String(object.uploadUrl) : void 0,
|
|
6526
|
-
multipart: isSet3(object.multipart) ? MultiPartUpload.fromJSON(object.multipart) : void 0
|
|
6549
|
+
multipart: isSet3(object.multipart) ? MultiPartUpload.fromJSON(object.multipart) : void 0,
|
|
6550
|
+
blobIds: globalThis.Array.isArray(object?.blobIds) ? object.blobIds.map((e) => globalThis.String(e)) : [],
|
|
6551
|
+
uploadUrls: isSet3(object.uploadUrls) ? UploadUrlList.fromJSON(object.uploadUrls) : void 0,
|
|
6552
|
+
multiparts: isSet3(object.multiparts) ? MultiPartUploadList.fromJSON(object.multiparts) : void 0
|
|
6527
6553
|
};
|
|
6528
6554
|
},
|
|
6529
6555
|
toJSON(message) {
|
|
@@ -6537,6 +6563,15 @@ var BlobCreateResponse = {
|
|
|
6537
6563
|
if (message.multipart !== void 0) {
|
|
6538
6564
|
obj.multipart = MultiPartUpload.toJSON(message.multipart);
|
|
6539
6565
|
}
|
|
6566
|
+
if (message.blobIds?.length) {
|
|
6567
|
+
obj.blobIds = message.blobIds;
|
|
6568
|
+
}
|
|
6569
|
+
if (message.uploadUrls !== void 0) {
|
|
6570
|
+
obj.uploadUrls = UploadUrlList.toJSON(message.uploadUrls);
|
|
6571
|
+
}
|
|
6572
|
+
if (message.multiparts !== void 0) {
|
|
6573
|
+
obj.multiparts = MultiPartUploadList.toJSON(message.multiparts);
|
|
6574
|
+
}
|
|
6540
6575
|
return obj;
|
|
6541
6576
|
},
|
|
6542
6577
|
create(base) {
|
|
@@ -6547,6 +6582,9 @@ var BlobCreateResponse = {
|
|
|
6547
6582
|
message.blobId = object.blobId ?? "";
|
|
6548
6583
|
message.uploadUrl = object.uploadUrl ?? void 0;
|
|
6549
6584
|
message.multipart = object.multipart !== void 0 && object.multipart !== null ? MultiPartUpload.fromPartial(object.multipart) : void 0;
|
|
6585
|
+
message.blobIds = object.blobIds?.map((e) => e) || [];
|
|
6586
|
+
message.uploadUrls = object.uploadUrls !== void 0 && object.uploadUrls !== null ? UploadUrlList.fromPartial(object.uploadUrls) : void 0;
|
|
6587
|
+
message.multiparts = object.multiparts !== void 0 && object.multiparts !== null ? MultiPartUploadList.fromPartial(object.multiparts) : void 0;
|
|
6550
6588
|
return message;
|
|
6551
6589
|
}
|
|
6552
6590
|
};
|
|
@@ -7137,7 +7175,7 @@ var ClassCreateResponse = {
|
|
|
7137
7175
|
}
|
|
7138
7176
|
};
|
|
7139
7177
|
function createBaseClassGetRequest() {
|
|
7140
|
-
return { appName: "", objectTag: "",
|
|
7178
|
+
return { appName: "", objectTag: "", environmentName: "", onlyClassFunction: false };
|
|
7141
7179
|
}
|
|
7142
7180
|
var ClassGetRequest = {
|
|
7143
7181
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -7147,9 +7185,6 @@ var ClassGetRequest = {
|
|
|
7147
7185
|
if (message.objectTag !== "") {
|
|
7148
7186
|
writer.uint32(18).string(message.objectTag);
|
|
7149
7187
|
}
|
|
7150
|
-
if (message.namespace !== 0) {
|
|
7151
|
-
writer.uint32(24).int32(message.namespace);
|
|
7152
|
-
}
|
|
7153
7188
|
if (message.environmentName !== "") {
|
|
7154
7189
|
writer.uint32(34).string(message.environmentName);
|
|
7155
7190
|
}
|
|
@@ -7179,13 +7214,6 @@ var ClassGetRequest = {
|
|
|
7179
7214
|
message.objectTag = reader.string();
|
|
7180
7215
|
continue;
|
|
7181
7216
|
}
|
|
7182
|
-
case 3: {
|
|
7183
|
-
if (tag !== 24) {
|
|
7184
|
-
break;
|
|
7185
|
-
}
|
|
7186
|
-
message.namespace = reader.int32();
|
|
7187
|
-
continue;
|
|
7188
|
-
}
|
|
7189
7217
|
case 4: {
|
|
7190
7218
|
if (tag !== 34) {
|
|
7191
7219
|
break;
|
|
@@ -7212,7 +7240,6 @@ var ClassGetRequest = {
|
|
|
7212
7240
|
return {
|
|
7213
7241
|
appName: isSet3(object.appName) ? globalThis.String(object.appName) : "",
|
|
7214
7242
|
objectTag: isSet3(object.objectTag) ? globalThis.String(object.objectTag) : "",
|
|
7215
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
7216
7243
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
7217
7244
|
onlyClassFunction: isSet3(object.onlyClassFunction) ? globalThis.Boolean(object.onlyClassFunction) : false
|
|
7218
7245
|
};
|
|
@@ -7225,9 +7252,6 @@ var ClassGetRequest = {
|
|
|
7225
7252
|
if (message.objectTag !== "") {
|
|
7226
7253
|
obj.objectTag = message.objectTag;
|
|
7227
7254
|
}
|
|
7228
|
-
if (message.namespace !== 0) {
|
|
7229
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
7230
|
-
}
|
|
7231
7255
|
if (message.environmentName !== "") {
|
|
7232
7256
|
obj.environmentName = message.environmentName;
|
|
7233
7257
|
}
|
|
@@ -7243,7 +7267,6 @@ var ClassGetRequest = {
|
|
|
7243
7267
|
const message = createBaseClassGetRequest();
|
|
7244
7268
|
message.appName = object.appName ?? "";
|
|
7245
7269
|
message.objectTag = object.objectTag ?? "";
|
|
7246
|
-
message.namespace = object.namespace ?? 0;
|
|
7247
7270
|
message.environmentName = object.environmentName ?? "";
|
|
7248
7271
|
message.onlyClassFunction = object.onlyClassFunction ?? false;
|
|
7249
7272
|
return message;
|
|
@@ -10787,6 +10810,94 @@ var ContainerLogRequest = {
|
|
|
10787
10810
|
return message;
|
|
10788
10811
|
}
|
|
10789
10812
|
};
|
|
10813
|
+
function createBaseContainerReloadVolumesRequest() {
|
|
10814
|
+
return { taskId: "" };
|
|
10815
|
+
}
|
|
10816
|
+
var ContainerReloadVolumesRequest = {
|
|
10817
|
+
encode(message, writer = new BinaryWriter()) {
|
|
10818
|
+
if (message.taskId !== "") {
|
|
10819
|
+
writer.uint32(10).string(message.taskId);
|
|
10820
|
+
}
|
|
10821
|
+
return writer;
|
|
10822
|
+
},
|
|
10823
|
+
decode(input, length) {
|
|
10824
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10825
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
10826
|
+
const message = createBaseContainerReloadVolumesRequest();
|
|
10827
|
+
while (reader.pos < end) {
|
|
10828
|
+
const tag = reader.uint32();
|
|
10829
|
+
switch (tag >>> 3) {
|
|
10830
|
+
case 1: {
|
|
10831
|
+
if (tag !== 10) {
|
|
10832
|
+
break;
|
|
10833
|
+
}
|
|
10834
|
+
message.taskId = reader.string();
|
|
10835
|
+
continue;
|
|
10836
|
+
}
|
|
10837
|
+
}
|
|
10838
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10839
|
+
break;
|
|
10840
|
+
}
|
|
10841
|
+
reader.skip(tag & 7);
|
|
10842
|
+
}
|
|
10843
|
+
return message;
|
|
10844
|
+
},
|
|
10845
|
+
fromJSON(object) {
|
|
10846
|
+
return { taskId: isSet3(object.taskId) ? globalThis.String(object.taskId) : "" };
|
|
10847
|
+
},
|
|
10848
|
+
toJSON(message) {
|
|
10849
|
+
const obj = {};
|
|
10850
|
+
if (message.taskId !== "") {
|
|
10851
|
+
obj.taskId = message.taskId;
|
|
10852
|
+
}
|
|
10853
|
+
return obj;
|
|
10854
|
+
},
|
|
10855
|
+
create(base) {
|
|
10856
|
+
return ContainerReloadVolumesRequest.fromPartial(base ?? {});
|
|
10857
|
+
},
|
|
10858
|
+
fromPartial(object) {
|
|
10859
|
+
const message = createBaseContainerReloadVolumesRequest();
|
|
10860
|
+
message.taskId = object.taskId ?? "";
|
|
10861
|
+
return message;
|
|
10862
|
+
}
|
|
10863
|
+
};
|
|
10864
|
+
function createBaseContainerReloadVolumesResponse() {
|
|
10865
|
+
return {};
|
|
10866
|
+
}
|
|
10867
|
+
var ContainerReloadVolumesResponse = {
|
|
10868
|
+
encode(_, writer = new BinaryWriter()) {
|
|
10869
|
+
return writer;
|
|
10870
|
+
},
|
|
10871
|
+
decode(input, length) {
|
|
10872
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10873
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
10874
|
+
const message = createBaseContainerReloadVolumesResponse();
|
|
10875
|
+
while (reader.pos < end) {
|
|
10876
|
+
const tag = reader.uint32();
|
|
10877
|
+
switch (tag >>> 3) {
|
|
10878
|
+
}
|
|
10879
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10880
|
+
break;
|
|
10881
|
+
}
|
|
10882
|
+
reader.skip(tag & 7);
|
|
10883
|
+
}
|
|
10884
|
+
return message;
|
|
10885
|
+
},
|
|
10886
|
+
fromJSON(_) {
|
|
10887
|
+
return {};
|
|
10888
|
+
},
|
|
10889
|
+
toJSON(_) {
|
|
10890
|
+
const obj = {};
|
|
10891
|
+
return obj;
|
|
10892
|
+
},
|
|
10893
|
+
create(base) {
|
|
10894
|
+
return ContainerReloadVolumesResponse.fromPartial(base ?? {});
|
|
10895
|
+
},
|
|
10896
|
+
fromPartial(_) {
|
|
10897
|
+
const message = createBaseContainerReloadVolumesResponse();
|
|
10898
|
+
return message;
|
|
10899
|
+
}
|
|
10900
|
+
};
|
|
10790
10901
|
function createBaseContainerStopRequest() {
|
|
10791
10902
|
return { taskId: "" };
|
|
10792
10903
|
}
|
|
@@ -11531,16 +11642,13 @@ var DictEntry = {
|
|
|
11531
11642
|
}
|
|
11532
11643
|
};
|
|
11533
11644
|
function createBaseDictGetOrCreateRequest() {
|
|
11534
|
-
return { deploymentName: "",
|
|
11645
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, data: [] };
|
|
11535
11646
|
}
|
|
11536
11647
|
var DictGetOrCreateRequest = {
|
|
11537
11648
|
encode(message, writer = new BinaryWriter()) {
|
|
11538
11649
|
if (message.deploymentName !== "") {
|
|
11539
11650
|
writer.uint32(10).string(message.deploymentName);
|
|
11540
11651
|
}
|
|
11541
|
-
if (message.namespace !== 0) {
|
|
11542
|
-
writer.uint32(16).int32(message.namespace);
|
|
11543
|
-
}
|
|
11544
11652
|
if (message.environmentName !== "") {
|
|
11545
11653
|
writer.uint32(26).string(message.environmentName);
|
|
11546
11654
|
}
|
|
@@ -11566,13 +11674,6 @@ var DictGetOrCreateRequest = {
|
|
|
11566
11674
|
message.deploymentName = reader.string();
|
|
11567
11675
|
continue;
|
|
11568
11676
|
}
|
|
11569
|
-
case 2: {
|
|
11570
|
-
if (tag !== 16) {
|
|
11571
|
-
break;
|
|
11572
|
-
}
|
|
11573
|
-
message.namespace = reader.int32();
|
|
11574
|
-
continue;
|
|
11575
|
-
}
|
|
11576
11677
|
case 3: {
|
|
11577
11678
|
if (tag !== 26) {
|
|
11578
11679
|
break;
|
|
@@ -11605,7 +11706,6 @@ var DictGetOrCreateRequest = {
|
|
|
11605
11706
|
fromJSON(object) {
|
|
11606
11707
|
return {
|
|
11607
11708
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
11608
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
11609
11709
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
11610
11710
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
11611
11711
|
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => DictEntry.fromJSON(e)) : []
|
|
@@ -11616,9 +11716,6 @@ var DictGetOrCreateRequest = {
|
|
|
11616
11716
|
if (message.deploymentName !== "") {
|
|
11617
11717
|
obj.deploymentName = message.deploymentName;
|
|
11618
11718
|
}
|
|
11619
|
-
if (message.namespace !== 0) {
|
|
11620
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
11621
|
-
}
|
|
11622
11719
|
if (message.environmentName !== "") {
|
|
11623
11720
|
obj.environmentName = message.environmentName;
|
|
11624
11721
|
}
|
|
@@ -11636,7 +11733,6 @@ var DictGetOrCreateRequest = {
|
|
|
11636
11733
|
fromPartial(object) {
|
|
11637
11734
|
const message = createBaseDictGetOrCreateRequest();
|
|
11638
11735
|
message.deploymentName = object.deploymentName ?? "";
|
|
11639
|
-
message.namespace = object.namespace ?? 0;
|
|
11640
11736
|
message.environmentName = object.environmentName ?? "";
|
|
11641
11737
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
11642
11738
|
message.data = object.data?.map((e) => DictEntry.fromPartial(e)) || [];
|
|
@@ -13653,6 +13749,408 @@ var FilesystemRuntimeOutputBatch = {
|
|
|
13653
13749
|
return message;
|
|
13654
13750
|
}
|
|
13655
13751
|
};
|
|
13752
|
+
function createBaseFlashContainerDeregisterRequest() {
|
|
13753
|
+
return { serviceName: "" };
|
|
13754
|
+
}
|
|
13755
|
+
var FlashContainerDeregisterRequest = {
|
|
13756
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13757
|
+
if (message.serviceName !== "") {
|
|
13758
|
+
writer.uint32(10).string(message.serviceName);
|
|
13759
|
+
}
|
|
13760
|
+
return writer;
|
|
13761
|
+
},
|
|
13762
|
+
decode(input, length) {
|
|
13763
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13764
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13765
|
+
const message = createBaseFlashContainerDeregisterRequest();
|
|
13766
|
+
while (reader.pos < end) {
|
|
13767
|
+
const tag = reader.uint32();
|
|
13768
|
+
switch (tag >>> 3) {
|
|
13769
|
+
case 1: {
|
|
13770
|
+
if (tag !== 10) {
|
|
13771
|
+
break;
|
|
13772
|
+
}
|
|
13773
|
+
message.serviceName = reader.string();
|
|
13774
|
+
continue;
|
|
13775
|
+
}
|
|
13776
|
+
}
|
|
13777
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13778
|
+
break;
|
|
13779
|
+
}
|
|
13780
|
+
reader.skip(tag & 7);
|
|
13781
|
+
}
|
|
13782
|
+
return message;
|
|
13783
|
+
},
|
|
13784
|
+
fromJSON(object) {
|
|
13785
|
+
return { serviceName: isSet3(object.serviceName) ? globalThis.String(object.serviceName) : "" };
|
|
13786
|
+
},
|
|
13787
|
+
toJSON(message) {
|
|
13788
|
+
const obj = {};
|
|
13789
|
+
if (message.serviceName !== "") {
|
|
13790
|
+
obj.serviceName = message.serviceName;
|
|
13791
|
+
}
|
|
13792
|
+
return obj;
|
|
13793
|
+
},
|
|
13794
|
+
create(base) {
|
|
13795
|
+
return FlashContainerDeregisterRequest.fromPartial(base ?? {});
|
|
13796
|
+
},
|
|
13797
|
+
fromPartial(object) {
|
|
13798
|
+
const message = createBaseFlashContainerDeregisterRequest();
|
|
13799
|
+
message.serviceName = object.serviceName ?? "";
|
|
13800
|
+
return message;
|
|
13801
|
+
}
|
|
13802
|
+
};
|
|
13803
|
+
function createBaseFlashContainerListRequest() {
|
|
13804
|
+
return { functionId: "" };
|
|
13805
|
+
}
|
|
13806
|
+
var FlashContainerListRequest = {
|
|
13807
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13808
|
+
if (message.functionId !== "") {
|
|
13809
|
+
writer.uint32(10).string(message.functionId);
|
|
13810
|
+
}
|
|
13811
|
+
return writer;
|
|
13812
|
+
},
|
|
13813
|
+
decode(input, length) {
|
|
13814
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13815
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13816
|
+
const message = createBaseFlashContainerListRequest();
|
|
13817
|
+
while (reader.pos < end) {
|
|
13818
|
+
const tag = reader.uint32();
|
|
13819
|
+
switch (tag >>> 3) {
|
|
13820
|
+
case 1: {
|
|
13821
|
+
if (tag !== 10) {
|
|
13822
|
+
break;
|
|
13823
|
+
}
|
|
13824
|
+
message.functionId = reader.string();
|
|
13825
|
+
continue;
|
|
13826
|
+
}
|
|
13827
|
+
}
|
|
13828
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13829
|
+
break;
|
|
13830
|
+
}
|
|
13831
|
+
reader.skip(tag & 7);
|
|
13832
|
+
}
|
|
13833
|
+
return message;
|
|
13834
|
+
},
|
|
13835
|
+
fromJSON(object) {
|
|
13836
|
+
return { functionId: isSet3(object.functionId) ? globalThis.String(object.functionId) : "" };
|
|
13837
|
+
},
|
|
13838
|
+
toJSON(message) {
|
|
13839
|
+
const obj = {};
|
|
13840
|
+
if (message.functionId !== "") {
|
|
13841
|
+
obj.functionId = message.functionId;
|
|
13842
|
+
}
|
|
13843
|
+
return obj;
|
|
13844
|
+
},
|
|
13845
|
+
create(base) {
|
|
13846
|
+
return FlashContainerListRequest.fromPartial(base ?? {});
|
|
13847
|
+
},
|
|
13848
|
+
fromPartial(object) {
|
|
13849
|
+
const message = createBaseFlashContainerListRequest();
|
|
13850
|
+
message.functionId = object.functionId ?? "";
|
|
13851
|
+
return message;
|
|
13852
|
+
}
|
|
13853
|
+
};
|
|
13854
|
+
function createBaseFlashContainerListResponse() {
|
|
13855
|
+
return { containers: [] };
|
|
13856
|
+
}
|
|
13857
|
+
var FlashContainerListResponse = {
|
|
13858
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13859
|
+
for (const v of message.containers) {
|
|
13860
|
+
FlashContainerListResponse_Container.encode(v, writer.uint32(10).fork()).join();
|
|
13861
|
+
}
|
|
13862
|
+
return writer;
|
|
13863
|
+
},
|
|
13864
|
+
decode(input, length) {
|
|
13865
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13866
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13867
|
+
const message = createBaseFlashContainerListResponse();
|
|
13868
|
+
while (reader.pos < end) {
|
|
13869
|
+
const tag = reader.uint32();
|
|
13870
|
+
switch (tag >>> 3) {
|
|
13871
|
+
case 1: {
|
|
13872
|
+
if (tag !== 10) {
|
|
13873
|
+
break;
|
|
13874
|
+
}
|
|
13875
|
+
message.containers.push(FlashContainerListResponse_Container.decode(reader, reader.uint32()));
|
|
13876
|
+
continue;
|
|
13877
|
+
}
|
|
13878
|
+
}
|
|
13879
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13880
|
+
break;
|
|
13881
|
+
}
|
|
13882
|
+
reader.skip(tag & 7);
|
|
13883
|
+
}
|
|
13884
|
+
return message;
|
|
13885
|
+
},
|
|
13886
|
+
fromJSON(object) {
|
|
13887
|
+
return {
|
|
13888
|
+
containers: globalThis.Array.isArray(object?.containers) ? object.containers.map((e) => FlashContainerListResponse_Container.fromJSON(e)) : []
|
|
13889
|
+
};
|
|
13890
|
+
},
|
|
13891
|
+
toJSON(message) {
|
|
13892
|
+
const obj = {};
|
|
13893
|
+
if (message.containers?.length) {
|
|
13894
|
+
obj.containers = message.containers.map((e) => FlashContainerListResponse_Container.toJSON(e));
|
|
13895
|
+
}
|
|
13896
|
+
return obj;
|
|
13897
|
+
},
|
|
13898
|
+
create(base) {
|
|
13899
|
+
return FlashContainerListResponse.fromPartial(base ?? {});
|
|
13900
|
+
},
|
|
13901
|
+
fromPartial(object) {
|
|
13902
|
+
const message = createBaseFlashContainerListResponse();
|
|
13903
|
+
message.containers = object.containers?.map((e) => FlashContainerListResponse_Container.fromPartial(e)) || [];
|
|
13904
|
+
return message;
|
|
13905
|
+
}
|
|
13906
|
+
};
|
|
13907
|
+
function createBaseFlashContainerListResponse_Container() {
|
|
13908
|
+
return { taskId: "", host: "", port: 0 };
|
|
13909
|
+
}
|
|
13910
|
+
var FlashContainerListResponse_Container = {
|
|
13911
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13912
|
+
if (message.taskId !== "") {
|
|
13913
|
+
writer.uint32(10).string(message.taskId);
|
|
13914
|
+
}
|
|
13915
|
+
if (message.host !== "") {
|
|
13916
|
+
writer.uint32(18).string(message.host);
|
|
13917
|
+
}
|
|
13918
|
+
if (message.port !== 0) {
|
|
13919
|
+
writer.uint32(24).uint32(message.port);
|
|
13920
|
+
}
|
|
13921
|
+
return writer;
|
|
13922
|
+
},
|
|
13923
|
+
decode(input, length) {
|
|
13924
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13925
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13926
|
+
const message = createBaseFlashContainerListResponse_Container();
|
|
13927
|
+
while (reader.pos < end) {
|
|
13928
|
+
const tag = reader.uint32();
|
|
13929
|
+
switch (tag >>> 3) {
|
|
13930
|
+
case 1: {
|
|
13931
|
+
if (tag !== 10) {
|
|
13932
|
+
break;
|
|
13933
|
+
}
|
|
13934
|
+
message.taskId = reader.string();
|
|
13935
|
+
continue;
|
|
13936
|
+
}
|
|
13937
|
+
case 2: {
|
|
13938
|
+
if (tag !== 18) {
|
|
13939
|
+
break;
|
|
13940
|
+
}
|
|
13941
|
+
message.host = reader.string();
|
|
13942
|
+
continue;
|
|
13943
|
+
}
|
|
13944
|
+
case 3: {
|
|
13945
|
+
if (tag !== 24) {
|
|
13946
|
+
break;
|
|
13947
|
+
}
|
|
13948
|
+
message.port = reader.uint32();
|
|
13949
|
+
continue;
|
|
13950
|
+
}
|
|
13951
|
+
}
|
|
13952
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13953
|
+
break;
|
|
13954
|
+
}
|
|
13955
|
+
reader.skip(tag & 7);
|
|
13956
|
+
}
|
|
13957
|
+
return message;
|
|
13958
|
+
},
|
|
13959
|
+
fromJSON(object) {
|
|
13960
|
+
return {
|
|
13961
|
+
taskId: isSet3(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
13962
|
+
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
13963
|
+
port: isSet3(object.port) ? globalThis.Number(object.port) : 0
|
|
13964
|
+
};
|
|
13965
|
+
},
|
|
13966
|
+
toJSON(message) {
|
|
13967
|
+
const obj = {};
|
|
13968
|
+
if (message.taskId !== "") {
|
|
13969
|
+
obj.taskId = message.taskId;
|
|
13970
|
+
}
|
|
13971
|
+
if (message.host !== "") {
|
|
13972
|
+
obj.host = message.host;
|
|
13973
|
+
}
|
|
13974
|
+
if (message.port !== 0) {
|
|
13975
|
+
obj.port = Math.round(message.port);
|
|
13976
|
+
}
|
|
13977
|
+
return obj;
|
|
13978
|
+
},
|
|
13979
|
+
create(base) {
|
|
13980
|
+
return FlashContainerListResponse_Container.fromPartial(base ?? {});
|
|
13981
|
+
},
|
|
13982
|
+
fromPartial(object) {
|
|
13983
|
+
const message = createBaseFlashContainerListResponse_Container();
|
|
13984
|
+
message.taskId = object.taskId ?? "";
|
|
13985
|
+
message.host = object.host ?? "";
|
|
13986
|
+
message.port = object.port ?? 0;
|
|
13987
|
+
return message;
|
|
13988
|
+
}
|
|
13989
|
+
};
|
|
13990
|
+
function createBaseFlashContainerRegisterRequest() {
|
|
13991
|
+
return { serviceName: "", priority: 0, weight: 0, host: "", port: 0 };
|
|
13992
|
+
}
|
|
13993
|
+
var FlashContainerRegisterRequest = {
|
|
13994
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13995
|
+
if (message.serviceName !== "") {
|
|
13996
|
+
writer.uint32(10).string(message.serviceName);
|
|
13997
|
+
}
|
|
13998
|
+
if (message.priority !== 0) {
|
|
13999
|
+
writer.uint32(16).uint32(message.priority);
|
|
14000
|
+
}
|
|
14001
|
+
if (message.weight !== 0) {
|
|
14002
|
+
writer.uint32(24).uint32(message.weight);
|
|
14003
|
+
}
|
|
14004
|
+
if (message.host !== "") {
|
|
14005
|
+
writer.uint32(34).string(message.host);
|
|
14006
|
+
}
|
|
14007
|
+
if (message.port !== 0) {
|
|
14008
|
+
writer.uint32(40).uint32(message.port);
|
|
14009
|
+
}
|
|
14010
|
+
return writer;
|
|
14011
|
+
},
|
|
14012
|
+
decode(input, length) {
|
|
14013
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14014
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14015
|
+
const message = createBaseFlashContainerRegisterRequest();
|
|
14016
|
+
while (reader.pos < end) {
|
|
14017
|
+
const tag = reader.uint32();
|
|
14018
|
+
switch (tag >>> 3) {
|
|
14019
|
+
case 1: {
|
|
14020
|
+
if (tag !== 10) {
|
|
14021
|
+
break;
|
|
14022
|
+
}
|
|
14023
|
+
message.serviceName = reader.string();
|
|
14024
|
+
continue;
|
|
14025
|
+
}
|
|
14026
|
+
case 2: {
|
|
14027
|
+
if (tag !== 16) {
|
|
14028
|
+
break;
|
|
14029
|
+
}
|
|
14030
|
+
message.priority = reader.uint32();
|
|
14031
|
+
continue;
|
|
14032
|
+
}
|
|
14033
|
+
case 3: {
|
|
14034
|
+
if (tag !== 24) {
|
|
14035
|
+
break;
|
|
14036
|
+
}
|
|
14037
|
+
message.weight = reader.uint32();
|
|
14038
|
+
continue;
|
|
14039
|
+
}
|
|
14040
|
+
case 4: {
|
|
14041
|
+
if (tag !== 34) {
|
|
14042
|
+
break;
|
|
14043
|
+
}
|
|
14044
|
+
message.host = reader.string();
|
|
14045
|
+
continue;
|
|
14046
|
+
}
|
|
14047
|
+
case 5: {
|
|
14048
|
+
if (tag !== 40) {
|
|
14049
|
+
break;
|
|
14050
|
+
}
|
|
14051
|
+
message.port = reader.uint32();
|
|
14052
|
+
continue;
|
|
14053
|
+
}
|
|
14054
|
+
}
|
|
14055
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14056
|
+
break;
|
|
14057
|
+
}
|
|
14058
|
+
reader.skip(tag & 7);
|
|
14059
|
+
}
|
|
14060
|
+
return message;
|
|
14061
|
+
},
|
|
14062
|
+
fromJSON(object) {
|
|
14063
|
+
return {
|
|
14064
|
+
serviceName: isSet3(object.serviceName) ? globalThis.String(object.serviceName) : "",
|
|
14065
|
+
priority: isSet3(object.priority) ? globalThis.Number(object.priority) : 0,
|
|
14066
|
+
weight: isSet3(object.weight) ? globalThis.Number(object.weight) : 0,
|
|
14067
|
+
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
14068
|
+
port: isSet3(object.port) ? globalThis.Number(object.port) : 0
|
|
14069
|
+
};
|
|
14070
|
+
},
|
|
14071
|
+
toJSON(message) {
|
|
14072
|
+
const obj = {};
|
|
14073
|
+
if (message.serviceName !== "") {
|
|
14074
|
+
obj.serviceName = message.serviceName;
|
|
14075
|
+
}
|
|
14076
|
+
if (message.priority !== 0) {
|
|
14077
|
+
obj.priority = Math.round(message.priority);
|
|
14078
|
+
}
|
|
14079
|
+
if (message.weight !== 0) {
|
|
14080
|
+
obj.weight = Math.round(message.weight);
|
|
14081
|
+
}
|
|
14082
|
+
if (message.host !== "") {
|
|
14083
|
+
obj.host = message.host;
|
|
14084
|
+
}
|
|
14085
|
+
if (message.port !== 0) {
|
|
14086
|
+
obj.port = Math.round(message.port);
|
|
14087
|
+
}
|
|
14088
|
+
return obj;
|
|
14089
|
+
},
|
|
14090
|
+
create(base) {
|
|
14091
|
+
return FlashContainerRegisterRequest.fromPartial(base ?? {});
|
|
14092
|
+
},
|
|
14093
|
+
fromPartial(object) {
|
|
14094
|
+
const message = createBaseFlashContainerRegisterRequest();
|
|
14095
|
+
message.serviceName = object.serviceName ?? "";
|
|
14096
|
+
message.priority = object.priority ?? 0;
|
|
14097
|
+
message.weight = object.weight ?? 0;
|
|
14098
|
+
message.host = object.host ?? "";
|
|
14099
|
+
message.port = object.port ?? 0;
|
|
14100
|
+
return message;
|
|
14101
|
+
}
|
|
14102
|
+
};
|
|
14103
|
+
function createBaseFlashContainerRegisterResponse() {
|
|
14104
|
+
return { url: "" };
|
|
14105
|
+
}
|
|
14106
|
+
var FlashContainerRegisterResponse = {
|
|
14107
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14108
|
+
if (message.url !== "") {
|
|
14109
|
+
writer.uint32(10).string(message.url);
|
|
14110
|
+
}
|
|
14111
|
+
return writer;
|
|
14112
|
+
},
|
|
14113
|
+
decode(input, length) {
|
|
14114
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14115
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14116
|
+
const message = createBaseFlashContainerRegisterResponse();
|
|
14117
|
+
while (reader.pos < end) {
|
|
14118
|
+
const tag = reader.uint32();
|
|
14119
|
+
switch (tag >>> 3) {
|
|
14120
|
+
case 1: {
|
|
14121
|
+
if (tag !== 10) {
|
|
14122
|
+
break;
|
|
14123
|
+
}
|
|
14124
|
+
message.url = reader.string();
|
|
14125
|
+
continue;
|
|
14126
|
+
}
|
|
14127
|
+
}
|
|
14128
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14129
|
+
break;
|
|
14130
|
+
}
|
|
14131
|
+
reader.skip(tag & 7);
|
|
14132
|
+
}
|
|
14133
|
+
return message;
|
|
14134
|
+
},
|
|
14135
|
+
fromJSON(object) {
|
|
14136
|
+
return { url: isSet3(object.url) ? globalThis.String(object.url) : "" };
|
|
14137
|
+
},
|
|
14138
|
+
toJSON(message) {
|
|
14139
|
+
const obj = {};
|
|
14140
|
+
if (message.url !== "") {
|
|
14141
|
+
obj.url = message.url;
|
|
14142
|
+
}
|
|
14143
|
+
return obj;
|
|
14144
|
+
},
|
|
14145
|
+
create(base) {
|
|
14146
|
+
return FlashContainerRegisterResponse.fromPartial(base ?? {});
|
|
14147
|
+
},
|
|
14148
|
+
fromPartial(object) {
|
|
14149
|
+
const message = createBaseFlashContainerRegisterResponse();
|
|
14150
|
+
message.url = object.url ?? "";
|
|
14151
|
+
return message;
|
|
14152
|
+
}
|
|
14153
|
+
};
|
|
13656
14154
|
function createBaseFunctionMessage() {
|
|
13657
14155
|
return {
|
|
13658
14156
|
moduleName: "",
|
|
@@ -13723,7 +14221,8 @@ function createBaseFunctionMessage() {
|
|
|
13723
14221
|
autoscalerSettings: void 0,
|
|
13724
14222
|
functionSchema: void 0,
|
|
13725
14223
|
experimentalOptions: {},
|
|
13726
|
-
mountClientDependencies: false
|
|
14224
|
+
mountClientDependencies: false,
|
|
14225
|
+
flashServiceUrls: []
|
|
13727
14226
|
};
|
|
13728
14227
|
}
|
|
13729
14228
|
var FunctionMessage = {
|
|
@@ -13935,6 +14434,9 @@ var FunctionMessage = {
|
|
|
13935
14434
|
if (message.mountClientDependencies !== false) {
|
|
13936
14435
|
writer.uint32(656).bool(message.mountClientDependencies);
|
|
13937
14436
|
}
|
|
14437
|
+
for (const v of message.flashServiceUrls) {
|
|
14438
|
+
writer.uint32(666).string(v);
|
|
14439
|
+
}
|
|
13938
14440
|
return writer;
|
|
13939
14441
|
},
|
|
13940
14442
|
decode(input, length) {
|
|
@@ -14433,6 +14935,13 @@ var FunctionMessage = {
|
|
|
14433
14935
|
message.mountClientDependencies = reader.bool();
|
|
14434
14936
|
continue;
|
|
14435
14937
|
}
|
|
14938
|
+
case 83: {
|
|
14939
|
+
if (tag !== 666) {
|
|
14940
|
+
break;
|
|
14941
|
+
}
|
|
14942
|
+
message.flashServiceUrls.push(reader.string());
|
|
14943
|
+
continue;
|
|
14944
|
+
}
|
|
14436
14945
|
}
|
|
14437
14946
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14438
14947
|
break;
|
|
@@ -14517,7 +15026,8 @@ var FunctionMessage = {
|
|
|
14517
15026
|
acc[key] = String(value);
|
|
14518
15027
|
return acc;
|
|
14519
15028
|
}, {}) : {},
|
|
14520
|
-
mountClientDependencies: isSet3(object.mountClientDependencies) ? globalThis.Boolean(object.mountClientDependencies) : false
|
|
15029
|
+
mountClientDependencies: isSet3(object.mountClientDependencies) ? globalThis.Boolean(object.mountClientDependencies) : false,
|
|
15030
|
+
flashServiceUrls: globalThis.Array.isArray(object?.flashServiceUrls) ? object.flashServiceUrls.map((e) => globalThis.String(e)) : []
|
|
14521
15031
|
};
|
|
14522
15032
|
},
|
|
14523
15033
|
toJSON(message) {
|
|
@@ -14741,6 +15251,9 @@ var FunctionMessage = {
|
|
|
14741
15251
|
if (message.mountClientDependencies !== false) {
|
|
14742
15252
|
obj.mountClientDependencies = message.mountClientDependencies;
|
|
14743
15253
|
}
|
|
15254
|
+
if (message.flashServiceUrls?.length) {
|
|
15255
|
+
obj.flashServiceUrls = message.flashServiceUrls;
|
|
15256
|
+
}
|
|
14744
15257
|
return obj;
|
|
14745
15258
|
},
|
|
14746
15259
|
create(base) {
|
|
@@ -14830,6 +15343,7 @@ var FunctionMessage = {
|
|
|
14830
15343
|
{}
|
|
14831
15344
|
);
|
|
14832
15345
|
message.mountClientDependencies = object.mountClientDependencies ?? false;
|
|
15346
|
+
message.flashServiceUrls = object.flashServiceUrls?.map((e) => e) || [];
|
|
14833
15347
|
return message;
|
|
14834
15348
|
}
|
|
14835
15349
|
};
|
|
@@ -16150,7 +16664,8 @@ function createBaseFunctionData() {
|
|
|
16150
16664
|
runtimePerfRecord: false,
|
|
16151
16665
|
autoscalerSettings: void 0,
|
|
16152
16666
|
functionSchema: void 0,
|
|
16153
|
-
experimentalOptions: {}
|
|
16667
|
+
experimentalOptions: {},
|
|
16668
|
+
flashServiceUrls: []
|
|
16154
16669
|
};
|
|
16155
16670
|
}
|
|
16156
16671
|
var FunctionData = {
|
|
@@ -16251,6 +16766,9 @@ var FunctionData = {
|
|
|
16251
16766
|
Object.entries(message.experimentalOptions).forEach(([key, value]) => {
|
|
16252
16767
|
FunctionData_ExperimentalOptionsEntry.encode({ key, value }, writer.uint32(266).fork()).join();
|
|
16253
16768
|
});
|
|
16769
|
+
for (const v of message.flashServiceUrls) {
|
|
16770
|
+
writer.uint32(274).string(v);
|
|
16771
|
+
}
|
|
16254
16772
|
return writer;
|
|
16255
16773
|
},
|
|
16256
16774
|
decode(input, length) {
|
|
@@ -16490,6 +17008,13 @@ var FunctionData = {
|
|
|
16490
17008
|
}
|
|
16491
17009
|
continue;
|
|
16492
17010
|
}
|
|
17011
|
+
case 34: {
|
|
17012
|
+
if (tag !== 274) {
|
|
17013
|
+
break;
|
|
17014
|
+
}
|
|
17015
|
+
message.flashServiceUrls.push(reader.string());
|
|
17016
|
+
continue;
|
|
17017
|
+
}
|
|
16493
17018
|
}
|
|
16494
17019
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16495
17020
|
break;
|
|
@@ -16537,7 +17062,8 @@ var FunctionData = {
|
|
|
16537
17062
|
experimentalOptions: isObject2(object.experimentalOptions) ? Object.entries(object.experimentalOptions).reduce((acc, [key, value]) => {
|
|
16538
17063
|
acc[key] = String(value);
|
|
16539
17064
|
return acc;
|
|
16540
|
-
}, {}) : {}
|
|
17065
|
+
}, {}) : {},
|
|
17066
|
+
flashServiceUrls: globalThis.Array.isArray(object?.flashServiceUrls) ? object.flashServiceUrls.map((e) => globalThis.String(e)) : []
|
|
16541
17067
|
};
|
|
16542
17068
|
},
|
|
16543
17069
|
toJSON(message) {
|
|
@@ -16650,6 +17176,9 @@ var FunctionData = {
|
|
|
16650
17176
|
});
|
|
16651
17177
|
}
|
|
16652
17178
|
}
|
|
17179
|
+
if (message.flashServiceUrls?.length) {
|
|
17180
|
+
obj.flashServiceUrls = message.flashServiceUrls;
|
|
17181
|
+
}
|
|
16653
17182
|
return obj;
|
|
16654
17183
|
},
|
|
16655
17184
|
create(base) {
|
|
@@ -16702,6 +17231,7 @@ var FunctionData = {
|
|
|
16702
17231
|
},
|
|
16703
17232
|
{}
|
|
16704
17233
|
);
|
|
17234
|
+
message.flashServiceUrls = object.flashServiceUrls?.map((e) => e) || [];
|
|
16705
17235
|
return message;
|
|
16706
17236
|
}
|
|
16707
17237
|
};
|
|
@@ -17986,7 +18516,7 @@ var FunctionGetOutputsResponse = {
|
|
|
17986
18516
|
}
|
|
17987
18517
|
};
|
|
17988
18518
|
function createBaseFunctionGetRequest() {
|
|
17989
|
-
return { appName: "", objectTag: "",
|
|
18519
|
+
return { appName: "", objectTag: "", environmentName: "" };
|
|
17990
18520
|
}
|
|
17991
18521
|
var FunctionGetRequest = {
|
|
17992
18522
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -17996,9 +18526,6 @@ var FunctionGetRequest = {
|
|
|
17996
18526
|
if (message.objectTag !== "") {
|
|
17997
18527
|
writer.uint32(18).string(message.objectTag);
|
|
17998
18528
|
}
|
|
17999
|
-
if (message.namespace !== 0) {
|
|
18000
|
-
writer.uint32(24).int32(message.namespace);
|
|
18001
|
-
}
|
|
18002
18529
|
if (message.environmentName !== "") {
|
|
18003
18530
|
writer.uint32(34).string(message.environmentName);
|
|
18004
18531
|
}
|
|
@@ -18025,13 +18552,6 @@ var FunctionGetRequest = {
|
|
|
18025
18552
|
message.objectTag = reader.string();
|
|
18026
18553
|
continue;
|
|
18027
18554
|
}
|
|
18028
|
-
case 3: {
|
|
18029
|
-
if (tag !== 24) {
|
|
18030
|
-
break;
|
|
18031
|
-
}
|
|
18032
|
-
message.namespace = reader.int32();
|
|
18033
|
-
continue;
|
|
18034
|
-
}
|
|
18035
18555
|
case 4: {
|
|
18036
18556
|
if (tag !== 34) {
|
|
18037
18557
|
break;
|
|
@@ -18051,7 +18571,6 @@ var FunctionGetRequest = {
|
|
|
18051
18571
|
return {
|
|
18052
18572
|
appName: isSet3(object.appName) ? globalThis.String(object.appName) : "",
|
|
18053
18573
|
objectTag: isSet3(object.objectTag) ? globalThis.String(object.objectTag) : "",
|
|
18054
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
18055
18574
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
18056
18575
|
};
|
|
18057
18576
|
},
|
|
@@ -18063,9 +18582,6 @@ var FunctionGetRequest = {
|
|
|
18063
18582
|
if (message.objectTag !== "") {
|
|
18064
18583
|
obj.objectTag = message.objectTag;
|
|
18065
18584
|
}
|
|
18066
|
-
if (message.namespace !== 0) {
|
|
18067
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
18068
|
-
}
|
|
18069
18585
|
if (message.environmentName !== "") {
|
|
18070
18586
|
obj.environmentName = message.environmentName;
|
|
18071
18587
|
}
|
|
@@ -18078,7 +18594,6 @@ var FunctionGetRequest = {
|
|
|
18078
18594
|
const message = createBaseFunctionGetRequest();
|
|
18079
18595
|
message.appName = object.appName ?? "";
|
|
18080
18596
|
message.objectTag = object.objectTag ?? "";
|
|
18081
|
-
message.namespace = object.namespace ?? 0;
|
|
18082
18597
|
message.environmentName = object.environmentName ?? "";
|
|
18083
18598
|
return message;
|
|
18084
18599
|
}
|
|
@@ -18297,7 +18812,8 @@ function createBaseFunctionHandleMetadata() {
|
|
|
18297
18812
|
classParameterInfo: void 0,
|
|
18298
18813
|
methodHandleMetadata: {},
|
|
18299
18814
|
functionSchema: void 0,
|
|
18300
|
-
inputPlaneUrl: void 0
|
|
18815
|
+
inputPlaneUrl: void 0,
|
|
18816
|
+
inputPlaneRegion: void 0
|
|
18301
18817
|
};
|
|
18302
18818
|
}
|
|
18303
18819
|
var FunctionHandleMetadata = {
|
|
@@ -18335,6 +18851,9 @@ var FunctionHandleMetadata = {
|
|
|
18335
18851
|
if (message.inputPlaneUrl !== void 0) {
|
|
18336
18852
|
writer.uint32(370).string(message.inputPlaneUrl);
|
|
18337
18853
|
}
|
|
18854
|
+
if (message.inputPlaneRegion !== void 0) {
|
|
18855
|
+
writer.uint32(378).string(message.inputPlaneRegion);
|
|
18856
|
+
}
|
|
18338
18857
|
return writer;
|
|
18339
18858
|
},
|
|
18340
18859
|
decode(input, length) {
|
|
@@ -18424,6 +18943,13 @@ var FunctionHandleMetadata = {
|
|
|
18424
18943
|
message.inputPlaneUrl = reader.string();
|
|
18425
18944
|
continue;
|
|
18426
18945
|
}
|
|
18946
|
+
case 47: {
|
|
18947
|
+
if (tag !== 378) {
|
|
18948
|
+
break;
|
|
18949
|
+
}
|
|
18950
|
+
message.inputPlaneRegion = reader.string();
|
|
18951
|
+
continue;
|
|
18952
|
+
}
|
|
18427
18953
|
}
|
|
18428
18954
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18429
18955
|
break;
|
|
@@ -18450,7 +18976,8 @@ var FunctionHandleMetadata = {
|
|
|
18450
18976
|
{}
|
|
18451
18977
|
) : {},
|
|
18452
18978
|
functionSchema: isSet3(object.functionSchema) ? FunctionSchema.fromJSON(object.functionSchema) : void 0,
|
|
18453
|
-
inputPlaneUrl: isSet3(object.inputPlaneUrl) ? globalThis.String(object.inputPlaneUrl) : void 0
|
|
18979
|
+
inputPlaneUrl: isSet3(object.inputPlaneUrl) ? globalThis.String(object.inputPlaneUrl) : void 0,
|
|
18980
|
+
inputPlaneRegion: isSet3(object.inputPlaneRegion) ? globalThis.String(object.inputPlaneRegion) : void 0
|
|
18454
18981
|
};
|
|
18455
18982
|
},
|
|
18456
18983
|
toJSON(message) {
|
|
@@ -18494,6 +19021,9 @@ var FunctionHandleMetadata = {
|
|
|
18494
19021
|
if (message.inputPlaneUrl !== void 0) {
|
|
18495
19022
|
obj.inputPlaneUrl = message.inputPlaneUrl;
|
|
18496
19023
|
}
|
|
19024
|
+
if (message.inputPlaneRegion !== void 0) {
|
|
19025
|
+
obj.inputPlaneRegion = message.inputPlaneRegion;
|
|
19026
|
+
}
|
|
18497
19027
|
return obj;
|
|
18498
19028
|
},
|
|
18499
19029
|
create(base) {
|
|
@@ -18517,6 +19047,7 @@ var FunctionHandleMetadata = {
|
|
|
18517
19047
|
}, {});
|
|
18518
19048
|
message.functionSchema = object.functionSchema !== void 0 && object.functionSchema !== null ? FunctionSchema.fromPartial(object.functionSchema) : void 0;
|
|
18519
19049
|
message.inputPlaneUrl = object.inputPlaneUrl ?? void 0;
|
|
19050
|
+
message.inputPlaneRegion = object.inputPlaneRegion ?? void 0;
|
|
18520
19051
|
return message;
|
|
18521
19052
|
}
|
|
18522
19053
|
};
|
|
@@ -19619,7 +20150,7 @@ var FunctionPrecreateResponse = {
|
|
|
19619
20150
|
}
|
|
19620
20151
|
};
|
|
19621
20152
|
function createBaseFunctionPutInputsItem() {
|
|
19622
|
-
return { idx: 0, input: void 0 };
|
|
20153
|
+
return { idx: 0, input: void 0, r2Failed: false, r2LatencyMs: 0 };
|
|
19623
20154
|
}
|
|
19624
20155
|
var FunctionPutInputsItem = {
|
|
19625
20156
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -19629,6 +20160,12 @@ var FunctionPutInputsItem = {
|
|
|
19629
20160
|
if (message.input !== void 0) {
|
|
19630
20161
|
FunctionInput.encode(message.input, writer.uint32(18).fork()).join();
|
|
19631
20162
|
}
|
|
20163
|
+
if (message.r2Failed !== false) {
|
|
20164
|
+
writer.uint32(24).bool(message.r2Failed);
|
|
20165
|
+
}
|
|
20166
|
+
if (message.r2LatencyMs !== 0) {
|
|
20167
|
+
writer.uint32(32).uint64(message.r2LatencyMs);
|
|
20168
|
+
}
|
|
19632
20169
|
return writer;
|
|
19633
20170
|
},
|
|
19634
20171
|
decode(input, length) {
|
|
@@ -19652,6 +20189,20 @@ var FunctionPutInputsItem = {
|
|
|
19652
20189
|
message.input = FunctionInput.decode(reader, reader.uint32());
|
|
19653
20190
|
continue;
|
|
19654
20191
|
}
|
|
20192
|
+
case 3: {
|
|
20193
|
+
if (tag !== 24) {
|
|
20194
|
+
break;
|
|
20195
|
+
}
|
|
20196
|
+
message.r2Failed = reader.bool();
|
|
20197
|
+
continue;
|
|
20198
|
+
}
|
|
20199
|
+
case 4: {
|
|
20200
|
+
if (tag !== 32) {
|
|
20201
|
+
break;
|
|
20202
|
+
}
|
|
20203
|
+
message.r2LatencyMs = longToNumber(reader.uint64());
|
|
20204
|
+
continue;
|
|
20205
|
+
}
|
|
19655
20206
|
}
|
|
19656
20207
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19657
20208
|
break;
|
|
@@ -19663,7 +20214,9 @@ var FunctionPutInputsItem = {
|
|
|
19663
20214
|
fromJSON(object) {
|
|
19664
20215
|
return {
|
|
19665
20216
|
idx: isSet3(object.idx) ? globalThis.Number(object.idx) : 0,
|
|
19666
|
-
input: isSet3(object.input) ? FunctionInput.fromJSON(object.input) : void 0
|
|
20217
|
+
input: isSet3(object.input) ? FunctionInput.fromJSON(object.input) : void 0,
|
|
20218
|
+
r2Failed: isSet3(object.r2Failed) ? globalThis.Boolean(object.r2Failed) : false,
|
|
20219
|
+
r2LatencyMs: isSet3(object.r2LatencyMs) ? globalThis.Number(object.r2LatencyMs) : 0
|
|
19667
20220
|
};
|
|
19668
20221
|
},
|
|
19669
20222
|
toJSON(message) {
|
|
@@ -19674,6 +20227,12 @@ var FunctionPutInputsItem = {
|
|
|
19674
20227
|
if (message.input !== void 0) {
|
|
19675
20228
|
obj.input = FunctionInput.toJSON(message.input);
|
|
19676
20229
|
}
|
|
20230
|
+
if (message.r2Failed !== false) {
|
|
20231
|
+
obj.r2Failed = message.r2Failed;
|
|
20232
|
+
}
|
|
20233
|
+
if (message.r2LatencyMs !== 0) {
|
|
20234
|
+
obj.r2LatencyMs = Math.round(message.r2LatencyMs);
|
|
20235
|
+
}
|
|
19677
20236
|
return obj;
|
|
19678
20237
|
},
|
|
19679
20238
|
create(base) {
|
|
@@ -19683,6 +20242,8 @@ var FunctionPutInputsItem = {
|
|
|
19683
20242
|
const message = createBaseFunctionPutInputsItem();
|
|
19684
20243
|
message.idx = object.idx ?? 0;
|
|
19685
20244
|
message.input = object.input !== void 0 && object.input !== null ? FunctionInput.fromPartial(object.input) : void 0;
|
|
20245
|
+
message.r2Failed = object.r2Failed ?? false;
|
|
20246
|
+
message.r2LatencyMs = object.r2LatencyMs ?? 0;
|
|
19686
20247
|
return message;
|
|
19687
20248
|
}
|
|
19688
20249
|
};
|
|
@@ -21073,7 +21634,8 @@ function createBaseImage() {
|
|
|
21073
21634
|
buildFunctionGlobals: new Uint8Array(0),
|
|
21074
21635
|
runtime: "",
|
|
21075
21636
|
runtimeDebug: false,
|
|
21076
|
-
buildFunction: void 0
|
|
21637
|
+
buildFunction: void 0,
|
|
21638
|
+
buildArgs: {}
|
|
21077
21639
|
};
|
|
21078
21640
|
}
|
|
21079
21641
|
var Image = {
|
|
@@ -21117,6 +21679,9 @@ var Image = {
|
|
|
21117
21679
|
if (message.buildFunction !== void 0) {
|
|
21118
21680
|
BuildFunction.encode(message.buildFunction, writer.uint32(170).fork()).join();
|
|
21119
21681
|
}
|
|
21682
|
+
Object.entries(message.buildArgs).forEach(([key, value]) => {
|
|
21683
|
+
Image_BuildArgsEntry.encode({ key, value }, writer.uint32(178).fork()).join();
|
|
21684
|
+
});
|
|
21120
21685
|
return writer;
|
|
21121
21686
|
},
|
|
21122
21687
|
decode(input, length) {
|
|
@@ -21217,6 +21782,16 @@ var Image = {
|
|
|
21217
21782
|
message.buildFunction = BuildFunction.decode(reader, reader.uint32());
|
|
21218
21783
|
continue;
|
|
21219
21784
|
}
|
|
21785
|
+
case 22: {
|
|
21786
|
+
if (tag !== 178) {
|
|
21787
|
+
break;
|
|
21788
|
+
}
|
|
21789
|
+
const entry22 = Image_BuildArgsEntry.decode(reader, reader.uint32());
|
|
21790
|
+
if (entry22.value !== void 0) {
|
|
21791
|
+
message.buildArgs[entry22.key] = entry22.value;
|
|
21792
|
+
}
|
|
21793
|
+
continue;
|
|
21794
|
+
}
|
|
21220
21795
|
}
|
|
21221
21796
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21222
21797
|
break;
|
|
@@ -21239,7 +21814,11 @@ var Image = {
|
|
|
21239
21814
|
buildFunctionGlobals: isSet3(object.buildFunctionGlobals) ? bytesFromBase64(object.buildFunctionGlobals) : new Uint8Array(0),
|
|
21240
21815
|
runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : "",
|
|
21241
21816
|
runtimeDebug: isSet3(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false,
|
|
21242
|
-
buildFunction: isSet3(object.buildFunction) ? BuildFunction.fromJSON(object.buildFunction) : void 0
|
|
21817
|
+
buildFunction: isSet3(object.buildFunction) ? BuildFunction.fromJSON(object.buildFunction) : void 0,
|
|
21818
|
+
buildArgs: isObject2(object.buildArgs) ? Object.entries(object.buildArgs).reduce((acc, [key, value]) => {
|
|
21819
|
+
acc[key] = String(value);
|
|
21820
|
+
return acc;
|
|
21821
|
+
}, {}) : {}
|
|
21243
21822
|
};
|
|
21244
21823
|
},
|
|
21245
21824
|
toJSON(message) {
|
|
@@ -21283,6 +21862,15 @@ var Image = {
|
|
|
21283
21862
|
if (message.buildFunction !== void 0) {
|
|
21284
21863
|
obj.buildFunction = BuildFunction.toJSON(message.buildFunction);
|
|
21285
21864
|
}
|
|
21865
|
+
if (message.buildArgs) {
|
|
21866
|
+
const entries = Object.entries(message.buildArgs);
|
|
21867
|
+
if (entries.length > 0) {
|
|
21868
|
+
obj.buildArgs = {};
|
|
21869
|
+
entries.forEach(([k, v]) => {
|
|
21870
|
+
obj.buildArgs[k] = v;
|
|
21871
|
+
});
|
|
21872
|
+
}
|
|
21873
|
+
}
|
|
21286
21874
|
return obj;
|
|
21287
21875
|
},
|
|
21288
21876
|
create(base) {
|
|
@@ -21303,6 +21891,83 @@ var Image = {
|
|
|
21303
21891
|
message.runtime = object.runtime ?? "";
|
|
21304
21892
|
message.runtimeDebug = object.runtimeDebug ?? false;
|
|
21305
21893
|
message.buildFunction = object.buildFunction !== void 0 && object.buildFunction !== null ? BuildFunction.fromPartial(object.buildFunction) : void 0;
|
|
21894
|
+
message.buildArgs = Object.entries(object.buildArgs ?? {}).reduce(
|
|
21895
|
+
(acc, [key, value]) => {
|
|
21896
|
+
if (value !== void 0) {
|
|
21897
|
+
acc[key] = globalThis.String(value);
|
|
21898
|
+
}
|
|
21899
|
+
return acc;
|
|
21900
|
+
},
|
|
21901
|
+
{}
|
|
21902
|
+
);
|
|
21903
|
+
return message;
|
|
21904
|
+
}
|
|
21905
|
+
};
|
|
21906
|
+
function createBaseImage_BuildArgsEntry() {
|
|
21907
|
+
return { key: "", value: "" };
|
|
21908
|
+
}
|
|
21909
|
+
var Image_BuildArgsEntry = {
|
|
21910
|
+
encode(message, writer = new BinaryWriter()) {
|
|
21911
|
+
if (message.key !== "") {
|
|
21912
|
+
writer.uint32(10).string(message.key);
|
|
21913
|
+
}
|
|
21914
|
+
if (message.value !== "") {
|
|
21915
|
+
writer.uint32(18).string(message.value);
|
|
21916
|
+
}
|
|
21917
|
+
return writer;
|
|
21918
|
+
},
|
|
21919
|
+
decode(input, length) {
|
|
21920
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
21921
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
21922
|
+
const message = createBaseImage_BuildArgsEntry();
|
|
21923
|
+
while (reader.pos < end) {
|
|
21924
|
+
const tag = reader.uint32();
|
|
21925
|
+
switch (tag >>> 3) {
|
|
21926
|
+
case 1: {
|
|
21927
|
+
if (tag !== 10) {
|
|
21928
|
+
break;
|
|
21929
|
+
}
|
|
21930
|
+
message.key = reader.string();
|
|
21931
|
+
continue;
|
|
21932
|
+
}
|
|
21933
|
+
case 2: {
|
|
21934
|
+
if (tag !== 18) {
|
|
21935
|
+
break;
|
|
21936
|
+
}
|
|
21937
|
+
message.value = reader.string();
|
|
21938
|
+
continue;
|
|
21939
|
+
}
|
|
21940
|
+
}
|
|
21941
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
21942
|
+
break;
|
|
21943
|
+
}
|
|
21944
|
+
reader.skip(tag & 7);
|
|
21945
|
+
}
|
|
21946
|
+
return message;
|
|
21947
|
+
},
|
|
21948
|
+
fromJSON(object) {
|
|
21949
|
+
return {
|
|
21950
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
21951
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
21952
|
+
};
|
|
21953
|
+
},
|
|
21954
|
+
toJSON(message) {
|
|
21955
|
+
const obj = {};
|
|
21956
|
+
if (message.key !== "") {
|
|
21957
|
+
obj.key = message.key;
|
|
21958
|
+
}
|
|
21959
|
+
if (message.value !== "") {
|
|
21960
|
+
obj.value = message.value;
|
|
21961
|
+
}
|
|
21962
|
+
return obj;
|
|
21963
|
+
},
|
|
21964
|
+
create(base) {
|
|
21965
|
+
return Image_BuildArgsEntry.fromPartial(base ?? {});
|
|
21966
|
+
},
|
|
21967
|
+
fromPartial(object) {
|
|
21968
|
+
const message = createBaseImage_BuildArgsEntry();
|
|
21969
|
+
message.key = object.key ?? "";
|
|
21970
|
+
message.value = object.value ?? "";
|
|
21306
21971
|
return message;
|
|
21307
21972
|
}
|
|
21308
21973
|
};
|
|
@@ -23269,6 +23934,59 @@ var MultiPartUpload = {
|
|
|
23269
23934
|
return message;
|
|
23270
23935
|
}
|
|
23271
23936
|
};
|
|
23937
|
+
function createBaseMultiPartUploadList() {
|
|
23938
|
+
return { items: [] };
|
|
23939
|
+
}
|
|
23940
|
+
var MultiPartUploadList = {
|
|
23941
|
+
encode(message, writer = new BinaryWriter()) {
|
|
23942
|
+
for (const v of message.items) {
|
|
23943
|
+
MultiPartUpload.encode(v, writer.uint32(10).fork()).join();
|
|
23944
|
+
}
|
|
23945
|
+
return writer;
|
|
23946
|
+
},
|
|
23947
|
+
decode(input, length) {
|
|
23948
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23949
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
23950
|
+
const message = createBaseMultiPartUploadList();
|
|
23951
|
+
while (reader.pos < end) {
|
|
23952
|
+
const tag = reader.uint32();
|
|
23953
|
+
switch (tag >>> 3) {
|
|
23954
|
+
case 1: {
|
|
23955
|
+
if (tag !== 10) {
|
|
23956
|
+
break;
|
|
23957
|
+
}
|
|
23958
|
+
message.items.push(MultiPartUpload.decode(reader, reader.uint32()));
|
|
23959
|
+
continue;
|
|
23960
|
+
}
|
|
23961
|
+
}
|
|
23962
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23963
|
+
break;
|
|
23964
|
+
}
|
|
23965
|
+
reader.skip(tag & 7);
|
|
23966
|
+
}
|
|
23967
|
+
return message;
|
|
23968
|
+
},
|
|
23969
|
+
fromJSON(object) {
|
|
23970
|
+
return {
|
|
23971
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => MultiPartUpload.fromJSON(e)) : []
|
|
23972
|
+
};
|
|
23973
|
+
},
|
|
23974
|
+
toJSON(message) {
|
|
23975
|
+
const obj = {};
|
|
23976
|
+
if (message.items?.length) {
|
|
23977
|
+
obj.items = message.items.map((e) => MultiPartUpload.toJSON(e));
|
|
23978
|
+
}
|
|
23979
|
+
return obj;
|
|
23980
|
+
},
|
|
23981
|
+
create(base) {
|
|
23982
|
+
return MultiPartUploadList.fromPartial(base ?? {});
|
|
23983
|
+
},
|
|
23984
|
+
fromPartial(object) {
|
|
23985
|
+
const message = createBaseMultiPartUploadList();
|
|
23986
|
+
message.items = object.items?.map((e) => MultiPartUpload.fromPartial(e)) || [];
|
|
23987
|
+
return message;
|
|
23988
|
+
}
|
|
23989
|
+
};
|
|
23272
23990
|
function createBaseNetworkAccess() {
|
|
23273
23991
|
return { networkAccessType: 0, allowedCidrs: [] };
|
|
23274
23992
|
}
|
|
@@ -24850,16 +25568,13 @@ var ProxyDeleteRequest = {
|
|
|
24850
25568
|
}
|
|
24851
25569
|
};
|
|
24852
25570
|
function createBaseProxyGetOrCreateRequest() {
|
|
24853
|
-
return { deploymentName: "",
|
|
25571
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0 };
|
|
24854
25572
|
}
|
|
24855
25573
|
var ProxyGetOrCreateRequest = {
|
|
24856
25574
|
encode(message, writer = new BinaryWriter()) {
|
|
24857
25575
|
if (message.deploymentName !== "") {
|
|
24858
25576
|
writer.uint32(10).string(message.deploymentName);
|
|
24859
25577
|
}
|
|
24860
|
-
if (message.namespace !== 0) {
|
|
24861
|
-
writer.uint32(16).int32(message.namespace);
|
|
24862
|
-
}
|
|
24863
25578
|
if (message.environmentName !== "") {
|
|
24864
25579
|
writer.uint32(26).string(message.environmentName);
|
|
24865
25580
|
}
|
|
@@ -24882,13 +25597,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24882
25597
|
message.deploymentName = reader.string();
|
|
24883
25598
|
continue;
|
|
24884
25599
|
}
|
|
24885
|
-
case 2: {
|
|
24886
|
-
if (tag !== 16) {
|
|
24887
|
-
break;
|
|
24888
|
-
}
|
|
24889
|
-
message.namespace = reader.int32();
|
|
24890
|
-
continue;
|
|
24891
|
-
}
|
|
24892
25600
|
case 3: {
|
|
24893
25601
|
if (tag !== 26) {
|
|
24894
25602
|
break;
|
|
@@ -24914,7 +25622,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24914
25622
|
fromJSON(object) {
|
|
24915
25623
|
return {
|
|
24916
25624
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
24917
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
24918
25625
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
24919
25626
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0
|
|
24920
25627
|
};
|
|
@@ -24924,9 +25631,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24924
25631
|
if (message.deploymentName !== "") {
|
|
24925
25632
|
obj.deploymentName = message.deploymentName;
|
|
24926
25633
|
}
|
|
24927
|
-
if (message.namespace !== 0) {
|
|
24928
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
24929
|
-
}
|
|
24930
25634
|
if (message.environmentName !== "") {
|
|
24931
25635
|
obj.environmentName = message.environmentName;
|
|
24932
25636
|
}
|
|
@@ -24941,7 +25645,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24941
25645
|
fromPartial(object) {
|
|
24942
25646
|
const message = createBaseProxyGetOrCreateRequest();
|
|
24943
25647
|
message.deploymentName = object.deploymentName ?? "";
|
|
24944
|
-
message.namespace = object.namespace ?? 0;
|
|
24945
25648
|
message.environmentName = object.environmentName ?? "";
|
|
24946
25649
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
24947
25650
|
return message;
|
|
@@ -25454,16 +26157,13 @@ var QueueDeleteRequest = {
|
|
|
25454
26157
|
}
|
|
25455
26158
|
};
|
|
25456
26159
|
function createBaseQueueGetOrCreateRequest() {
|
|
25457
|
-
return { deploymentName: "",
|
|
26160
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0 };
|
|
25458
26161
|
}
|
|
25459
26162
|
var QueueGetOrCreateRequest = {
|
|
25460
26163
|
encode(message, writer = new BinaryWriter()) {
|
|
25461
26164
|
if (message.deploymentName !== "") {
|
|
25462
26165
|
writer.uint32(10).string(message.deploymentName);
|
|
25463
26166
|
}
|
|
25464
|
-
if (message.namespace !== 0) {
|
|
25465
|
-
writer.uint32(16).int32(message.namespace);
|
|
25466
|
-
}
|
|
25467
26167
|
if (message.environmentName !== "") {
|
|
25468
26168
|
writer.uint32(26).string(message.environmentName);
|
|
25469
26169
|
}
|
|
@@ -25486,13 +26186,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25486
26186
|
message.deploymentName = reader.string();
|
|
25487
26187
|
continue;
|
|
25488
26188
|
}
|
|
25489
|
-
case 2: {
|
|
25490
|
-
if (tag !== 16) {
|
|
25491
|
-
break;
|
|
25492
|
-
}
|
|
25493
|
-
message.namespace = reader.int32();
|
|
25494
|
-
continue;
|
|
25495
|
-
}
|
|
25496
26189
|
case 3: {
|
|
25497
26190
|
if (tag !== 26) {
|
|
25498
26191
|
break;
|
|
@@ -25518,7 +26211,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25518
26211
|
fromJSON(object) {
|
|
25519
26212
|
return {
|
|
25520
26213
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
25521
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
25522
26214
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
25523
26215
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0
|
|
25524
26216
|
};
|
|
@@ -25528,9 +26220,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25528
26220
|
if (message.deploymentName !== "") {
|
|
25529
26221
|
obj.deploymentName = message.deploymentName;
|
|
25530
26222
|
}
|
|
25531
|
-
if (message.namespace !== 0) {
|
|
25532
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
25533
|
-
}
|
|
25534
26223
|
if (message.environmentName !== "") {
|
|
25535
26224
|
obj.environmentName = message.environmentName;
|
|
25536
26225
|
}
|
|
@@ -25545,7 +26234,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25545
26234
|
fromPartial(object) {
|
|
25546
26235
|
const message = createBaseQueueGetOrCreateRequest();
|
|
25547
26236
|
message.deploymentName = object.deploymentName ?? "";
|
|
25548
|
-
message.namespace = object.namespace ?? 0;
|
|
25549
26237
|
message.environmentName = object.environmentName ?? "";
|
|
25550
26238
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
25551
26239
|
return message;
|
|
@@ -27112,7 +27800,8 @@ function createBaseSandbox() {
|
|
|
27112
27800
|
snapshotVersion: void 0,
|
|
27113
27801
|
cloudProviderStr: "",
|
|
27114
27802
|
runscRuntimeVersion: void 0,
|
|
27115
|
-
runtime: void 0
|
|
27803
|
+
runtime: void 0,
|
|
27804
|
+
verbose: false
|
|
27116
27805
|
};
|
|
27117
27806
|
}
|
|
27118
27807
|
var Sandbox = {
|
|
@@ -27195,6 +27884,9 @@ var Sandbox = {
|
|
|
27195
27884
|
if (message.runtime !== void 0) {
|
|
27196
27885
|
writer.uint32(226).string(message.runtime);
|
|
27197
27886
|
}
|
|
27887
|
+
if (message.verbose !== false) {
|
|
27888
|
+
writer.uint32(232).bool(message.verbose);
|
|
27889
|
+
}
|
|
27198
27890
|
return writer;
|
|
27199
27891
|
},
|
|
27200
27892
|
decode(input, length) {
|
|
@@ -27386,6 +28078,13 @@ var Sandbox = {
|
|
|
27386
28078
|
message.runtime = reader.string();
|
|
27387
28079
|
continue;
|
|
27388
28080
|
}
|
|
28081
|
+
case 29: {
|
|
28082
|
+
if (tag !== 232) {
|
|
28083
|
+
break;
|
|
28084
|
+
}
|
|
28085
|
+
message.verbose = reader.bool();
|
|
28086
|
+
continue;
|
|
28087
|
+
}
|
|
27389
28088
|
}
|
|
27390
28089
|
if ((tag & 7) === 4 || tag === 0) {
|
|
27391
28090
|
break;
|
|
@@ -27421,7 +28120,8 @@ var Sandbox = {
|
|
|
27421
28120
|
snapshotVersion: isSet3(object.snapshotVersion) ? globalThis.Number(object.snapshotVersion) : void 0,
|
|
27422
28121
|
cloudProviderStr: isSet3(object.cloudProviderStr) ? globalThis.String(object.cloudProviderStr) : "",
|
|
27423
28122
|
runscRuntimeVersion: isSet3(object.runscRuntimeVersion) ? globalThis.String(object.runscRuntimeVersion) : void 0,
|
|
27424
|
-
runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : void 0
|
|
28123
|
+
runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : void 0,
|
|
28124
|
+
verbose: isSet3(object.verbose) ? globalThis.Boolean(object.verbose) : false
|
|
27425
28125
|
};
|
|
27426
28126
|
},
|
|
27427
28127
|
toJSON(message) {
|
|
@@ -27504,6 +28204,9 @@ var Sandbox = {
|
|
|
27504
28204
|
if (message.runtime !== void 0) {
|
|
27505
28205
|
obj.runtime = message.runtime;
|
|
27506
28206
|
}
|
|
28207
|
+
if (message.verbose !== false) {
|
|
28208
|
+
obj.verbose = message.verbose;
|
|
28209
|
+
}
|
|
27507
28210
|
return obj;
|
|
27508
28211
|
},
|
|
27509
28212
|
create(base) {
|
|
@@ -27537,6 +28240,7 @@ var Sandbox = {
|
|
|
27537
28240
|
message.cloudProviderStr = object.cloudProviderStr ?? "";
|
|
27538
28241
|
message.runscRuntimeVersion = object.runscRuntimeVersion ?? void 0;
|
|
27539
28242
|
message.runtime = object.runtime ?? void 0;
|
|
28243
|
+
message.verbose = object.verbose ?? false;
|
|
27540
28244
|
return message;
|
|
27541
28245
|
}
|
|
27542
28246
|
};
|
|
@@ -28260,7 +28964,7 @@ var SandboxHandleMetadata = {
|
|
|
28260
28964
|
}
|
|
28261
28965
|
};
|
|
28262
28966
|
function createBaseSandboxInfo() {
|
|
28263
|
-
return { id: "", createdAt: 0, taskInfo: void 0, appId: "" };
|
|
28967
|
+
return { id: "", createdAt: 0, taskInfo: void 0, appId: "", tags: [] };
|
|
28264
28968
|
}
|
|
28265
28969
|
var SandboxInfo = {
|
|
28266
28970
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -28276,6 +28980,9 @@ var SandboxInfo = {
|
|
|
28276
28980
|
if (message.appId !== "") {
|
|
28277
28981
|
writer.uint32(42).string(message.appId);
|
|
28278
28982
|
}
|
|
28983
|
+
for (const v of message.tags) {
|
|
28984
|
+
SandboxTag.encode(v, writer.uint32(50).fork()).join();
|
|
28985
|
+
}
|
|
28279
28986
|
return writer;
|
|
28280
28987
|
},
|
|
28281
28988
|
decode(input, length) {
|
|
@@ -28313,6 +29020,13 @@ var SandboxInfo = {
|
|
|
28313
29020
|
message.appId = reader.string();
|
|
28314
29021
|
continue;
|
|
28315
29022
|
}
|
|
29023
|
+
case 6: {
|
|
29024
|
+
if (tag !== 50) {
|
|
29025
|
+
break;
|
|
29026
|
+
}
|
|
29027
|
+
message.tags.push(SandboxTag.decode(reader, reader.uint32()));
|
|
29028
|
+
continue;
|
|
29029
|
+
}
|
|
28316
29030
|
}
|
|
28317
29031
|
if ((tag & 7) === 4 || tag === 0) {
|
|
28318
29032
|
break;
|
|
@@ -28326,7 +29040,8 @@ var SandboxInfo = {
|
|
|
28326
29040
|
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
28327
29041
|
createdAt: isSet3(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
28328
29042
|
taskInfo: isSet3(object.taskInfo) ? TaskInfo.fromJSON(object.taskInfo) : void 0,
|
|
28329
|
-
appId: isSet3(object.appId) ? globalThis.String(object.appId) : ""
|
|
29043
|
+
appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
|
|
29044
|
+
tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => SandboxTag.fromJSON(e)) : []
|
|
28330
29045
|
};
|
|
28331
29046
|
},
|
|
28332
29047
|
toJSON(message) {
|
|
@@ -28343,6 +29058,9 @@ var SandboxInfo = {
|
|
|
28343
29058
|
if (message.appId !== "") {
|
|
28344
29059
|
obj.appId = message.appId;
|
|
28345
29060
|
}
|
|
29061
|
+
if (message.tags?.length) {
|
|
29062
|
+
obj.tags = message.tags.map((e) => SandboxTag.toJSON(e));
|
|
29063
|
+
}
|
|
28346
29064
|
return obj;
|
|
28347
29065
|
},
|
|
28348
29066
|
create(base) {
|
|
@@ -28354,6 +29072,7 @@ var SandboxInfo = {
|
|
|
28354
29072
|
message.createdAt = object.createdAt ?? 0;
|
|
28355
29073
|
message.taskInfo = object.taskInfo !== void 0 && object.taskInfo !== null ? TaskInfo.fromPartial(object.taskInfo) : void 0;
|
|
28356
29074
|
message.appId = object.appId ?? "";
|
|
29075
|
+
message.tags = object.tags?.map((e) => SandboxTag.fromPartial(e)) || [];
|
|
28357
29076
|
return message;
|
|
28358
29077
|
}
|
|
28359
29078
|
};
|
|
@@ -30035,24 +30754,13 @@ var SecretDeleteRequest = {
|
|
|
30035
30754
|
}
|
|
30036
30755
|
};
|
|
30037
30756
|
function createBaseSecretGetOrCreateRequest() {
|
|
30038
|
-
return {
|
|
30039
|
-
deploymentName: "",
|
|
30040
|
-
namespace: 0,
|
|
30041
|
-
environmentName: "",
|
|
30042
|
-
objectCreationType: 0,
|
|
30043
|
-
envDict: {},
|
|
30044
|
-
appId: "",
|
|
30045
|
-
requiredKeys: []
|
|
30046
|
-
};
|
|
30757
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, envDict: {}, appId: "", requiredKeys: [] };
|
|
30047
30758
|
}
|
|
30048
30759
|
var SecretGetOrCreateRequest = {
|
|
30049
30760
|
encode(message, writer = new BinaryWriter()) {
|
|
30050
30761
|
if (message.deploymentName !== "") {
|
|
30051
30762
|
writer.uint32(10).string(message.deploymentName);
|
|
30052
30763
|
}
|
|
30053
|
-
if (message.namespace !== 0) {
|
|
30054
|
-
writer.uint32(16).int32(message.namespace);
|
|
30055
|
-
}
|
|
30056
30764
|
if (message.environmentName !== "") {
|
|
30057
30765
|
writer.uint32(26).string(message.environmentName);
|
|
30058
30766
|
}
|
|
@@ -30084,13 +30792,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30084
30792
|
message.deploymentName = reader.string();
|
|
30085
30793
|
continue;
|
|
30086
30794
|
}
|
|
30087
|
-
case 2: {
|
|
30088
|
-
if (tag !== 16) {
|
|
30089
|
-
break;
|
|
30090
|
-
}
|
|
30091
|
-
message.namespace = reader.int32();
|
|
30092
|
-
continue;
|
|
30093
|
-
}
|
|
30094
30795
|
case 3: {
|
|
30095
30796
|
if (tag !== 26) {
|
|
30096
30797
|
break;
|
|
@@ -30140,7 +30841,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30140
30841
|
fromJSON(object) {
|
|
30141
30842
|
return {
|
|
30142
30843
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
30143
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
30144
30844
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
30145
30845
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
30146
30846
|
envDict: isObject2(object.envDict) ? Object.entries(object.envDict).reduce((acc, [key, value]) => {
|
|
@@ -30156,9 +30856,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30156
30856
|
if (message.deploymentName !== "") {
|
|
30157
30857
|
obj.deploymentName = message.deploymentName;
|
|
30158
30858
|
}
|
|
30159
|
-
if (message.namespace !== 0) {
|
|
30160
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
30161
|
-
}
|
|
30162
30859
|
if (message.environmentName !== "") {
|
|
30163
30860
|
obj.environmentName = message.environmentName;
|
|
30164
30861
|
}
|
|
@@ -30188,7 +30885,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30188
30885
|
fromPartial(object) {
|
|
30189
30886
|
const message = createBaseSecretGetOrCreateRequest();
|
|
30190
30887
|
message.deploymentName = object.deploymentName ?? "";
|
|
30191
|
-
message.namespace = object.namespace ?? 0;
|
|
30192
30888
|
message.environmentName = object.environmentName ?? "";
|
|
30193
30889
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
30194
30890
|
message.envDict = Object.entries(object.envDict ?? {}).reduce((acc, [key, value]) => {
|
|
@@ -30741,16 +31437,13 @@ var SharedVolumeGetFileResponse = {
|
|
|
30741
31437
|
}
|
|
30742
31438
|
};
|
|
30743
31439
|
function createBaseSharedVolumeGetOrCreateRequest() {
|
|
30744
|
-
return { deploymentName: "",
|
|
31440
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, appId: "" };
|
|
30745
31441
|
}
|
|
30746
31442
|
var SharedVolumeGetOrCreateRequest = {
|
|
30747
31443
|
encode(message, writer = new BinaryWriter()) {
|
|
30748
31444
|
if (message.deploymentName !== "") {
|
|
30749
31445
|
writer.uint32(10).string(message.deploymentName);
|
|
30750
31446
|
}
|
|
30751
|
-
if (message.namespace !== 0) {
|
|
30752
|
-
writer.uint32(16).int32(message.namespace);
|
|
30753
|
-
}
|
|
30754
31447
|
if (message.environmentName !== "") {
|
|
30755
31448
|
writer.uint32(26).string(message.environmentName);
|
|
30756
31449
|
}
|
|
@@ -30776,13 +31469,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30776
31469
|
message.deploymentName = reader.string();
|
|
30777
31470
|
continue;
|
|
30778
31471
|
}
|
|
30779
|
-
case 2: {
|
|
30780
|
-
if (tag !== 16) {
|
|
30781
|
-
break;
|
|
30782
|
-
}
|
|
30783
|
-
message.namespace = reader.int32();
|
|
30784
|
-
continue;
|
|
30785
|
-
}
|
|
30786
31472
|
case 3: {
|
|
30787
31473
|
if (tag !== 26) {
|
|
30788
31474
|
break;
|
|
@@ -30815,7 +31501,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30815
31501
|
fromJSON(object) {
|
|
30816
31502
|
return {
|
|
30817
31503
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
30818
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
30819
31504
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
30820
31505
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
30821
31506
|
appId: isSet3(object.appId) ? globalThis.String(object.appId) : ""
|
|
@@ -30826,9 +31511,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30826
31511
|
if (message.deploymentName !== "") {
|
|
30827
31512
|
obj.deploymentName = message.deploymentName;
|
|
30828
31513
|
}
|
|
30829
|
-
if (message.namespace !== 0) {
|
|
30830
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
30831
|
-
}
|
|
30832
31514
|
if (message.environmentName !== "") {
|
|
30833
31515
|
obj.environmentName = message.environmentName;
|
|
30834
31516
|
}
|
|
@@ -30846,7 +31528,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30846
31528
|
fromPartial(object) {
|
|
30847
31529
|
const message = createBaseSharedVolumeGetOrCreateRequest();
|
|
30848
31530
|
message.deploymentName = object.deploymentName ?? "";
|
|
30849
|
-
message.namespace = object.namespace ?? 0;
|
|
30850
31531
|
message.environmentName = object.environmentName ?? "";
|
|
30851
31532
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
30852
31533
|
message.appId = object.appId ?? "";
|
|
@@ -31926,7 +32607,7 @@ var TaskCurrentInputsResponse = {
|
|
|
31926
32607
|
}
|
|
31927
32608
|
};
|
|
31928
32609
|
function createBaseTaskInfo() {
|
|
31929
|
-
return { id: "", startedAt: 0, finishedAt: 0, result: void 0, enqueuedAt: 0, gpuType: "" };
|
|
32610
|
+
return { id: "", startedAt: 0, finishedAt: 0, result: void 0, enqueuedAt: 0, gpuType: "", sandboxId: "" };
|
|
31930
32611
|
}
|
|
31931
32612
|
var TaskInfo = {
|
|
31932
32613
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -31948,6 +32629,9 @@ var TaskInfo = {
|
|
|
31948
32629
|
if (message.gpuType !== "") {
|
|
31949
32630
|
writer.uint32(50).string(message.gpuType);
|
|
31950
32631
|
}
|
|
32632
|
+
if (message.sandboxId !== "") {
|
|
32633
|
+
writer.uint32(58).string(message.sandboxId);
|
|
32634
|
+
}
|
|
31951
32635
|
return writer;
|
|
31952
32636
|
},
|
|
31953
32637
|
decode(input, length) {
|
|
@@ -31999,6 +32683,13 @@ var TaskInfo = {
|
|
|
31999
32683
|
message.gpuType = reader.string();
|
|
32000
32684
|
continue;
|
|
32001
32685
|
}
|
|
32686
|
+
case 7: {
|
|
32687
|
+
if (tag !== 58) {
|
|
32688
|
+
break;
|
|
32689
|
+
}
|
|
32690
|
+
message.sandboxId = reader.string();
|
|
32691
|
+
continue;
|
|
32692
|
+
}
|
|
32002
32693
|
}
|
|
32003
32694
|
if ((tag & 7) === 4 || tag === 0) {
|
|
32004
32695
|
break;
|
|
@@ -32014,7 +32705,8 @@ var TaskInfo = {
|
|
|
32014
32705
|
finishedAt: isSet3(object.finishedAt) ? globalThis.Number(object.finishedAt) : 0,
|
|
32015
32706
|
result: isSet3(object.result) ? GenericResult.fromJSON(object.result) : void 0,
|
|
32016
32707
|
enqueuedAt: isSet3(object.enqueuedAt) ? globalThis.Number(object.enqueuedAt) : 0,
|
|
32017
|
-
gpuType: isSet3(object.gpuType) ? globalThis.String(object.gpuType) : ""
|
|
32708
|
+
gpuType: isSet3(object.gpuType) ? globalThis.String(object.gpuType) : "",
|
|
32709
|
+
sandboxId: isSet3(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
|
|
32018
32710
|
};
|
|
32019
32711
|
},
|
|
32020
32712
|
toJSON(message) {
|
|
@@ -32037,6 +32729,9 @@ var TaskInfo = {
|
|
|
32037
32729
|
if (message.gpuType !== "") {
|
|
32038
32730
|
obj.gpuType = message.gpuType;
|
|
32039
32731
|
}
|
|
32732
|
+
if (message.sandboxId !== "") {
|
|
32733
|
+
obj.sandboxId = message.sandboxId;
|
|
32734
|
+
}
|
|
32040
32735
|
return obj;
|
|
32041
32736
|
},
|
|
32042
32737
|
create(base) {
|
|
@@ -32050,6 +32745,7 @@ var TaskInfo = {
|
|
|
32050
32745
|
message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
|
|
32051
32746
|
message.enqueuedAt = object.enqueuedAt ?? 0;
|
|
32052
32747
|
message.gpuType = object.gpuType ?? "";
|
|
32748
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
32053
32749
|
return message;
|
|
32054
32750
|
}
|
|
32055
32751
|
};
|
|
@@ -33302,13 +33998,199 @@ var TunnelData = {
|
|
|
33302
33998
|
message.unencryptedPort = reader.uint32();
|
|
33303
33999
|
continue;
|
|
33304
34000
|
}
|
|
33305
|
-
case 5: {
|
|
33306
|
-
if (tag !== 40) {
|
|
33307
|
-
break;
|
|
33308
|
-
}
|
|
33309
|
-
message.containerPort = reader.uint32();
|
|
33310
|
-
continue;
|
|
33311
|
-
}
|
|
34001
|
+
case 5: {
|
|
34002
|
+
if (tag !== 40) {
|
|
34003
|
+
break;
|
|
34004
|
+
}
|
|
34005
|
+
message.containerPort = reader.uint32();
|
|
34006
|
+
continue;
|
|
34007
|
+
}
|
|
34008
|
+
}
|
|
34009
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34010
|
+
break;
|
|
34011
|
+
}
|
|
34012
|
+
reader.skip(tag & 7);
|
|
34013
|
+
}
|
|
34014
|
+
return message;
|
|
34015
|
+
},
|
|
34016
|
+
fromJSON(object) {
|
|
34017
|
+
return {
|
|
34018
|
+
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
34019
|
+
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
34020
|
+
unencryptedHost: isSet3(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
34021
|
+
unencryptedPort: isSet3(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0,
|
|
34022
|
+
containerPort: isSet3(object.containerPort) ? globalThis.Number(object.containerPort) : 0
|
|
34023
|
+
};
|
|
34024
|
+
},
|
|
34025
|
+
toJSON(message) {
|
|
34026
|
+
const obj = {};
|
|
34027
|
+
if (message.host !== "") {
|
|
34028
|
+
obj.host = message.host;
|
|
34029
|
+
}
|
|
34030
|
+
if (message.port !== 0) {
|
|
34031
|
+
obj.port = Math.round(message.port);
|
|
34032
|
+
}
|
|
34033
|
+
if (message.unencryptedHost !== void 0) {
|
|
34034
|
+
obj.unencryptedHost = message.unencryptedHost;
|
|
34035
|
+
}
|
|
34036
|
+
if (message.unencryptedPort !== void 0) {
|
|
34037
|
+
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
34038
|
+
}
|
|
34039
|
+
if (message.containerPort !== 0) {
|
|
34040
|
+
obj.containerPort = Math.round(message.containerPort);
|
|
34041
|
+
}
|
|
34042
|
+
return obj;
|
|
34043
|
+
},
|
|
34044
|
+
create(base) {
|
|
34045
|
+
return TunnelData.fromPartial(base ?? {});
|
|
34046
|
+
},
|
|
34047
|
+
fromPartial(object) {
|
|
34048
|
+
const message = createBaseTunnelData();
|
|
34049
|
+
message.host = object.host ?? "";
|
|
34050
|
+
message.port = object.port ?? 0;
|
|
34051
|
+
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
34052
|
+
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
34053
|
+
message.containerPort = object.containerPort ?? 0;
|
|
34054
|
+
return message;
|
|
34055
|
+
}
|
|
34056
|
+
};
|
|
34057
|
+
function createBaseTunnelStartRequest() {
|
|
34058
|
+
return { port: 0, unencrypted: false, tunnelType: void 0 };
|
|
34059
|
+
}
|
|
34060
|
+
var TunnelStartRequest = {
|
|
34061
|
+
encode(message, writer = new BinaryWriter()) {
|
|
34062
|
+
if (message.port !== 0) {
|
|
34063
|
+
writer.uint32(8).uint32(message.port);
|
|
34064
|
+
}
|
|
34065
|
+
if (message.unencrypted !== false) {
|
|
34066
|
+
writer.uint32(16).bool(message.unencrypted);
|
|
34067
|
+
}
|
|
34068
|
+
if (message.tunnelType !== void 0) {
|
|
34069
|
+
writer.uint32(24).int32(message.tunnelType);
|
|
34070
|
+
}
|
|
34071
|
+
return writer;
|
|
34072
|
+
},
|
|
34073
|
+
decode(input, length) {
|
|
34074
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34075
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
34076
|
+
const message = createBaseTunnelStartRequest();
|
|
34077
|
+
while (reader.pos < end) {
|
|
34078
|
+
const tag = reader.uint32();
|
|
34079
|
+
switch (tag >>> 3) {
|
|
34080
|
+
case 1: {
|
|
34081
|
+
if (tag !== 8) {
|
|
34082
|
+
break;
|
|
34083
|
+
}
|
|
34084
|
+
message.port = reader.uint32();
|
|
34085
|
+
continue;
|
|
34086
|
+
}
|
|
34087
|
+
case 2: {
|
|
34088
|
+
if (tag !== 16) {
|
|
34089
|
+
break;
|
|
34090
|
+
}
|
|
34091
|
+
message.unencrypted = reader.bool();
|
|
34092
|
+
continue;
|
|
34093
|
+
}
|
|
34094
|
+
case 3: {
|
|
34095
|
+
if (tag !== 24) {
|
|
34096
|
+
break;
|
|
34097
|
+
}
|
|
34098
|
+
message.tunnelType = reader.int32();
|
|
34099
|
+
continue;
|
|
34100
|
+
}
|
|
34101
|
+
}
|
|
34102
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34103
|
+
break;
|
|
34104
|
+
}
|
|
34105
|
+
reader.skip(tag & 7);
|
|
34106
|
+
}
|
|
34107
|
+
return message;
|
|
34108
|
+
},
|
|
34109
|
+
fromJSON(object) {
|
|
34110
|
+
return {
|
|
34111
|
+
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
34112
|
+
unencrypted: isSet3(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
|
|
34113
|
+
tunnelType: isSet3(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
|
|
34114
|
+
};
|
|
34115
|
+
},
|
|
34116
|
+
toJSON(message) {
|
|
34117
|
+
const obj = {};
|
|
34118
|
+
if (message.port !== 0) {
|
|
34119
|
+
obj.port = Math.round(message.port);
|
|
34120
|
+
}
|
|
34121
|
+
if (message.unencrypted !== false) {
|
|
34122
|
+
obj.unencrypted = message.unencrypted;
|
|
34123
|
+
}
|
|
34124
|
+
if (message.tunnelType !== void 0) {
|
|
34125
|
+
obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
|
|
34126
|
+
}
|
|
34127
|
+
return obj;
|
|
34128
|
+
},
|
|
34129
|
+
create(base) {
|
|
34130
|
+
return TunnelStartRequest.fromPartial(base ?? {});
|
|
34131
|
+
},
|
|
34132
|
+
fromPartial(object) {
|
|
34133
|
+
const message = createBaseTunnelStartRequest();
|
|
34134
|
+
message.port = object.port ?? 0;
|
|
34135
|
+
message.unencrypted = object.unencrypted ?? false;
|
|
34136
|
+
message.tunnelType = object.tunnelType ?? void 0;
|
|
34137
|
+
return message;
|
|
34138
|
+
}
|
|
34139
|
+
};
|
|
34140
|
+
function createBaseTunnelStartResponse() {
|
|
34141
|
+
return { host: "", port: 0, unencryptedHost: void 0, unencryptedPort: void 0 };
|
|
34142
|
+
}
|
|
34143
|
+
var TunnelStartResponse = {
|
|
34144
|
+
encode(message, writer = new BinaryWriter()) {
|
|
34145
|
+
if (message.host !== "") {
|
|
34146
|
+
writer.uint32(10).string(message.host);
|
|
34147
|
+
}
|
|
34148
|
+
if (message.port !== 0) {
|
|
34149
|
+
writer.uint32(16).uint32(message.port);
|
|
34150
|
+
}
|
|
34151
|
+
if (message.unencryptedHost !== void 0) {
|
|
34152
|
+
writer.uint32(26).string(message.unencryptedHost);
|
|
34153
|
+
}
|
|
34154
|
+
if (message.unencryptedPort !== void 0) {
|
|
34155
|
+
writer.uint32(32).uint32(message.unencryptedPort);
|
|
34156
|
+
}
|
|
34157
|
+
return writer;
|
|
34158
|
+
},
|
|
34159
|
+
decode(input, length) {
|
|
34160
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34161
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
34162
|
+
const message = createBaseTunnelStartResponse();
|
|
34163
|
+
while (reader.pos < end) {
|
|
34164
|
+
const tag = reader.uint32();
|
|
34165
|
+
switch (tag >>> 3) {
|
|
34166
|
+
case 1: {
|
|
34167
|
+
if (tag !== 10) {
|
|
34168
|
+
break;
|
|
34169
|
+
}
|
|
34170
|
+
message.host = reader.string();
|
|
34171
|
+
continue;
|
|
34172
|
+
}
|
|
34173
|
+
case 2: {
|
|
34174
|
+
if (tag !== 16) {
|
|
34175
|
+
break;
|
|
34176
|
+
}
|
|
34177
|
+
message.port = reader.uint32();
|
|
34178
|
+
continue;
|
|
34179
|
+
}
|
|
34180
|
+
case 3: {
|
|
34181
|
+
if (tag !== 26) {
|
|
34182
|
+
break;
|
|
34183
|
+
}
|
|
34184
|
+
message.unencryptedHost = reader.string();
|
|
34185
|
+
continue;
|
|
34186
|
+
}
|
|
34187
|
+
case 4: {
|
|
34188
|
+
if (tag !== 32) {
|
|
34189
|
+
break;
|
|
34190
|
+
}
|
|
34191
|
+
message.unencryptedPort = reader.uint32();
|
|
34192
|
+
continue;
|
|
34193
|
+
}
|
|
33312
34194
|
}
|
|
33313
34195
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33314
34196
|
break;
|
|
@@ -33322,8 +34204,7 @@ var TunnelData = {
|
|
|
33322
34204
|
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
33323
34205
|
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
33324
34206
|
unencryptedHost: isSet3(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
33325
|
-
unencryptedPort: isSet3(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
33326
|
-
containerPort: isSet3(object.containerPort) ? globalThis.Number(object.containerPort) : 0
|
|
34207
|
+
unencryptedPort: isSet3(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
33327
34208
|
};
|
|
33328
34209
|
},
|
|
33329
34210
|
toJSON(message) {
|
|
@@ -33340,44 +34221,34 @@ var TunnelData = {
|
|
|
33340
34221
|
if (message.unencryptedPort !== void 0) {
|
|
33341
34222
|
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
33342
34223
|
}
|
|
33343
|
-
if (message.containerPort !== 0) {
|
|
33344
|
-
obj.containerPort = Math.round(message.containerPort);
|
|
33345
|
-
}
|
|
33346
34224
|
return obj;
|
|
33347
34225
|
},
|
|
33348
34226
|
create(base) {
|
|
33349
|
-
return
|
|
34227
|
+
return TunnelStartResponse.fromPartial(base ?? {});
|
|
33350
34228
|
},
|
|
33351
34229
|
fromPartial(object) {
|
|
33352
|
-
const message =
|
|
34230
|
+
const message = createBaseTunnelStartResponse();
|
|
33353
34231
|
message.host = object.host ?? "";
|
|
33354
34232
|
message.port = object.port ?? 0;
|
|
33355
34233
|
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
33356
34234
|
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
33357
|
-
message.containerPort = object.containerPort ?? 0;
|
|
33358
34235
|
return message;
|
|
33359
34236
|
}
|
|
33360
34237
|
};
|
|
33361
|
-
function
|
|
33362
|
-
return { port: 0
|
|
34238
|
+
function createBaseTunnelStopRequest() {
|
|
34239
|
+
return { port: 0 };
|
|
33363
34240
|
}
|
|
33364
|
-
var
|
|
34241
|
+
var TunnelStopRequest = {
|
|
33365
34242
|
encode(message, writer = new BinaryWriter()) {
|
|
33366
34243
|
if (message.port !== 0) {
|
|
33367
34244
|
writer.uint32(8).uint32(message.port);
|
|
33368
34245
|
}
|
|
33369
|
-
if (message.unencrypted !== false) {
|
|
33370
|
-
writer.uint32(16).bool(message.unencrypted);
|
|
33371
|
-
}
|
|
33372
|
-
if (message.tunnelType !== void 0) {
|
|
33373
|
-
writer.uint32(24).int32(message.tunnelType);
|
|
33374
|
-
}
|
|
33375
34246
|
return writer;
|
|
33376
34247
|
},
|
|
33377
34248
|
decode(input, length) {
|
|
33378
34249
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33379
34250
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33380
|
-
const message =
|
|
34251
|
+
const message = createBaseTunnelStopRequest();
|
|
33381
34252
|
while (reader.pos < end) {
|
|
33382
34253
|
const tag = reader.uint32();
|
|
33383
34254
|
switch (tag >>> 3) {
|
|
@@ -33388,20 +34259,6 @@ var TunnelStartRequest = {
|
|
|
33388
34259
|
message.port = reader.uint32();
|
|
33389
34260
|
continue;
|
|
33390
34261
|
}
|
|
33391
|
-
case 2: {
|
|
33392
|
-
if (tag !== 16) {
|
|
33393
|
-
break;
|
|
33394
|
-
}
|
|
33395
|
-
message.unencrypted = reader.bool();
|
|
33396
|
-
continue;
|
|
33397
|
-
}
|
|
33398
|
-
case 3: {
|
|
33399
|
-
if (tag !== 24) {
|
|
33400
|
-
break;
|
|
33401
|
-
}
|
|
33402
|
-
message.tunnelType = reader.int32();
|
|
33403
|
-
continue;
|
|
33404
|
-
}
|
|
33405
34262
|
}
|
|
33406
34263
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33407
34264
|
break;
|
|
@@ -33411,148 +34268,38 @@ var TunnelStartRequest = {
|
|
|
33411
34268
|
return message;
|
|
33412
34269
|
},
|
|
33413
34270
|
fromJSON(object) {
|
|
33414
|
-
return {
|
|
33415
|
-
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
33416
|
-
unencrypted: isSet3(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
|
|
33417
|
-
tunnelType: isSet3(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
|
|
33418
|
-
};
|
|
33419
|
-
},
|
|
33420
|
-
toJSON(message) {
|
|
33421
|
-
const obj = {};
|
|
33422
|
-
if (message.port !== 0) {
|
|
33423
|
-
obj.port = Math.round(message.port);
|
|
33424
|
-
}
|
|
33425
|
-
if (message.unencrypted !== false) {
|
|
33426
|
-
obj.unencrypted = message.unencrypted;
|
|
33427
|
-
}
|
|
33428
|
-
if (message.tunnelType !== void 0) {
|
|
33429
|
-
obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
|
|
33430
|
-
}
|
|
33431
|
-
return obj;
|
|
33432
|
-
},
|
|
33433
|
-
create(base) {
|
|
33434
|
-
return TunnelStartRequest.fromPartial(base ?? {});
|
|
33435
|
-
},
|
|
33436
|
-
fromPartial(object) {
|
|
33437
|
-
const message = createBaseTunnelStartRequest();
|
|
33438
|
-
message.port = object.port ?? 0;
|
|
33439
|
-
message.unencrypted = object.unencrypted ?? false;
|
|
33440
|
-
message.tunnelType = object.tunnelType ?? void 0;
|
|
33441
|
-
return message;
|
|
33442
|
-
}
|
|
33443
|
-
};
|
|
33444
|
-
function createBaseTunnelStartResponse() {
|
|
33445
|
-
return { host: "", port: 0, unencryptedHost: void 0, unencryptedPort: void 0 };
|
|
33446
|
-
}
|
|
33447
|
-
var TunnelStartResponse = {
|
|
33448
|
-
encode(message, writer = new BinaryWriter()) {
|
|
33449
|
-
if (message.host !== "") {
|
|
33450
|
-
writer.uint32(10).string(message.host);
|
|
33451
|
-
}
|
|
33452
|
-
if (message.port !== 0) {
|
|
33453
|
-
writer.uint32(16).uint32(message.port);
|
|
33454
|
-
}
|
|
33455
|
-
if (message.unencryptedHost !== void 0) {
|
|
33456
|
-
writer.uint32(26).string(message.unencryptedHost);
|
|
33457
|
-
}
|
|
33458
|
-
if (message.unencryptedPort !== void 0) {
|
|
33459
|
-
writer.uint32(32).uint32(message.unencryptedPort);
|
|
33460
|
-
}
|
|
33461
|
-
return writer;
|
|
33462
|
-
},
|
|
33463
|
-
decode(input, length) {
|
|
33464
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33465
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33466
|
-
const message = createBaseTunnelStartResponse();
|
|
33467
|
-
while (reader.pos < end) {
|
|
33468
|
-
const tag = reader.uint32();
|
|
33469
|
-
switch (tag >>> 3) {
|
|
33470
|
-
case 1: {
|
|
33471
|
-
if (tag !== 10) {
|
|
33472
|
-
break;
|
|
33473
|
-
}
|
|
33474
|
-
message.host = reader.string();
|
|
33475
|
-
continue;
|
|
33476
|
-
}
|
|
33477
|
-
case 2: {
|
|
33478
|
-
if (tag !== 16) {
|
|
33479
|
-
break;
|
|
33480
|
-
}
|
|
33481
|
-
message.port = reader.uint32();
|
|
33482
|
-
continue;
|
|
33483
|
-
}
|
|
33484
|
-
case 3: {
|
|
33485
|
-
if (tag !== 26) {
|
|
33486
|
-
break;
|
|
33487
|
-
}
|
|
33488
|
-
message.unencryptedHost = reader.string();
|
|
33489
|
-
continue;
|
|
33490
|
-
}
|
|
33491
|
-
case 4: {
|
|
33492
|
-
if (tag !== 32) {
|
|
33493
|
-
break;
|
|
33494
|
-
}
|
|
33495
|
-
message.unencryptedPort = reader.uint32();
|
|
33496
|
-
continue;
|
|
33497
|
-
}
|
|
33498
|
-
}
|
|
33499
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
33500
|
-
break;
|
|
33501
|
-
}
|
|
33502
|
-
reader.skip(tag & 7);
|
|
33503
|
-
}
|
|
33504
|
-
return message;
|
|
33505
|
-
},
|
|
33506
|
-
fromJSON(object) {
|
|
33507
|
-
return {
|
|
33508
|
-
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
33509
|
-
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
33510
|
-
unencryptedHost: isSet3(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
33511
|
-
unencryptedPort: isSet3(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
33512
|
-
};
|
|
34271
|
+
return { port: isSet3(object.port) ? globalThis.Number(object.port) : 0 };
|
|
33513
34272
|
},
|
|
33514
34273
|
toJSON(message) {
|
|
33515
34274
|
const obj = {};
|
|
33516
|
-
if (message.host !== "") {
|
|
33517
|
-
obj.host = message.host;
|
|
33518
|
-
}
|
|
33519
34275
|
if (message.port !== 0) {
|
|
33520
34276
|
obj.port = Math.round(message.port);
|
|
33521
34277
|
}
|
|
33522
|
-
if (message.unencryptedHost !== void 0) {
|
|
33523
|
-
obj.unencryptedHost = message.unencryptedHost;
|
|
33524
|
-
}
|
|
33525
|
-
if (message.unencryptedPort !== void 0) {
|
|
33526
|
-
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
33527
|
-
}
|
|
33528
34278
|
return obj;
|
|
33529
34279
|
},
|
|
33530
34280
|
create(base) {
|
|
33531
|
-
return
|
|
34281
|
+
return TunnelStopRequest.fromPartial(base ?? {});
|
|
33532
34282
|
},
|
|
33533
34283
|
fromPartial(object) {
|
|
33534
|
-
const message =
|
|
33535
|
-
message.host = object.host ?? "";
|
|
34284
|
+
const message = createBaseTunnelStopRequest();
|
|
33536
34285
|
message.port = object.port ?? 0;
|
|
33537
|
-
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
33538
|
-
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
33539
34286
|
return message;
|
|
33540
34287
|
}
|
|
33541
34288
|
};
|
|
33542
|
-
function
|
|
33543
|
-
return {
|
|
34289
|
+
function createBaseTunnelStopResponse() {
|
|
34290
|
+
return { exists: false };
|
|
33544
34291
|
}
|
|
33545
|
-
var
|
|
34292
|
+
var TunnelStopResponse = {
|
|
33546
34293
|
encode(message, writer = new BinaryWriter()) {
|
|
33547
|
-
if (message.
|
|
33548
|
-
writer.uint32(8).
|
|
34294
|
+
if (message.exists !== false) {
|
|
34295
|
+
writer.uint32(8).bool(message.exists);
|
|
33549
34296
|
}
|
|
33550
34297
|
return writer;
|
|
33551
34298
|
},
|
|
33552
34299
|
decode(input, length) {
|
|
33553
34300
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33554
34301
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33555
|
-
const message =
|
|
34302
|
+
const message = createBaseTunnelStopResponse();
|
|
33556
34303
|
while (reader.pos < end) {
|
|
33557
34304
|
const tag = reader.uint32();
|
|
33558
34305
|
switch (tag >>> 3) {
|
|
@@ -33560,7 +34307,7 @@ var TunnelStopRequest = {
|
|
|
33560
34307
|
if (tag !== 8) {
|
|
33561
34308
|
break;
|
|
33562
34309
|
}
|
|
33563
|
-
message.
|
|
34310
|
+
message.exists = reader.bool();
|
|
33564
34311
|
continue;
|
|
33565
34312
|
}
|
|
33566
34313
|
}
|
|
@@ -33572,46 +34319,46 @@ var TunnelStopRequest = {
|
|
|
33572
34319
|
return message;
|
|
33573
34320
|
},
|
|
33574
34321
|
fromJSON(object) {
|
|
33575
|
-
return {
|
|
34322
|
+
return { exists: isSet3(object.exists) ? globalThis.Boolean(object.exists) : false };
|
|
33576
34323
|
},
|
|
33577
34324
|
toJSON(message) {
|
|
33578
34325
|
const obj = {};
|
|
33579
|
-
if (message.
|
|
33580
|
-
obj.
|
|
34326
|
+
if (message.exists !== false) {
|
|
34327
|
+
obj.exists = message.exists;
|
|
33581
34328
|
}
|
|
33582
34329
|
return obj;
|
|
33583
34330
|
},
|
|
33584
34331
|
create(base) {
|
|
33585
|
-
return
|
|
34332
|
+
return TunnelStopResponse.fromPartial(base ?? {});
|
|
33586
34333
|
},
|
|
33587
34334
|
fromPartial(object) {
|
|
33588
|
-
const message =
|
|
33589
|
-
message.
|
|
34335
|
+
const message = createBaseTunnelStopResponse();
|
|
34336
|
+
message.exists = object.exists ?? false;
|
|
33590
34337
|
return message;
|
|
33591
34338
|
}
|
|
33592
34339
|
};
|
|
33593
|
-
function
|
|
33594
|
-
return {
|
|
34340
|
+
function createBaseUploadUrlList() {
|
|
34341
|
+
return { items: [] };
|
|
33595
34342
|
}
|
|
33596
|
-
var
|
|
34343
|
+
var UploadUrlList = {
|
|
33597
34344
|
encode(message, writer = new BinaryWriter()) {
|
|
33598
|
-
|
|
33599
|
-
writer.uint32(
|
|
34345
|
+
for (const v of message.items) {
|
|
34346
|
+
writer.uint32(10).string(v);
|
|
33600
34347
|
}
|
|
33601
34348
|
return writer;
|
|
33602
34349
|
},
|
|
33603
34350
|
decode(input, length) {
|
|
33604
34351
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33605
34352
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33606
|
-
const message =
|
|
34353
|
+
const message = createBaseUploadUrlList();
|
|
33607
34354
|
while (reader.pos < end) {
|
|
33608
34355
|
const tag = reader.uint32();
|
|
33609
34356
|
switch (tag >>> 3) {
|
|
33610
34357
|
case 1: {
|
|
33611
|
-
if (tag !==
|
|
34358
|
+
if (tag !== 10) {
|
|
33612
34359
|
break;
|
|
33613
34360
|
}
|
|
33614
|
-
message.
|
|
34361
|
+
message.items.push(reader.string());
|
|
33615
34362
|
continue;
|
|
33616
34363
|
}
|
|
33617
34364
|
}
|
|
@@ -33623,21 +34370,21 @@ var TunnelStopResponse = {
|
|
|
33623
34370
|
return message;
|
|
33624
34371
|
},
|
|
33625
34372
|
fromJSON(object) {
|
|
33626
|
-
return {
|
|
34373
|
+
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => globalThis.String(e)) : [] };
|
|
33627
34374
|
},
|
|
33628
34375
|
toJSON(message) {
|
|
33629
34376
|
const obj = {};
|
|
33630
|
-
if (message.
|
|
33631
|
-
obj.
|
|
34377
|
+
if (message.items?.length) {
|
|
34378
|
+
obj.items = message.items;
|
|
33632
34379
|
}
|
|
33633
34380
|
return obj;
|
|
33634
34381
|
},
|
|
33635
34382
|
create(base) {
|
|
33636
|
-
return
|
|
34383
|
+
return UploadUrlList.fromPartial(base ?? {});
|
|
33637
34384
|
},
|
|
33638
34385
|
fromPartial(object) {
|
|
33639
|
-
const message =
|
|
33640
|
-
message.
|
|
34386
|
+
const message = createBaseUploadUrlList();
|
|
34387
|
+
message.items = object.items?.map((e) => e) || [];
|
|
33641
34388
|
return message;
|
|
33642
34389
|
}
|
|
33643
34390
|
};
|
|
@@ -34415,16 +35162,13 @@ var VolumeGetFileResponse = {
|
|
|
34415
35162
|
}
|
|
34416
35163
|
};
|
|
34417
35164
|
function createBaseVolumeGetOrCreateRequest() {
|
|
34418
|
-
return { deploymentName: "",
|
|
35165
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, appId: "", version: 0 };
|
|
34419
35166
|
}
|
|
34420
35167
|
var VolumeGetOrCreateRequest = {
|
|
34421
35168
|
encode(message, writer = new BinaryWriter()) {
|
|
34422
35169
|
if (message.deploymentName !== "") {
|
|
34423
35170
|
writer.uint32(10).string(message.deploymentName);
|
|
34424
35171
|
}
|
|
34425
|
-
if (message.namespace !== 0) {
|
|
34426
|
-
writer.uint32(16).int32(message.namespace);
|
|
34427
|
-
}
|
|
34428
35172
|
if (message.environmentName !== "") {
|
|
34429
35173
|
writer.uint32(26).string(message.environmentName);
|
|
34430
35174
|
}
|
|
@@ -34453,13 +35197,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34453
35197
|
message.deploymentName = reader.string();
|
|
34454
35198
|
continue;
|
|
34455
35199
|
}
|
|
34456
|
-
case 2: {
|
|
34457
|
-
if (tag !== 16) {
|
|
34458
|
-
break;
|
|
34459
|
-
}
|
|
34460
|
-
message.namespace = reader.int32();
|
|
34461
|
-
continue;
|
|
34462
|
-
}
|
|
34463
35200
|
case 3: {
|
|
34464
35201
|
if (tag !== 26) {
|
|
34465
35202
|
break;
|
|
@@ -34499,7 +35236,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34499
35236
|
fromJSON(object) {
|
|
34500
35237
|
return {
|
|
34501
35238
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
34502
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
34503
35239
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
34504
35240
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
34505
35241
|
appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
|
|
@@ -34511,9 +35247,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34511
35247
|
if (message.deploymentName !== "") {
|
|
34512
35248
|
obj.deploymentName = message.deploymentName;
|
|
34513
35249
|
}
|
|
34514
|
-
if (message.namespace !== 0) {
|
|
34515
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
34516
|
-
}
|
|
34517
35250
|
if (message.environmentName !== "") {
|
|
34518
35251
|
obj.environmentName = message.environmentName;
|
|
34519
35252
|
}
|
|
@@ -34534,7 +35267,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34534
35267
|
fromPartial(object) {
|
|
34535
35268
|
const message = createBaseVolumeGetOrCreateRequest();
|
|
34536
35269
|
message.deploymentName = object.deploymentName ?? "";
|
|
34537
|
-
message.namespace = object.namespace ?? 0;
|
|
34538
35270
|
message.environmentName = object.environmentName ?? "";
|
|
34539
35271
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
34540
35272
|
message.appId = object.appId ?? "";
|
|
@@ -36787,6 +37519,14 @@ var ModalClientDefinition = {
|
|
|
36787
37519
|
responseStream: false,
|
|
36788
37520
|
options: {}
|
|
36789
37521
|
},
|
|
37522
|
+
containerReloadVolumes: {
|
|
37523
|
+
name: "ContainerReloadVolumes",
|
|
37524
|
+
requestType: ContainerReloadVolumesRequest,
|
|
37525
|
+
requestStream: false,
|
|
37526
|
+
responseType: ContainerReloadVolumesResponse,
|
|
37527
|
+
responseStream: false,
|
|
37528
|
+
options: {}
|
|
37529
|
+
},
|
|
36790
37530
|
containerStop: {
|
|
36791
37531
|
name: "ContainerStop",
|
|
36792
37532
|
requestType: ContainerStopRequest,
|
|
@@ -36950,6 +37690,31 @@ var ModalClientDefinition = {
|
|
|
36950
37690
|
responseStream: false,
|
|
36951
37691
|
options: {}
|
|
36952
37692
|
},
|
|
37693
|
+
/** Modal Flash (experimental) */
|
|
37694
|
+
flashContainerDeregister: {
|
|
37695
|
+
name: "FlashContainerDeregister",
|
|
37696
|
+
requestType: FlashContainerDeregisterRequest,
|
|
37697
|
+
requestStream: false,
|
|
37698
|
+
responseType: Empty,
|
|
37699
|
+
responseStream: false,
|
|
37700
|
+
options: {}
|
|
37701
|
+
},
|
|
37702
|
+
flashContainerList: {
|
|
37703
|
+
name: "FlashContainerList",
|
|
37704
|
+
requestType: FlashContainerListRequest,
|
|
37705
|
+
requestStream: false,
|
|
37706
|
+
responseType: FlashContainerListResponse,
|
|
37707
|
+
responseStream: false,
|
|
37708
|
+
options: {}
|
|
37709
|
+
},
|
|
37710
|
+
flashContainerRegister: {
|
|
37711
|
+
name: "FlashContainerRegister",
|
|
37712
|
+
requestType: FlashContainerRegisterRequest,
|
|
37713
|
+
requestStream: false,
|
|
37714
|
+
responseType: FlashContainerRegisterResponse,
|
|
37715
|
+
responseStream: false,
|
|
37716
|
+
options: {}
|
|
37717
|
+
},
|
|
36953
37718
|
/** Functions */
|
|
36954
37719
|
functionAsyncInvoke: {
|
|
36955
37720
|
name: "FunctionAsyncInvoke",
|
|
@@ -38128,6 +38893,12 @@ var SandboxFilesystemError = class extends Error {
|
|
|
38128
38893
|
this.name = "SandboxFilesystemError";
|
|
38129
38894
|
}
|
|
38130
38895
|
};
|
|
38896
|
+
var SandboxTimeoutError = class extends Error {
|
|
38897
|
+
constructor(message = "Sandbox operation timed out") {
|
|
38898
|
+
super(message);
|
|
38899
|
+
this.name = "SandboxTimeoutError";
|
|
38900
|
+
}
|
|
38901
|
+
};
|
|
38131
38902
|
|
|
38132
38903
|
// src/sandbox_filesystem.ts
|
|
38133
38904
|
var SandboxFile = class {
|
|
@@ -38340,12 +39111,43 @@ async function consumeIterator(iter) {
|
|
|
38340
39111
|
}
|
|
38341
39112
|
|
|
38342
39113
|
// src/sandbox.ts
|
|
39114
|
+
var Tunnel = class {
|
|
39115
|
+
/** @ignore */
|
|
39116
|
+
constructor(host, port, unencryptedHost, unencryptedPort) {
|
|
39117
|
+
this.host = host;
|
|
39118
|
+
this.port = port;
|
|
39119
|
+
this.unencryptedHost = unencryptedHost;
|
|
39120
|
+
this.unencryptedPort = unencryptedPort;
|
|
39121
|
+
}
|
|
39122
|
+
/** Get the public HTTPS URL of the forwarded port. */
|
|
39123
|
+
get url() {
|
|
39124
|
+
let value = `https://${this.host}`;
|
|
39125
|
+
if (this.port !== 443) {
|
|
39126
|
+
value += `:${this.port}`;
|
|
39127
|
+
}
|
|
39128
|
+
return value;
|
|
39129
|
+
}
|
|
39130
|
+
/** Get the public TLS socket as a [host, port] tuple. */
|
|
39131
|
+
get tlsSocket() {
|
|
39132
|
+
return [this.host, this.port];
|
|
39133
|
+
}
|
|
39134
|
+
/** Get the public TCP socket as a [host, port] tuple. */
|
|
39135
|
+
get tcpSocket() {
|
|
39136
|
+
if (!this.unencryptedHost || this.unencryptedPort === void 0) {
|
|
39137
|
+
throw new InvalidError(
|
|
39138
|
+
"This tunnel is not configured for unencrypted TCP."
|
|
39139
|
+
);
|
|
39140
|
+
}
|
|
39141
|
+
return [this.unencryptedHost, this.unencryptedPort];
|
|
39142
|
+
}
|
|
39143
|
+
};
|
|
38343
39144
|
var Sandbox2 = class {
|
|
38344
39145
|
sandboxId;
|
|
38345
39146
|
stdin;
|
|
38346
39147
|
stdout;
|
|
38347
39148
|
stderr;
|
|
38348
39149
|
#taskId;
|
|
39150
|
+
#tunnels;
|
|
38349
39151
|
/** @ignore */
|
|
38350
39152
|
constructor(sandboxId) {
|
|
38351
39153
|
this.sandboxId = sandboxId;
|
|
@@ -38423,6 +39225,35 @@ var Sandbox2 = class {
|
|
|
38423
39225
|
}
|
|
38424
39226
|
}
|
|
38425
39227
|
}
|
|
39228
|
+
/** Get Tunnel metadata for the sandbox.
|
|
39229
|
+
*
|
|
39230
|
+
* Raises `SandboxTimeoutError` if the tunnels are not available after the timeout.
|
|
39231
|
+
*
|
|
39232
|
+
* @returns A dictionary of Tunnel objects which are keyed by the container port.
|
|
39233
|
+
*/
|
|
39234
|
+
async tunnels(timeout = 5e4) {
|
|
39235
|
+
if (this.#tunnels) {
|
|
39236
|
+
return this.#tunnels;
|
|
39237
|
+
}
|
|
39238
|
+
const resp = await client.sandboxGetTunnels({
|
|
39239
|
+
sandboxId: this.sandboxId,
|
|
39240
|
+
timeout: timeout / 1e3
|
|
39241
|
+
// Convert to seconds
|
|
39242
|
+
});
|
|
39243
|
+
if (resp.result?.status === 4 /* GENERIC_STATUS_TIMEOUT */) {
|
|
39244
|
+
throw new SandboxTimeoutError();
|
|
39245
|
+
}
|
|
39246
|
+
this.#tunnels = {};
|
|
39247
|
+
for (const t of resp.tunnels) {
|
|
39248
|
+
this.#tunnels[t.containerPort] = new Tunnel(
|
|
39249
|
+
t.host,
|
|
39250
|
+
t.port,
|
|
39251
|
+
t.unencryptedHost,
|
|
39252
|
+
t.unencryptedPort
|
|
39253
|
+
);
|
|
39254
|
+
}
|
|
39255
|
+
return this.#tunnels;
|
|
39256
|
+
}
|
|
38426
39257
|
};
|
|
38427
39258
|
var ContainerProcess = class {
|
|
38428
39259
|
stdin;
|
|
@@ -38637,6 +39468,32 @@ var App = class _App {
|
|
|
38637
39468
|
allowBackgroundCommits: true,
|
|
38638
39469
|
readOnly: false
|
|
38639
39470
|
})) : [];
|
|
39471
|
+
const openPorts = [];
|
|
39472
|
+
if (options.encryptedPorts) {
|
|
39473
|
+
openPorts.push(
|
|
39474
|
+
...options.encryptedPorts.map((port) => ({
|
|
39475
|
+
port,
|
|
39476
|
+
unencrypted: false
|
|
39477
|
+
}))
|
|
39478
|
+
);
|
|
39479
|
+
}
|
|
39480
|
+
if (options.h2Ports) {
|
|
39481
|
+
openPorts.push(
|
|
39482
|
+
...options.h2Ports.map((port) => ({
|
|
39483
|
+
port,
|
|
39484
|
+
unencrypted: false,
|
|
39485
|
+
tunnelType: 1 /* TUNNEL_TYPE_H2 */
|
|
39486
|
+
}))
|
|
39487
|
+
);
|
|
39488
|
+
}
|
|
39489
|
+
if (options.unencryptedPorts) {
|
|
39490
|
+
openPorts.push(
|
|
39491
|
+
...options.unencryptedPorts.map((port) => ({
|
|
39492
|
+
port,
|
|
39493
|
+
unencrypted: true
|
|
39494
|
+
}))
|
|
39495
|
+
);
|
|
39496
|
+
}
|
|
38640
39497
|
const createResp = await client.sandboxCreate({
|
|
38641
39498
|
appId: this.appId,
|
|
38642
39499
|
definition: {
|
|
@@ -38652,7 +39509,8 @@ var App = class _App {
|
|
|
38652
39509
|
milliCpu: Math.round(1e3 * (options.cpu ?? 0.125)),
|
|
38653
39510
|
memoryMb: options.memory ?? 128
|
|
38654
39511
|
},
|
|
38655
|
-
volumeMounts
|
|
39512
|
+
volumeMounts,
|
|
39513
|
+
openPorts: openPorts.length > 0 ? { ports: openPorts } : void 0
|
|
38656
39514
|
}
|
|
38657
39515
|
});
|
|
38658
39516
|
return new Sandbox2(createResp.sandboxId);
|
|
@@ -39278,12 +40136,12 @@ var maxSystemRetries = 8;
|
|
|
39278
40136
|
var Function_ = class _Function_ {
|
|
39279
40137
|
functionId;
|
|
39280
40138
|
methodName;
|
|
39281
|
-
inputPlaneUrl;
|
|
40139
|
+
#inputPlaneUrl;
|
|
39282
40140
|
/** @ignore */
|
|
39283
40141
|
constructor(functionId, methodName, inputPlaneUrl) {
|
|
39284
40142
|
this.functionId = functionId;
|
|
39285
40143
|
this.methodName = methodName;
|
|
39286
|
-
this
|
|
40144
|
+
this.#inputPlaneUrl = inputPlaneUrl;
|
|
39287
40145
|
}
|
|
39288
40146
|
static async lookup(appName, name, options = {}) {
|
|
39289
40147
|
try {
|
|
@@ -39322,9 +40180,9 @@ var Function_ = class _Function_ {
|
|
|
39322
40180
|
}
|
|
39323
40181
|
}
|
|
39324
40182
|
async #createRemoteInvocation(input) {
|
|
39325
|
-
if (this
|
|
40183
|
+
if (this.#inputPlaneUrl) {
|
|
39326
40184
|
return await InputPlaneInvocation.create(
|
|
39327
|
-
this
|
|
40185
|
+
this.#inputPlaneUrl,
|
|
39328
40186
|
this.functionId,
|
|
39329
40187
|
input
|
|
39330
40188
|
);
|
|
@@ -39821,6 +40679,7 @@ export {
|
|
|
39821
40679
|
RemoteError,
|
|
39822
40680
|
Sandbox2 as Sandbox,
|
|
39823
40681
|
SandboxFile,
|
|
40682
|
+
SandboxTimeoutError,
|
|
39824
40683
|
Secret,
|
|
39825
40684
|
Volume,
|
|
39826
40685
|
initializeClient
|