modal 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1232 -372
- package/dist/index.d.cts +34 -3
- package/dist/index.d.ts +34 -3
- package/dist/index.js +1231 -372
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -47,6 +47,7 @@ __export(index_exports, {
|
|
|
47
47
|
RemoteError: () => RemoteError,
|
|
48
48
|
Sandbox: () => Sandbox2,
|
|
49
49
|
SandboxFile: () => SandboxFile,
|
|
50
|
+
SandboxTimeoutError: () => SandboxTimeoutError,
|
|
50
51
|
Secret: () => Secret,
|
|
51
52
|
Volume: () => Volume,
|
|
52
53
|
initializeClient: () => initializeClient
|
|
@@ -3058,16 +3059,13 @@ var AppCreateResponse = {
|
|
|
3058
3059
|
}
|
|
3059
3060
|
};
|
|
3060
3061
|
function createBaseAppDeployRequest() {
|
|
3061
|
-
return { appId: "",
|
|
3062
|
+
return { appId: "", name: "", objectEntity: "", visibility: 0, tag: "" };
|
|
3062
3063
|
}
|
|
3063
3064
|
var AppDeployRequest = {
|
|
3064
3065
|
encode(message, writer = new BinaryWriter()) {
|
|
3065
3066
|
if (message.appId !== "") {
|
|
3066
3067
|
writer.uint32(10).string(message.appId);
|
|
3067
3068
|
}
|
|
3068
|
-
if (message.namespace !== 0) {
|
|
3069
|
-
writer.uint32(16).int32(message.namespace);
|
|
3070
|
-
}
|
|
3071
3069
|
if (message.name !== "") {
|
|
3072
3070
|
writer.uint32(26).string(message.name);
|
|
3073
3071
|
}
|
|
@@ -3096,13 +3094,6 @@ var AppDeployRequest = {
|
|
|
3096
3094
|
message.appId = reader.string();
|
|
3097
3095
|
continue;
|
|
3098
3096
|
}
|
|
3099
|
-
case 2: {
|
|
3100
|
-
if (tag !== 16) {
|
|
3101
|
-
break;
|
|
3102
|
-
}
|
|
3103
|
-
message.namespace = reader.int32();
|
|
3104
|
-
continue;
|
|
3105
|
-
}
|
|
3106
3097
|
case 3: {
|
|
3107
3098
|
if (tag !== 26) {
|
|
3108
3099
|
break;
|
|
@@ -3142,7 +3133,6 @@ var AppDeployRequest = {
|
|
|
3142
3133
|
fromJSON(object) {
|
|
3143
3134
|
return {
|
|
3144
3135
|
appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
|
|
3145
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
3146
3136
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
3147
3137
|
objectEntity: isSet3(object.objectEntity) ? globalThis.String(object.objectEntity) : "",
|
|
3148
3138
|
visibility: isSet3(object.visibility) ? appDeployVisibilityFromJSON(object.visibility) : 0,
|
|
@@ -3154,9 +3144,6 @@ var AppDeployRequest = {
|
|
|
3154
3144
|
if (message.appId !== "") {
|
|
3155
3145
|
obj.appId = message.appId;
|
|
3156
3146
|
}
|
|
3157
|
-
if (message.namespace !== 0) {
|
|
3158
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
3159
|
-
}
|
|
3160
3147
|
if (message.name !== "") {
|
|
3161
3148
|
obj.name = message.name;
|
|
3162
3149
|
}
|
|
@@ -3177,7 +3164,6 @@ var AppDeployRequest = {
|
|
|
3177
3164
|
fromPartial(object) {
|
|
3178
3165
|
const message = createBaseAppDeployRequest();
|
|
3179
3166
|
message.appId = object.appId ?? "";
|
|
3180
|
-
message.namespace = object.namespace ?? 0;
|
|
3181
3167
|
message.name = object.name ?? "";
|
|
3182
3168
|
message.objectEntity = object.objectEntity ?? "";
|
|
3183
3169
|
message.visibility = object.visibility ?? 0;
|
|
@@ -3540,13 +3526,10 @@ var AppDeploymentHistoryResponse = {
|
|
|
3540
3526
|
}
|
|
3541
3527
|
};
|
|
3542
3528
|
function createBaseAppGetByDeploymentNameRequest() {
|
|
3543
|
-
return {
|
|
3529
|
+
return { name: "", environmentName: "" };
|
|
3544
3530
|
}
|
|
3545
3531
|
var AppGetByDeploymentNameRequest = {
|
|
3546
3532
|
encode(message, writer = new BinaryWriter()) {
|
|
3547
|
-
if (message.namespace !== 0) {
|
|
3548
|
-
writer.uint32(8).int32(message.namespace);
|
|
3549
|
-
}
|
|
3550
3533
|
if (message.name !== "") {
|
|
3551
3534
|
writer.uint32(18).string(message.name);
|
|
3552
3535
|
}
|
|
@@ -3562,13 +3545,6 @@ var AppGetByDeploymentNameRequest = {
|
|
|
3562
3545
|
while (reader.pos < end) {
|
|
3563
3546
|
const tag = reader.uint32();
|
|
3564
3547
|
switch (tag >>> 3) {
|
|
3565
|
-
case 1: {
|
|
3566
|
-
if (tag !== 8) {
|
|
3567
|
-
break;
|
|
3568
|
-
}
|
|
3569
|
-
message.namespace = reader.int32();
|
|
3570
|
-
continue;
|
|
3571
|
-
}
|
|
3572
3548
|
case 2: {
|
|
3573
3549
|
if (tag !== 18) {
|
|
3574
3550
|
break;
|
|
@@ -3593,16 +3569,12 @@ var AppGetByDeploymentNameRequest = {
|
|
|
3593
3569
|
},
|
|
3594
3570
|
fromJSON(object) {
|
|
3595
3571
|
return {
|
|
3596
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
3597
3572
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
3598
3573
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
3599
3574
|
};
|
|
3600
3575
|
},
|
|
3601
3576
|
toJSON(message) {
|
|
3602
3577
|
const obj = {};
|
|
3603
|
-
if (message.namespace !== 0) {
|
|
3604
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
3605
|
-
}
|
|
3606
3578
|
if (message.name !== "") {
|
|
3607
3579
|
obj.name = message.name;
|
|
3608
3580
|
}
|
|
@@ -3616,7 +3588,6 @@ var AppGetByDeploymentNameRequest = {
|
|
|
3616
3588
|
},
|
|
3617
3589
|
fromPartial(object) {
|
|
3618
3590
|
const message = createBaseAppGetByDeploymentNameRequest();
|
|
3619
|
-
message.namespace = object.namespace ?? 0;
|
|
3620
3591
|
message.name = object.name ?? "";
|
|
3621
3592
|
message.environmentName = object.environmentName ?? "";
|
|
3622
3593
|
return message;
|
|
@@ -3784,7 +3755,8 @@ function createBaseAppGetLogsRequest() {
|
|
|
3784
3755
|
inputId: "",
|
|
3785
3756
|
taskId: "",
|
|
3786
3757
|
functionCallId: "",
|
|
3787
|
-
fileDescriptor: 0
|
|
3758
|
+
fileDescriptor: 0,
|
|
3759
|
+
sandboxId: ""
|
|
3788
3760
|
};
|
|
3789
3761
|
}
|
|
3790
3762
|
var AppGetLogsRequest = {
|
|
@@ -3813,6 +3785,9 @@ var AppGetLogsRequest = {
|
|
|
3813
3785
|
if (message.fileDescriptor !== 0) {
|
|
3814
3786
|
writer.uint32(64).int32(message.fileDescriptor);
|
|
3815
3787
|
}
|
|
3788
|
+
if (message.sandboxId !== "") {
|
|
3789
|
+
writer.uint32(82).string(message.sandboxId);
|
|
3790
|
+
}
|
|
3816
3791
|
return writer;
|
|
3817
3792
|
},
|
|
3818
3793
|
decode(input, length) {
|
|
@@ -3878,6 +3853,13 @@ var AppGetLogsRequest = {
|
|
|
3878
3853
|
message.fileDescriptor = reader.int32();
|
|
3879
3854
|
continue;
|
|
3880
3855
|
}
|
|
3856
|
+
case 10: {
|
|
3857
|
+
if (tag !== 82) {
|
|
3858
|
+
break;
|
|
3859
|
+
}
|
|
3860
|
+
message.sandboxId = reader.string();
|
|
3861
|
+
continue;
|
|
3862
|
+
}
|
|
3881
3863
|
}
|
|
3882
3864
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3883
3865
|
break;
|
|
@@ -3895,7 +3877,8 @@ var AppGetLogsRequest = {
|
|
|
3895
3877
|
inputId: isSet3(object.inputId) ? globalThis.String(object.inputId) : "",
|
|
3896
3878
|
taskId: isSet3(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
3897
3879
|
functionCallId: isSet3(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
3898
|
-
fileDescriptor: isSet3(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0
|
|
3880
|
+
fileDescriptor: isSet3(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
|
|
3881
|
+
sandboxId: isSet3(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
|
|
3899
3882
|
};
|
|
3900
3883
|
},
|
|
3901
3884
|
toJSON(message) {
|
|
@@ -3924,6 +3907,9 @@ var AppGetLogsRequest = {
|
|
|
3924
3907
|
if (message.fileDescriptor !== 0) {
|
|
3925
3908
|
obj.fileDescriptor = fileDescriptorToJSON(message.fileDescriptor);
|
|
3926
3909
|
}
|
|
3910
|
+
if (message.sandboxId !== "") {
|
|
3911
|
+
obj.sandboxId = message.sandboxId;
|
|
3912
|
+
}
|
|
3927
3913
|
return obj;
|
|
3928
3914
|
},
|
|
3929
3915
|
create(base) {
|
|
@@ -3939,6 +3925,7 @@ var AppGetLogsRequest = {
|
|
|
3939
3925
|
message.taskId = object.taskId ?? "";
|
|
3940
3926
|
message.functionCallId = object.functionCallId ?? "";
|
|
3941
3927
|
message.fileDescriptor = object.fileDescriptor ?? 0;
|
|
3928
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
3942
3929
|
return message;
|
|
3943
3930
|
}
|
|
3944
3931
|
};
|
|
@@ -6523,7 +6510,14 @@ var BlobCreateRequest = {
|
|
|
6523
6510
|
}
|
|
6524
6511
|
};
|
|
6525
6512
|
function createBaseBlobCreateResponse() {
|
|
6526
|
-
return {
|
|
6513
|
+
return {
|
|
6514
|
+
blobId: "",
|
|
6515
|
+
uploadUrl: void 0,
|
|
6516
|
+
multipart: void 0,
|
|
6517
|
+
blobIds: [],
|
|
6518
|
+
uploadUrls: void 0,
|
|
6519
|
+
multiparts: void 0
|
|
6520
|
+
};
|
|
6527
6521
|
}
|
|
6528
6522
|
var BlobCreateResponse = {
|
|
6529
6523
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -6536,6 +6530,15 @@ var BlobCreateResponse = {
|
|
|
6536
6530
|
if (message.multipart !== void 0) {
|
|
6537
6531
|
MultiPartUpload.encode(message.multipart, writer.uint32(26).fork()).join();
|
|
6538
6532
|
}
|
|
6533
|
+
for (const v of message.blobIds) {
|
|
6534
|
+
writer.uint32(34).string(v);
|
|
6535
|
+
}
|
|
6536
|
+
if (message.uploadUrls !== void 0) {
|
|
6537
|
+
UploadUrlList.encode(message.uploadUrls, writer.uint32(42).fork()).join();
|
|
6538
|
+
}
|
|
6539
|
+
if (message.multiparts !== void 0) {
|
|
6540
|
+
MultiPartUploadList.encode(message.multiparts, writer.uint32(50).fork()).join();
|
|
6541
|
+
}
|
|
6539
6542
|
return writer;
|
|
6540
6543
|
},
|
|
6541
6544
|
decode(input, length) {
|
|
@@ -6566,6 +6569,27 @@ var BlobCreateResponse = {
|
|
|
6566
6569
|
message.multipart = MultiPartUpload.decode(reader, reader.uint32());
|
|
6567
6570
|
continue;
|
|
6568
6571
|
}
|
|
6572
|
+
case 4: {
|
|
6573
|
+
if (tag !== 34) {
|
|
6574
|
+
break;
|
|
6575
|
+
}
|
|
6576
|
+
message.blobIds.push(reader.string());
|
|
6577
|
+
continue;
|
|
6578
|
+
}
|
|
6579
|
+
case 5: {
|
|
6580
|
+
if (tag !== 42) {
|
|
6581
|
+
break;
|
|
6582
|
+
}
|
|
6583
|
+
message.uploadUrls = UploadUrlList.decode(reader, reader.uint32());
|
|
6584
|
+
continue;
|
|
6585
|
+
}
|
|
6586
|
+
case 6: {
|
|
6587
|
+
if (tag !== 50) {
|
|
6588
|
+
break;
|
|
6589
|
+
}
|
|
6590
|
+
message.multiparts = MultiPartUploadList.decode(reader, reader.uint32());
|
|
6591
|
+
continue;
|
|
6592
|
+
}
|
|
6569
6593
|
}
|
|
6570
6594
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6571
6595
|
break;
|
|
@@ -6578,7 +6602,10 @@ var BlobCreateResponse = {
|
|
|
6578
6602
|
return {
|
|
6579
6603
|
blobId: isSet3(object.blobId) ? globalThis.String(object.blobId) : "",
|
|
6580
6604
|
uploadUrl: isSet3(object.uploadUrl) ? globalThis.String(object.uploadUrl) : void 0,
|
|
6581
|
-
multipart: isSet3(object.multipart) ? MultiPartUpload.fromJSON(object.multipart) : void 0
|
|
6605
|
+
multipart: isSet3(object.multipart) ? MultiPartUpload.fromJSON(object.multipart) : void 0,
|
|
6606
|
+
blobIds: globalThis.Array.isArray(object?.blobIds) ? object.blobIds.map((e) => globalThis.String(e)) : [],
|
|
6607
|
+
uploadUrls: isSet3(object.uploadUrls) ? UploadUrlList.fromJSON(object.uploadUrls) : void 0,
|
|
6608
|
+
multiparts: isSet3(object.multiparts) ? MultiPartUploadList.fromJSON(object.multiparts) : void 0
|
|
6582
6609
|
};
|
|
6583
6610
|
},
|
|
6584
6611
|
toJSON(message) {
|
|
@@ -6592,6 +6619,15 @@ var BlobCreateResponse = {
|
|
|
6592
6619
|
if (message.multipart !== void 0) {
|
|
6593
6620
|
obj.multipart = MultiPartUpload.toJSON(message.multipart);
|
|
6594
6621
|
}
|
|
6622
|
+
if (message.blobIds?.length) {
|
|
6623
|
+
obj.blobIds = message.blobIds;
|
|
6624
|
+
}
|
|
6625
|
+
if (message.uploadUrls !== void 0) {
|
|
6626
|
+
obj.uploadUrls = UploadUrlList.toJSON(message.uploadUrls);
|
|
6627
|
+
}
|
|
6628
|
+
if (message.multiparts !== void 0) {
|
|
6629
|
+
obj.multiparts = MultiPartUploadList.toJSON(message.multiparts);
|
|
6630
|
+
}
|
|
6595
6631
|
return obj;
|
|
6596
6632
|
},
|
|
6597
6633
|
create(base) {
|
|
@@ -6602,6 +6638,9 @@ var BlobCreateResponse = {
|
|
|
6602
6638
|
message.blobId = object.blobId ?? "";
|
|
6603
6639
|
message.uploadUrl = object.uploadUrl ?? void 0;
|
|
6604
6640
|
message.multipart = object.multipart !== void 0 && object.multipart !== null ? MultiPartUpload.fromPartial(object.multipart) : void 0;
|
|
6641
|
+
message.blobIds = object.blobIds?.map((e) => e) || [];
|
|
6642
|
+
message.uploadUrls = object.uploadUrls !== void 0 && object.uploadUrls !== null ? UploadUrlList.fromPartial(object.uploadUrls) : void 0;
|
|
6643
|
+
message.multiparts = object.multiparts !== void 0 && object.multiparts !== null ? MultiPartUploadList.fromPartial(object.multiparts) : void 0;
|
|
6605
6644
|
return message;
|
|
6606
6645
|
}
|
|
6607
6646
|
};
|
|
@@ -7192,7 +7231,7 @@ var ClassCreateResponse = {
|
|
|
7192
7231
|
}
|
|
7193
7232
|
};
|
|
7194
7233
|
function createBaseClassGetRequest() {
|
|
7195
|
-
return { appName: "", objectTag: "",
|
|
7234
|
+
return { appName: "", objectTag: "", environmentName: "", onlyClassFunction: false };
|
|
7196
7235
|
}
|
|
7197
7236
|
var ClassGetRequest = {
|
|
7198
7237
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -7202,9 +7241,6 @@ var ClassGetRequest = {
|
|
|
7202
7241
|
if (message.objectTag !== "") {
|
|
7203
7242
|
writer.uint32(18).string(message.objectTag);
|
|
7204
7243
|
}
|
|
7205
|
-
if (message.namespace !== 0) {
|
|
7206
|
-
writer.uint32(24).int32(message.namespace);
|
|
7207
|
-
}
|
|
7208
7244
|
if (message.environmentName !== "") {
|
|
7209
7245
|
writer.uint32(34).string(message.environmentName);
|
|
7210
7246
|
}
|
|
@@ -7234,13 +7270,6 @@ var ClassGetRequest = {
|
|
|
7234
7270
|
message.objectTag = reader.string();
|
|
7235
7271
|
continue;
|
|
7236
7272
|
}
|
|
7237
|
-
case 3: {
|
|
7238
|
-
if (tag !== 24) {
|
|
7239
|
-
break;
|
|
7240
|
-
}
|
|
7241
|
-
message.namespace = reader.int32();
|
|
7242
|
-
continue;
|
|
7243
|
-
}
|
|
7244
7273
|
case 4: {
|
|
7245
7274
|
if (tag !== 34) {
|
|
7246
7275
|
break;
|
|
@@ -7267,7 +7296,6 @@ var ClassGetRequest = {
|
|
|
7267
7296
|
return {
|
|
7268
7297
|
appName: isSet3(object.appName) ? globalThis.String(object.appName) : "",
|
|
7269
7298
|
objectTag: isSet3(object.objectTag) ? globalThis.String(object.objectTag) : "",
|
|
7270
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
7271
7299
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
7272
7300
|
onlyClassFunction: isSet3(object.onlyClassFunction) ? globalThis.Boolean(object.onlyClassFunction) : false
|
|
7273
7301
|
};
|
|
@@ -7280,9 +7308,6 @@ var ClassGetRequest = {
|
|
|
7280
7308
|
if (message.objectTag !== "") {
|
|
7281
7309
|
obj.objectTag = message.objectTag;
|
|
7282
7310
|
}
|
|
7283
|
-
if (message.namespace !== 0) {
|
|
7284
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
7285
|
-
}
|
|
7286
7311
|
if (message.environmentName !== "") {
|
|
7287
7312
|
obj.environmentName = message.environmentName;
|
|
7288
7313
|
}
|
|
@@ -7298,7 +7323,6 @@ var ClassGetRequest = {
|
|
|
7298
7323
|
const message = createBaseClassGetRequest();
|
|
7299
7324
|
message.appName = object.appName ?? "";
|
|
7300
7325
|
message.objectTag = object.objectTag ?? "";
|
|
7301
|
-
message.namespace = object.namespace ?? 0;
|
|
7302
7326
|
message.environmentName = object.environmentName ?? "";
|
|
7303
7327
|
message.onlyClassFunction = object.onlyClassFunction ?? false;
|
|
7304
7328
|
return message;
|
|
@@ -10842,6 +10866,94 @@ var ContainerLogRequest = {
|
|
|
10842
10866
|
return message;
|
|
10843
10867
|
}
|
|
10844
10868
|
};
|
|
10869
|
+
function createBaseContainerReloadVolumesRequest() {
|
|
10870
|
+
return { taskId: "" };
|
|
10871
|
+
}
|
|
10872
|
+
var ContainerReloadVolumesRequest = {
|
|
10873
|
+
encode(message, writer = new BinaryWriter()) {
|
|
10874
|
+
if (message.taskId !== "") {
|
|
10875
|
+
writer.uint32(10).string(message.taskId);
|
|
10876
|
+
}
|
|
10877
|
+
return writer;
|
|
10878
|
+
},
|
|
10879
|
+
decode(input, length) {
|
|
10880
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10881
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
10882
|
+
const message = createBaseContainerReloadVolumesRequest();
|
|
10883
|
+
while (reader.pos < end) {
|
|
10884
|
+
const tag = reader.uint32();
|
|
10885
|
+
switch (tag >>> 3) {
|
|
10886
|
+
case 1: {
|
|
10887
|
+
if (tag !== 10) {
|
|
10888
|
+
break;
|
|
10889
|
+
}
|
|
10890
|
+
message.taskId = reader.string();
|
|
10891
|
+
continue;
|
|
10892
|
+
}
|
|
10893
|
+
}
|
|
10894
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10895
|
+
break;
|
|
10896
|
+
}
|
|
10897
|
+
reader.skip(tag & 7);
|
|
10898
|
+
}
|
|
10899
|
+
return message;
|
|
10900
|
+
},
|
|
10901
|
+
fromJSON(object) {
|
|
10902
|
+
return { taskId: isSet3(object.taskId) ? globalThis.String(object.taskId) : "" };
|
|
10903
|
+
},
|
|
10904
|
+
toJSON(message) {
|
|
10905
|
+
const obj = {};
|
|
10906
|
+
if (message.taskId !== "") {
|
|
10907
|
+
obj.taskId = message.taskId;
|
|
10908
|
+
}
|
|
10909
|
+
return obj;
|
|
10910
|
+
},
|
|
10911
|
+
create(base) {
|
|
10912
|
+
return ContainerReloadVolumesRequest.fromPartial(base ?? {});
|
|
10913
|
+
},
|
|
10914
|
+
fromPartial(object) {
|
|
10915
|
+
const message = createBaseContainerReloadVolumesRequest();
|
|
10916
|
+
message.taskId = object.taskId ?? "";
|
|
10917
|
+
return message;
|
|
10918
|
+
}
|
|
10919
|
+
};
|
|
10920
|
+
function createBaseContainerReloadVolumesResponse() {
|
|
10921
|
+
return {};
|
|
10922
|
+
}
|
|
10923
|
+
var ContainerReloadVolumesResponse = {
|
|
10924
|
+
encode(_, writer = new BinaryWriter()) {
|
|
10925
|
+
return writer;
|
|
10926
|
+
},
|
|
10927
|
+
decode(input, length) {
|
|
10928
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10929
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
10930
|
+
const message = createBaseContainerReloadVolumesResponse();
|
|
10931
|
+
while (reader.pos < end) {
|
|
10932
|
+
const tag = reader.uint32();
|
|
10933
|
+
switch (tag >>> 3) {
|
|
10934
|
+
}
|
|
10935
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10936
|
+
break;
|
|
10937
|
+
}
|
|
10938
|
+
reader.skip(tag & 7);
|
|
10939
|
+
}
|
|
10940
|
+
return message;
|
|
10941
|
+
},
|
|
10942
|
+
fromJSON(_) {
|
|
10943
|
+
return {};
|
|
10944
|
+
},
|
|
10945
|
+
toJSON(_) {
|
|
10946
|
+
const obj = {};
|
|
10947
|
+
return obj;
|
|
10948
|
+
},
|
|
10949
|
+
create(base) {
|
|
10950
|
+
return ContainerReloadVolumesResponse.fromPartial(base ?? {});
|
|
10951
|
+
},
|
|
10952
|
+
fromPartial(_) {
|
|
10953
|
+
const message = createBaseContainerReloadVolumesResponse();
|
|
10954
|
+
return message;
|
|
10955
|
+
}
|
|
10956
|
+
};
|
|
10845
10957
|
function createBaseContainerStopRequest() {
|
|
10846
10958
|
return { taskId: "" };
|
|
10847
10959
|
}
|
|
@@ -11586,16 +11698,13 @@ var DictEntry = {
|
|
|
11586
11698
|
}
|
|
11587
11699
|
};
|
|
11588
11700
|
function createBaseDictGetOrCreateRequest() {
|
|
11589
|
-
return { deploymentName: "",
|
|
11701
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, data: [] };
|
|
11590
11702
|
}
|
|
11591
11703
|
var DictGetOrCreateRequest = {
|
|
11592
11704
|
encode(message, writer = new BinaryWriter()) {
|
|
11593
11705
|
if (message.deploymentName !== "") {
|
|
11594
11706
|
writer.uint32(10).string(message.deploymentName);
|
|
11595
11707
|
}
|
|
11596
|
-
if (message.namespace !== 0) {
|
|
11597
|
-
writer.uint32(16).int32(message.namespace);
|
|
11598
|
-
}
|
|
11599
11708
|
if (message.environmentName !== "") {
|
|
11600
11709
|
writer.uint32(26).string(message.environmentName);
|
|
11601
11710
|
}
|
|
@@ -11621,13 +11730,6 @@ var DictGetOrCreateRequest = {
|
|
|
11621
11730
|
message.deploymentName = reader.string();
|
|
11622
11731
|
continue;
|
|
11623
11732
|
}
|
|
11624
|
-
case 2: {
|
|
11625
|
-
if (tag !== 16) {
|
|
11626
|
-
break;
|
|
11627
|
-
}
|
|
11628
|
-
message.namespace = reader.int32();
|
|
11629
|
-
continue;
|
|
11630
|
-
}
|
|
11631
11733
|
case 3: {
|
|
11632
11734
|
if (tag !== 26) {
|
|
11633
11735
|
break;
|
|
@@ -11660,7 +11762,6 @@ var DictGetOrCreateRequest = {
|
|
|
11660
11762
|
fromJSON(object) {
|
|
11661
11763
|
return {
|
|
11662
11764
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
11663
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
11664
11765
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
11665
11766
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
11666
11767
|
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => DictEntry.fromJSON(e)) : []
|
|
@@ -11671,9 +11772,6 @@ var DictGetOrCreateRequest = {
|
|
|
11671
11772
|
if (message.deploymentName !== "") {
|
|
11672
11773
|
obj.deploymentName = message.deploymentName;
|
|
11673
11774
|
}
|
|
11674
|
-
if (message.namespace !== 0) {
|
|
11675
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
11676
|
-
}
|
|
11677
11775
|
if (message.environmentName !== "") {
|
|
11678
11776
|
obj.environmentName = message.environmentName;
|
|
11679
11777
|
}
|
|
@@ -11691,7 +11789,6 @@ var DictGetOrCreateRequest = {
|
|
|
11691
11789
|
fromPartial(object) {
|
|
11692
11790
|
const message = createBaseDictGetOrCreateRequest();
|
|
11693
11791
|
message.deploymentName = object.deploymentName ?? "";
|
|
11694
|
-
message.namespace = object.namespace ?? 0;
|
|
11695
11792
|
message.environmentName = object.environmentName ?? "";
|
|
11696
11793
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
11697
11794
|
message.data = object.data?.map((e) => DictEntry.fromPartial(e)) || [];
|
|
@@ -13708,6 +13805,408 @@ var FilesystemRuntimeOutputBatch = {
|
|
|
13708
13805
|
return message;
|
|
13709
13806
|
}
|
|
13710
13807
|
};
|
|
13808
|
+
function createBaseFlashContainerDeregisterRequest() {
|
|
13809
|
+
return { serviceName: "" };
|
|
13810
|
+
}
|
|
13811
|
+
var FlashContainerDeregisterRequest = {
|
|
13812
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13813
|
+
if (message.serviceName !== "") {
|
|
13814
|
+
writer.uint32(10).string(message.serviceName);
|
|
13815
|
+
}
|
|
13816
|
+
return writer;
|
|
13817
|
+
},
|
|
13818
|
+
decode(input, length) {
|
|
13819
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13820
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13821
|
+
const message = createBaseFlashContainerDeregisterRequest();
|
|
13822
|
+
while (reader.pos < end) {
|
|
13823
|
+
const tag = reader.uint32();
|
|
13824
|
+
switch (tag >>> 3) {
|
|
13825
|
+
case 1: {
|
|
13826
|
+
if (tag !== 10) {
|
|
13827
|
+
break;
|
|
13828
|
+
}
|
|
13829
|
+
message.serviceName = reader.string();
|
|
13830
|
+
continue;
|
|
13831
|
+
}
|
|
13832
|
+
}
|
|
13833
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13834
|
+
break;
|
|
13835
|
+
}
|
|
13836
|
+
reader.skip(tag & 7);
|
|
13837
|
+
}
|
|
13838
|
+
return message;
|
|
13839
|
+
},
|
|
13840
|
+
fromJSON(object) {
|
|
13841
|
+
return { serviceName: isSet3(object.serviceName) ? globalThis.String(object.serviceName) : "" };
|
|
13842
|
+
},
|
|
13843
|
+
toJSON(message) {
|
|
13844
|
+
const obj = {};
|
|
13845
|
+
if (message.serviceName !== "") {
|
|
13846
|
+
obj.serviceName = message.serviceName;
|
|
13847
|
+
}
|
|
13848
|
+
return obj;
|
|
13849
|
+
},
|
|
13850
|
+
create(base) {
|
|
13851
|
+
return FlashContainerDeregisterRequest.fromPartial(base ?? {});
|
|
13852
|
+
},
|
|
13853
|
+
fromPartial(object) {
|
|
13854
|
+
const message = createBaseFlashContainerDeregisterRequest();
|
|
13855
|
+
message.serviceName = object.serviceName ?? "";
|
|
13856
|
+
return message;
|
|
13857
|
+
}
|
|
13858
|
+
};
|
|
13859
|
+
function createBaseFlashContainerListRequest() {
|
|
13860
|
+
return { functionId: "" };
|
|
13861
|
+
}
|
|
13862
|
+
var FlashContainerListRequest = {
|
|
13863
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13864
|
+
if (message.functionId !== "") {
|
|
13865
|
+
writer.uint32(10).string(message.functionId);
|
|
13866
|
+
}
|
|
13867
|
+
return writer;
|
|
13868
|
+
},
|
|
13869
|
+
decode(input, length) {
|
|
13870
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13871
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13872
|
+
const message = createBaseFlashContainerListRequest();
|
|
13873
|
+
while (reader.pos < end) {
|
|
13874
|
+
const tag = reader.uint32();
|
|
13875
|
+
switch (tag >>> 3) {
|
|
13876
|
+
case 1: {
|
|
13877
|
+
if (tag !== 10) {
|
|
13878
|
+
break;
|
|
13879
|
+
}
|
|
13880
|
+
message.functionId = reader.string();
|
|
13881
|
+
continue;
|
|
13882
|
+
}
|
|
13883
|
+
}
|
|
13884
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13885
|
+
break;
|
|
13886
|
+
}
|
|
13887
|
+
reader.skip(tag & 7);
|
|
13888
|
+
}
|
|
13889
|
+
return message;
|
|
13890
|
+
},
|
|
13891
|
+
fromJSON(object) {
|
|
13892
|
+
return { functionId: isSet3(object.functionId) ? globalThis.String(object.functionId) : "" };
|
|
13893
|
+
},
|
|
13894
|
+
toJSON(message) {
|
|
13895
|
+
const obj = {};
|
|
13896
|
+
if (message.functionId !== "") {
|
|
13897
|
+
obj.functionId = message.functionId;
|
|
13898
|
+
}
|
|
13899
|
+
return obj;
|
|
13900
|
+
},
|
|
13901
|
+
create(base) {
|
|
13902
|
+
return FlashContainerListRequest.fromPartial(base ?? {});
|
|
13903
|
+
},
|
|
13904
|
+
fromPartial(object) {
|
|
13905
|
+
const message = createBaseFlashContainerListRequest();
|
|
13906
|
+
message.functionId = object.functionId ?? "";
|
|
13907
|
+
return message;
|
|
13908
|
+
}
|
|
13909
|
+
};
|
|
13910
|
+
function createBaseFlashContainerListResponse() {
|
|
13911
|
+
return { containers: [] };
|
|
13912
|
+
}
|
|
13913
|
+
var FlashContainerListResponse = {
|
|
13914
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13915
|
+
for (const v of message.containers) {
|
|
13916
|
+
FlashContainerListResponse_Container.encode(v, writer.uint32(10).fork()).join();
|
|
13917
|
+
}
|
|
13918
|
+
return writer;
|
|
13919
|
+
},
|
|
13920
|
+
decode(input, length) {
|
|
13921
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13922
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13923
|
+
const message = createBaseFlashContainerListResponse();
|
|
13924
|
+
while (reader.pos < end) {
|
|
13925
|
+
const tag = reader.uint32();
|
|
13926
|
+
switch (tag >>> 3) {
|
|
13927
|
+
case 1: {
|
|
13928
|
+
if (tag !== 10) {
|
|
13929
|
+
break;
|
|
13930
|
+
}
|
|
13931
|
+
message.containers.push(FlashContainerListResponse_Container.decode(reader, reader.uint32()));
|
|
13932
|
+
continue;
|
|
13933
|
+
}
|
|
13934
|
+
}
|
|
13935
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13936
|
+
break;
|
|
13937
|
+
}
|
|
13938
|
+
reader.skip(tag & 7);
|
|
13939
|
+
}
|
|
13940
|
+
return message;
|
|
13941
|
+
},
|
|
13942
|
+
fromJSON(object) {
|
|
13943
|
+
return {
|
|
13944
|
+
containers: globalThis.Array.isArray(object?.containers) ? object.containers.map((e) => FlashContainerListResponse_Container.fromJSON(e)) : []
|
|
13945
|
+
};
|
|
13946
|
+
},
|
|
13947
|
+
toJSON(message) {
|
|
13948
|
+
const obj = {};
|
|
13949
|
+
if (message.containers?.length) {
|
|
13950
|
+
obj.containers = message.containers.map((e) => FlashContainerListResponse_Container.toJSON(e));
|
|
13951
|
+
}
|
|
13952
|
+
return obj;
|
|
13953
|
+
},
|
|
13954
|
+
create(base) {
|
|
13955
|
+
return FlashContainerListResponse.fromPartial(base ?? {});
|
|
13956
|
+
},
|
|
13957
|
+
fromPartial(object) {
|
|
13958
|
+
const message = createBaseFlashContainerListResponse();
|
|
13959
|
+
message.containers = object.containers?.map((e) => FlashContainerListResponse_Container.fromPartial(e)) || [];
|
|
13960
|
+
return message;
|
|
13961
|
+
}
|
|
13962
|
+
};
|
|
13963
|
+
function createBaseFlashContainerListResponse_Container() {
|
|
13964
|
+
return { taskId: "", host: "", port: 0 };
|
|
13965
|
+
}
|
|
13966
|
+
var FlashContainerListResponse_Container = {
|
|
13967
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13968
|
+
if (message.taskId !== "") {
|
|
13969
|
+
writer.uint32(10).string(message.taskId);
|
|
13970
|
+
}
|
|
13971
|
+
if (message.host !== "") {
|
|
13972
|
+
writer.uint32(18).string(message.host);
|
|
13973
|
+
}
|
|
13974
|
+
if (message.port !== 0) {
|
|
13975
|
+
writer.uint32(24).uint32(message.port);
|
|
13976
|
+
}
|
|
13977
|
+
return writer;
|
|
13978
|
+
},
|
|
13979
|
+
decode(input, length) {
|
|
13980
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13981
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
13982
|
+
const message = createBaseFlashContainerListResponse_Container();
|
|
13983
|
+
while (reader.pos < end) {
|
|
13984
|
+
const tag = reader.uint32();
|
|
13985
|
+
switch (tag >>> 3) {
|
|
13986
|
+
case 1: {
|
|
13987
|
+
if (tag !== 10) {
|
|
13988
|
+
break;
|
|
13989
|
+
}
|
|
13990
|
+
message.taskId = reader.string();
|
|
13991
|
+
continue;
|
|
13992
|
+
}
|
|
13993
|
+
case 2: {
|
|
13994
|
+
if (tag !== 18) {
|
|
13995
|
+
break;
|
|
13996
|
+
}
|
|
13997
|
+
message.host = reader.string();
|
|
13998
|
+
continue;
|
|
13999
|
+
}
|
|
14000
|
+
case 3: {
|
|
14001
|
+
if (tag !== 24) {
|
|
14002
|
+
break;
|
|
14003
|
+
}
|
|
14004
|
+
message.port = reader.uint32();
|
|
14005
|
+
continue;
|
|
14006
|
+
}
|
|
14007
|
+
}
|
|
14008
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14009
|
+
break;
|
|
14010
|
+
}
|
|
14011
|
+
reader.skip(tag & 7);
|
|
14012
|
+
}
|
|
14013
|
+
return message;
|
|
14014
|
+
},
|
|
14015
|
+
fromJSON(object) {
|
|
14016
|
+
return {
|
|
14017
|
+
taskId: isSet3(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
14018
|
+
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
14019
|
+
port: isSet3(object.port) ? globalThis.Number(object.port) : 0
|
|
14020
|
+
};
|
|
14021
|
+
},
|
|
14022
|
+
toJSON(message) {
|
|
14023
|
+
const obj = {};
|
|
14024
|
+
if (message.taskId !== "") {
|
|
14025
|
+
obj.taskId = message.taskId;
|
|
14026
|
+
}
|
|
14027
|
+
if (message.host !== "") {
|
|
14028
|
+
obj.host = message.host;
|
|
14029
|
+
}
|
|
14030
|
+
if (message.port !== 0) {
|
|
14031
|
+
obj.port = Math.round(message.port);
|
|
14032
|
+
}
|
|
14033
|
+
return obj;
|
|
14034
|
+
},
|
|
14035
|
+
create(base) {
|
|
14036
|
+
return FlashContainerListResponse_Container.fromPartial(base ?? {});
|
|
14037
|
+
},
|
|
14038
|
+
fromPartial(object) {
|
|
14039
|
+
const message = createBaseFlashContainerListResponse_Container();
|
|
14040
|
+
message.taskId = object.taskId ?? "";
|
|
14041
|
+
message.host = object.host ?? "";
|
|
14042
|
+
message.port = object.port ?? 0;
|
|
14043
|
+
return message;
|
|
14044
|
+
}
|
|
14045
|
+
};
|
|
14046
|
+
function createBaseFlashContainerRegisterRequest() {
|
|
14047
|
+
return { serviceName: "", priority: 0, weight: 0, host: "", port: 0 };
|
|
14048
|
+
}
|
|
14049
|
+
var FlashContainerRegisterRequest = {
|
|
14050
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14051
|
+
if (message.serviceName !== "") {
|
|
14052
|
+
writer.uint32(10).string(message.serviceName);
|
|
14053
|
+
}
|
|
14054
|
+
if (message.priority !== 0) {
|
|
14055
|
+
writer.uint32(16).uint32(message.priority);
|
|
14056
|
+
}
|
|
14057
|
+
if (message.weight !== 0) {
|
|
14058
|
+
writer.uint32(24).uint32(message.weight);
|
|
14059
|
+
}
|
|
14060
|
+
if (message.host !== "") {
|
|
14061
|
+
writer.uint32(34).string(message.host);
|
|
14062
|
+
}
|
|
14063
|
+
if (message.port !== 0) {
|
|
14064
|
+
writer.uint32(40).uint32(message.port);
|
|
14065
|
+
}
|
|
14066
|
+
return writer;
|
|
14067
|
+
},
|
|
14068
|
+
decode(input, length) {
|
|
14069
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14070
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14071
|
+
const message = createBaseFlashContainerRegisterRequest();
|
|
14072
|
+
while (reader.pos < end) {
|
|
14073
|
+
const tag = reader.uint32();
|
|
14074
|
+
switch (tag >>> 3) {
|
|
14075
|
+
case 1: {
|
|
14076
|
+
if (tag !== 10) {
|
|
14077
|
+
break;
|
|
14078
|
+
}
|
|
14079
|
+
message.serviceName = reader.string();
|
|
14080
|
+
continue;
|
|
14081
|
+
}
|
|
14082
|
+
case 2: {
|
|
14083
|
+
if (tag !== 16) {
|
|
14084
|
+
break;
|
|
14085
|
+
}
|
|
14086
|
+
message.priority = reader.uint32();
|
|
14087
|
+
continue;
|
|
14088
|
+
}
|
|
14089
|
+
case 3: {
|
|
14090
|
+
if (tag !== 24) {
|
|
14091
|
+
break;
|
|
14092
|
+
}
|
|
14093
|
+
message.weight = reader.uint32();
|
|
14094
|
+
continue;
|
|
14095
|
+
}
|
|
14096
|
+
case 4: {
|
|
14097
|
+
if (tag !== 34) {
|
|
14098
|
+
break;
|
|
14099
|
+
}
|
|
14100
|
+
message.host = reader.string();
|
|
14101
|
+
continue;
|
|
14102
|
+
}
|
|
14103
|
+
case 5: {
|
|
14104
|
+
if (tag !== 40) {
|
|
14105
|
+
break;
|
|
14106
|
+
}
|
|
14107
|
+
message.port = reader.uint32();
|
|
14108
|
+
continue;
|
|
14109
|
+
}
|
|
14110
|
+
}
|
|
14111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14112
|
+
break;
|
|
14113
|
+
}
|
|
14114
|
+
reader.skip(tag & 7);
|
|
14115
|
+
}
|
|
14116
|
+
return message;
|
|
14117
|
+
},
|
|
14118
|
+
fromJSON(object) {
|
|
14119
|
+
return {
|
|
14120
|
+
serviceName: isSet3(object.serviceName) ? globalThis.String(object.serviceName) : "",
|
|
14121
|
+
priority: isSet3(object.priority) ? globalThis.Number(object.priority) : 0,
|
|
14122
|
+
weight: isSet3(object.weight) ? globalThis.Number(object.weight) : 0,
|
|
14123
|
+
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
14124
|
+
port: isSet3(object.port) ? globalThis.Number(object.port) : 0
|
|
14125
|
+
};
|
|
14126
|
+
},
|
|
14127
|
+
toJSON(message) {
|
|
14128
|
+
const obj = {};
|
|
14129
|
+
if (message.serviceName !== "") {
|
|
14130
|
+
obj.serviceName = message.serviceName;
|
|
14131
|
+
}
|
|
14132
|
+
if (message.priority !== 0) {
|
|
14133
|
+
obj.priority = Math.round(message.priority);
|
|
14134
|
+
}
|
|
14135
|
+
if (message.weight !== 0) {
|
|
14136
|
+
obj.weight = Math.round(message.weight);
|
|
14137
|
+
}
|
|
14138
|
+
if (message.host !== "") {
|
|
14139
|
+
obj.host = message.host;
|
|
14140
|
+
}
|
|
14141
|
+
if (message.port !== 0) {
|
|
14142
|
+
obj.port = Math.round(message.port);
|
|
14143
|
+
}
|
|
14144
|
+
return obj;
|
|
14145
|
+
},
|
|
14146
|
+
create(base) {
|
|
14147
|
+
return FlashContainerRegisterRequest.fromPartial(base ?? {});
|
|
14148
|
+
},
|
|
14149
|
+
fromPartial(object) {
|
|
14150
|
+
const message = createBaseFlashContainerRegisterRequest();
|
|
14151
|
+
message.serviceName = object.serviceName ?? "";
|
|
14152
|
+
message.priority = object.priority ?? 0;
|
|
14153
|
+
message.weight = object.weight ?? 0;
|
|
14154
|
+
message.host = object.host ?? "";
|
|
14155
|
+
message.port = object.port ?? 0;
|
|
14156
|
+
return message;
|
|
14157
|
+
}
|
|
14158
|
+
};
|
|
14159
|
+
function createBaseFlashContainerRegisterResponse() {
|
|
14160
|
+
return { url: "" };
|
|
14161
|
+
}
|
|
14162
|
+
var FlashContainerRegisterResponse = {
|
|
14163
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14164
|
+
if (message.url !== "") {
|
|
14165
|
+
writer.uint32(10).string(message.url);
|
|
14166
|
+
}
|
|
14167
|
+
return writer;
|
|
14168
|
+
},
|
|
14169
|
+
decode(input, length) {
|
|
14170
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14171
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14172
|
+
const message = createBaseFlashContainerRegisterResponse();
|
|
14173
|
+
while (reader.pos < end) {
|
|
14174
|
+
const tag = reader.uint32();
|
|
14175
|
+
switch (tag >>> 3) {
|
|
14176
|
+
case 1: {
|
|
14177
|
+
if (tag !== 10) {
|
|
14178
|
+
break;
|
|
14179
|
+
}
|
|
14180
|
+
message.url = reader.string();
|
|
14181
|
+
continue;
|
|
14182
|
+
}
|
|
14183
|
+
}
|
|
14184
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14185
|
+
break;
|
|
14186
|
+
}
|
|
14187
|
+
reader.skip(tag & 7);
|
|
14188
|
+
}
|
|
14189
|
+
return message;
|
|
14190
|
+
},
|
|
14191
|
+
fromJSON(object) {
|
|
14192
|
+
return { url: isSet3(object.url) ? globalThis.String(object.url) : "" };
|
|
14193
|
+
},
|
|
14194
|
+
toJSON(message) {
|
|
14195
|
+
const obj = {};
|
|
14196
|
+
if (message.url !== "") {
|
|
14197
|
+
obj.url = message.url;
|
|
14198
|
+
}
|
|
14199
|
+
return obj;
|
|
14200
|
+
},
|
|
14201
|
+
create(base) {
|
|
14202
|
+
return FlashContainerRegisterResponse.fromPartial(base ?? {});
|
|
14203
|
+
},
|
|
14204
|
+
fromPartial(object) {
|
|
14205
|
+
const message = createBaseFlashContainerRegisterResponse();
|
|
14206
|
+
message.url = object.url ?? "";
|
|
14207
|
+
return message;
|
|
14208
|
+
}
|
|
14209
|
+
};
|
|
13711
14210
|
function createBaseFunctionMessage() {
|
|
13712
14211
|
return {
|
|
13713
14212
|
moduleName: "",
|
|
@@ -13778,7 +14277,8 @@ function createBaseFunctionMessage() {
|
|
|
13778
14277
|
autoscalerSettings: void 0,
|
|
13779
14278
|
functionSchema: void 0,
|
|
13780
14279
|
experimentalOptions: {},
|
|
13781
|
-
mountClientDependencies: false
|
|
14280
|
+
mountClientDependencies: false,
|
|
14281
|
+
flashServiceUrls: []
|
|
13782
14282
|
};
|
|
13783
14283
|
}
|
|
13784
14284
|
var FunctionMessage = {
|
|
@@ -13990,6 +14490,9 @@ var FunctionMessage = {
|
|
|
13990
14490
|
if (message.mountClientDependencies !== false) {
|
|
13991
14491
|
writer.uint32(656).bool(message.mountClientDependencies);
|
|
13992
14492
|
}
|
|
14493
|
+
for (const v of message.flashServiceUrls) {
|
|
14494
|
+
writer.uint32(666).string(v);
|
|
14495
|
+
}
|
|
13993
14496
|
return writer;
|
|
13994
14497
|
},
|
|
13995
14498
|
decode(input, length) {
|
|
@@ -14488,6 +14991,13 @@ var FunctionMessage = {
|
|
|
14488
14991
|
message.mountClientDependencies = reader.bool();
|
|
14489
14992
|
continue;
|
|
14490
14993
|
}
|
|
14994
|
+
case 83: {
|
|
14995
|
+
if (tag !== 666) {
|
|
14996
|
+
break;
|
|
14997
|
+
}
|
|
14998
|
+
message.flashServiceUrls.push(reader.string());
|
|
14999
|
+
continue;
|
|
15000
|
+
}
|
|
14491
15001
|
}
|
|
14492
15002
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14493
15003
|
break;
|
|
@@ -14572,7 +15082,8 @@ var FunctionMessage = {
|
|
|
14572
15082
|
acc[key] = String(value);
|
|
14573
15083
|
return acc;
|
|
14574
15084
|
}, {}) : {},
|
|
14575
|
-
mountClientDependencies: isSet3(object.mountClientDependencies) ? globalThis.Boolean(object.mountClientDependencies) : false
|
|
15085
|
+
mountClientDependencies: isSet3(object.mountClientDependencies) ? globalThis.Boolean(object.mountClientDependencies) : false,
|
|
15086
|
+
flashServiceUrls: globalThis.Array.isArray(object?.flashServiceUrls) ? object.flashServiceUrls.map((e) => globalThis.String(e)) : []
|
|
14576
15087
|
};
|
|
14577
15088
|
},
|
|
14578
15089
|
toJSON(message) {
|
|
@@ -14796,6 +15307,9 @@ var FunctionMessage = {
|
|
|
14796
15307
|
if (message.mountClientDependencies !== false) {
|
|
14797
15308
|
obj.mountClientDependencies = message.mountClientDependencies;
|
|
14798
15309
|
}
|
|
15310
|
+
if (message.flashServiceUrls?.length) {
|
|
15311
|
+
obj.flashServiceUrls = message.flashServiceUrls;
|
|
15312
|
+
}
|
|
14799
15313
|
return obj;
|
|
14800
15314
|
},
|
|
14801
15315
|
create(base) {
|
|
@@ -14885,6 +15399,7 @@ var FunctionMessage = {
|
|
|
14885
15399
|
{}
|
|
14886
15400
|
);
|
|
14887
15401
|
message.mountClientDependencies = object.mountClientDependencies ?? false;
|
|
15402
|
+
message.flashServiceUrls = object.flashServiceUrls?.map((e) => e) || [];
|
|
14888
15403
|
return message;
|
|
14889
15404
|
}
|
|
14890
15405
|
};
|
|
@@ -16205,7 +16720,8 @@ function createBaseFunctionData() {
|
|
|
16205
16720
|
runtimePerfRecord: false,
|
|
16206
16721
|
autoscalerSettings: void 0,
|
|
16207
16722
|
functionSchema: void 0,
|
|
16208
|
-
experimentalOptions: {}
|
|
16723
|
+
experimentalOptions: {},
|
|
16724
|
+
flashServiceUrls: []
|
|
16209
16725
|
};
|
|
16210
16726
|
}
|
|
16211
16727
|
var FunctionData = {
|
|
@@ -16306,6 +16822,9 @@ var FunctionData = {
|
|
|
16306
16822
|
Object.entries(message.experimentalOptions).forEach(([key, value]) => {
|
|
16307
16823
|
FunctionData_ExperimentalOptionsEntry.encode({ key, value }, writer.uint32(266).fork()).join();
|
|
16308
16824
|
});
|
|
16825
|
+
for (const v of message.flashServiceUrls) {
|
|
16826
|
+
writer.uint32(274).string(v);
|
|
16827
|
+
}
|
|
16309
16828
|
return writer;
|
|
16310
16829
|
},
|
|
16311
16830
|
decode(input, length) {
|
|
@@ -16545,6 +17064,13 @@ var FunctionData = {
|
|
|
16545
17064
|
}
|
|
16546
17065
|
continue;
|
|
16547
17066
|
}
|
|
17067
|
+
case 34: {
|
|
17068
|
+
if (tag !== 274) {
|
|
17069
|
+
break;
|
|
17070
|
+
}
|
|
17071
|
+
message.flashServiceUrls.push(reader.string());
|
|
17072
|
+
continue;
|
|
17073
|
+
}
|
|
16548
17074
|
}
|
|
16549
17075
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16550
17076
|
break;
|
|
@@ -16592,7 +17118,8 @@ var FunctionData = {
|
|
|
16592
17118
|
experimentalOptions: isObject2(object.experimentalOptions) ? Object.entries(object.experimentalOptions).reduce((acc, [key, value]) => {
|
|
16593
17119
|
acc[key] = String(value);
|
|
16594
17120
|
return acc;
|
|
16595
|
-
}, {}) : {}
|
|
17121
|
+
}, {}) : {},
|
|
17122
|
+
flashServiceUrls: globalThis.Array.isArray(object?.flashServiceUrls) ? object.flashServiceUrls.map((e) => globalThis.String(e)) : []
|
|
16596
17123
|
};
|
|
16597
17124
|
},
|
|
16598
17125
|
toJSON(message) {
|
|
@@ -16705,6 +17232,9 @@ var FunctionData = {
|
|
|
16705
17232
|
});
|
|
16706
17233
|
}
|
|
16707
17234
|
}
|
|
17235
|
+
if (message.flashServiceUrls?.length) {
|
|
17236
|
+
obj.flashServiceUrls = message.flashServiceUrls;
|
|
17237
|
+
}
|
|
16708
17238
|
return obj;
|
|
16709
17239
|
},
|
|
16710
17240
|
create(base) {
|
|
@@ -16757,6 +17287,7 @@ var FunctionData = {
|
|
|
16757
17287
|
},
|
|
16758
17288
|
{}
|
|
16759
17289
|
);
|
|
17290
|
+
message.flashServiceUrls = object.flashServiceUrls?.map((e) => e) || [];
|
|
16760
17291
|
return message;
|
|
16761
17292
|
}
|
|
16762
17293
|
};
|
|
@@ -18041,7 +18572,7 @@ var FunctionGetOutputsResponse = {
|
|
|
18041
18572
|
}
|
|
18042
18573
|
};
|
|
18043
18574
|
function createBaseFunctionGetRequest() {
|
|
18044
|
-
return { appName: "", objectTag: "",
|
|
18575
|
+
return { appName: "", objectTag: "", environmentName: "" };
|
|
18045
18576
|
}
|
|
18046
18577
|
var FunctionGetRequest = {
|
|
18047
18578
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -18051,9 +18582,6 @@ var FunctionGetRequest = {
|
|
|
18051
18582
|
if (message.objectTag !== "") {
|
|
18052
18583
|
writer.uint32(18).string(message.objectTag);
|
|
18053
18584
|
}
|
|
18054
|
-
if (message.namespace !== 0) {
|
|
18055
|
-
writer.uint32(24).int32(message.namespace);
|
|
18056
|
-
}
|
|
18057
18585
|
if (message.environmentName !== "") {
|
|
18058
18586
|
writer.uint32(34).string(message.environmentName);
|
|
18059
18587
|
}
|
|
@@ -18080,13 +18608,6 @@ var FunctionGetRequest = {
|
|
|
18080
18608
|
message.objectTag = reader.string();
|
|
18081
18609
|
continue;
|
|
18082
18610
|
}
|
|
18083
|
-
case 3: {
|
|
18084
|
-
if (tag !== 24) {
|
|
18085
|
-
break;
|
|
18086
|
-
}
|
|
18087
|
-
message.namespace = reader.int32();
|
|
18088
|
-
continue;
|
|
18089
|
-
}
|
|
18090
18611
|
case 4: {
|
|
18091
18612
|
if (tag !== 34) {
|
|
18092
18613
|
break;
|
|
@@ -18106,7 +18627,6 @@ var FunctionGetRequest = {
|
|
|
18106
18627
|
return {
|
|
18107
18628
|
appName: isSet3(object.appName) ? globalThis.String(object.appName) : "",
|
|
18108
18629
|
objectTag: isSet3(object.objectTag) ? globalThis.String(object.objectTag) : "",
|
|
18109
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
18110
18630
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : ""
|
|
18111
18631
|
};
|
|
18112
18632
|
},
|
|
@@ -18118,9 +18638,6 @@ var FunctionGetRequest = {
|
|
|
18118
18638
|
if (message.objectTag !== "") {
|
|
18119
18639
|
obj.objectTag = message.objectTag;
|
|
18120
18640
|
}
|
|
18121
|
-
if (message.namespace !== 0) {
|
|
18122
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
18123
|
-
}
|
|
18124
18641
|
if (message.environmentName !== "") {
|
|
18125
18642
|
obj.environmentName = message.environmentName;
|
|
18126
18643
|
}
|
|
@@ -18133,7 +18650,6 @@ var FunctionGetRequest = {
|
|
|
18133
18650
|
const message = createBaseFunctionGetRequest();
|
|
18134
18651
|
message.appName = object.appName ?? "";
|
|
18135
18652
|
message.objectTag = object.objectTag ?? "";
|
|
18136
|
-
message.namespace = object.namespace ?? 0;
|
|
18137
18653
|
message.environmentName = object.environmentName ?? "";
|
|
18138
18654
|
return message;
|
|
18139
18655
|
}
|
|
@@ -18352,7 +18868,8 @@ function createBaseFunctionHandleMetadata() {
|
|
|
18352
18868
|
classParameterInfo: void 0,
|
|
18353
18869
|
methodHandleMetadata: {},
|
|
18354
18870
|
functionSchema: void 0,
|
|
18355
|
-
inputPlaneUrl: void 0
|
|
18871
|
+
inputPlaneUrl: void 0,
|
|
18872
|
+
inputPlaneRegion: void 0
|
|
18356
18873
|
};
|
|
18357
18874
|
}
|
|
18358
18875
|
var FunctionHandleMetadata = {
|
|
@@ -18390,6 +18907,9 @@ var FunctionHandleMetadata = {
|
|
|
18390
18907
|
if (message.inputPlaneUrl !== void 0) {
|
|
18391
18908
|
writer.uint32(370).string(message.inputPlaneUrl);
|
|
18392
18909
|
}
|
|
18910
|
+
if (message.inputPlaneRegion !== void 0) {
|
|
18911
|
+
writer.uint32(378).string(message.inputPlaneRegion);
|
|
18912
|
+
}
|
|
18393
18913
|
return writer;
|
|
18394
18914
|
},
|
|
18395
18915
|
decode(input, length) {
|
|
@@ -18479,6 +18999,13 @@ var FunctionHandleMetadata = {
|
|
|
18479
18999
|
message.inputPlaneUrl = reader.string();
|
|
18480
19000
|
continue;
|
|
18481
19001
|
}
|
|
19002
|
+
case 47: {
|
|
19003
|
+
if (tag !== 378) {
|
|
19004
|
+
break;
|
|
19005
|
+
}
|
|
19006
|
+
message.inputPlaneRegion = reader.string();
|
|
19007
|
+
continue;
|
|
19008
|
+
}
|
|
18482
19009
|
}
|
|
18483
19010
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18484
19011
|
break;
|
|
@@ -18505,7 +19032,8 @@ var FunctionHandleMetadata = {
|
|
|
18505
19032
|
{}
|
|
18506
19033
|
) : {},
|
|
18507
19034
|
functionSchema: isSet3(object.functionSchema) ? FunctionSchema.fromJSON(object.functionSchema) : void 0,
|
|
18508
|
-
inputPlaneUrl: isSet3(object.inputPlaneUrl) ? globalThis.String(object.inputPlaneUrl) : void 0
|
|
19035
|
+
inputPlaneUrl: isSet3(object.inputPlaneUrl) ? globalThis.String(object.inputPlaneUrl) : void 0,
|
|
19036
|
+
inputPlaneRegion: isSet3(object.inputPlaneRegion) ? globalThis.String(object.inputPlaneRegion) : void 0
|
|
18509
19037
|
};
|
|
18510
19038
|
},
|
|
18511
19039
|
toJSON(message) {
|
|
@@ -18549,6 +19077,9 @@ var FunctionHandleMetadata = {
|
|
|
18549
19077
|
if (message.inputPlaneUrl !== void 0) {
|
|
18550
19078
|
obj.inputPlaneUrl = message.inputPlaneUrl;
|
|
18551
19079
|
}
|
|
19080
|
+
if (message.inputPlaneRegion !== void 0) {
|
|
19081
|
+
obj.inputPlaneRegion = message.inputPlaneRegion;
|
|
19082
|
+
}
|
|
18552
19083
|
return obj;
|
|
18553
19084
|
},
|
|
18554
19085
|
create(base) {
|
|
@@ -18572,6 +19103,7 @@ var FunctionHandleMetadata = {
|
|
|
18572
19103
|
}, {});
|
|
18573
19104
|
message.functionSchema = object.functionSchema !== void 0 && object.functionSchema !== null ? FunctionSchema.fromPartial(object.functionSchema) : void 0;
|
|
18574
19105
|
message.inputPlaneUrl = object.inputPlaneUrl ?? void 0;
|
|
19106
|
+
message.inputPlaneRegion = object.inputPlaneRegion ?? void 0;
|
|
18575
19107
|
return message;
|
|
18576
19108
|
}
|
|
18577
19109
|
};
|
|
@@ -19674,7 +20206,7 @@ var FunctionPrecreateResponse = {
|
|
|
19674
20206
|
}
|
|
19675
20207
|
};
|
|
19676
20208
|
function createBaseFunctionPutInputsItem() {
|
|
19677
|
-
return { idx: 0, input: void 0 };
|
|
20209
|
+
return { idx: 0, input: void 0, r2Failed: false, r2LatencyMs: 0 };
|
|
19678
20210
|
}
|
|
19679
20211
|
var FunctionPutInputsItem = {
|
|
19680
20212
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -19684,6 +20216,12 @@ var FunctionPutInputsItem = {
|
|
|
19684
20216
|
if (message.input !== void 0) {
|
|
19685
20217
|
FunctionInput.encode(message.input, writer.uint32(18).fork()).join();
|
|
19686
20218
|
}
|
|
20219
|
+
if (message.r2Failed !== false) {
|
|
20220
|
+
writer.uint32(24).bool(message.r2Failed);
|
|
20221
|
+
}
|
|
20222
|
+
if (message.r2LatencyMs !== 0) {
|
|
20223
|
+
writer.uint32(32).uint64(message.r2LatencyMs);
|
|
20224
|
+
}
|
|
19687
20225
|
return writer;
|
|
19688
20226
|
},
|
|
19689
20227
|
decode(input, length) {
|
|
@@ -19707,6 +20245,20 @@ var FunctionPutInputsItem = {
|
|
|
19707
20245
|
message.input = FunctionInput.decode(reader, reader.uint32());
|
|
19708
20246
|
continue;
|
|
19709
20247
|
}
|
|
20248
|
+
case 3: {
|
|
20249
|
+
if (tag !== 24) {
|
|
20250
|
+
break;
|
|
20251
|
+
}
|
|
20252
|
+
message.r2Failed = reader.bool();
|
|
20253
|
+
continue;
|
|
20254
|
+
}
|
|
20255
|
+
case 4: {
|
|
20256
|
+
if (tag !== 32) {
|
|
20257
|
+
break;
|
|
20258
|
+
}
|
|
20259
|
+
message.r2LatencyMs = longToNumber(reader.uint64());
|
|
20260
|
+
continue;
|
|
20261
|
+
}
|
|
19710
20262
|
}
|
|
19711
20263
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19712
20264
|
break;
|
|
@@ -19718,7 +20270,9 @@ var FunctionPutInputsItem = {
|
|
|
19718
20270
|
fromJSON(object) {
|
|
19719
20271
|
return {
|
|
19720
20272
|
idx: isSet3(object.idx) ? globalThis.Number(object.idx) : 0,
|
|
19721
|
-
input: isSet3(object.input) ? FunctionInput.fromJSON(object.input) : void 0
|
|
20273
|
+
input: isSet3(object.input) ? FunctionInput.fromJSON(object.input) : void 0,
|
|
20274
|
+
r2Failed: isSet3(object.r2Failed) ? globalThis.Boolean(object.r2Failed) : false,
|
|
20275
|
+
r2LatencyMs: isSet3(object.r2LatencyMs) ? globalThis.Number(object.r2LatencyMs) : 0
|
|
19722
20276
|
};
|
|
19723
20277
|
},
|
|
19724
20278
|
toJSON(message) {
|
|
@@ -19729,6 +20283,12 @@ var FunctionPutInputsItem = {
|
|
|
19729
20283
|
if (message.input !== void 0) {
|
|
19730
20284
|
obj.input = FunctionInput.toJSON(message.input);
|
|
19731
20285
|
}
|
|
20286
|
+
if (message.r2Failed !== false) {
|
|
20287
|
+
obj.r2Failed = message.r2Failed;
|
|
20288
|
+
}
|
|
20289
|
+
if (message.r2LatencyMs !== 0) {
|
|
20290
|
+
obj.r2LatencyMs = Math.round(message.r2LatencyMs);
|
|
20291
|
+
}
|
|
19732
20292
|
return obj;
|
|
19733
20293
|
},
|
|
19734
20294
|
create(base) {
|
|
@@ -19738,6 +20298,8 @@ var FunctionPutInputsItem = {
|
|
|
19738
20298
|
const message = createBaseFunctionPutInputsItem();
|
|
19739
20299
|
message.idx = object.idx ?? 0;
|
|
19740
20300
|
message.input = object.input !== void 0 && object.input !== null ? FunctionInput.fromPartial(object.input) : void 0;
|
|
20301
|
+
message.r2Failed = object.r2Failed ?? false;
|
|
20302
|
+
message.r2LatencyMs = object.r2LatencyMs ?? 0;
|
|
19741
20303
|
return message;
|
|
19742
20304
|
}
|
|
19743
20305
|
};
|
|
@@ -21128,7 +21690,8 @@ function createBaseImage() {
|
|
|
21128
21690
|
buildFunctionGlobals: new Uint8Array(0),
|
|
21129
21691
|
runtime: "",
|
|
21130
21692
|
runtimeDebug: false,
|
|
21131
|
-
buildFunction: void 0
|
|
21693
|
+
buildFunction: void 0,
|
|
21694
|
+
buildArgs: {}
|
|
21132
21695
|
};
|
|
21133
21696
|
}
|
|
21134
21697
|
var Image = {
|
|
@@ -21172,6 +21735,9 @@ var Image = {
|
|
|
21172
21735
|
if (message.buildFunction !== void 0) {
|
|
21173
21736
|
BuildFunction.encode(message.buildFunction, writer.uint32(170).fork()).join();
|
|
21174
21737
|
}
|
|
21738
|
+
Object.entries(message.buildArgs).forEach(([key, value]) => {
|
|
21739
|
+
Image_BuildArgsEntry.encode({ key, value }, writer.uint32(178).fork()).join();
|
|
21740
|
+
});
|
|
21175
21741
|
return writer;
|
|
21176
21742
|
},
|
|
21177
21743
|
decode(input, length) {
|
|
@@ -21272,6 +21838,16 @@ var Image = {
|
|
|
21272
21838
|
message.buildFunction = BuildFunction.decode(reader, reader.uint32());
|
|
21273
21839
|
continue;
|
|
21274
21840
|
}
|
|
21841
|
+
case 22: {
|
|
21842
|
+
if (tag !== 178) {
|
|
21843
|
+
break;
|
|
21844
|
+
}
|
|
21845
|
+
const entry22 = Image_BuildArgsEntry.decode(reader, reader.uint32());
|
|
21846
|
+
if (entry22.value !== void 0) {
|
|
21847
|
+
message.buildArgs[entry22.key] = entry22.value;
|
|
21848
|
+
}
|
|
21849
|
+
continue;
|
|
21850
|
+
}
|
|
21275
21851
|
}
|
|
21276
21852
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21277
21853
|
break;
|
|
@@ -21294,7 +21870,11 @@ var Image = {
|
|
|
21294
21870
|
buildFunctionGlobals: isSet3(object.buildFunctionGlobals) ? bytesFromBase64(object.buildFunctionGlobals) : new Uint8Array(0),
|
|
21295
21871
|
runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : "",
|
|
21296
21872
|
runtimeDebug: isSet3(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false,
|
|
21297
|
-
buildFunction: isSet3(object.buildFunction) ? BuildFunction.fromJSON(object.buildFunction) : void 0
|
|
21873
|
+
buildFunction: isSet3(object.buildFunction) ? BuildFunction.fromJSON(object.buildFunction) : void 0,
|
|
21874
|
+
buildArgs: isObject2(object.buildArgs) ? Object.entries(object.buildArgs).reduce((acc, [key, value]) => {
|
|
21875
|
+
acc[key] = String(value);
|
|
21876
|
+
return acc;
|
|
21877
|
+
}, {}) : {}
|
|
21298
21878
|
};
|
|
21299
21879
|
},
|
|
21300
21880
|
toJSON(message) {
|
|
@@ -21338,6 +21918,15 @@ var Image = {
|
|
|
21338
21918
|
if (message.buildFunction !== void 0) {
|
|
21339
21919
|
obj.buildFunction = BuildFunction.toJSON(message.buildFunction);
|
|
21340
21920
|
}
|
|
21921
|
+
if (message.buildArgs) {
|
|
21922
|
+
const entries = Object.entries(message.buildArgs);
|
|
21923
|
+
if (entries.length > 0) {
|
|
21924
|
+
obj.buildArgs = {};
|
|
21925
|
+
entries.forEach(([k, v]) => {
|
|
21926
|
+
obj.buildArgs[k] = v;
|
|
21927
|
+
});
|
|
21928
|
+
}
|
|
21929
|
+
}
|
|
21341
21930
|
return obj;
|
|
21342
21931
|
},
|
|
21343
21932
|
create(base) {
|
|
@@ -21358,6 +21947,83 @@ var Image = {
|
|
|
21358
21947
|
message.runtime = object.runtime ?? "";
|
|
21359
21948
|
message.runtimeDebug = object.runtimeDebug ?? false;
|
|
21360
21949
|
message.buildFunction = object.buildFunction !== void 0 && object.buildFunction !== null ? BuildFunction.fromPartial(object.buildFunction) : void 0;
|
|
21950
|
+
message.buildArgs = Object.entries(object.buildArgs ?? {}).reduce(
|
|
21951
|
+
(acc, [key, value]) => {
|
|
21952
|
+
if (value !== void 0) {
|
|
21953
|
+
acc[key] = globalThis.String(value);
|
|
21954
|
+
}
|
|
21955
|
+
return acc;
|
|
21956
|
+
},
|
|
21957
|
+
{}
|
|
21958
|
+
);
|
|
21959
|
+
return message;
|
|
21960
|
+
}
|
|
21961
|
+
};
|
|
21962
|
+
function createBaseImage_BuildArgsEntry() {
|
|
21963
|
+
return { key: "", value: "" };
|
|
21964
|
+
}
|
|
21965
|
+
var Image_BuildArgsEntry = {
|
|
21966
|
+
encode(message, writer = new BinaryWriter()) {
|
|
21967
|
+
if (message.key !== "") {
|
|
21968
|
+
writer.uint32(10).string(message.key);
|
|
21969
|
+
}
|
|
21970
|
+
if (message.value !== "") {
|
|
21971
|
+
writer.uint32(18).string(message.value);
|
|
21972
|
+
}
|
|
21973
|
+
return writer;
|
|
21974
|
+
},
|
|
21975
|
+
decode(input, length) {
|
|
21976
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
21977
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
21978
|
+
const message = createBaseImage_BuildArgsEntry();
|
|
21979
|
+
while (reader.pos < end) {
|
|
21980
|
+
const tag = reader.uint32();
|
|
21981
|
+
switch (tag >>> 3) {
|
|
21982
|
+
case 1: {
|
|
21983
|
+
if (tag !== 10) {
|
|
21984
|
+
break;
|
|
21985
|
+
}
|
|
21986
|
+
message.key = reader.string();
|
|
21987
|
+
continue;
|
|
21988
|
+
}
|
|
21989
|
+
case 2: {
|
|
21990
|
+
if (tag !== 18) {
|
|
21991
|
+
break;
|
|
21992
|
+
}
|
|
21993
|
+
message.value = reader.string();
|
|
21994
|
+
continue;
|
|
21995
|
+
}
|
|
21996
|
+
}
|
|
21997
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
21998
|
+
break;
|
|
21999
|
+
}
|
|
22000
|
+
reader.skip(tag & 7);
|
|
22001
|
+
}
|
|
22002
|
+
return message;
|
|
22003
|
+
},
|
|
22004
|
+
fromJSON(object) {
|
|
22005
|
+
return {
|
|
22006
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
22007
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
22008
|
+
};
|
|
22009
|
+
},
|
|
22010
|
+
toJSON(message) {
|
|
22011
|
+
const obj = {};
|
|
22012
|
+
if (message.key !== "") {
|
|
22013
|
+
obj.key = message.key;
|
|
22014
|
+
}
|
|
22015
|
+
if (message.value !== "") {
|
|
22016
|
+
obj.value = message.value;
|
|
22017
|
+
}
|
|
22018
|
+
return obj;
|
|
22019
|
+
},
|
|
22020
|
+
create(base) {
|
|
22021
|
+
return Image_BuildArgsEntry.fromPartial(base ?? {});
|
|
22022
|
+
},
|
|
22023
|
+
fromPartial(object) {
|
|
22024
|
+
const message = createBaseImage_BuildArgsEntry();
|
|
22025
|
+
message.key = object.key ?? "";
|
|
22026
|
+
message.value = object.value ?? "";
|
|
21361
22027
|
return message;
|
|
21362
22028
|
}
|
|
21363
22029
|
};
|
|
@@ -23324,6 +23990,59 @@ var MultiPartUpload = {
|
|
|
23324
23990
|
return message;
|
|
23325
23991
|
}
|
|
23326
23992
|
};
|
|
23993
|
+
function createBaseMultiPartUploadList() {
|
|
23994
|
+
return { items: [] };
|
|
23995
|
+
}
|
|
23996
|
+
var MultiPartUploadList = {
|
|
23997
|
+
encode(message, writer = new BinaryWriter()) {
|
|
23998
|
+
for (const v of message.items) {
|
|
23999
|
+
MultiPartUpload.encode(v, writer.uint32(10).fork()).join();
|
|
24000
|
+
}
|
|
24001
|
+
return writer;
|
|
24002
|
+
},
|
|
24003
|
+
decode(input, length) {
|
|
24004
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24005
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
24006
|
+
const message = createBaseMultiPartUploadList();
|
|
24007
|
+
while (reader.pos < end) {
|
|
24008
|
+
const tag = reader.uint32();
|
|
24009
|
+
switch (tag >>> 3) {
|
|
24010
|
+
case 1: {
|
|
24011
|
+
if (tag !== 10) {
|
|
24012
|
+
break;
|
|
24013
|
+
}
|
|
24014
|
+
message.items.push(MultiPartUpload.decode(reader, reader.uint32()));
|
|
24015
|
+
continue;
|
|
24016
|
+
}
|
|
24017
|
+
}
|
|
24018
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
24019
|
+
break;
|
|
24020
|
+
}
|
|
24021
|
+
reader.skip(tag & 7);
|
|
24022
|
+
}
|
|
24023
|
+
return message;
|
|
24024
|
+
},
|
|
24025
|
+
fromJSON(object) {
|
|
24026
|
+
return {
|
|
24027
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => MultiPartUpload.fromJSON(e)) : []
|
|
24028
|
+
};
|
|
24029
|
+
},
|
|
24030
|
+
toJSON(message) {
|
|
24031
|
+
const obj = {};
|
|
24032
|
+
if (message.items?.length) {
|
|
24033
|
+
obj.items = message.items.map((e) => MultiPartUpload.toJSON(e));
|
|
24034
|
+
}
|
|
24035
|
+
return obj;
|
|
24036
|
+
},
|
|
24037
|
+
create(base) {
|
|
24038
|
+
return MultiPartUploadList.fromPartial(base ?? {});
|
|
24039
|
+
},
|
|
24040
|
+
fromPartial(object) {
|
|
24041
|
+
const message = createBaseMultiPartUploadList();
|
|
24042
|
+
message.items = object.items?.map((e) => MultiPartUpload.fromPartial(e)) || [];
|
|
24043
|
+
return message;
|
|
24044
|
+
}
|
|
24045
|
+
};
|
|
23327
24046
|
function createBaseNetworkAccess() {
|
|
23328
24047
|
return { networkAccessType: 0, allowedCidrs: [] };
|
|
23329
24048
|
}
|
|
@@ -24905,16 +25624,13 @@ var ProxyDeleteRequest = {
|
|
|
24905
25624
|
}
|
|
24906
25625
|
};
|
|
24907
25626
|
function createBaseProxyGetOrCreateRequest() {
|
|
24908
|
-
return { deploymentName: "",
|
|
25627
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0 };
|
|
24909
25628
|
}
|
|
24910
25629
|
var ProxyGetOrCreateRequest = {
|
|
24911
25630
|
encode(message, writer = new BinaryWriter()) {
|
|
24912
25631
|
if (message.deploymentName !== "") {
|
|
24913
25632
|
writer.uint32(10).string(message.deploymentName);
|
|
24914
25633
|
}
|
|
24915
|
-
if (message.namespace !== 0) {
|
|
24916
|
-
writer.uint32(16).int32(message.namespace);
|
|
24917
|
-
}
|
|
24918
25634
|
if (message.environmentName !== "") {
|
|
24919
25635
|
writer.uint32(26).string(message.environmentName);
|
|
24920
25636
|
}
|
|
@@ -24937,13 +25653,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24937
25653
|
message.deploymentName = reader.string();
|
|
24938
25654
|
continue;
|
|
24939
25655
|
}
|
|
24940
|
-
case 2: {
|
|
24941
|
-
if (tag !== 16) {
|
|
24942
|
-
break;
|
|
24943
|
-
}
|
|
24944
|
-
message.namespace = reader.int32();
|
|
24945
|
-
continue;
|
|
24946
|
-
}
|
|
24947
25656
|
case 3: {
|
|
24948
25657
|
if (tag !== 26) {
|
|
24949
25658
|
break;
|
|
@@ -24969,7 +25678,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24969
25678
|
fromJSON(object) {
|
|
24970
25679
|
return {
|
|
24971
25680
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
24972
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
24973
25681
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
24974
25682
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0
|
|
24975
25683
|
};
|
|
@@ -24979,9 +25687,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24979
25687
|
if (message.deploymentName !== "") {
|
|
24980
25688
|
obj.deploymentName = message.deploymentName;
|
|
24981
25689
|
}
|
|
24982
|
-
if (message.namespace !== 0) {
|
|
24983
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
24984
|
-
}
|
|
24985
25690
|
if (message.environmentName !== "") {
|
|
24986
25691
|
obj.environmentName = message.environmentName;
|
|
24987
25692
|
}
|
|
@@ -24996,7 +25701,6 @@ var ProxyGetOrCreateRequest = {
|
|
|
24996
25701
|
fromPartial(object) {
|
|
24997
25702
|
const message = createBaseProxyGetOrCreateRequest();
|
|
24998
25703
|
message.deploymentName = object.deploymentName ?? "";
|
|
24999
|
-
message.namespace = object.namespace ?? 0;
|
|
25000
25704
|
message.environmentName = object.environmentName ?? "";
|
|
25001
25705
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
25002
25706
|
return message;
|
|
@@ -25509,16 +26213,13 @@ var QueueDeleteRequest = {
|
|
|
25509
26213
|
}
|
|
25510
26214
|
};
|
|
25511
26215
|
function createBaseQueueGetOrCreateRequest() {
|
|
25512
|
-
return { deploymentName: "",
|
|
26216
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0 };
|
|
25513
26217
|
}
|
|
25514
26218
|
var QueueGetOrCreateRequest = {
|
|
25515
26219
|
encode(message, writer = new BinaryWriter()) {
|
|
25516
26220
|
if (message.deploymentName !== "") {
|
|
25517
26221
|
writer.uint32(10).string(message.deploymentName);
|
|
25518
26222
|
}
|
|
25519
|
-
if (message.namespace !== 0) {
|
|
25520
|
-
writer.uint32(16).int32(message.namespace);
|
|
25521
|
-
}
|
|
25522
26223
|
if (message.environmentName !== "") {
|
|
25523
26224
|
writer.uint32(26).string(message.environmentName);
|
|
25524
26225
|
}
|
|
@@ -25541,13 +26242,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25541
26242
|
message.deploymentName = reader.string();
|
|
25542
26243
|
continue;
|
|
25543
26244
|
}
|
|
25544
|
-
case 2: {
|
|
25545
|
-
if (tag !== 16) {
|
|
25546
|
-
break;
|
|
25547
|
-
}
|
|
25548
|
-
message.namespace = reader.int32();
|
|
25549
|
-
continue;
|
|
25550
|
-
}
|
|
25551
26245
|
case 3: {
|
|
25552
26246
|
if (tag !== 26) {
|
|
25553
26247
|
break;
|
|
@@ -25573,7 +26267,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25573
26267
|
fromJSON(object) {
|
|
25574
26268
|
return {
|
|
25575
26269
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
25576
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
25577
26270
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
25578
26271
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0
|
|
25579
26272
|
};
|
|
@@ -25583,9 +26276,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25583
26276
|
if (message.deploymentName !== "") {
|
|
25584
26277
|
obj.deploymentName = message.deploymentName;
|
|
25585
26278
|
}
|
|
25586
|
-
if (message.namespace !== 0) {
|
|
25587
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
25588
|
-
}
|
|
25589
26279
|
if (message.environmentName !== "") {
|
|
25590
26280
|
obj.environmentName = message.environmentName;
|
|
25591
26281
|
}
|
|
@@ -25600,7 +26290,6 @@ var QueueGetOrCreateRequest = {
|
|
|
25600
26290
|
fromPartial(object) {
|
|
25601
26291
|
const message = createBaseQueueGetOrCreateRequest();
|
|
25602
26292
|
message.deploymentName = object.deploymentName ?? "";
|
|
25603
|
-
message.namespace = object.namespace ?? 0;
|
|
25604
26293
|
message.environmentName = object.environmentName ?? "";
|
|
25605
26294
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
25606
26295
|
return message;
|
|
@@ -27167,7 +27856,8 @@ function createBaseSandbox() {
|
|
|
27167
27856
|
snapshotVersion: void 0,
|
|
27168
27857
|
cloudProviderStr: "",
|
|
27169
27858
|
runscRuntimeVersion: void 0,
|
|
27170
|
-
runtime: void 0
|
|
27859
|
+
runtime: void 0,
|
|
27860
|
+
verbose: false
|
|
27171
27861
|
};
|
|
27172
27862
|
}
|
|
27173
27863
|
var Sandbox = {
|
|
@@ -27250,6 +27940,9 @@ var Sandbox = {
|
|
|
27250
27940
|
if (message.runtime !== void 0) {
|
|
27251
27941
|
writer.uint32(226).string(message.runtime);
|
|
27252
27942
|
}
|
|
27943
|
+
if (message.verbose !== false) {
|
|
27944
|
+
writer.uint32(232).bool(message.verbose);
|
|
27945
|
+
}
|
|
27253
27946
|
return writer;
|
|
27254
27947
|
},
|
|
27255
27948
|
decode(input, length) {
|
|
@@ -27441,6 +28134,13 @@ var Sandbox = {
|
|
|
27441
28134
|
message.runtime = reader.string();
|
|
27442
28135
|
continue;
|
|
27443
28136
|
}
|
|
28137
|
+
case 29: {
|
|
28138
|
+
if (tag !== 232) {
|
|
28139
|
+
break;
|
|
28140
|
+
}
|
|
28141
|
+
message.verbose = reader.bool();
|
|
28142
|
+
continue;
|
|
28143
|
+
}
|
|
27444
28144
|
}
|
|
27445
28145
|
if ((tag & 7) === 4 || tag === 0) {
|
|
27446
28146
|
break;
|
|
@@ -27476,7 +28176,8 @@ var Sandbox = {
|
|
|
27476
28176
|
snapshotVersion: isSet3(object.snapshotVersion) ? globalThis.Number(object.snapshotVersion) : void 0,
|
|
27477
28177
|
cloudProviderStr: isSet3(object.cloudProviderStr) ? globalThis.String(object.cloudProviderStr) : "",
|
|
27478
28178
|
runscRuntimeVersion: isSet3(object.runscRuntimeVersion) ? globalThis.String(object.runscRuntimeVersion) : void 0,
|
|
27479
|
-
runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : void 0
|
|
28179
|
+
runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : void 0,
|
|
28180
|
+
verbose: isSet3(object.verbose) ? globalThis.Boolean(object.verbose) : false
|
|
27480
28181
|
};
|
|
27481
28182
|
},
|
|
27482
28183
|
toJSON(message) {
|
|
@@ -27559,6 +28260,9 @@ var Sandbox = {
|
|
|
27559
28260
|
if (message.runtime !== void 0) {
|
|
27560
28261
|
obj.runtime = message.runtime;
|
|
27561
28262
|
}
|
|
28263
|
+
if (message.verbose !== false) {
|
|
28264
|
+
obj.verbose = message.verbose;
|
|
28265
|
+
}
|
|
27562
28266
|
return obj;
|
|
27563
28267
|
},
|
|
27564
28268
|
create(base) {
|
|
@@ -27592,6 +28296,7 @@ var Sandbox = {
|
|
|
27592
28296
|
message.cloudProviderStr = object.cloudProviderStr ?? "";
|
|
27593
28297
|
message.runscRuntimeVersion = object.runscRuntimeVersion ?? void 0;
|
|
27594
28298
|
message.runtime = object.runtime ?? void 0;
|
|
28299
|
+
message.verbose = object.verbose ?? false;
|
|
27595
28300
|
return message;
|
|
27596
28301
|
}
|
|
27597
28302
|
};
|
|
@@ -28315,7 +29020,7 @@ var SandboxHandleMetadata = {
|
|
|
28315
29020
|
}
|
|
28316
29021
|
};
|
|
28317
29022
|
function createBaseSandboxInfo() {
|
|
28318
|
-
return { id: "", createdAt: 0, taskInfo: void 0, appId: "" };
|
|
29023
|
+
return { id: "", createdAt: 0, taskInfo: void 0, appId: "", tags: [] };
|
|
28319
29024
|
}
|
|
28320
29025
|
var SandboxInfo = {
|
|
28321
29026
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -28331,6 +29036,9 @@ var SandboxInfo = {
|
|
|
28331
29036
|
if (message.appId !== "") {
|
|
28332
29037
|
writer.uint32(42).string(message.appId);
|
|
28333
29038
|
}
|
|
29039
|
+
for (const v of message.tags) {
|
|
29040
|
+
SandboxTag.encode(v, writer.uint32(50).fork()).join();
|
|
29041
|
+
}
|
|
28334
29042
|
return writer;
|
|
28335
29043
|
},
|
|
28336
29044
|
decode(input, length) {
|
|
@@ -28368,6 +29076,13 @@ var SandboxInfo = {
|
|
|
28368
29076
|
message.appId = reader.string();
|
|
28369
29077
|
continue;
|
|
28370
29078
|
}
|
|
29079
|
+
case 6: {
|
|
29080
|
+
if (tag !== 50) {
|
|
29081
|
+
break;
|
|
29082
|
+
}
|
|
29083
|
+
message.tags.push(SandboxTag.decode(reader, reader.uint32()));
|
|
29084
|
+
continue;
|
|
29085
|
+
}
|
|
28371
29086
|
}
|
|
28372
29087
|
if ((tag & 7) === 4 || tag === 0) {
|
|
28373
29088
|
break;
|
|
@@ -28381,7 +29096,8 @@ var SandboxInfo = {
|
|
|
28381
29096
|
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
28382
29097
|
createdAt: isSet3(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
28383
29098
|
taskInfo: isSet3(object.taskInfo) ? TaskInfo.fromJSON(object.taskInfo) : void 0,
|
|
28384
|
-
appId: isSet3(object.appId) ? globalThis.String(object.appId) : ""
|
|
29099
|
+
appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
|
|
29100
|
+
tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => SandboxTag.fromJSON(e)) : []
|
|
28385
29101
|
};
|
|
28386
29102
|
},
|
|
28387
29103
|
toJSON(message) {
|
|
@@ -28398,6 +29114,9 @@ var SandboxInfo = {
|
|
|
28398
29114
|
if (message.appId !== "") {
|
|
28399
29115
|
obj.appId = message.appId;
|
|
28400
29116
|
}
|
|
29117
|
+
if (message.tags?.length) {
|
|
29118
|
+
obj.tags = message.tags.map((e) => SandboxTag.toJSON(e));
|
|
29119
|
+
}
|
|
28401
29120
|
return obj;
|
|
28402
29121
|
},
|
|
28403
29122
|
create(base) {
|
|
@@ -28409,6 +29128,7 @@ var SandboxInfo = {
|
|
|
28409
29128
|
message.createdAt = object.createdAt ?? 0;
|
|
28410
29129
|
message.taskInfo = object.taskInfo !== void 0 && object.taskInfo !== null ? TaskInfo.fromPartial(object.taskInfo) : void 0;
|
|
28411
29130
|
message.appId = object.appId ?? "";
|
|
29131
|
+
message.tags = object.tags?.map((e) => SandboxTag.fromPartial(e)) || [];
|
|
28412
29132
|
return message;
|
|
28413
29133
|
}
|
|
28414
29134
|
};
|
|
@@ -30090,24 +30810,13 @@ var SecretDeleteRequest = {
|
|
|
30090
30810
|
}
|
|
30091
30811
|
};
|
|
30092
30812
|
function createBaseSecretGetOrCreateRequest() {
|
|
30093
|
-
return {
|
|
30094
|
-
deploymentName: "",
|
|
30095
|
-
namespace: 0,
|
|
30096
|
-
environmentName: "",
|
|
30097
|
-
objectCreationType: 0,
|
|
30098
|
-
envDict: {},
|
|
30099
|
-
appId: "",
|
|
30100
|
-
requiredKeys: []
|
|
30101
|
-
};
|
|
30813
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, envDict: {}, appId: "", requiredKeys: [] };
|
|
30102
30814
|
}
|
|
30103
30815
|
var SecretGetOrCreateRequest = {
|
|
30104
30816
|
encode(message, writer = new BinaryWriter()) {
|
|
30105
30817
|
if (message.deploymentName !== "") {
|
|
30106
30818
|
writer.uint32(10).string(message.deploymentName);
|
|
30107
30819
|
}
|
|
30108
|
-
if (message.namespace !== 0) {
|
|
30109
|
-
writer.uint32(16).int32(message.namespace);
|
|
30110
|
-
}
|
|
30111
30820
|
if (message.environmentName !== "") {
|
|
30112
30821
|
writer.uint32(26).string(message.environmentName);
|
|
30113
30822
|
}
|
|
@@ -30139,13 +30848,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30139
30848
|
message.deploymentName = reader.string();
|
|
30140
30849
|
continue;
|
|
30141
30850
|
}
|
|
30142
|
-
case 2: {
|
|
30143
|
-
if (tag !== 16) {
|
|
30144
|
-
break;
|
|
30145
|
-
}
|
|
30146
|
-
message.namespace = reader.int32();
|
|
30147
|
-
continue;
|
|
30148
|
-
}
|
|
30149
30851
|
case 3: {
|
|
30150
30852
|
if (tag !== 26) {
|
|
30151
30853
|
break;
|
|
@@ -30195,7 +30897,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30195
30897
|
fromJSON(object) {
|
|
30196
30898
|
return {
|
|
30197
30899
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
30198
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
30199
30900
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
30200
30901
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
30201
30902
|
envDict: isObject2(object.envDict) ? Object.entries(object.envDict).reduce((acc, [key, value]) => {
|
|
@@ -30211,9 +30912,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30211
30912
|
if (message.deploymentName !== "") {
|
|
30212
30913
|
obj.deploymentName = message.deploymentName;
|
|
30213
30914
|
}
|
|
30214
|
-
if (message.namespace !== 0) {
|
|
30215
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
30216
|
-
}
|
|
30217
30915
|
if (message.environmentName !== "") {
|
|
30218
30916
|
obj.environmentName = message.environmentName;
|
|
30219
30917
|
}
|
|
@@ -30243,7 +30941,6 @@ var SecretGetOrCreateRequest = {
|
|
|
30243
30941
|
fromPartial(object) {
|
|
30244
30942
|
const message = createBaseSecretGetOrCreateRequest();
|
|
30245
30943
|
message.deploymentName = object.deploymentName ?? "";
|
|
30246
|
-
message.namespace = object.namespace ?? 0;
|
|
30247
30944
|
message.environmentName = object.environmentName ?? "";
|
|
30248
30945
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
30249
30946
|
message.envDict = Object.entries(object.envDict ?? {}).reduce((acc, [key, value]) => {
|
|
@@ -30796,16 +31493,13 @@ var SharedVolumeGetFileResponse = {
|
|
|
30796
31493
|
}
|
|
30797
31494
|
};
|
|
30798
31495
|
function createBaseSharedVolumeGetOrCreateRequest() {
|
|
30799
|
-
return { deploymentName: "",
|
|
31496
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, appId: "" };
|
|
30800
31497
|
}
|
|
30801
31498
|
var SharedVolumeGetOrCreateRequest = {
|
|
30802
31499
|
encode(message, writer = new BinaryWriter()) {
|
|
30803
31500
|
if (message.deploymentName !== "") {
|
|
30804
31501
|
writer.uint32(10).string(message.deploymentName);
|
|
30805
31502
|
}
|
|
30806
|
-
if (message.namespace !== 0) {
|
|
30807
|
-
writer.uint32(16).int32(message.namespace);
|
|
30808
|
-
}
|
|
30809
31503
|
if (message.environmentName !== "") {
|
|
30810
31504
|
writer.uint32(26).string(message.environmentName);
|
|
30811
31505
|
}
|
|
@@ -30831,13 +31525,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30831
31525
|
message.deploymentName = reader.string();
|
|
30832
31526
|
continue;
|
|
30833
31527
|
}
|
|
30834
|
-
case 2: {
|
|
30835
|
-
if (tag !== 16) {
|
|
30836
|
-
break;
|
|
30837
|
-
}
|
|
30838
|
-
message.namespace = reader.int32();
|
|
30839
|
-
continue;
|
|
30840
|
-
}
|
|
30841
31528
|
case 3: {
|
|
30842
31529
|
if (tag !== 26) {
|
|
30843
31530
|
break;
|
|
@@ -30870,7 +31557,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30870
31557
|
fromJSON(object) {
|
|
30871
31558
|
return {
|
|
30872
31559
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
30873
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
30874
31560
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
30875
31561
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
30876
31562
|
appId: isSet3(object.appId) ? globalThis.String(object.appId) : ""
|
|
@@ -30881,9 +31567,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30881
31567
|
if (message.deploymentName !== "") {
|
|
30882
31568
|
obj.deploymentName = message.deploymentName;
|
|
30883
31569
|
}
|
|
30884
|
-
if (message.namespace !== 0) {
|
|
30885
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
30886
|
-
}
|
|
30887
31570
|
if (message.environmentName !== "") {
|
|
30888
31571
|
obj.environmentName = message.environmentName;
|
|
30889
31572
|
}
|
|
@@ -30901,7 +31584,6 @@ var SharedVolumeGetOrCreateRequest = {
|
|
|
30901
31584
|
fromPartial(object) {
|
|
30902
31585
|
const message = createBaseSharedVolumeGetOrCreateRequest();
|
|
30903
31586
|
message.deploymentName = object.deploymentName ?? "";
|
|
30904
|
-
message.namespace = object.namespace ?? 0;
|
|
30905
31587
|
message.environmentName = object.environmentName ?? "";
|
|
30906
31588
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
30907
31589
|
message.appId = object.appId ?? "";
|
|
@@ -31981,7 +32663,7 @@ var TaskCurrentInputsResponse = {
|
|
|
31981
32663
|
}
|
|
31982
32664
|
};
|
|
31983
32665
|
function createBaseTaskInfo() {
|
|
31984
|
-
return { id: "", startedAt: 0, finishedAt: 0, result: void 0, enqueuedAt: 0, gpuType: "" };
|
|
32666
|
+
return { id: "", startedAt: 0, finishedAt: 0, result: void 0, enqueuedAt: 0, gpuType: "", sandboxId: "" };
|
|
31985
32667
|
}
|
|
31986
32668
|
var TaskInfo = {
|
|
31987
32669
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -32003,6 +32685,9 @@ var TaskInfo = {
|
|
|
32003
32685
|
if (message.gpuType !== "") {
|
|
32004
32686
|
writer.uint32(50).string(message.gpuType);
|
|
32005
32687
|
}
|
|
32688
|
+
if (message.sandboxId !== "") {
|
|
32689
|
+
writer.uint32(58).string(message.sandboxId);
|
|
32690
|
+
}
|
|
32006
32691
|
return writer;
|
|
32007
32692
|
},
|
|
32008
32693
|
decode(input, length) {
|
|
@@ -32054,6 +32739,13 @@ var TaskInfo = {
|
|
|
32054
32739
|
message.gpuType = reader.string();
|
|
32055
32740
|
continue;
|
|
32056
32741
|
}
|
|
32742
|
+
case 7: {
|
|
32743
|
+
if (tag !== 58) {
|
|
32744
|
+
break;
|
|
32745
|
+
}
|
|
32746
|
+
message.sandboxId = reader.string();
|
|
32747
|
+
continue;
|
|
32748
|
+
}
|
|
32057
32749
|
}
|
|
32058
32750
|
if ((tag & 7) === 4 || tag === 0) {
|
|
32059
32751
|
break;
|
|
@@ -32069,7 +32761,8 @@ var TaskInfo = {
|
|
|
32069
32761
|
finishedAt: isSet3(object.finishedAt) ? globalThis.Number(object.finishedAt) : 0,
|
|
32070
32762
|
result: isSet3(object.result) ? GenericResult.fromJSON(object.result) : void 0,
|
|
32071
32763
|
enqueuedAt: isSet3(object.enqueuedAt) ? globalThis.Number(object.enqueuedAt) : 0,
|
|
32072
|
-
gpuType: isSet3(object.gpuType) ? globalThis.String(object.gpuType) : ""
|
|
32764
|
+
gpuType: isSet3(object.gpuType) ? globalThis.String(object.gpuType) : "",
|
|
32765
|
+
sandboxId: isSet3(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
|
|
32073
32766
|
};
|
|
32074
32767
|
},
|
|
32075
32768
|
toJSON(message) {
|
|
@@ -32092,6 +32785,9 @@ var TaskInfo = {
|
|
|
32092
32785
|
if (message.gpuType !== "") {
|
|
32093
32786
|
obj.gpuType = message.gpuType;
|
|
32094
32787
|
}
|
|
32788
|
+
if (message.sandboxId !== "") {
|
|
32789
|
+
obj.sandboxId = message.sandboxId;
|
|
32790
|
+
}
|
|
32095
32791
|
return obj;
|
|
32096
32792
|
},
|
|
32097
32793
|
create(base) {
|
|
@@ -32105,6 +32801,7 @@ var TaskInfo = {
|
|
|
32105
32801
|
message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
|
|
32106
32802
|
message.enqueuedAt = object.enqueuedAt ?? 0;
|
|
32107
32803
|
message.gpuType = object.gpuType ?? "";
|
|
32804
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
32108
32805
|
return message;
|
|
32109
32806
|
}
|
|
32110
32807
|
};
|
|
@@ -33357,13 +34054,199 @@ var TunnelData = {
|
|
|
33357
34054
|
message.unencryptedPort = reader.uint32();
|
|
33358
34055
|
continue;
|
|
33359
34056
|
}
|
|
33360
|
-
case 5: {
|
|
33361
|
-
if (tag !== 40) {
|
|
33362
|
-
break;
|
|
33363
|
-
}
|
|
33364
|
-
message.containerPort = reader.uint32();
|
|
33365
|
-
continue;
|
|
33366
|
-
}
|
|
34057
|
+
case 5: {
|
|
34058
|
+
if (tag !== 40) {
|
|
34059
|
+
break;
|
|
34060
|
+
}
|
|
34061
|
+
message.containerPort = reader.uint32();
|
|
34062
|
+
continue;
|
|
34063
|
+
}
|
|
34064
|
+
}
|
|
34065
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34066
|
+
break;
|
|
34067
|
+
}
|
|
34068
|
+
reader.skip(tag & 7);
|
|
34069
|
+
}
|
|
34070
|
+
return message;
|
|
34071
|
+
},
|
|
34072
|
+
fromJSON(object) {
|
|
34073
|
+
return {
|
|
34074
|
+
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
34075
|
+
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
34076
|
+
unencryptedHost: isSet3(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
34077
|
+
unencryptedPort: isSet3(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0,
|
|
34078
|
+
containerPort: isSet3(object.containerPort) ? globalThis.Number(object.containerPort) : 0
|
|
34079
|
+
};
|
|
34080
|
+
},
|
|
34081
|
+
toJSON(message) {
|
|
34082
|
+
const obj = {};
|
|
34083
|
+
if (message.host !== "") {
|
|
34084
|
+
obj.host = message.host;
|
|
34085
|
+
}
|
|
34086
|
+
if (message.port !== 0) {
|
|
34087
|
+
obj.port = Math.round(message.port);
|
|
34088
|
+
}
|
|
34089
|
+
if (message.unencryptedHost !== void 0) {
|
|
34090
|
+
obj.unencryptedHost = message.unencryptedHost;
|
|
34091
|
+
}
|
|
34092
|
+
if (message.unencryptedPort !== void 0) {
|
|
34093
|
+
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
34094
|
+
}
|
|
34095
|
+
if (message.containerPort !== 0) {
|
|
34096
|
+
obj.containerPort = Math.round(message.containerPort);
|
|
34097
|
+
}
|
|
34098
|
+
return obj;
|
|
34099
|
+
},
|
|
34100
|
+
create(base) {
|
|
34101
|
+
return TunnelData.fromPartial(base ?? {});
|
|
34102
|
+
},
|
|
34103
|
+
fromPartial(object) {
|
|
34104
|
+
const message = createBaseTunnelData();
|
|
34105
|
+
message.host = object.host ?? "";
|
|
34106
|
+
message.port = object.port ?? 0;
|
|
34107
|
+
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
34108
|
+
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
34109
|
+
message.containerPort = object.containerPort ?? 0;
|
|
34110
|
+
return message;
|
|
34111
|
+
}
|
|
34112
|
+
};
|
|
34113
|
+
function createBaseTunnelStartRequest() {
|
|
34114
|
+
return { port: 0, unencrypted: false, tunnelType: void 0 };
|
|
34115
|
+
}
|
|
34116
|
+
var TunnelStartRequest = {
|
|
34117
|
+
encode(message, writer = new BinaryWriter()) {
|
|
34118
|
+
if (message.port !== 0) {
|
|
34119
|
+
writer.uint32(8).uint32(message.port);
|
|
34120
|
+
}
|
|
34121
|
+
if (message.unencrypted !== false) {
|
|
34122
|
+
writer.uint32(16).bool(message.unencrypted);
|
|
34123
|
+
}
|
|
34124
|
+
if (message.tunnelType !== void 0) {
|
|
34125
|
+
writer.uint32(24).int32(message.tunnelType);
|
|
34126
|
+
}
|
|
34127
|
+
return writer;
|
|
34128
|
+
},
|
|
34129
|
+
decode(input, length) {
|
|
34130
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34131
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
34132
|
+
const message = createBaseTunnelStartRequest();
|
|
34133
|
+
while (reader.pos < end) {
|
|
34134
|
+
const tag = reader.uint32();
|
|
34135
|
+
switch (tag >>> 3) {
|
|
34136
|
+
case 1: {
|
|
34137
|
+
if (tag !== 8) {
|
|
34138
|
+
break;
|
|
34139
|
+
}
|
|
34140
|
+
message.port = reader.uint32();
|
|
34141
|
+
continue;
|
|
34142
|
+
}
|
|
34143
|
+
case 2: {
|
|
34144
|
+
if (tag !== 16) {
|
|
34145
|
+
break;
|
|
34146
|
+
}
|
|
34147
|
+
message.unencrypted = reader.bool();
|
|
34148
|
+
continue;
|
|
34149
|
+
}
|
|
34150
|
+
case 3: {
|
|
34151
|
+
if (tag !== 24) {
|
|
34152
|
+
break;
|
|
34153
|
+
}
|
|
34154
|
+
message.tunnelType = reader.int32();
|
|
34155
|
+
continue;
|
|
34156
|
+
}
|
|
34157
|
+
}
|
|
34158
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34159
|
+
break;
|
|
34160
|
+
}
|
|
34161
|
+
reader.skip(tag & 7);
|
|
34162
|
+
}
|
|
34163
|
+
return message;
|
|
34164
|
+
},
|
|
34165
|
+
fromJSON(object) {
|
|
34166
|
+
return {
|
|
34167
|
+
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
34168
|
+
unencrypted: isSet3(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
|
|
34169
|
+
tunnelType: isSet3(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
|
|
34170
|
+
};
|
|
34171
|
+
},
|
|
34172
|
+
toJSON(message) {
|
|
34173
|
+
const obj = {};
|
|
34174
|
+
if (message.port !== 0) {
|
|
34175
|
+
obj.port = Math.round(message.port);
|
|
34176
|
+
}
|
|
34177
|
+
if (message.unencrypted !== false) {
|
|
34178
|
+
obj.unencrypted = message.unencrypted;
|
|
34179
|
+
}
|
|
34180
|
+
if (message.tunnelType !== void 0) {
|
|
34181
|
+
obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
|
|
34182
|
+
}
|
|
34183
|
+
return obj;
|
|
34184
|
+
},
|
|
34185
|
+
create(base) {
|
|
34186
|
+
return TunnelStartRequest.fromPartial(base ?? {});
|
|
34187
|
+
},
|
|
34188
|
+
fromPartial(object) {
|
|
34189
|
+
const message = createBaseTunnelStartRequest();
|
|
34190
|
+
message.port = object.port ?? 0;
|
|
34191
|
+
message.unencrypted = object.unencrypted ?? false;
|
|
34192
|
+
message.tunnelType = object.tunnelType ?? void 0;
|
|
34193
|
+
return message;
|
|
34194
|
+
}
|
|
34195
|
+
};
|
|
34196
|
+
function createBaseTunnelStartResponse() {
|
|
34197
|
+
return { host: "", port: 0, unencryptedHost: void 0, unencryptedPort: void 0 };
|
|
34198
|
+
}
|
|
34199
|
+
var TunnelStartResponse = {
|
|
34200
|
+
encode(message, writer = new BinaryWriter()) {
|
|
34201
|
+
if (message.host !== "") {
|
|
34202
|
+
writer.uint32(10).string(message.host);
|
|
34203
|
+
}
|
|
34204
|
+
if (message.port !== 0) {
|
|
34205
|
+
writer.uint32(16).uint32(message.port);
|
|
34206
|
+
}
|
|
34207
|
+
if (message.unencryptedHost !== void 0) {
|
|
34208
|
+
writer.uint32(26).string(message.unencryptedHost);
|
|
34209
|
+
}
|
|
34210
|
+
if (message.unencryptedPort !== void 0) {
|
|
34211
|
+
writer.uint32(32).uint32(message.unencryptedPort);
|
|
34212
|
+
}
|
|
34213
|
+
return writer;
|
|
34214
|
+
},
|
|
34215
|
+
decode(input, length) {
|
|
34216
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34217
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
34218
|
+
const message = createBaseTunnelStartResponse();
|
|
34219
|
+
while (reader.pos < end) {
|
|
34220
|
+
const tag = reader.uint32();
|
|
34221
|
+
switch (tag >>> 3) {
|
|
34222
|
+
case 1: {
|
|
34223
|
+
if (tag !== 10) {
|
|
34224
|
+
break;
|
|
34225
|
+
}
|
|
34226
|
+
message.host = reader.string();
|
|
34227
|
+
continue;
|
|
34228
|
+
}
|
|
34229
|
+
case 2: {
|
|
34230
|
+
if (tag !== 16) {
|
|
34231
|
+
break;
|
|
34232
|
+
}
|
|
34233
|
+
message.port = reader.uint32();
|
|
34234
|
+
continue;
|
|
34235
|
+
}
|
|
34236
|
+
case 3: {
|
|
34237
|
+
if (tag !== 26) {
|
|
34238
|
+
break;
|
|
34239
|
+
}
|
|
34240
|
+
message.unencryptedHost = reader.string();
|
|
34241
|
+
continue;
|
|
34242
|
+
}
|
|
34243
|
+
case 4: {
|
|
34244
|
+
if (tag !== 32) {
|
|
34245
|
+
break;
|
|
34246
|
+
}
|
|
34247
|
+
message.unencryptedPort = reader.uint32();
|
|
34248
|
+
continue;
|
|
34249
|
+
}
|
|
33367
34250
|
}
|
|
33368
34251
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33369
34252
|
break;
|
|
@@ -33377,8 +34260,7 @@ var TunnelData = {
|
|
|
33377
34260
|
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
33378
34261
|
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
33379
34262
|
unencryptedHost: isSet3(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
33380
|
-
unencryptedPort: isSet3(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
33381
|
-
containerPort: isSet3(object.containerPort) ? globalThis.Number(object.containerPort) : 0
|
|
34263
|
+
unencryptedPort: isSet3(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
33382
34264
|
};
|
|
33383
34265
|
},
|
|
33384
34266
|
toJSON(message) {
|
|
@@ -33395,44 +34277,34 @@ var TunnelData = {
|
|
|
33395
34277
|
if (message.unencryptedPort !== void 0) {
|
|
33396
34278
|
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
33397
34279
|
}
|
|
33398
|
-
if (message.containerPort !== 0) {
|
|
33399
|
-
obj.containerPort = Math.round(message.containerPort);
|
|
33400
|
-
}
|
|
33401
34280
|
return obj;
|
|
33402
34281
|
},
|
|
33403
34282
|
create(base) {
|
|
33404
|
-
return
|
|
34283
|
+
return TunnelStartResponse.fromPartial(base ?? {});
|
|
33405
34284
|
},
|
|
33406
34285
|
fromPartial(object) {
|
|
33407
|
-
const message =
|
|
34286
|
+
const message = createBaseTunnelStartResponse();
|
|
33408
34287
|
message.host = object.host ?? "";
|
|
33409
34288
|
message.port = object.port ?? 0;
|
|
33410
34289
|
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
33411
34290
|
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
33412
|
-
message.containerPort = object.containerPort ?? 0;
|
|
33413
34291
|
return message;
|
|
33414
34292
|
}
|
|
33415
34293
|
};
|
|
33416
|
-
function
|
|
33417
|
-
return { port: 0
|
|
34294
|
+
function createBaseTunnelStopRequest() {
|
|
34295
|
+
return { port: 0 };
|
|
33418
34296
|
}
|
|
33419
|
-
var
|
|
34297
|
+
var TunnelStopRequest = {
|
|
33420
34298
|
encode(message, writer = new BinaryWriter()) {
|
|
33421
34299
|
if (message.port !== 0) {
|
|
33422
34300
|
writer.uint32(8).uint32(message.port);
|
|
33423
34301
|
}
|
|
33424
|
-
if (message.unencrypted !== false) {
|
|
33425
|
-
writer.uint32(16).bool(message.unencrypted);
|
|
33426
|
-
}
|
|
33427
|
-
if (message.tunnelType !== void 0) {
|
|
33428
|
-
writer.uint32(24).int32(message.tunnelType);
|
|
33429
|
-
}
|
|
33430
34302
|
return writer;
|
|
33431
34303
|
},
|
|
33432
34304
|
decode(input, length) {
|
|
33433
34305
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33434
34306
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33435
|
-
const message =
|
|
34307
|
+
const message = createBaseTunnelStopRequest();
|
|
33436
34308
|
while (reader.pos < end) {
|
|
33437
34309
|
const tag = reader.uint32();
|
|
33438
34310
|
switch (tag >>> 3) {
|
|
@@ -33443,20 +34315,6 @@ var TunnelStartRequest = {
|
|
|
33443
34315
|
message.port = reader.uint32();
|
|
33444
34316
|
continue;
|
|
33445
34317
|
}
|
|
33446
|
-
case 2: {
|
|
33447
|
-
if (tag !== 16) {
|
|
33448
|
-
break;
|
|
33449
|
-
}
|
|
33450
|
-
message.unencrypted = reader.bool();
|
|
33451
|
-
continue;
|
|
33452
|
-
}
|
|
33453
|
-
case 3: {
|
|
33454
|
-
if (tag !== 24) {
|
|
33455
|
-
break;
|
|
33456
|
-
}
|
|
33457
|
-
message.tunnelType = reader.int32();
|
|
33458
|
-
continue;
|
|
33459
|
-
}
|
|
33460
34318
|
}
|
|
33461
34319
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33462
34320
|
break;
|
|
@@ -33466,148 +34324,38 @@ var TunnelStartRequest = {
|
|
|
33466
34324
|
return message;
|
|
33467
34325
|
},
|
|
33468
34326
|
fromJSON(object) {
|
|
33469
|
-
return {
|
|
33470
|
-
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
33471
|
-
unencrypted: isSet3(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
|
|
33472
|
-
tunnelType: isSet3(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
|
|
33473
|
-
};
|
|
33474
|
-
},
|
|
33475
|
-
toJSON(message) {
|
|
33476
|
-
const obj = {};
|
|
33477
|
-
if (message.port !== 0) {
|
|
33478
|
-
obj.port = Math.round(message.port);
|
|
33479
|
-
}
|
|
33480
|
-
if (message.unencrypted !== false) {
|
|
33481
|
-
obj.unencrypted = message.unencrypted;
|
|
33482
|
-
}
|
|
33483
|
-
if (message.tunnelType !== void 0) {
|
|
33484
|
-
obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
|
|
33485
|
-
}
|
|
33486
|
-
return obj;
|
|
33487
|
-
},
|
|
33488
|
-
create(base) {
|
|
33489
|
-
return TunnelStartRequest.fromPartial(base ?? {});
|
|
33490
|
-
},
|
|
33491
|
-
fromPartial(object) {
|
|
33492
|
-
const message = createBaseTunnelStartRequest();
|
|
33493
|
-
message.port = object.port ?? 0;
|
|
33494
|
-
message.unencrypted = object.unencrypted ?? false;
|
|
33495
|
-
message.tunnelType = object.tunnelType ?? void 0;
|
|
33496
|
-
return message;
|
|
33497
|
-
}
|
|
33498
|
-
};
|
|
33499
|
-
function createBaseTunnelStartResponse() {
|
|
33500
|
-
return { host: "", port: 0, unencryptedHost: void 0, unencryptedPort: void 0 };
|
|
33501
|
-
}
|
|
33502
|
-
var TunnelStartResponse = {
|
|
33503
|
-
encode(message, writer = new BinaryWriter()) {
|
|
33504
|
-
if (message.host !== "") {
|
|
33505
|
-
writer.uint32(10).string(message.host);
|
|
33506
|
-
}
|
|
33507
|
-
if (message.port !== 0) {
|
|
33508
|
-
writer.uint32(16).uint32(message.port);
|
|
33509
|
-
}
|
|
33510
|
-
if (message.unencryptedHost !== void 0) {
|
|
33511
|
-
writer.uint32(26).string(message.unencryptedHost);
|
|
33512
|
-
}
|
|
33513
|
-
if (message.unencryptedPort !== void 0) {
|
|
33514
|
-
writer.uint32(32).uint32(message.unencryptedPort);
|
|
33515
|
-
}
|
|
33516
|
-
return writer;
|
|
33517
|
-
},
|
|
33518
|
-
decode(input, length) {
|
|
33519
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33520
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33521
|
-
const message = createBaseTunnelStartResponse();
|
|
33522
|
-
while (reader.pos < end) {
|
|
33523
|
-
const tag = reader.uint32();
|
|
33524
|
-
switch (tag >>> 3) {
|
|
33525
|
-
case 1: {
|
|
33526
|
-
if (tag !== 10) {
|
|
33527
|
-
break;
|
|
33528
|
-
}
|
|
33529
|
-
message.host = reader.string();
|
|
33530
|
-
continue;
|
|
33531
|
-
}
|
|
33532
|
-
case 2: {
|
|
33533
|
-
if (tag !== 16) {
|
|
33534
|
-
break;
|
|
33535
|
-
}
|
|
33536
|
-
message.port = reader.uint32();
|
|
33537
|
-
continue;
|
|
33538
|
-
}
|
|
33539
|
-
case 3: {
|
|
33540
|
-
if (tag !== 26) {
|
|
33541
|
-
break;
|
|
33542
|
-
}
|
|
33543
|
-
message.unencryptedHost = reader.string();
|
|
33544
|
-
continue;
|
|
33545
|
-
}
|
|
33546
|
-
case 4: {
|
|
33547
|
-
if (tag !== 32) {
|
|
33548
|
-
break;
|
|
33549
|
-
}
|
|
33550
|
-
message.unencryptedPort = reader.uint32();
|
|
33551
|
-
continue;
|
|
33552
|
-
}
|
|
33553
|
-
}
|
|
33554
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
33555
|
-
break;
|
|
33556
|
-
}
|
|
33557
|
-
reader.skip(tag & 7);
|
|
33558
|
-
}
|
|
33559
|
-
return message;
|
|
33560
|
-
},
|
|
33561
|
-
fromJSON(object) {
|
|
33562
|
-
return {
|
|
33563
|
-
host: isSet3(object.host) ? globalThis.String(object.host) : "",
|
|
33564
|
-
port: isSet3(object.port) ? globalThis.Number(object.port) : 0,
|
|
33565
|
-
unencryptedHost: isSet3(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
33566
|
-
unencryptedPort: isSet3(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
33567
|
-
};
|
|
34327
|
+
return { port: isSet3(object.port) ? globalThis.Number(object.port) : 0 };
|
|
33568
34328
|
},
|
|
33569
34329
|
toJSON(message) {
|
|
33570
34330
|
const obj = {};
|
|
33571
|
-
if (message.host !== "") {
|
|
33572
|
-
obj.host = message.host;
|
|
33573
|
-
}
|
|
33574
34331
|
if (message.port !== 0) {
|
|
33575
34332
|
obj.port = Math.round(message.port);
|
|
33576
34333
|
}
|
|
33577
|
-
if (message.unencryptedHost !== void 0) {
|
|
33578
|
-
obj.unencryptedHost = message.unencryptedHost;
|
|
33579
|
-
}
|
|
33580
|
-
if (message.unencryptedPort !== void 0) {
|
|
33581
|
-
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
33582
|
-
}
|
|
33583
34334
|
return obj;
|
|
33584
34335
|
},
|
|
33585
34336
|
create(base) {
|
|
33586
|
-
return
|
|
34337
|
+
return TunnelStopRequest.fromPartial(base ?? {});
|
|
33587
34338
|
},
|
|
33588
34339
|
fromPartial(object) {
|
|
33589
|
-
const message =
|
|
33590
|
-
message.host = object.host ?? "";
|
|
34340
|
+
const message = createBaseTunnelStopRequest();
|
|
33591
34341
|
message.port = object.port ?? 0;
|
|
33592
|
-
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
33593
|
-
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
33594
34342
|
return message;
|
|
33595
34343
|
}
|
|
33596
34344
|
};
|
|
33597
|
-
function
|
|
33598
|
-
return {
|
|
34345
|
+
function createBaseTunnelStopResponse() {
|
|
34346
|
+
return { exists: false };
|
|
33599
34347
|
}
|
|
33600
|
-
var
|
|
34348
|
+
var TunnelStopResponse = {
|
|
33601
34349
|
encode(message, writer = new BinaryWriter()) {
|
|
33602
|
-
if (message.
|
|
33603
|
-
writer.uint32(8).
|
|
34350
|
+
if (message.exists !== false) {
|
|
34351
|
+
writer.uint32(8).bool(message.exists);
|
|
33604
34352
|
}
|
|
33605
34353
|
return writer;
|
|
33606
34354
|
},
|
|
33607
34355
|
decode(input, length) {
|
|
33608
34356
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33609
34357
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33610
|
-
const message =
|
|
34358
|
+
const message = createBaseTunnelStopResponse();
|
|
33611
34359
|
while (reader.pos < end) {
|
|
33612
34360
|
const tag = reader.uint32();
|
|
33613
34361
|
switch (tag >>> 3) {
|
|
@@ -33615,7 +34363,7 @@ var TunnelStopRequest = {
|
|
|
33615
34363
|
if (tag !== 8) {
|
|
33616
34364
|
break;
|
|
33617
34365
|
}
|
|
33618
|
-
message.
|
|
34366
|
+
message.exists = reader.bool();
|
|
33619
34367
|
continue;
|
|
33620
34368
|
}
|
|
33621
34369
|
}
|
|
@@ -33627,46 +34375,46 @@ var TunnelStopRequest = {
|
|
|
33627
34375
|
return message;
|
|
33628
34376
|
},
|
|
33629
34377
|
fromJSON(object) {
|
|
33630
|
-
return {
|
|
34378
|
+
return { exists: isSet3(object.exists) ? globalThis.Boolean(object.exists) : false };
|
|
33631
34379
|
},
|
|
33632
34380
|
toJSON(message) {
|
|
33633
34381
|
const obj = {};
|
|
33634
|
-
if (message.
|
|
33635
|
-
obj.
|
|
34382
|
+
if (message.exists !== false) {
|
|
34383
|
+
obj.exists = message.exists;
|
|
33636
34384
|
}
|
|
33637
34385
|
return obj;
|
|
33638
34386
|
},
|
|
33639
34387
|
create(base) {
|
|
33640
|
-
return
|
|
34388
|
+
return TunnelStopResponse.fromPartial(base ?? {});
|
|
33641
34389
|
},
|
|
33642
34390
|
fromPartial(object) {
|
|
33643
|
-
const message =
|
|
33644
|
-
message.
|
|
34391
|
+
const message = createBaseTunnelStopResponse();
|
|
34392
|
+
message.exists = object.exists ?? false;
|
|
33645
34393
|
return message;
|
|
33646
34394
|
}
|
|
33647
34395
|
};
|
|
33648
|
-
function
|
|
33649
|
-
return {
|
|
34396
|
+
function createBaseUploadUrlList() {
|
|
34397
|
+
return { items: [] };
|
|
33650
34398
|
}
|
|
33651
|
-
var
|
|
34399
|
+
var UploadUrlList = {
|
|
33652
34400
|
encode(message, writer = new BinaryWriter()) {
|
|
33653
|
-
|
|
33654
|
-
writer.uint32(
|
|
34401
|
+
for (const v of message.items) {
|
|
34402
|
+
writer.uint32(10).string(v);
|
|
33655
34403
|
}
|
|
33656
34404
|
return writer;
|
|
33657
34405
|
},
|
|
33658
34406
|
decode(input, length) {
|
|
33659
34407
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33660
34408
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
33661
|
-
const message =
|
|
34409
|
+
const message = createBaseUploadUrlList();
|
|
33662
34410
|
while (reader.pos < end) {
|
|
33663
34411
|
const tag = reader.uint32();
|
|
33664
34412
|
switch (tag >>> 3) {
|
|
33665
34413
|
case 1: {
|
|
33666
|
-
if (tag !==
|
|
34414
|
+
if (tag !== 10) {
|
|
33667
34415
|
break;
|
|
33668
34416
|
}
|
|
33669
|
-
message.
|
|
34417
|
+
message.items.push(reader.string());
|
|
33670
34418
|
continue;
|
|
33671
34419
|
}
|
|
33672
34420
|
}
|
|
@@ -33678,21 +34426,21 @@ var TunnelStopResponse = {
|
|
|
33678
34426
|
return message;
|
|
33679
34427
|
},
|
|
33680
34428
|
fromJSON(object) {
|
|
33681
|
-
return {
|
|
34429
|
+
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => globalThis.String(e)) : [] };
|
|
33682
34430
|
},
|
|
33683
34431
|
toJSON(message) {
|
|
33684
34432
|
const obj = {};
|
|
33685
|
-
if (message.
|
|
33686
|
-
obj.
|
|
34433
|
+
if (message.items?.length) {
|
|
34434
|
+
obj.items = message.items;
|
|
33687
34435
|
}
|
|
33688
34436
|
return obj;
|
|
33689
34437
|
},
|
|
33690
34438
|
create(base) {
|
|
33691
|
-
return
|
|
34439
|
+
return UploadUrlList.fromPartial(base ?? {});
|
|
33692
34440
|
},
|
|
33693
34441
|
fromPartial(object) {
|
|
33694
|
-
const message =
|
|
33695
|
-
message.
|
|
34442
|
+
const message = createBaseUploadUrlList();
|
|
34443
|
+
message.items = object.items?.map((e) => e) || [];
|
|
33696
34444
|
return message;
|
|
33697
34445
|
}
|
|
33698
34446
|
};
|
|
@@ -34470,16 +35218,13 @@ var VolumeGetFileResponse = {
|
|
|
34470
35218
|
}
|
|
34471
35219
|
};
|
|
34472
35220
|
function createBaseVolumeGetOrCreateRequest() {
|
|
34473
|
-
return { deploymentName: "",
|
|
35221
|
+
return { deploymentName: "", environmentName: "", objectCreationType: 0, appId: "", version: 0 };
|
|
34474
35222
|
}
|
|
34475
35223
|
var VolumeGetOrCreateRequest = {
|
|
34476
35224
|
encode(message, writer = new BinaryWriter()) {
|
|
34477
35225
|
if (message.deploymentName !== "") {
|
|
34478
35226
|
writer.uint32(10).string(message.deploymentName);
|
|
34479
35227
|
}
|
|
34480
|
-
if (message.namespace !== 0) {
|
|
34481
|
-
writer.uint32(16).int32(message.namespace);
|
|
34482
|
-
}
|
|
34483
35228
|
if (message.environmentName !== "") {
|
|
34484
35229
|
writer.uint32(26).string(message.environmentName);
|
|
34485
35230
|
}
|
|
@@ -34508,13 +35253,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34508
35253
|
message.deploymentName = reader.string();
|
|
34509
35254
|
continue;
|
|
34510
35255
|
}
|
|
34511
|
-
case 2: {
|
|
34512
|
-
if (tag !== 16) {
|
|
34513
|
-
break;
|
|
34514
|
-
}
|
|
34515
|
-
message.namespace = reader.int32();
|
|
34516
|
-
continue;
|
|
34517
|
-
}
|
|
34518
35256
|
case 3: {
|
|
34519
35257
|
if (tag !== 26) {
|
|
34520
35258
|
break;
|
|
@@ -34554,7 +35292,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34554
35292
|
fromJSON(object) {
|
|
34555
35293
|
return {
|
|
34556
35294
|
deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
|
|
34557
|
-
namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
|
|
34558
35295
|
environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
34559
35296
|
objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
|
|
34560
35297
|
appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
|
|
@@ -34566,9 +35303,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34566
35303
|
if (message.deploymentName !== "") {
|
|
34567
35304
|
obj.deploymentName = message.deploymentName;
|
|
34568
35305
|
}
|
|
34569
|
-
if (message.namespace !== 0) {
|
|
34570
|
-
obj.namespace = deploymentNamespaceToJSON(message.namespace);
|
|
34571
|
-
}
|
|
34572
35306
|
if (message.environmentName !== "") {
|
|
34573
35307
|
obj.environmentName = message.environmentName;
|
|
34574
35308
|
}
|
|
@@ -34589,7 +35323,6 @@ var VolumeGetOrCreateRequest = {
|
|
|
34589
35323
|
fromPartial(object) {
|
|
34590
35324
|
const message = createBaseVolumeGetOrCreateRequest();
|
|
34591
35325
|
message.deploymentName = object.deploymentName ?? "";
|
|
34592
|
-
message.namespace = object.namespace ?? 0;
|
|
34593
35326
|
message.environmentName = object.environmentName ?? "";
|
|
34594
35327
|
message.objectCreationType = object.objectCreationType ?? 0;
|
|
34595
35328
|
message.appId = object.appId ?? "";
|
|
@@ -36842,6 +37575,14 @@ var ModalClientDefinition = {
|
|
|
36842
37575
|
responseStream: false,
|
|
36843
37576
|
options: {}
|
|
36844
37577
|
},
|
|
37578
|
+
containerReloadVolumes: {
|
|
37579
|
+
name: "ContainerReloadVolumes",
|
|
37580
|
+
requestType: ContainerReloadVolumesRequest,
|
|
37581
|
+
requestStream: false,
|
|
37582
|
+
responseType: ContainerReloadVolumesResponse,
|
|
37583
|
+
responseStream: false,
|
|
37584
|
+
options: {}
|
|
37585
|
+
},
|
|
36845
37586
|
containerStop: {
|
|
36846
37587
|
name: "ContainerStop",
|
|
36847
37588
|
requestType: ContainerStopRequest,
|
|
@@ -37005,6 +37746,31 @@ var ModalClientDefinition = {
|
|
|
37005
37746
|
responseStream: false,
|
|
37006
37747
|
options: {}
|
|
37007
37748
|
},
|
|
37749
|
+
/** Modal Flash (experimental) */
|
|
37750
|
+
flashContainerDeregister: {
|
|
37751
|
+
name: "FlashContainerDeregister",
|
|
37752
|
+
requestType: FlashContainerDeregisterRequest,
|
|
37753
|
+
requestStream: false,
|
|
37754
|
+
responseType: Empty,
|
|
37755
|
+
responseStream: false,
|
|
37756
|
+
options: {}
|
|
37757
|
+
},
|
|
37758
|
+
flashContainerList: {
|
|
37759
|
+
name: "FlashContainerList",
|
|
37760
|
+
requestType: FlashContainerListRequest,
|
|
37761
|
+
requestStream: false,
|
|
37762
|
+
responseType: FlashContainerListResponse,
|
|
37763
|
+
responseStream: false,
|
|
37764
|
+
options: {}
|
|
37765
|
+
},
|
|
37766
|
+
flashContainerRegister: {
|
|
37767
|
+
name: "FlashContainerRegister",
|
|
37768
|
+
requestType: FlashContainerRegisterRequest,
|
|
37769
|
+
requestStream: false,
|
|
37770
|
+
responseType: FlashContainerRegisterResponse,
|
|
37771
|
+
responseStream: false,
|
|
37772
|
+
options: {}
|
|
37773
|
+
},
|
|
37008
37774
|
/** Functions */
|
|
37009
37775
|
functionAsyncInvoke: {
|
|
37010
37776
|
name: "FunctionAsyncInvoke",
|
|
@@ -38177,6 +38943,12 @@ var SandboxFilesystemError = class extends Error {
|
|
|
38177
38943
|
this.name = "SandboxFilesystemError";
|
|
38178
38944
|
}
|
|
38179
38945
|
};
|
|
38946
|
+
var SandboxTimeoutError = class extends Error {
|
|
38947
|
+
constructor(message = "Sandbox operation timed out") {
|
|
38948
|
+
super(message);
|
|
38949
|
+
this.name = "SandboxTimeoutError";
|
|
38950
|
+
}
|
|
38951
|
+
};
|
|
38180
38952
|
|
|
38181
38953
|
// src/sandbox_filesystem.ts
|
|
38182
38954
|
var SandboxFile = class {
|
|
@@ -38389,12 +39161,43 @@ async function consumeIterator(iter) {
|
|
|
38389
39161
|
}
|
|
38390
39162
|
|
|
38391
39163
|
// src/sandbox.ts
|
|
39164
|
+
var Tunnel = class {
|
|
39165
|
+
/** @ignore */
|
|
39166
|
+
constructor(host, port, unencryptedHost, unencryptedPort) {
|
|
39167
|
+
this.host = host;
|
|
39168
|
+
this.port = port;
|
|
39169
|
+
this.unencryptedHost = unencryptedHost;
|
|
39170
|
+
this.unencryptedPort = unencryptedPort;
|
|
39171
|
+
}
|
|
39172
|
+
/** Get the public HTTPS URL of the forwarded port. */
|
|
39173
|
+
get url() {
|
|
39174
|
+
let value = `https://${this.host}`;
|
|
39175
|
+
if (this.port !== 443) {
|
|
39176
|
+
value += `:${this.port}`;
|
|
39177
|
+
}
|
|
39178
|
+
return value;
|
|
39179
|
+
}
|
|
39180
|
+
/** Get the public TLS socket as a [host, port] tuple. */
|
|
39181
|
+
get tlsSocket() {
|
|
39182
|
+
return [this.host, this.port];
|
|
39183
|
+
}
|
|
39184
|
+
/** Get the public TCP socket as a [host, port] tuple. */
|
|
39185
|
+
get tcpSocket() {
|
|
39186
|
+
if (!this.unencryptedHost || this.unencryptedPort === void 0) {
|
|
39187
|
+
throw new InvalidError(
|
|
39188
|
+
"This tunnel is not configured for unencrypted TCP."
|
|
39189
|
+
);
|
|
39190
|
+
}
|
|
39191
|
+
return [this.unencryptedHost, this.unencryptedPort];
|
|
39192
|
+
}
|
|
39193
|
+
};
|
|
38392
39194
|
var Sandbox2 = class {
|
|
38393
39195
|
sandboxId;
|
|
38394
39196
|
stdin;
|
|
38395
39197
|
stdout;
|
|
38396
39198
|
stderr;
|
|
38397
39199
|
#taskId;
|
|
39200
|
+
#tunnels;
|
|
38398
39201
|
/** @ignore */
|
|
38399
39202
|
constructor(sandboxId) {
|
|
38400
39203
|
this.sandboxId = sandboxId;
|
|
@@ -38472,6 +39275,35 @@ var Sandbox2 = class {
|
|
|
38472
39275
|
}
|
|
38473
39276
|
}
|
|
38474
39277
|
}
|
|
39278
|
+
/** Get Tunnel metadata for the sandbox.
|
|
39279
|
+
*
|
|
39280
|
+
* Raises `SandboxTimeoutError` if the tunnels are not available after the timeout.
|
|
39281
|
+
*
|
|
39282
|
+
* @returns A dictionary of Tunnel objects which are keyed by the container port.
|
|
39283
|
+
*/
|
|
39284
|
+
async tunnels(timeout = 5e4) {
|
|
39285
|
+
if (this.#tunnels) {
|
|
39286
|
+
return this.#tunnels;
|
|
39287
|
+
}
|
|
39288
|
+
const resp = await client.sandboxGetTunnels({
|
|
39289
|
+
sandboxId: this.sandboxId,
|
|
39290
|
+
timeout: timeout / 1e3
|
|
39291
|
+
// Convert to seconds
|
|
39292
|
+
});
|
|
39293
|
+
if (resp.result?.status === 4 /* GENERIC_STATUS_TIMEOUT */) {
|
|
39294
|
+
throw new SandboxTimeoutError();
|
|
39295
|
+
}
|
|
39296
|
+
this.#tunnels = {};
|
|
39297
|
+
for (const t of resp.tunnels) {
|
|
39298
|
+
this.#tunnels[t.containerPort] = new Tunnel(
|
|
39299
|
+
t.host,
|
|
39300
|
+
t.port,
|
|
39301
|
+
t.unencryptedHost,
|
|
39302
|
+
t.unencryptedPort
|
|
39303
|
+
);
|
|
39304
|
+
}
|
|
39305
|
+
return this.#tunnels;
|
|
39306
|
+
}
|
|
38475
39307
|
};
|
|
38476
39308
|
var ContainerProcess = class {
|
|
38477
39309
|
stdin;
|
|
@@ -38686,6 +39518,32 @@ var App = class _App {
|
|
|
38686
39518
|
allowBackgroundCommits: true,
|
|
38687
39519
|
readOnly: false
|
|
38688
39520
|
})) : [];
|
|
39521
|
+
const openPorts = [];
|
|
39522
|
+
if (options.encryptedPorts) {
|
|
39523
|
+
openPorts.push(
|
|
39524
|
+
...options.encryptedPorts.map((port) => ({
|
|
39525
|
+
port,
|
|
39526
|
+
unencrypted: false
|
|
39527
|
+
}))
|
|
39528
|
+
);
|
|
39529
|
+
}
|
|
39530
|
+
if (options.h2Ports) {
|
|
39531
|
+
openPorts.push(
|
|
39532
|
+
...options.h2Ports.map((port) => ({
|
|
39533
|
+
port,
|
|
39534
|
+
unencrypted: false,
|
|
39535
|
+
tunnelType: 1 /* TUNNEL_TYPE_H2 */
|
|
39536
|
+
}))
|
|
39537
|
+
);
|
|
39538
|
+
}
|
|
39539
|
+
if (options.unencryptedPorts) {
|
|
39540
|
+
openPorts.push(
|
|
39541
|
+
...options.unencryptedPorts.map((port) => ({
|
|
39542
|
+
port,
|
|
39543
|
+
unencrypted: true
|
|
39544
|
+
}))
|
|
39545
|
+
);
|
|
39546
|
+
}
|
|
38689
39547
|
const createResp = await client.sandboxCreate({
|
|
38690
39548
|
appId: this.appId,
|
|
38691
39549
|
definition: {
|
|
@@ -38701,7 +39559,8 @@ var App = class _App {
|
|
|
38701
39559
|
milliCpu: Math.round(1e3 * (options.cpu ?? 0.125)),
|
|
38702
39560
|
memoryMb: options.memory ?? 128
|
|
38703
39561
|
},
|
|
38704
|
-
volumeMounts
|
|
39562
|
+
volumeMounts,
|
|
39563
|
+
openPorts: openPorts.length > 0 ? { ports: openPorts } : void 0
|
|
38705
39564
|
}
|
|
38706
39565
|
});
|
|
38707
39566
|
return new Sandbox2(createResp.sandboxId);
|
|
@@ -39327,12 +40186,12 @@ var maxSystemRetries = 8;
|
|
|
39327
40186
|
var Function_ = class _Function_ {
|
|
39328
40187
|
functionId;
|
|
39329
40188
|
methodName;
|
|
39330
|
-
inputPlaneUrl;
|
|
40189
|
+
#inputPlaneUrl;
|
|
39331
40190
|
/** @ignore */
|
|
39332
40191
|
constructor(functionId, methodName, inputPlaneUrl) {
|
|
39333
40192
|
this.functionId = functionId;
|
|
39334
40193
|
this.methodName = methodName;
|
|
39335
|
-
this
|
|
40194
|
+
this.#inputPlaneUrl = inputPlaneUrl;
|
|
39336
40195
|
}
|
|
39337
40196
|
static async lookup(appName, name, options = {}) {
|
|
39338
40197
|
try {
|
|
@@ -39371,9 +40230,9 @@ var Function_ = class _Function_ {
|
|
|
39371
40230
|
}
|
|
39372
40231
|
}
|
|
39373
40232
|
async #createRemoteInvocation(input) {
|
|
39374
|
-
if (this
|
|
40233
|
+
if (this.#inputPlaneUrl) {
|
|
39375
40234
|
return await InputPlaneInvocation.create(
|
|
39376
|
-
this
|
|
40235
|
+
this.#inputPlaneUrl,
|
|
39377
40236
|
this.functionId,
|
|
39378
40237
|
input
|
|
39379
40238
|
);
|
|
@@ -39871,6 +40730,7 @@ var Volume = class _Volume {
|
|
|
39871
40730
|
RemoteError,
|
|
39872
40731
|
Sandbox,
|
|
39873
40732
|
SandboxFile,
|
|
40733
|
+
SandboxTimeoutError,
|
|
39874
40734
|
Secret,
|
|
39875
40735
|
Volume,
|
|
39876
40736
|
initializeClient
|