modal 0.3.13 → 0.3.15
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 +1124 -197
- package/dist/index.d.cts +67 -17
- package/dist/index.d.ts +67 -17
- package/dist/index.js +1123 -197
- 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,9 @@ 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,
|
|
18817
|
+
maxObjectSizeBytes: void 0
|
|
18301
18818
|
};
|
|
18302
18819
|
}
|
|
18303
18820
|
var FunctionHandleMetadata = {
|
|
@@ -18335,6 +18852,12 @@ var FunctionHandleMetadata = {
|
|
|
18335
18852
|
if (message.inputPlaneUrl !== void 0) {
|
|
18336
18853
|
writer.uint32(370).string(message.inputPlaneUrl);
|
|
18337
18854
|
}
|
|
18855
|
+
if (message.inputPlaneRegion !== void 0) {
|
|
18856
|
+
writer.uint32(378).string(message.inputPlaneRegion);
|
|
18857
|
+
}
|
|
18858
|
+
if (message.maxObjectSizeBytes !== void 0) {
|
|
18859
|
+
writer.uint32(384).uint64(message.maxObjectSizeBytes);
|
|
18860
|
+
}
|
|
18338
18861
|
return writer;
|
|
18339
18862
|
},
|
|
18340
18863
|
decode(input, length) {
|
|
@@ -18424,6 +18947,20 @@ var FunctionHandleMetadata = {
|
|
|
18424
18947
|
message.inputPlaneUrl = reader.string();
|
|
18425
18948
|
continue;
|
|
18426
18949
|
}
|
|
18950
|
+
case 47: {
|
|
18951
|
+
if (tag !== 378) {
|
|
18952
|
+
break;
|
|
18953
|
+
}
|
|
18954
|
+
message.inputPlaneRegion = reader.string();
|
|
18955
|
+
continue;
|
|
18956
|
+
}
|
|
18957
|
+
case 48: {
|
|
18958
|
+
if (tag !== 384) {
|
|
18959
|
+
break;
|
|
18960
|
+
}
|
|
18961
|
+
message.maxObjectSizeBytes = longToNumber(reader.uint64());
|
|
18962
|
+
continue;
|
|
18963
|
+
}
|
|
18427
18964
|
}
|
|
18428
18965
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18429
18966
|
break;
|
|
@@ -18450,7 +18987,9 @@ var FunctionHandleMetadata = {
|
|
|
18450
18987
|
{}
|
|
18451
18988
|
) : {},
|
|
18452
18989
|
functionSchema: isSet3(object.functionSchema) ? FunctionSchema.fromJSON(object.functionSchema) : void 0,
|
|
18453
|
-
inputPlaneUrl: isSet3(object.inputPlaneUrl) ? globalThis.String(object.inputPlaneUrl) : void 0
|
|
18990
|
+
inputPlaneUrl: isSet3(object.inputPlaneUrl) ? globalThis.String(object.inputPlaneUrl) : void 0,
|
|
18991
|
+
inputPlaneRegion: isSet3(object.inputPlaneRegion) ? globalThis.String(object.inputPlaneRegion) : void 0,
|
|
18992
|
+
maxObjectSizeBytes: isSet3(object.maxObjectSizeBytes) ? globalThis.Number(object.maxObjectSizeBytes) : void 0
|
|
18454
18993
|
};
|
|
18455
18994
|
},
|
|
18456
18995
|
toJSON(message) {
|
|
@@ -18494,6 +19033,12 @@ var FunctionHandleMetadata = {
|
|
|
18494
19033
|
if (message.inputPlaneUrl !== void 0) {
|
|
18495
19034
|
obj.inputPlaneUrl = message.inputPlaneUrl;
|
|
18496
19035
|
}
|
|
19036
|
+
if (message.inputPlaneRegion !== void 0) {
|
|
19037
|
+
obj.inputPlaneRegion = message.inputPlaneRegion;
|
|
19038
|
+
}
|
|
19039
|
+
if (message.maxObjectSizeBytes !== void 0) {
|
|
19040
|
+
obj.maxObjectSizeBytes = Math.round(message.maxObjectSizeBytes);
|
|
19041
|
+
}
|
|
18497
19042
|
return obj;
|
|
18498
19043
|
},
|
|
18499
19044
|
create(base) {
|
|
@@ -18517,6 +19062,8 @@ var FunctionHandleMetadata = {
|
|
|
18517
19062
|
}, {});
|
|
18518
19063
|
message.functionSchema = object.functionSchema !== void 0 && object.functionSchema !== null ? FunctionSchema.fromPartial(object.functionSchema) : void 0;
|
|
18519
19064
|
message.inputPlaneUrl = object.inputPlaneUrl ?? void 0;
|
|
19065
|
+
message.inputPlaneRegion = object.inputPlaneRegion ?? void 0;
|
|
19066
|
+
message.maxObjectSizeBytes = object.maxObjectSizeBytes ?? void 0;
|
|
18520
19067
|
return message;
|
|
18521
19068
|
}
|
|
18522
19069
|
};
|
|
@@ -19619,7 +20166,7 @@ var FunctionPrecreateResponse = {
|
|
|
19619
20166
|
}
|
|
19620
20167
|
};
|
|
19621
20168
|
function createBaseFunctionPutInputsItem() {
|
|
19622
|
-
return { idx: 0, input: void 0 };
|
|
20169
|
+
return { idx: 0, input: void 0, r2Failed: false, r2LatencyMs: 0 };
|
|
19623
20170
|
}
|
|
19624
20171
|
var FunctionPutInputsItem = {
|
|
19625
20172
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -19629,6 +20176,12 @@ var FunctionPutInputsItem = {
|
|
|
19629
20176
|
if (message.input !== void 0) {
|
|
19630
20177
|
FunctionInput.encode(message.input, writer.uint32(18).fork()).join();
|
|
19631
20178
|
}
|
|
20179
|
+
if (message.r2Failed !== false) {
|
|
20180
|
+
writer.uint32(24).bool(message.r2Failed);
|
|
20181
|
+
}
|
|
20182
|
+
if (message.r2LatencyMs !== 0) {
|
|
20183
|
+
writer.uint32(32).uint64(message.r2LatencyMs);
|
|
20184
|
+
}
|
|
19632
20185
|
return writer;
|
|
19633
20186
|
},
|
|
19634
20187
|
decode(input, length) {
|
|
@@ -19652,6 +20205,20 @@ var FunctionPutInputsItem = {
|
|
|
19652
20205
|
message.input = FunctionInput.decode(reader, reader.uint32());
|
|
19653
20206
|
continue;
|
|
19654
20207
|
}
|
|
20208
|
+
case 3: {
|
|
20209
|
+
if (tag !== 24) {
|
|
20210
|
+
break;
|
|
20211
|
+
}
|
|
20212
|
+
message.r2Failed = reader.bool();
|
|
20213
|
+
continue;
|
|
20214
|
+
}
|
|
20215
|
+
case 4: {
|
|
20216
|
+
if (tag !== 32) {
|
|
20217
|
+
break;
|
|
20218
|
+
}
|
|
20219
|
+
message.r2LatencyMs = longToNumber(reader.uint64());
|
|
20220
|
+
continue;
|
|
20221
|
+
}
|
|
19655
20222
|
}
|
|
19656
20223
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19657
20224
|
break;
|
|
@@ -19663,7 +20230,9 @@ var FunctionPutInputsItem = {
|
|
|
19663
20230
|
fromJSON(object) {
|
|
19664
20231
|
return {
|
|
19665
20232
|
idx: isSet3(object.idx) ? globalThis.Number(object.idx) : 0,
|
|
19666
|
-
input: isSet3(object.input) ? FunctionInput.fromJSON(object.input) : void 0
|
|
20233
|
+
input: isSet3(object.input) ? FunctionInput.fromJSON(object.input) : void 0,
|
|
20234
|
+
r2Failed: isSet3(object.r2Failed) ? globalThis.Boolean(object.r2Failed) : false,
|
|
20235
|
+
r2LatencyMs: isSet3(object.r2LatencyMs) ? globalThis.Number(object.r2LatencyMs) : 0
|
|
19667
20236
|
};
|
|
19668
20237
|
},
|
|
19669
20238
|
toJSON(message) {
|
|
@@ -19674,6 +20243,12 @@ var FunctionPutInputsItem = {
|
|
|
19674
20243
|
if (message.input !== void 0) {
|
|
19675
20244
|
obj.input = FunctionInput.toJSON(message.input);
|
|
19676
20245
|
}
|
|
20246
|
+
if (message.r2Failed !== false) {
|
|
20247
|
+
obj.r2Failed = message.r2Failed;
|
|
20248
|
+
}
|
|
20249
|
+
if (message.r2LatencyMs !== 0) {
|
|
20250
|
+
obj.r2LatencyMs = Math.round(message.r2LatencyMs);
|
|
20251
|
+
}
|
|
19677
20252
|
return obj;
|
|
19678
20253
|
},
|
|
19679
20254
|
create(base) {
|
|
@@ -19683,6 +20258,8 @@ var FunctionPutInputsItem = {
|
|
|
19683
20258
|
const message = createBaseFunctionPutInputsItem();
|
|
19684
20259
|
message.idx = object.idx ?? 0;
|
|
19685
20260
|
message.input = object.input !== void 0 && object.input !== null ? FunctionInput.fromPartial(object.input) : void 0;
|
|
20261
|
+
message.r2Failed = object.r2Failed ?? false;
|
|
20262
|
+
message.r2LatencyMs = object.r2LatencyMs ?? 0;
|
|
19686
20263
|
return message;
|
|
19687
20264
|
}
|
|
19688
20265
|
};
|
|
@@ -21073,7 +21650,8 @@ function createBaseImage() {
|
|
|
21073
21650
|
buildFunctionGlobals: new Uint8Array(0),
|
|
21074
21651
|
runtime: "",
|
|
21075
21652
|
runtimeDebug: false,
|
|
21076
|
-
buildFunction: void 0
|
|
21653
|
+
buildFunction: void 0,
|
|
21654
|
+
buildArgs: {}
|
|
21077
21655
|
};
|
|
21078
21656
|
}
|
|
21079
21657
|
var Image = {
|
|
@@ -21117,6 +21695,9 @@ var Image = {
|
|
|
21117
21695
|
if (message.buildFunction !== void 0) {
|
|
21118
21696
|
BuildFunction.encode(message.buildFunction, writer.uint32(170).fork()).join();
|
|
21119
21697
|
}
|
|
21698
|
+
Object.entries(message.buildArgs).forEach(([key, value]) => {
|
|
21699
|
+
Image_BuildArgsEntry.encode({ key, value }, writer.uint32(178).fork()).join();
|
|
21700
|
+
});
|
|
21120
21701
|
return writer;
|
|
21121
21702
|
},
|
|
21122
21703
|
decode(input, length) {
|
|
@@ -21217,6 +21798,16 @@ var Image = {
|
|
|
21217
21798
|
message.buildFunction = BuildFunction.decode(reader, reader.uint32());
|
|
21218
21799
|
continue;
|
|
21219
21800
|
}
|
|
21801
|
+
case 22: {
|
|
21802
|
+
if (tag !== 178) {
|
|
21803
|
+
break;
|
|
21804
|
+
}
|
|
21805
|
+
const entry22 = Image_BuildArgsEntry.decode(reader, reader.uint32());
|
|
21806
|
+
if (entry22.value !== void 0) {
|
|
21807
|
+
message.buildArgs[entry22.key] = entry22.value;
|
|
21808
|
+
}
|
|
21809
|
+
continue;
|
|
21810
|
+
}
|
|
21220
21811
|
}
|
|
21221
21812
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21222
21813
|
break;
|
|
@@ -21239,7 +21830,11 @@ var Image = {
|
|
|
21239
21830
|
buildFunctionGlobals: isSet3(object.buildFunctionGlobals) ? bytesFromBase64(object.buildFunctionGlobals) : new Uint8Array(0),
|
|
21240
21831
|
runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : "",
|
|
21241
21832
|
runtimeDebug: isSet3(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false,
|
|
21242
|
-
buildFunction: isSet3(object.buildFunction) ? BuildFunction.fromJSON(object.buildFunction) : void 0
|
|
21833
|
+
buildFunction: isSet3(object.buildFunction) ? BuildFunction.fromJSON(object.buildFunction) : void 0,
|
|
21834
|
+
buildArgs: isObject2(object.buildArgs) ? Object.entries(object.buildArgs).reduce((acc, [key, value]) => {
|
|
21835
|
+
acc[key] = String(value);
|
|
21836
|
+
return acc;
|
|
21837
|
+
}, {}) : {}
|
|
21243
21838
|
};
|
|
21244
21839
|
},
|
|
21245
21840
|
toJSON(message) {
|
|
@@ -21283,6 +21878,15 @@ var Image = {
|
|
|
21283
21878
|
if (message.buildFunction !== void 0) {
|
|
21284
21879
|
obj.buildFunction = BuildFunction.toJSON(message.buildFunction);
|
|
21285
21880
|
}
|
|
21881
|
+
if (message.buildArgs) {
|
|
21882
|
+
const entries = Object.entries(message.buildArgs);
|
|
21883
|
+
if (entries.length > 0) {
|
|
21884
|
+
obj.buildArgs = {};
|
|
21885
|
+
entries.forEach(([k, v]) => {
|
|
21886
|
+
obj.buildArgs[k] = v;
|
|
21887
|
+
});
|
|
21888
|
+
}
|
|
21889
|
+
}
|
|
21286
21890
|
return obj;
|
|
21287
21891
|
},
|
|
21288
21892
|
create(base) {
|
|
@@ -21303,6 +21907,83 @@ var Image = {
|
|
|
21303
21907
|
message.runtime = object.runtime ?? "";
|
|
21304
21908
|
message.runtimeDebug = object.runtimeDebug ?? false;
|
|
21305
21909
|
message.buildFunction = object.buildFunction !== void 0 && object.buildFunction !== null ? BuildFunction.fromPartial(object.buildFunction) : void 0;
|
|
21910
|
+
message.buildArgs = Object.entries(object.buildArgs ?? {}).reduce(
|
|
21911
|
+
(acc, [key, value]) => {
|
|
21912
|
+
if (value !== void 0) {
|
|
21913
|
+
acc[key] = globalThis.String(value);
|
|
21914
|
+
}
|
|
21915
|
+
return acc;
|
|
21916
|
+
},
|
|
21917
|
+
{}
|
|
21918
|
+
);
|
|
21919
|
+
return message;
|
|
21920
|
+
}
|
|
21921
|
+
};
|
|
21922
|
+
function createBaseImage_BuildArgsEntry() {
|
|
21923
|
+
return { key: "", value: "" };
|
|
21924
|
+
}
|
|
21925
|
+
var Image_BuildArgsEntry = {
|
|
21926
|
+
encode(message, writer = new BinaryWriter()) {
|
|
21927
|
+
if (message.key !== "") {
|
|
21928
|
+
writer.uint32(10).string(message.key);
|
|
21929
|
+
}
|
|
21930
|
+
if (message.value !== "") {
|
|
21931
|
+
writer.uint32(18).string(message.value);
|
|
21932
|
+
}
|
|
21933
|
+
return writer;
|
|
21934
|
+
},
|
|
21935
|
+
decode(input, length) {
|
|
21936
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
21937
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
21938
|
+
const message = createBaseImage_BuildArgsEntry();
|
|
21939
|
+
while (reader.pos < end) {
|
|
21940
|
+
const tag = reader.uint32();
|
|
21941
|
+
switch (tag >>> 3) {
|
|
21942
|
+
case 1: {
|
|
21943
|
+
if (tag !== 10) {
|
|
21944
|
+
break;
|
|
21945
|
+
}
|
|
21946
|
+
message.key = reader.string();
|
|
21947
|
+
continue;
|
|
21948
|
+
}
|
|
21949
|
+
case 2: {
|
|
21950
|
+
if (tag !== 18) {
|
|
21951
|
+
break;
|
|
21952
|
+
}
|
|
21953
|
+
message.value = reader.string();
|
|
21954
|
+
continue;
|
|
21955
|
+
}
|
|
21956
|
+
}
|
|
21957
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
21958
|
+
break;
|
|
21959
|
+
}
|
|
21960
|
+
reader.skip(tag & 7);
|
|
21961
|
+
}
|
|
21962
|
+
return message;
|
|
21963
|
+
},
|
|
21964
|
+
fromJSON(object) {
|
|
21965
|
+
return {
|
|
21966
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
21967
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
21968
|
+
};
|
|
21969
|
+
},
|
|
21970
|
+
toJSON(message) {
|
|
21971
|
+
const obj = {};
|
|
21972
|
+
if (message.key !== "") {
|
|
21973
|
+
obj.key = message.key;
|
|
21974
|
+
}
|
|
21975
|
+
if (message.value !== "") {
|
|
21976
|
+
obj.value = message.value;
|
|
21977
|
+
}
|
|
21978
|
+
return obj;
|
|
21979
|
+
},
|
|
21980
|
+
create(base) {
|
|
21981
|
+
return Image_BuildArgsEntry.fromPartial(base ?? {});
|
|
21982
|
+
},
|
|
21983
|
+
fromPartial(object) {
|
|
21984
|
+
const message = createBaseImage_BuildArgsEntry();
|
|
21985
|
+
message.key = object.key ?? "";
|
|
21986
|
+
message.value = object.value ?? "";
|
|
21306
21987
|
return message;
|
|
21307
21988
|
}
|
|
21308
21989
|
};
|
|
@@ -23269,6 +23950,59 @@ var MultiPartUpload = {
|
|
|
23269
23950
|
return message;
|
|
23270
23951
|
}
|
|
23271
23952
|
};
|
|
23953
|
+
function createBaseMultiPartUploadList() {
|
|
23954
|
+
return { items: [] };
|
|
23955
|
+
}
|
|
23956
|
+
var MultiPartUploadList = {
|
|
23957
|
+
encode(message, writer = new BinaryWriter()) {
|
|
23958
|
+
for (const v of message.items) {
|
|
23959
|
+
MultiPartUpload.encode(v, writer.uint32(10).fork()).join();
|
|
23960
|
+
}
|
|
23961
|
+
return writer;
|
|
23962
|
+
},
|
|
23963
|
+
decode(input, length) {
|
|
23964
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23965
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
23966
|
+
const message = createBaseMultiPartUploadList();
|
|
23967
|
+
while (reader.pos < end) {
|
|
23968
|
+
const tag = reader.uint32();
|
|
23969
|
+
switch (tag >>> 3) {
|
|
23970
|
+
case 1: {
|
|
23971
|
+
if (tag !== 10) {
|
|
23972
|
+
break;
|
|
23973
|
+
}
|
|
23974
|
+
message.items.push(MultiPartUpload.decode(reader, reader.uint32()));
|
|
23975
|
+
continue;
|
|
23976
|
+
}
|
|
23977
|
+
}
|
|
23978
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23979
|
+
break;
|
|
23980
|
+
}
|
|
23981
|
+
reader.skip(tag & 7);
|
|
23982
|
+
}
|
|
23983
|
+
return message;
|
|
23984
|
+
},
|
|
23985
|
+
fromJSON(object) {
|
|
23986
|
+
return {
|
|
23987
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => MultiPartUpload.fromJSON(e)) : []
|
|
23988
|
+
};
|
|
23989
|
+
},
|
|
23990
|
+
toJSON(message) {
|
|
23991
|
+
const obj = {};
|
|
23992
|
+
if (message.items?.length) {
|
|
23993
|
+
obj.items = message.items.map((e) => MultiPartUpload.toJSON(e));
|
|
23994
|
+
}
|
|
23995
|
+
return obj;
|
|
23996
|
+
},
|
|
23997
|
+
create(base) {
|
|
23998
|
+
return MultiPartUploadList.fromPartial(base ?? {});
|
|
23999
|
+
},
|
|
24000
|
+
fromPartial(object) {
|
|
24001
|
+
const message = createBaseMultiPartUploadList();
|
|
24002
|
+
message.items = object.items?.map((e) => MultiPartUpload.fromPartial(e)) || [];
|
|
24003
|
+
return message;
|
|
24004
|
+
}
|
|
24005
|
+
};
|
|
23272
24006
|
function createBaseNetworkAccess() {
|
|
23273
24007
|
return { networkAccessType: 0, allowedCidrs: [] };
|
|
23274
24008
|
}
|
|
@@ -24850,16 +25584,13 @@ var ProxyDeleteRequest = {
|
|
|
24850
25584
|
}
|
|
24851
25585
|
};
|
|
24852
25586
|
function createBaseProxyGetOrCreateRequest() {
|
|
24853
|
-
return { deploymentName: "",
|
|
25587
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0 };
|
|
24854
25588
|
}
|
|
24855
25589
|
var ProxyGetOrCreateRequest = {
|
|
24856
25590
|
encode(message, writer = new BinaryWriter()) {
|
|
24857
25591
|
if (message.deploymentName !== "") {
|
|
24858
25592
|
writer.uint32(10).string(message.deploymentName);
|
|
24859
25593
|
}
|
|
24860
|
-
if (message.namespace !== 0) {
|
|
24861
|
-
writer.uint32(16).int32(message.namespace);
|
|
24862
|
-
}
|
|
24863
25594
|
if (message.environmentName !== "") {
|
|
24864
25595
|
writer.uint32(26).string(message.environmentName);
|
|
24865
25596
|
}
|
|
@@ -24882,13 +25613,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24882
25613
|
message.deploymentName = reader.string();
|
|
24883
25614
|
continue;
|
|
24884
25615
|
}
|
|
24885
|
-
case 2: {
|
|
24886
|
-
if (tag !== 16) {
|
|
24887
|
-
break;
|
|
24888
|
-
}
|
|
24889
|
-
message.namespace = reader.int32();
|
|
24890
|
-
continue;
|
|
24891
|
-
}
|
|
24892
25616
|
case 3: {
|
|
24893
25617
|
if (tag !== 26) {
|
|
24894
25618
|
break;
|
|
@@ -24914,7 +25638,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24914
25638
|
fromJSON(object) {
|
|
24915
25639
|
return {
|
|
24916
25640
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
24917
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
24918
25641
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
24919
25642
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0
|
|
24920
25643
|
};
|
|
@@ -24924,9 +25647,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24924
25647
|
if (message.deploymentName !== "") {
|
|
24925
25648
|
obj.deploymentName = message.deploymentName;
|
|
24926
25649
|
}
|
|
24927
|
-
if (message.namespace !== 0) {
|
|
24928
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
24929
|
-
}
|
|
24930
25650
|
if (message.environmentName !== "") {
|
|
24931
25651
|
obj.environmentName = message.environmentName;
|
|
24932
25652
|
}
|
|
@@ -24941,7 +25661,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24941
25661
|
fromPartial(object) {
|
|
24942
25662
|
const message = createBaseProxyGetOrCreateRequest();
|
|
24943
25663
|
message.deploymentName = object.deploymentName ?? "";
|
|
24944
|
-
message.namespace = object.namespace ?? 0;
|
|
24945
25664
|
message.environmentName = object.environmentName ?? "";
|
|
24946
25665
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
24947
25666
|
return message;
|
|
@@ -25454,16 +26173,13 @@ var QueueDeleteRequest = {
|
|
|
25454
26173
|
}
|
|
25455
26174
|
};
|
|
25456
26175
|
function createBaseQueueGetOrCreateRequest() {
|
|
25457
|
-
return { deploymentName: "",
|
|
26176
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0 };
|
|
25458
26177
|
}
|
|
25459
26178
|
var QueueGetOrCreateRequest = {
|
|
25460
26179
|
encode(message, writer = new BinaryWriter()) {
|
|
25461
26180
|
if (message.deploymentName !== "") {
|
|
25462
26181
|
writer.uint32(10).string(message.deploymentName);
|
|
25463
26182
|
}
|
|
25464
|
-
if (message.namespace !== 0) {
|
|
25465
|
-
writer.uint32(16).int32(message.namespace);
|
|
25466
|
-
}
|
|
25467
26183
|
if (message.environmentName !== "") {
|
|
25468
26184
|
writer.uint32(26).string(message.environmentName);
|
|
25469
26185
|
}
|
|
@@ -25486,13 +26202,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25486
26202
|
message.deploymentName = reader.string();
|
|
25487
26203
|
continue;
|
|
25488
26204
|
}
|
|
25489
|
-
case 2: {
|
|
25490
|
-
if (tag !== 16) {
|
|
25491
|
-
break;
|
|
25492
|
-
}
|
|
25493
|
-
message.namespace = reader.int32();
|
|
25494
|
-
continue;
|
|
25495
|
-
}
|
|
25496
26205
|
case 3: {
|
|
25497
26206
|
if (tag !== 26) {
|
|
25498
26207
|
break;
|
|
@@ -25518,7 +26227,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25518
26227
|
fromJSON(object) {
|
|
25519
26228
|
return {
|
|
25520
26229
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
25521
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
25522
26230
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
25523
26231
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0
|
|
25524
26232
|
};
|
|
@@ -25528,9 +26236,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25528
26236
|
if (message.deploymentName !== "") {
|
|
25529
26237
|
obj.deploymentName = message.deploymentName;
|
|
25530
26238
|
}
|
|
25531
|
-
if (message.namespace !== 0) {
|
|
25532
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
25533
|
-
}
|
|
25534
26239
|
if (message.environmentName !== "") {
|
|
25535
26240
|
obj.environmentName = message.environmentName;
|
|
25536
26241
|
}
|
|
@@ -25545,7 +26250,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25545
26250
|
fromPartial(object) {
|
|
25546
26251
|
const message = createBaseQueueGetOrCreateRequest();
|
|
25547
26252
|
message.deploymentName = object.deploymentName ?? "";
|
|
25548
|
-
message.namespace = object.namespace ?? 0;
|
|
25549
26253
|
message.environmentName = object.environmentName ?? "";
|
|
25550
26254
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
25551
26255
|
return message;
|
|
@@ -27112,7 +27816,8 @@ function createBaseSandbox() {
|
|
|
27112
27816
|
snapshotVersion: void 0,
|
|
27113
27817
|
cloudProviderStr: "",
|
|
27114
27818
|
runscRuntimeVersion: void 0,
|
|
27115
|
-
runtime: void 0
|
|
27819
|
+
runtime: void 0,
|
|
27820
|
+
verbose: false
|
|
27116
27821
|
};
|
|
27117
27822
|
}
|
|
27118
27823
|
var Sandbox = {
|
|
@@ -27195,6 +27900,9 @@ var Sandbox = {
|
|
|
27195
27900
|
if (message.runtime !== void 0) {
|
|
27196
27901
|
writer.uint32(226).string(message.runtime);
|
|
27197
27902
|
}
|
|
27903
|
+
if (message.verbose !== false) {
|
|
27904
|
+
writer.uint32(232).bool(message.verbose);
|
|
27905
|
+
}
|
|
27198
27906
|
return writer;
|
|
27199
27907
|
},
|
|
27200
27908
|
decode(input, length) {
|
|
@@ -27386,6 +28094,13 @@ var Sandbox = {
|
|
|
27386
28094
|
message.runtime = reader.string();
|
|
27387
28095
|
continue;
|
|
27388
28096
|
}
|
|
28097
|
+
case 29: {
|
|
28098
|
+
if (tag !== 232) {
|
|
28099
|
+
break;
|
|
28100
|
+
}
|
|
28101
|
+
message.verbose = reader.bool();
|
|
28102
|
+
continue;
|
|
28103
|
+
}
|
|
27389
28104
|
}
|
|
27390
28105
|
if ((tag & 7) === 4 || tag === 0) {
|
|
27391
28106
|
break;
|
|
@@ -27421,7 +28136,8 @@ var Sandbox = {
|
|
|
27421
28136
|
snapshotVersion: isSet3(object.snapshotVersion) ? globalThis.Number(object.snapshotVersion) : void 0,
|
|
27422
28137
|
cloudProviderStr: isSet3(object.cloudProviderStr) ? globalThis.String(object.cloudProviderStr) : "",
|
|
27423
28138
|
runscRuntimeVersion: isSet3(object.runscRuntimeVersion) ? globalThis.String(object.runscRuntimeVersion) : void 0,
|
|
27424
|
-
runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : void 0
|
|
28139
|
+
runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : void 0,
|
|
28140
|
+
verbose: isSet3(object.verbose) ? globalThis.Boolean(object.verbose) : false
|
|
27425
28141
|
};
|
|
27426
28142
|
},
|
|
27427
28143
|
toJSON(message) {
|
|
@@ -27504,6 +28220,9 @@ var Sandbox = {
|
|
|
27504
28220
|
if (message.runtime !== void 0) {
|
|
27505
28221
|
obj.runtime = message.runtime;
|
|
27506
28222
|
}
|
|
28223
|
+
if (message.verbose !== false) {
|
|
28224
|
+
obj.verbose = message.verbose;
|
|
28225
|
+
}
|
|
27507
28226
|
return obj;
|
|
27508
28227
|
},
|
|
27509
28228
|
create(base) {
|
|
@@ -27537,6 +28256,7 @@ var Sandbox = {
|
|
|
27537
28256
|
message.cloudProviderStr = object.cloudProviderStr ?? "";
|
|
27538
28257
|
message.runscRuntimeVersion = object.runscRuntimeVersion ?? void 0;
|
|
27539
28258
|
message.runtime = object.runtime ?? void 0;
|
|
28259
|
+
message.verbose = object.verbose ?? false;
|
|
27540
28260
|
return message;
|
|
27541
28261
|
}
|
|
27542
28262
|
};
|
|
@@ -28260,7 +28980,7 @@ var SandboxHandleMetadata = {
|
|
|
28260
28980
|
}
|
|
28261
28981
|
};
|
|
28262
28982
|
function createBaseSandboxInfo() {
|
|
28263
|
-
return { id: "", createdAt: 0, taskInfo: void 0, appId: "" };
|
|
28983
|
+
return { id: "", createdAt: 0, taskInfo: void 0, appId: "", tags: [] };
|
|
28264
28984
|
}
|
|
28265
28985
|
var SandboxInfo = {
|
|
28266
28986
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -28276,6 +28996,9 @@ var SandboxInfo = {
|
|
|
28276
28996
|
if (message.appId !== "") {
|
|
28277
28997
|
writer.uint32(42).string(message.appId);
|
|
28278
28998
|
}
|
|
28999
|
+
for (const v of message.tags) {
|
|
29000
|
+
SandboxTag.encode(v, writer.uint32(50).fork()).join();
|
|
29001
|
+
}
|
|
28279
29002
|
return writer;
|
|
28280
29003
|
},
|
|
28281
29004
|
decode(input, length) {
|
|
@@ -28313,6 +29036,13 @@ var SandboxInfo = {
|
|
|
28313
29036
|
message.appId = reader.string();
|
|
28314
29037
|
continue;
|
|
28315
29038
|
}
|
|
29039
|
+
case 6: {
|
|
29040
|
+
if (tag !== 50) {
|
|
29041
|
+
break;
|
|
29042
|
+
}
|
|
29043
|
+
message.tags.push(SandboxTag.decode(reader, reader.uint32()));
|
|
29044
|
+
continue;
|
|
29045
|
+
}
|
|
28316
29046
|
}
|
|
28317
29047
|
if ((tag & 7) === 4 || tag === 0) {
|
|
28318
29048
|
break;
|
|
@@ -28326,7 +29056,8 @@ var SandboxInfo = {
|
|
|
28326
29056
|
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
28327
29057
|
createdAt: isSet3(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
28328
29058
|
taskInfo: isSet3(object.taskInfo) ? TaskInfo.fromJSON(object.taskInfo) : void 0,
|
|
28329
|
-
appId: isSet3(object.appId) ? globalThis.String(object.appId) : ""
|
|
29059
|
+
appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
|
|
29060
|
+
tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => SandboxTag.fromJSON(e)) : []
|
|
28330
29061
|
};
|
|
28331
29062
|
},
|
|
28332
29063
|
toJSON(message) {
|
|
@@ -28343,6 +29074,9 @@ var SandboxInfo = {
|
|
|
28343
29074
|
if (message.appId !== "") {
|
|
28344
29075
|
obj.appId = message.appId;
|
|
28345
29076
|
}
|
|
29077
|
+
if (message.tags?.length) {
|
|
29078
|
+
obj.tags = message.tags.map((e) => SandboxTag.toJSON(e));
|
|
29079
|
+
}
|
|
28346
29080
|
return obj;
|
|
28347
29081
|
},
|
|
28348
29082
|
create(base) {
|
|
@@ -28354,6 +29088,7 @@ var SandboxInfo = {
|
|
|
28354
29088
|
message.createdAt = object.createdAt ?? 0;
|
|
28355
29089
|
message.taskInfo = object.taskInfo !== void 0 && object.taskInfo !== null ? TaskInfo.fromPartial(object.taskInfo) : void 0;
|
|
28356
29090
|
message.appId = object.appId ?? "";
|
|
29091
|
+
message.tags = object.tags?.map((e) => SandboxTag.fromPartial(e)) || [];
|
|
28357
29092
|
return message;
|
|
28358
29093
|
}
|
|
28359
29094
|
};
|
|
@@ -30035,24 +30770,13 @@ var SecretDeleteRequest = {
|
|
|
30035
30770
|
}
|
|
30036
30771
|
};
|
|
30037
30772
|
function createBaseSecretGetOrCreateRequest() {
|
|
30038
|
-
return {
|
|
30039
|
-
deploymentName: "",
|
|
30040
|
-
namespace: 0,
|
|
30041
|
-
environmentName: "",
|
|
30042
|
-
objectCreationType: 0,
|
|
30043
|
-
envDict: {},
|
|
30044
|
-
appId: "",
|
|
30045
|
-
requiredKeys: []
|
|
30046
|
-
};
|
|
30773
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, envDict: {}, appId: "", requiredKeys: [] };
|
|
30047
30774
|
}
|
|
30048
30775
|
var SecretGetOrCreateRequest = {
|
|
30049
30776
|
encode(message, writer = new BinaryWriter()) {
|
|
30050
30777
|
if (message.deploymentName !== "") {
|
|
30051
30778
|
writer.uint32(10).string(message.deploymentName);
|
|
30052
30779
|
}
|
|
30053
|
-
if (message.namespace !== 0) {
|
|
30054
|
-
writer.uint32(16).int32(message.namespace);
|
|
30055
|
-
}
|
|
30056
30780
|
if (message.environmentName !== "") {
|
|
30057
30781
|
writer.uint32(26).string(message.environmentName);
|
|
30058
30782
|
}
|
|
@@ -30084,13 +30808,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30084
30808
|
message.deploymentName = reader.string();
|
|
30085
30809
|
continue;
|
|
30086
30810
|
}
|
|
30087
|
-
case 2: {
|
|
30088
|
-
if (tag !== 16) {
|
|
30089
|
-
break;
|
|
30090
|
-
}
|
|
30091
|
-
message.namespace = reader.int32();
|
|
30092
|
-
continue;
|
|
30093
|
-
}
|
|
30094
30811
|
case 3: {
|
|
30095
30812
|
if (tag !== 26) {
|
|
30096
30813
|
break;
|
|
@@ -30140,7 +30857,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30140
30857
|
fromJSON(object) {
|
|
30141
30858
|
return {
|
|
30142
30859
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
30143
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
30144
30860
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
30145
30861
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
30146
30862
|
envDict: isObject2(object.envDict) ? Object.entries(object.envDict).reduce((acc, [key, value]) => {
|
|
@@ -30156,9 +30872,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30156
30872
|
if (message.deploymentName !== "") {
|
|
30157
30873
|
obj.deploymentName = message.deploymentName;
|
|
30158
30874
|
}
|
|
30159
|
-
if (message.namespace !== 0) {
|
|
30160
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
30161
|
-
}
|
|
30162
30875
|
if (message.environmentName !== "") {
|
|
30163
30876
|
obj.environmentName = message.environmentName;
|
|
30164
30877
|
}
|
|
@@ -30188,7 +30901,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30188
30901
|
fromPartial(object) {
|
|
30189
30902
|
const message = createBaseSecretGetOrCreateRequest();
|
|
30190
30903
|
message.deploymentName = object.deploymentName ?? "";
|
|
30191
|
-
message.namespace = object.namespace ?? 0;
|
|
30192
30904
|
message.environmentName = object.environmentName ?? "";
|
|
30193
30905
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
30194
30906
|
message.envDict = Object.entries(object.envDict ?? {}).reduce((acc, [key, value]) => {
|
|
@@ -30741,16 +31453,13 @@ var SharedVolumeGetFileResponse = {
|
|
|
30741
31453
|
}
|
|
30742
31454
|
};
|
|
30743
31455
|
function createBaseSharedVolumeGetOrCreateRequest() {
|
|
30744
|
-
return { deploymentName: "",
|
|
31456
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, appId: "" };
|
|
30745
31457
|
}
|
|
30746
31458
|
var SharedVolumeGetOrCreateRequest = {
|
|
30747
31459
|
encode(message, writer = new BinaryWriter()) {
|
|
30748
31460
|
if (message.deploymentName !== "") {
|
|
30749
31461
|
writer.uint32(10).string(message.deploymentName);
|
|
30750
31462
|
}
|
|
30751
|
-
if (message.namespace !== 0) {
|
|
30752
|
-
writer.uint32(16).int32(message.namespace);
|
|
30753
|
-
}
|
|
30754
31463
|
if (message.environmentName !== "") {
|
|
30755
31464
|
writer.uint32(26).string(message.environmentName);
|
|
30756
31465
|
}
|
|
@@ -30776,13 +31485,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30776
31485
|
message.deploymentName = reader.string();
|
|
30777
31486
|
continue;
|
|
30778
31487
|
}
|
|
30779
|
-
case 2: {
|
|
30780
|
-
if (tag !== 16) {
|
|
30781
|
-
break;
|
|
30782
|
-
}
|
|
30783
|
-
message.namespace = reader.int32();
|
|
30784
|
-
continue;
|
|
30785
|
-
}
|
|
30786
31488
|
case 3: {
|
|
30787
31489
|
if (tag !== 26) {
|
|
30788
31490
|
break;
|
|
@@ -30815,7 +31517,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30815
31517
|
fromJSON(object) {
|
|
30816
31518
|
return {
|
|
30817
31519
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
30818
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
30819
31520
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
30820
31521
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
30821
31522
|
appId: isSet3(object.appId) ? globalThis.String(object.appId) : ""
|
|
@@ -30826,9 +31527,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30826
31527
|
if (message.deploymentName !== "") {
|
|
30827
31528
|
obj.deploymentName = message.deploymentName;
|
|
30828
31529
|
}
|
|
30829
|
-
if (message.namespace !== 0) {
|
|
30830
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
30831
|
-
}
|
|
30832
31530
|
if (message.environmentName !== "") {
|
|
30833
31531
|
obj.environmentName = message.environmentName;
|
|
30834
31532
|
}
|
|
@@ -30846,7 +31544,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30846
31544
|
fromPartial(object) {
|
|
30847
31545
|
const message = createBaseSharedVolumeGetOrCreateRequest();
|
|
30848
31546
|
message.deploymentName = object.deploymentName ?? "";
|
|
30849
|
-
message.namespace = object.namespace ?? 0;
|
|
30850
31547
|
message.environmentName = object.environmentName ?? "";
|
|
30851
31548
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
30852
31549
|
message.appId = object.appId ?? "";
|
|
@@ -31926,7 +32623,7 @@ var TaskCurrentInputsResponse = {
|
|
|
31926
32623
|
}
|
|
31927
32624
|
};
|
|
31928
32625
|
function createBaseTaskInfo() {
|
|
31929
|
-
return { id: "", startedAt: 0, finishedAt: 0, result: void 0, enqueuedAt: 0, gpuType: "" };
|
|
32626
|
+
return { id: "", startedAt: 0, finishedAt: 0, result: void 0, enqueuedAt: 0, gpuType: "", sandboxId: "" };
|
|
31930
32627
|
}
|
|
31931
32628
|
var TaskInfo = {
|
|
31932
32629
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -31948,6 +32645,9 @@ var TaskInfo = {
|
|
|
31948
32645
|
if (message.gpuType !== "") {
|
|
31949
32646
|
writer.uint32(50).string(message.gpuType);
|
|
31950
32647
|
}
|
|
32648
|
+
if (message.sandboxId !== "") {
|
|
32649
|
+
writer.uint32(58).string(message.sandboxId);
|
|
32650
|
+
}
|
|
31951
32651
|
return writer;
|
|
31952
32652
|
},
|
|
31953
32653
|
decode(input, length) {
|
|
@@ -31999,6 +32699,13 @@ var TaskInfo = {
|
|
|
31999
32699
|
message.gpuType = reader.string();
|
|
32000
32700
|
continue;
|
|
32001
32701
|
}
|
|
32702
|
+
case 7: {
|
|
32703
|
+
if (tag !== 58) {
|
|
32704
|
+
break;
|
|
32705
|
+
}
|
|
32706
|
+
message.sandboxId = reader.string();
|
|
32707
|
+
continue;
|
|
32708
|
+
}
|
|
32002
32709
|
}
|
|
32003
32710
|
if ((tag & 7) === 4 || tag === 0) {
|
|
32004
32711
|
break;
|
|
@@ -32014,7 +32721,8 @@ var TaskInfo = {
|
|
|
32014
32721
|
finishedAt: isSet3(object.finishedAt) ? globalThis.Number(object.finishedAt) : 0,
|
|
32015
32722
|
result: isSet3(object.result) ? GenericResult.fromJSON(object.result) : void 0,
|
|
32016
32723
|
enqueuedAt: isSet3(object.enqueuedAt) ? globalThis.Number(object.enqueuedAt) : 0,
|
|
32017
|
-
gpuType: isSet3(object.gpuType) ? globalThis.String(object.gpuType) : ""
|
|
32724
|
+
gpuType: isSet3(object.gpuType) ? globalThis.String(object.gpuType) : "",
|
|
32725
|
+
sandboxId: isSet3(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
|
|
32018
32726
|
};
|
|
32019
32727
|
},
|
|
32020
32728
|
toJSON(message) {
|
|
@@ -32037,6 +32745,9 @@ var TaskInfo = {
|
|
|
32037
32745
|
if (message.gpuType !== "") {
|
|
32038
32746
|
obj.gpuType = message.gpuType;
|
|
32039
32747
|
}
|
|
32748
|
+
if (message.sandboxId !== "") {
|
|
32749
|
+
obj.sandboxId = message.sandboxId;
|
|
32750
|
+
}
|
|
32040
32751
|
return obj;
|
|
32041
32752
|
},
|
|
32042
32753
|
create(base) {
|
|
@@ -32050,6 +32761,7 @@ var TaskInfo = {
|
|
|
32050
32761
|
message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
|
|
32051
32762
|
message.enqueuedAt = object.enqueuedAt ?? 0;
|
|
32052
32763
|
message.gpuType = object.gpuType ?? "";
|
|
32764
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
32053
32765
|
return message;
|
|
32054
32766
|
}
|
|
32055
32767
|
};
|
|
@@ -33641,6 +34353,57 @@ var TunnelStopResponse = {
|
|
|
33641
34353
|
return message;
|
|
33642
34354
|
}
|
|
33643
34355
|
};
|
|
34356
|
+
function createBaseUploadUrlList() {
|
|
34357
|
+
return { items: [] };
|
|
34358
|
+
}
|
|
34359
|
+
var UploadUrlList = {
|
|
34360
|
+
encode(message, writer = new BinaryWriter()) {
|
|
34361
|
+
for (const v of message.items) {
|
|
34362
|
+
writer.uint32(10).string(v);
|
|
34363
|
+
}
|
|
34364
|
+
return writer;
|
|
34365
|
+
},
|
|
34366
|
+
decode(input, length) {
|
|
34367
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34368
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
34369
|
+
const message = createBaseUploadUrlList();
|
|
34370
|
+
while (reader.pos < end) {
|
|
34371
|
+
const tag = reader.uint32();
|
|
34372
|
+
switch (tag >>> 3) {
|
|
34373
|
+
case 1: {
|
|
34374
|
+
if (tag !== 10) {
|
|
34375
|
+
break;
|
|
34376
|
+
}
|
|
34377
|
+
message.items.push(reader.string());
|
|
34378
|
+
continue;
|
|
34379
|
+
}
|
|
34380
|
+
}
|
|
34381
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34382
|
+
break;
|
|
34383
|
+
}
|
|
34384
|
+
reader.skip(tag & 7);
|
|
34385
|
+
}
|
|
34386
|
+
return message;
|
|
34387
|
+
},
|
|
34388
|
+
fromJSON(object) {
|
|
34389
|
+
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => globalThis.String(e)) : [] };
|
|
34390
|
+
},
|
|
34391
|
+
toJSON(message) {
|
|
34392
|
+
const obj = {};
|
|
34393
|
+
if (message.items?.length) {
|
|
34394
|
+
obj.items = message.items;
|
|
34395
|
+
}
|
|
34396
|
+
return obj;
|
|
34397
|
+
},
|
|
34398
|
+
create(base) {
|
|
34399
|
+
return UploadUrlList.fromPartial(base ?? {});
|
|
34400
|
+
},
|
|
34401
|
+
fromPartial(object) {
|
|
34402
|
+
const message = createBaseUploadUrlList();
|
|
34403
|
+
message.items = object.items?.map((e) => e) || [];
|
|
34404
|
+
return message;
|
|
34405
|
+
}
|
|
34406
|
+
};
|
|
33644
34407
|
function createBaseVolumeCommitRequest() {
|
|
33645
34408
|
return { volumeId: "" };
|
|
33646
34409
|
}
|
|
@@ -34415,16 +35178,13 @@ var VolumeGetFileResponse = {
|
|
|
34415
35178
|
}
|
|
34416
35179
|
};
|
|
34417
35180
|
function createBaseVolumeGetOrCreateRequest() {
|
|
34418
|
-
return { deploymentName: "",
|
|
35181
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, appId: "", version: 0 };
|
|
34419
35182
|
}
|
|
34420
35183
|
var VolumeGetOrCreateRequest = {
|
|
34421
35184
|
encode(message, writer = new BinaryWriter()) {
|
|
34422
35185
|
if (message.deploymentName !== "") {
|
|
34423
35186
|
writer.uint32(10).string(message.deploymentName);
|
|
34424
35187
|
}
|
|
34425
|
-
if (message.namespace !== 0) {
|
|
34426
|
-
writer.uint32(16).int32(message.namespace);
|
|
34427
|
-
}
|
|
34428
35188
|
if (message.environmentName !== "") {
|
|
34429
35189
|
writer.uint32(26).string(message.environmentName);
|
|
34430
35190
|
}
|
|
@@ -34453,13 +35213,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34453
35213
|
message.deploymentName = reader.string();
|
|
34454
35214
|
continue;
|
|
34455
35215
|
}
|
|
34456
|
-
case 2: {
|
|
34457
|
-
if (tag !== 16) {
|
|
34458
|
-
break;
|
|
34459
|
-
}
|
|
34460
|
-
message.namespace = reader.int32();
|
|
34461
|
-
continue;
|
|
34462
|
-
}
|
|
34463
35216
|
case 3: {
|
|
34464
35217
|
if (tag !== 26) {
|
|
34465
35218
|
break;
|
|
@@ -34499,7 +35252,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34499
35252
|
fromJSON(object) {
|
|
34500
35253
|
return {
|
|
34501
35254
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
34502
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
34503
35255
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
34504
35256
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
34505
35257
|
appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
|
|
@@ -34511,9 +35263,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34511
35263
|
if (message.deploymentName !== "") {
|
|
34512
35264
|
obj.deploymentName = message.deploymentName;
|
|
34513
35265
|
}
|
|
34514
|
-
if (message.namespace !== 0) {
|
|
34515
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
34516
|
-
}
|
|
34517
35266
|
if (message.environmentName !== "") {
|
|
34518
35267
|
obj.environmentName = message.environmentName;
|
|
34519
35268
|
}
|
|
@@ -34534,7 +35283,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34534
35283
|
fromPartial(object) {
|
|
34535
35284
|
const message = createBaseVolumeGetOrCreateRequest();
|
|
34536
35285
|
message.deploymentName = object.deploymentName ?? "";
|
|
34537
|
-
message.namespace = object.namespace ?? 0;
|
|
34538
35286
|
message.environmentName = object.environmentName ?? "";
|
|
34539
35287
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
34540
35288
|
message.appId = object.appId ?? "";
|
|
@@ -36787,6 +37535,14 @@ var ModalClientDefinition = {
|
|
|
36787
37535
|
responseStream: false,
|
|
36788
37536
|
options: {}
|
|
36789
37537
|
},
|
|
37538
|
+
containerReloadVolumes: {
|
|
37539
|
+
name: "ContainerReloadVolumes",
|
|
37540
|
+
requestType: ContainerReloadVolumesRequest,
|
|
37541
|
+
requestStream: false,
|
|
37542
|
+
responseType: ContainerReloadVolumesResponse,
|
|
37543
|
+
responseStream: false,
|
|
37544
|
+
options: {}
|
|
37545
|
+
},
|
|
36790
37546
|
containerStop: {
|
|
36791
37547
|
name: "ContainerStop",
|
|
36792
37548
|
requestType: ContainerStopRequest,
|
|
@@ -36950,6 +37706,31 @@ var ModalClientDefinition = {
|
|
|
36950
37706
|
responseStream: false,
|
|
36951
37707
|
options: {}
|
|
36952
37708
|
},
|
|
37709
|
+
/** Modal Flash (experimental) */
|
|
37710
|
+
flashContainerDeregister: {
|
|
37711
|
+
name: "FlashContainerDeregister",
|
|
37712
|
+
requestType: FlashContainerDeregisterRequest,
|
|
37713
|
+
requestStream: false,
|
|
37714
|
+
responseType: Empty,
|
|
37715
|
+
responseStream: false,
|
|
37716
|
+
options: {}
|
|
37717
|
+
},
|
|
37718
|
+
flashContainerList: {
|
|
37719
|
+
name: "FlashContainerList",
|
|
37720
|
+
requestType: FlashContainerListRequest,
|
|
37721
|
+
requestStream: false,
|
|
37722
|
+
responseType: FlashContainerListResponse,
|
|
37723
|
+
responseStream: false,
|
|
37724
|
+
options: {}
|
|
37725
|
+
},
|
|
37726
|
+
flashContainerRegister: {
|
|
37727
|
+
name: "FlashContainerRegister",
|
|
37728
|
+
requestType: FlashContainerRegisterRequest,
|
|
37729
|
+
requestStream: false,
|
|
37730
|
+
responseType: FlashContainerRegisterResponse,
|
|
37731
|
+
responseStream: false,
|
|
37732
|
+
options: {}
|
|
37733
|
+
},
|
|
36953
37734
|
/** Functions */
|
|
36954
37735
|
functionAsyncInvoke: {
|
|
36955
37736
|
name: "FunctionAsyncInvoke",
|
|
@@ -37855,7 +38636,7 @@ function authMiddleware(profile) {
|
|
|
37855
38636
|
options.metadata ??= new Metadata();
|
|
37856
38637
|
options.metadata.set(
|
|
37857
38638
|
"x-modal-client-type",
|
|
37858
|
-
String(
|
|
38639
|
+
String(8 /* CLIENT_TYPE_LIBMODAL_JS */)
|
|
37859
38640
|
);
|
|
37860
38641
|
options.metadata.set("x-modal-client-version", "1.0.0");
|
|
37861
38642
|
options.metadata.set("x-modal-token-id", tokenId);
|
|
@@ -38128,6 +38909,12 @@ var SandboxFilesystemError = class extends Error {
|
|
|
38128
38909
|
this.name = "SandboxFilesystemError";
|
|
38129
38910
|
}
|
|
38130
38911
|
};
|
|
38912
|
+
var SandboxTimeoutError = class extends Error {
|
|
38913
|
+
constructor(message = "Sandbox operation timed out") {
|
|
38914
|
+
super(message);
|
|
38915
|
+
this.name = "SandboxTimeoutError";
|
|
38916
|
+
}
|
|
38917
|
+
};
|
|
38131
38918
|
|
|
38132
38919
|
// src/sandbox_filesystem.ts
|
|
38133
38920
|
var SandboxFile = class {
|
|
@@ -38340,12 +39127,43 @@ async function consumeIterator(iter) {
|
|
|
38340
39127
|
}
|
|
38341
39128
|
|
|
38342
39129
|
// src/sandbox.ts
|
|
38343
|
-
var
|
|
39130
|
+
var Tunnel = class {
|
|
39131
|
+
/** @ignore */
|
|
39132
|
+
constructor(host, port, unencryptedHost, unencryptedPort) {
|
|
39133
|
+
this.host = host;
|
|
39134
|
+
this.port = port;
|
|
39135
|
+
this.unencryptedHost = unencryptedHost;
|
|
39136
|
+
this.unencryptedPort = unencryptedPort;
|
|
39137
|
+
}
|
|
39138
|
+
/** Get the public HTTPS URL of the forwarded port. */
|
|
39139
|
+
get url() {
|
|
39140
|
+
let value = `https://${this.host}`;
|
|
39141
|
+
if (this.port !== 443) {
|
|
39142
|
+
value += `:${this.port}`;
|
|
39143
|
+
}
|
|
39144
|
+
return value;
|
|
39145
|
+
}
|
|
39146
|
+
/** Get the public TLS socket as a [host, port] tuple. */
|
|
39147
|
+
get tlsSocket() {
|
|
39148
|
+
return [this.host, this.port];
|
|
39149
|
+
}
|
|
39150
|
+
/** Get the public TCP socket as a [host, port] tuple. */
|
|
39151
|
+
get tcpSocket() {
|
|
39152
|
+
if (!this.unencryptedHost || this.unencryptedPort === void 0) {
|
|
39153
|
+
throw new InvalidError(
|
|
39154
|
+
"This tunnel is not configured for unencrypted TCP."
|
|
39155
|
+
);
|
|
39156
|
+
}
|
|
39157
|
+
return [this.unencryptedHost, this.unencryptedPort];
|
|
39158
|
+
}
|
|
39159
|
+
};
|
|
39160
|
+
var Sandbox2 = class _Sandbox {
|
|
38344
39161
|
sandboxId;
|
|
38345
39162
|
stdin;
|
|
38346
39163
|
stdout;
|
|
38347
39164
|
stderr;
|
|
38348
39165
|
#taskId;
|
|
39166
|
+
#tunnels;
|
|
38349
39167
|
/** @ignore */
|
|
38350
39168
|
constructor(sandboxId) {
|
|
38351
39169
|
this.sandboxId = sandboxId;
|
|
@@ -38381,11 +39199,13 @@ var Sandbox2 = class {
|
|
|
38381
39199
|
}
|
|
38382
39200
|
async exec(command, options) {
|
|
38383
39201
|
const taskId = await this.#getTaskId();
|
|
39202
|
+
const secretIds = options?.secrets ? options.secrets.map((secret) => secret.secretId) : [];
|
|
38384
39203
|
const resp = await client.containerExec({
|
|
38385
39204
|
taskId,
|
|
38386
39205
|
command,
|
|
38387
39206
|
workdir: options?.workdir,
|
|
38388
|
-
timeoutSecs: options?.timeout ? options.timeout / 1e3 : 0
|
|
39207
|
+
timeoutSecs: options?.timeout ? options.timeout / 1e3 : 0,
|
|
39208
|
+
secretIds
|
|
38389
39209
|
});
|
|
38390
39210
|
return new ContainerProcess(resp.execId, options);
|
|
38391
39211
|
}
|
|
@@ -38419,10 +39239,86 @@ var Sandbox2 = class {
|
|
|
38419
39239
|
timeout: 55
|
|
38420
39240
|
});
|
|
38421
39241
|
if (resp.result) {
|
|
38422
|
-
return resp.result
|
|
39242
|
+
return _Sandbox.#getReturnCode(resp.result);
|
|
38423
39243
|
}
|
|
38424
39244
|
}
|
|
38425
39245
|
}
|
|
39246
|
+
/** Get Tunnel metadata for the sandbox.
|
|
39247
|
+
*
|
|
39248
|
+
* Raises `SandboxTimeoutError` if the tunnels are not available after the timeout.
|
|
39249
|
+
*
|
|
39250
|
+
* @returns A dictionary of Tunnel objects which are keyed by the container port.
|
|
39251
|
+
*/
|
|
39252
|
+
async tunnels(timeout = 5e4) {
|
|
39253
|
+
if (this.#tunnels) {
|
|
39254
|
+
return this.#tunnels;
|
|
39255
|
+
}
|
|
39256
|
+
const resp = await client.sandboxGetTunnels({
|
|
39257
|
+
sandboxId: this.sandboxId,
|
|
39258
|
+
timeout: timeout / 1e3
|
|
39259
|
+
// Convert to seconds
|
|
39260
|
+
});
|
|
39261
|
+
if (resp.result?.status === 4 /* GENERIC_STATUS_TIMEOUT */) {
|
|
39262
|
+
throw new SandboxTimeoutError();
|
|
39263
|
+
}
|
|
39264
|
+
this.#tunnels = {};
|
|
39265
|
+
for (const t of resp.tunnels) {
|
|
39266
|
+
this.#tunnels[t.containerPort] = new Tunnel(
|
|
39267
|
+
t.host,
|
|
39268
|
+
t.port,
|
|
39269
|
+
t.unencryptedHost,
|
|
39270
|
+
t.unencryptedPort
|
|
39271
|
+
);
|
|
39272
|
+
}
|
|
39273
|
+
return this.#tunnels;
|
|
39274
|
+
}
|
|
39275
|
+
/**
|
|
39276
|
+
* Snapshot the filesystem of the Sandbox.
|
|
39277
|
+
*
|
|
39278
|
+
* Returns an `Image` object which can be used to spawn a new Sandbox with the same filesystem.
|
|
39279
|
+
*
|
|
39280
|
+
* @param timeout - Timeout for the snapshot operation in milliseconds
|
|
39281
|
+
* @returns Promise that resolves to an Image
|
|
39282
|
+
*/
|
|
39283
|
+
async snapshotFilesystem(timeout = 55e3) {
|
|
39284
|
+
const resp = await client.sandboxSnapshotFs({
|
|
39285
|
+
sandboxId: this.sandboxId,
|
|
39286
|
+
timeout: timeout / 1e3
|
|
39287
|
+
});
|
|
39288
|
+
if (resp.result?.status !== 1 /* GENERIC_STATUS_SUCCESS */) {
|
|
39289
|
+
throw new Error(
|
|
39290
|
+
`Sandbox snapshot failed: ${resp.result?.exception || "Unknown error"}`
|
|
39291
|
+
);
|
|
39292
|
+
}
|
|
39293
|
+
if (!resp.imageId) {
|
|
39294
|
+
throw new Error("Sandbox snapshot response missing image ID");
|
|
39295
|
+
}
|
|
39296
|
+
return new Image2(resp.imageId);
|
|
39297
|
+
}
|
|
39298
|
+
/**
|
|
39299
|
+
* Check if the Sandbox has finished running.
|
|
39300
|
+
*
|
|
39301
|
+
* Returns `null` if the Sandbox is still running, else returns the exit code.
|
|
39302
|
+
*/
|
|
39303
|
+
async poll() {
|
|
39304
|
+
const resp = await client.sandboxWait({
|
|
39305
|
+
sandboxId: this.sandboxId,
|
|
39306
|
+
timeout: 0
|
|
39307
|
+
});
|
|
39308
|
+
return _Sandbox.#getReturnCode(resp.result);
|
|
39309
|
+
}
|
|
39310
|
+
static #getReturnCode(result) {
|
|
39311
|
+
if (result === void 0 || result.status === 0 /* GENERIC_STATUS_UNSPECIFIED */) {
|
|
39312
|
+
return null;
|
|
39313
|
+
}
|
|
39314
|
+
if (result.status === 4 /* GENERIC_STATUS_TIMEOUT */) {
|
|
39315
|
+
return 124;
|
|
39316
|
+
} else if (result.status === 3 /* GENERIC_STATUS_TERMINATED */) {
|
|
39317
|
+
return 137;
|
|
39318
|
+
} else {
|
|
39319
|
+
return result.exitcode;
|
|
39320
|
+
}
|
|
39321
|
+
}
|
|
38426
39322
|
};
|
|
38427
39323
|
var ContainerProcess = class {
|
|
38428
39324
|
stdin;
|
|
@@ -38637,6 +39533,33 @@ var App = class _App {
|
|
|
38637
39533
|
allowBackgroundCommits: true,
|
|
38638
39534
|
readOnly: false
|
|
38639
39535
|
})) : [];
|
|
39536
|
+
const openPorts = [];
|
|
39537
|
+
if (options.encryptedPorts) {
|
|
39538
|
+
openPorts.push(
|
|
39539
|
+
...options.encryptedPorts.map((port) => ({
|
|
39540
|
+
port,
|
|
39541
|
+
unencrypted: false
|
|
39542
|
+
}))
|
|
39543
|
+
);
|
|
39544
|
+
}
|
|
39545
|
+
if (options.h2Ports) {
|
|
39546
|
+
openPorts.push(
|
|
39547
|
+
...options.h2Ports.map((port) => ({
|
|
39548
|
+
port,
|
|
39549
|
+
unencrypted: false,
|
|
39550
|
+
tunnelType: 1 /* TUNNEL_TYPE_H2 */
|
|
39551
|
+
}))
|
|
39552
|
+
);
|
|
39553
|
+
}
|
|
39554
|
+
if (options.unencryptedPorts) {
|
|
39555
|
+
openPorts.push(
|
|
39556
|
+
...options.unencryptedPorts.map((port) => ({
|
|
39557
|
+
port,
|
|
39558
|
+
unencrypted: true
|
|
39559
|
+
}))
|
|
39560
|
+
);
|
|
39561
|
+
}
|
|
39562
|
+
const secretIds = options.secrets ? options.secrets.map((secret) => secret.secretId) : [];
|
|
38640
39563
|
const createResp = await client.sandboxCreate({
|
|
38641
39564
|
appId: this.appId,
|
|
38642
39565
|
definition: {
|
|
@@ -38652,7 +39575,9 @@ var App = class _App {
|
|
|
38652
39575
|
milliCpu: Math.round(1e3 * (options.cpu ?? 0.125)),
|
|
38653
39576
|
memoryMb: options.memory ?? 128
|
|
38654
39577
|
},
|
|
38655
|
-
volumeMounts
|
|
39578
|
+
volumeMounts,
|
|
39579
|
+
secretIds,
|
|
39580
|
+
openPorts: openPorts.length > 0 ? { ports: openPorts } : void 0
|
|
38656
39581
|
}
|
|
38657
39582
|
});
|
|
38658
39583
|
return new Sandbox2(createResp.sandboxId);
|
|
@@ -39278,12 +40203,12 @@ var maxSystemRetries = 8;
|
|
|
39278
40203
|
var Function_ = class _Function_ {
|
|
39279
40204
|
functionId;
|
|
39280
40205
|
methodName;
|
|
39281
|
-
inputPlaneUrl;
|
|
40206
|
+
#inputPlaneUrl;
|
|
39282
40207
|
/** @ignore */
|
|
39283
40208
|
constructor(functionId, methodName, inputPlaneUrl) {
|
|
39284
40209
|
this.functionId = functionId;
|
|
39285
40210
|
this.methodName = methodName;
|
|
39286
|
-
this
|
|
40211
|
+
this.#inputPlaneUrl = inputPlaneUrl;
|
|
39287
40212
|
}
|
|
39288
40213
|
static async lookup(appName, name, options = {}) {
|
|
39289
40214
|
try {
|
|
@@ -39322,9 +40247,9 @@ var Function_ = class _Function_ {
|
|
|
39322
40247
|
}
|
|
39323
40248
|
}
|
|
39324
40249
|
async #createRemoteInvocation(input) {
|
|
39325
|
-
if (this
|
|
40250
|
+
if (this.#inputPlaneUrl) {
|
|
39326
40251
|
return await InputPlaneInvocation.create(
|
|
39327
|
-
this
|
|
40252
|
+
this.#inputPlaneUrl,
|
|
39328
40253
|
this.functionId,
|
|
39329
40254
|
input
|
|
39330
40255
|
);
|
|
@@ -39821,6 +40746,7 @@ export {
|
|
|
39821
40746
|
RemoteError,
|
|
39822
40747
|
Sandbox2 as Sandbox,
|
|
39823
40748
|
SandboxFile,
|
|
40749
|
+
SandboxTimeoutError,
|
|
39824
40750
|
Secret,
|
|
39825
40751
|
Volume,
|
|
39826
40752
|
initializeClient
|