modal 0.10.1 → 0.10.2-dev.1
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 +2633 -634
- package/dist/index.d.cts +207 -13
- package/dist/index.d.ts +207 -13
- package/dist/index.js +2633 -634
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2493,8 +2493,8 @@ function identityProviderTypeFromJSON(object) {
|
|
|
2493
2493
|
case "IDENTITY_PROVIDER_TYPE_GITHUB":
|
|
2494
2494
|
return 1 /* IDENTITY_PROVIDER_TYPE_GITHUB */;
|
|
2495
2495
|
case 2:
|
|
2496
|
-
case "
|
|
2497
|
-
return 2 /*
|
|
2496
|
+
case "IDENTITY_PROVIDER_TYPE_SAML":
|
|
2497
|
+
return 2 /* IDENTITY_PROVIDER_TYPE_SAML */;
|
|
2498
2498
|
case 3:
|
|
2499
2499
|
case "IDENTITY_PROVIDER_TYPE_GOOGLE_OAUTH":
|
|
2500
2500
|
return 3 /* IDENTITY_PROVIDER_TYPE_GOOGLE_OAUTH */;
|
|
@@ -2510,8 +2510,8 @@ function identityProviderTypeToJSON(object) {
|
|
|
2510
2510
|
return "IDENTITY_PROVIDER_TYPE_UNSPECIFIED";
|
|
2511
2511
|
case 1 /* IDENTITY_PROVIDER_TYPE_GITHUB */:
|
|
2512
2512
|
return "IDENTITY_PROVIDER_TYPE_GITHUB";
|
|
2513
|
-
case 2 /*
|
|
2514
|
-
return "
|
|
2513
|
+
case 2 /* IDENTITY_PROVIDER_TYPE_SAML */:
|
|
2514
|
+
return "IDENTITY_PROVIDER_TYPE_SAML";
|
|
2515
2515
|
case 3 /* IDENTITY_PROVIDER_TYPE_GOOGLE_OAUTH */:
|
|
2516
2516
|
return "IDENTITY_PROVIDER_TYPE_GOOGLE_OAUTH";
|
|
2517
2517
|
case -1 /* UNRECOGNIZED */:
|
|
@@ -2519,6 +2519,36 @@ function identityProviderTypeToJSON(object) {
|
|
|
2519
2519
|
return "UNRECOGNIZED";
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
|
+
function lLMEngineFromJSON(object) {
|
|
2523
|
+
switch (object) {
|
|
2524
|
+
case 0:
|
|
2525
|
+
case "LLM_ENGINE_UNSPECIFIED":
|
|
2526
|
+
return 0 /* LLM_ENGINE_UNSPECIFIED */;
|
|
2527
|
+
case 1:
|
|
2528
|
+
case "LLM_ENGINE_SGLANG":
|
|
2529
|
+
return 1 /* LLM_ENGINE_SGLANG */;
|
|
2530
|
+
case 2:
|
|
2531
|
+
case "LLM_ENGINE_VLLM":
|
|
2532
|
+
return 2 /* LLM_ENGINE_VLLM */;
|
|
2533
|
+
case -1:
|
|
2534
|
+
case "UNRECOGNIZED":
|
|
2535
|
+
default:
|
|
2536
|
+
return -1 /* UNRECOGNIZED */;
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
function lLMEngineToJSON(object) {
|
|
2540
|
+
switch (object) {
|
|
2541
|
+
case 0 /* LLM_ENGINE_UNSPECIFIED */:
|
|
2542
|
+
return "LLM_ENGINE_UNSPECIFIED";
|
|
2543
|
+
case 1 /* LLM_ENGINE_SGLANG */:
|
|
2544
|
+
return "LLM_ENGINE_SGLANG";
|
|
2545
|
+
case 2 /* LLM_ENGINE_VLLM */:
|
|
2546
|
+
return "LLM_ENGINE_VLLM";
|
|
2547
|
+
case -1 /* UNRECOGNIZED */:
|
|
2548
|
+
default:
|
|
2549
|
+
return "UNRECOGNIZED";
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2522
2552
|
function memberRoleFromJSON(object) {
|
|
2523
2553
|
switch (object) {
|
|
2524
2554
|
case 0:
|
|
@@ -2829,6 +2859,41 @@ function seekWhenceToJSON(object) {
|
|
|
2829
2859
|
return "UNRECOGNIZED";
|
|
2830
2860
|
}
|
|
2831
2861
|
}
|
|
2862
|
+
function serverInferenceStatsStatusFromJSON(object) {
|
|
2863
|
+
switch (object) {
|
|
2864
|
+
case 0:
|
|
2865
|
+
case "SERVER_INFERENCE_STATS_STATUS_UNSPECIFIED":
|
|
2866
|
+
return 0 /* SERVER_INFERENCE_STATS_STATUS_UNSPECIFIED */;
|
|
2867
|
+
case 1:
|
|
2868
|
+
case "SERVER_INFERENCE_STATS_STATUS_AVAILABLE":
|
|
2869
|
+
return 1 /* SERVER_INFERENCE_STATS_STATUS_AVAILABLE */;
|
|
2870
|
+
case 2:
|
|
2871
|
+
case "SERVER_INFERENCE_STATS_STATUS_NO_DATA":
|
|
2872
|
+
return 2 /* SERVER_INFERENCE_STATS_STATUS_NO_DATA */;
|
|
2873
|
+
case 3:
|
|
2874
|
+
case "SERVER_INFERENCE_STATS_STATUS_UNAVAILABLE":
|
|
2875
|
+
return 3 /* SERVER_INFERENCE_STATS_STATUS_UNAVAILABLE */;
|
|
2876
|
+
case -1:
|
|
2877
|
+
case "UNRECOGNIZED":
|
|
2878
|
+
default:
|
|
2879
|
+
return -1 /* UNRECOGNIZED */;
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
function serverInferenceStatsStatusToJSON(object) {
|
|
2883
|
+
switch (object) {
|
|
2884
|
+
case 0 /* SERVER_INFERENCE_STATS_STATUS_UNSPECIFIED */:
|
|
2885
|
+
return "SERVER_INFERENCE_STATS_STATUS_UNSPECIFIED";
|
|
2886
|
+
case 1 /* SERVER_INFERENCE_STATS_STATUS_AVAILABLE */:
|
|
2887
|
+
return "SERVER_INFERENCE_STATS_STATUS_AVAILABLE";
|
|
2888
|
+
case 2 /* SERVER_INFERENCE_STATS_STATUS_NO_DATA */:
|
|
2889
|
+
return "SERVER_INFERENCE_STATS_STATUS_NO_DATA";
|
|
2890
|
+
case 3 /* SERVER_INFERENCE_STATS_STATUS_UNAVAILABLE */:
|
|
2891
|
+
return "SERVER_INFERENCE_STATS_STATUS_UNAVAILABLE";
|
|
2892
|
+
case -1 /* UNRECOGNIZED */:
|
|
2893
|
+
default:
|
|
2894
|
+
return "UNRECOGNIZED";
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2832
2897
|
function systemErrorCodeFromJSON(object) {
|
|
2833
2898
|
switch (object) {
|
|
2834
2899
|
case 0:
|
|
@@ -3154,6 +3219,36 @@ function webhookTypeToJSON(object) {
|
|
|
3154
3219
|
return "UNRECOGNIZED";
|
|
3155
3220
|
}
|
|
3156
3221
|
}
|
|
3222
|
+
function blobUploadResult_OutcomeFromJSON(object) {
|
|
3223
|
+
switch (object) {
|
|
3224
|
+
case 0:
|
|
3225
|
+
case "OUTCOME_UNSPECIFIED":
|
|
3226
|
+
return 0 /* OUTCOME_UNSPECIFIED */;
|
|
3227
|
+
case 1:
|
|
3228
|
+
case "OUTCOME_SUCCESS":
|
|
3229
|
+
return 1 /* OUTCOME_SUCCESS */;
|
|
3230
|
+
case 2:
|
|
3231
|
+
case "OUTCOME_FAILURE":
|
|
3232
|
+
return 2 /* OUTCOME_FAILURE */;
|
|
3233
|
+
case -1:
|
|
3234
|
+
case "UNRECOGNIZED":
|
|
3235
|
+
default:
|
|
3236
|
+
return -1 /* UNRECOGNIZED */;
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
function blobUploadResult_OutcomeToJSON(object) {
|
|
3240
|
+
switch (object) {
|
|
3241
|
+
case 0 /* OUTCOME_UNSPECIFIED */:
|
|
3242
|
+
return "OUTCOME_UNSPECIFIED";
|
|
3243
|
+
case 1 /* OUTCOME_SUCCESS */:
|
|
3244
|
+
return "OUTCOME_SUCCESS";
|
|
3245
|
+
case 2 /* OUTCOME_FAILURE */:
|
|
3246
|
+
return "OUTCOME_FAILURE";
|
|
3247
|
+
case -1 /* UNRECOGNIZED */:
|
|
3248
|
+
default:
|
|
3249
|
+
return "UNRECOGNIZED";
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3157
3252
|
function classParameterInfo_ParameterSerializationFormatFromJSON(object) {
|
|
3158
3253
|
switch (object) {
|
|
3159
3254
|
case 0:
|
|
@@ -3693,7 +3788,8 @@ function createBaseAppCountLogsRequest() {
|
|
|
3693
3788
|
since: void 0,
|
|
3694
3789
|
until: void 0,
|
|
3695
3790
|
bucketSecs: 0,
|
|
3696
|
-
source: 0
|
|
3791
|
+
source: 0,
|
|
3792
|
+
parametrizedFunctionId: ""
|
|
3697
3793
|
};
|
|
3698
3794
|
}
|
|
3699
3795
|
var AppCountLogsRequest = {
|
|
@@ -3728,6 +3824,9 @@ var AppCountLogsRequest = {
|
|
|
3728
3824
|
if (message.source !== 0) {
|
|
3729
3825
|
writer.uint32(80).int32(message.source);
|
|
3730
3826
|
}
|
|
3827
|
+
if (message.parametrizedFunctionId !== "") {
|
|
3828
|
+
writer.uint32(90).string(message.parametrizedFunctionId);
|
|
3829
|
+
}
|
|
3731
3830
|
return writer;
|
|
3732
3831
|
},
|
|
3733
3832
|
decode(input, length) {
|
|
@@ -3807,6 +3906,13 @@ var AppCountLogsRequest = {
|
|
|
3807
3906
|
message.source = reader.int32();
|
|
3808
3907
|
continue;
|
|
3809
3908
|
}
|
|
3909
|
+
case 11: {
|
|
3910
|
+
if (tag !== 90) {
|
|
3911
|
+
break;
|
|
3912
|
+
}
|
|
3913
|
+
message.parametrizedFunctionId = reader.string();
|
|
3914
|
+
continue;
|
|
3915
|
+
}
|
|
3810
3916
|
}
|
|
3811
3917
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3812
3918
|
break;
|
|
@@ -3826,7 +3932,8 @@ var AppCountLogsRequest = {
|
|
|
3826
3932
|
since: isSet5(object.since) ? fromJsonTimestamp(object.since) : void 0,
|
|
3827
3933
|
until: isSet5(object.until) ? fromJsonTimestamp(object.until) : void 0,
|
|
3828
3934
|
bucketSecs: isSet5(object.bucketSecs) ? globalThis.Number(object.bucketSecs) : 0,
|
|
3829
|
-
source: isSet5(object.source) ? fileDescriptorFromJSON(object.source) : 0
|
|
3935
|
+
source: isSet5(object.source) ? fileDescriptorFromJSON(object.source) : 0,
|
|
3936
|
+
parametrizedFunctionId: isSet5(object.parametrizedFunctionId) ? globalThis.String(object.parametrizedFunctionId) : ""
|
|
3830
3937
|
};
|
|
3831
3938
|
},
|
|
3832
3939
|
toJSON(message) {
|
|
@@ -3861,6 +3968,9 @@ var AppCountLogsRequest = {
|
|
|
3861
3968
|
if (message.source !== 0) {
|
|
3862
3969
|
obj.source = fileDescriptorToJSON(message.source);
|
|
3863
3970
|
}
|
|
3971
|
+
if (message.parametrizedFunctionId !== "") {
|
|
3972
|
+
obj.parametrizedFunctionId = message.parametrizedFunctionId;
|
|
3973
|
+
}
|
|
3864
3974
|
return obj;
|
|
3865
3975
|
},
|
|
3866
3976
|
create(base) {
|
|
@@ -3878,6 +3988,7 @@ var AppCountLogsRequest = {
|
|
|
3878
3988
|
message.until = object.until ?? void 0;
|
|
3879
3989
|
message.bucketSecs = object.bucketSecs ?? 0;
|
|
3880
3990
|
message.source = object.source ?? 0;
|
|
3991
|
+
message.parametrizedFunctionId = object.parametrizedFunctionId ?? "";
|
|
3881
3992
|
return message;
|
|
3882
3993
|
}
|
|
3883
3994
|
};
|
|
@@ -4837,7 +4948,8 @@ function createBaseAppFetchLogsRequest() {
|
|
|
4837
4948
|
functionCallId: "",
|
|
4838
4949
|
taskId: "",
|
|
4839
4950
|
sandboxId: "",
|
|
4840
|
-
searchText: ""
|
|
4951
|
+
searchText: "",
|
|
4952
|
+
parametrizedFunctionId: ""
|
|
4841
4953
|
};
|
|
4842
4954
|
}
|
|
4843
4955
|
var AppFetchLogsRequest = {
|
|
@@ -4872,6 +4984,9 @@ var AppFetchLogsRequest = {
|
|
|
4872
4984
|
if (message.searchText !== "") {
|
|
4873
4985
|
writer.uint32(82).string(message.searchText);
|
|
4874
4986
|
}
|
|
4987
|
+
if (message.parametrizedFunctionId !== "") {
|
|
4988
|
+
writer.uint32(90).string(message.parametrizedFunctionId);
|
|
4989
|
+
}
|
|
4875
4990
|
return writer;
|
|
4876
4991
|
},
|
|
4877
4992
|
decode(input, length) {
|
|
@@ -4951,6 +5066,13 @@ var AppFetchLogsRequest = {
|
|
|
4951
5066
|
message.searchText = reader.string();
|
|
4952
5067
|
continue;
|
|
4953
5068
|
}
|
|
5069
|
+
case 11: {
|
|
5070
|
+
if (tag !== 90) {
|
|
5071
|
+
break;
|
|
5072
|
+
}
|
|
5073
|
+
message.parametrizedFunctionId = reader.string();
|
|
5074
|
+
continue;
|
|
5075
|
+
}
|
|
4954
5076
|
}
|
|
4955
5077
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4956
5078
|
break;
|
|
@@ -4970,7 +5092,8 @@ var AppFetchLogsRequest = {
|
|
|
4970
5092
|
functionCallId: isSet5(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
4971
5093
|
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
4972
5094
|
sandboxId: isSet5(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
4973
|
-
searchText: isSet5(object.searchText) ? globalThis.String(object.searchText) : ""
|
|
5095
|
+
searchText: isSet5(object.searchText) ? globalThis.String(object.searchText) : "",
|
|
5096
|
+
parametrizedFunctionId: isSet5(object.parametrizedFunctionId) ? globalThis.String(object.parametrizedFunctionId) : ""
|
|
4974
5097
|
};
|
|
4975
5098
|
},
|
|
4976
5099
|
toJSON(message) {
|
|
@@ -5005,6 +5128,9 @@ var AppFetchLogsRequest = {
|
|
|
5005
5128
|
if (message.searchText !== "") {
|
|
5006
5129
|
obj.searchText = message.searchText;
|
|
5007
5130
|
}
|
|
5131
|
+
if (message.parametrizedFunctionId !== "") {
|
|
5132
|
+
obj.parametrizedFunctionId = message.parametrizedFunctionId;
|
|
5133
|
+
}
|
|
5008
5134
|
return obj;
|
|
5009
5135
|
},
|
|
5010
5136
|
create(base) {
|
|
@@ -5022,6 +5148,7 @@ var AppFetchLogsRequest = {
|
|
|
5022
5148
|
message.taskId = object.taskId ?? "";
|
|
5023
5149
|
message.sandboxId = object.sandboxId ?? "";
|
|
5024
5150
|
message.searchText = object.searchText ?? "";
|
|
5151
|
+
message.parametrizedFunctionId = object.parametrizedFunctionId ?? "";
|
|
5025
5152
|
return message;
|
|
5026
5153
|
}
|
|
5027
5154
|
};
|
|
@@ -5296,13 +5423,16 @@ var AppGetInfoRequest = {
|
|
|
5296
5423
|
}
|
|
5297
5424
|
};
|
|
5298
5425
|
function createBaseAppGetInfoResponse() {
|
|
5299
|
-
return { info: void 0 };
|
|
5426
|
+
return { info: void 0, functionInfoSummaries: {} };
|
|
5300
5427
|
}
|
|
5301
5428
|
var AppGetInfoResponse = {
|
|
5302
5429
|
encode(message, writer = new BinaryWriter()) {
|
|
5303
5430
|
if (message.info !== void 0) {
|
|
5304
5431
|
AppHandleMetadata.encode(message.info, writer.uint32(10).fork()).join();
|
|
5305
5432
|
}
|
|
5433
|
+
Object.entries(message.functionInfoSummaries).forEach(([key, value]) => {
|
|
5434
|
+
AppGetInfoResponse_FunctionInfoSummariesEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
5435
|
+
});
|
|
5306
5436
|
return writer;
|
|
5307
5437
|
},
|
|
5308
5438
|
decode(input, length) {
|
|
@@ -5319,6 +5449,16 @@ var AppGetInfoResponse = {
|
|
|
5319
5449
|
message.info = AppHandleMetadata.decode(reader, reader.uint32());
|
|
5320
5450
|
continue;
|
|
5321
5451
|
}
|
|
5452
|
+
case 2: {
|
|
5453
|
+
if (tag !== 18) {
|
|
5454
|
+
break;
|
|
5455
|
+
}
|
|
5456
|
+
const entry2 = AppGetInfoResponse_FunctionInfoSummariesEntry.decode(reader, reader.uint32());
|
|
5457
|
+
if (entry2.value !== void 0) {
|
|
5458
|
+
message.functionInfoSummaries[entry2.key] = entry2.value;
|
|
5459
|
+
}
|
|
5460
|
+
continue;
|
|
5461
|
+
}
|
|
5322
5462
|
}
|
|
5323
5463
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5324
5464
|
break;
|
|
@@ -5328,13 +5468,28 @@ var AppGetInfoResponse = {
|
|
|
5328
5468
|
return message;
|
|
5329
5469
|
},
|
|
5330
5470
|
fromJSON(object) {
|
|
5331
|
-
return {
|
|
5471
|
+
return {
|
|
5472
|
+
info: isSet5(object.info) ? AppHandleMetadata.fromJSON(object.info) : void 0,
|
|
5473
|
+
functionInfoSummaries: isObject2(object.functionInfoSummaries) ? Object.entries(object.functionInfoSummaries).reduce((acc, [key, value]) => {
|
|
5474
|
+
acc[key] = AppGetInfoResponse_FunctionInfoSummary.fromJSON(value);
|
|
5475
|
+
return acc;
|
|
5476
|
+
}, {}) : {}
|
|
5477
|
+
};
|
|
5332
5478
|
},
|
|
5333
5479
|
toJSON(message) {
|
|
5334
5480
|
const obj = {};
|
|
5335
5481
|
if (message.info !== void 0) {
|
|
5336
5482
|
obj.info = AppHandleMetadata.toJSON(message.info);
|
|
5337
5483
|
}
|
|
5484
|
+
if (message.functionInfoSummaries) {
|
|
5485
|
+
const entries = Object.entries(message.functionInfoSummaries);
|
|
5486
|
+
if (entries.length > 0) {
|
|
5487
|
+
obj.functionInfoSummaries = {};
|
|
5488
|
+
entries.forEach(([k, v]) => {
|
|
5489
|
+
obj.functionInfoSummaries[k] = AppGetInfoResponse_FunctionInfoSummary.toJSON(v);
|
|
5490
|
+
});
|
|
5491
|
+
}
|
|
5492
|
+
}
|
|
5338
5493
|
return obj;
|
|
5339
5494
|
},
|
|
5340
5495
|
create(base) {
|
|
@@ -5343,6 +5498,178 @@ var AppGetInfoResponse = {
|
|
|
5343
5498
|
fromPartial(object) {
|
|
5344
5499
|
const message = createBaseAppGetInfoResponse();
|
|
5345
5500
|
message.info = object.info !== void 0 && object.info !== null ? AppHandleMetadata.fromPartial(object.info) : void 0;
|
|
5501
|
+
message.functionInfoSummaries = Object.entries(object.functionInfoSummaries ?? {}).reduce((acc, [key, value]) => {
|
|
5502
|
+
if (value !== void 0) {
|
|
5503
|
+
acc[key] = AppGetInfoResponse_FunctionInfoSummary.fromPartial(value);
|
|
5504
|
+
}
|
|
5505
|
+
return acc;
|
|
5506
|
+
}, {});
|
|
5507
|
+
return message;
|
|
5508
|
+
}
|
|
5509
|
+
};
|
|
5510
|
+
function createBaseAppGetInfoResponse_FunctionInfoSummary() {
|
|
5511
|
+
return { gpuConfig: [], schedule: void 0, webFunction: false, requiresProxyAuth: void 0 };
|
|
5512
|
+
}
|
|
5513
|
+
var AppGetInfoResponse_FunctionInfoSummary = {
|
|
5514
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5515
|
+
for (const v of message.gpuConfig) {
|
|
5516
|
+
GPUConfig.encode(v, writer.uint32(10).fork()).join();
|
|
5517
|
+
}
|
|
5518
|
+
if (message.schedule !== void 0) {
|
|
5519
|
+
Schedule.encode(message.schedule, writer.uint32(18).fork()).join();
|
|
5520
|
+
}
|
|
5521
|
+
if (message.webFunction !== false) {
|
|
5522
|
+
writer.uint32(24).bool(message.webFunction);
|
|
5523
|
+
}
|
|
5524
|
+
if (message.requiresProxyAuth !== void 0) {
|
|
5525
|
+
writer.uint32(32).bool(message.requiresProxyAuth);
|
|
5526
|
+
}
|
|
5527
|
+
return writer;
|
|
5528
|
+
},
|
|
5529
|
+
decode(input, length) {
|
|
5530
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5531
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5532
|
+
const message = createBaseAppGetInfoResponse_FunctionInfoSummary();
|
|
5533
|
+
while (reader.pos < end) {
|
|
5534
|
+
const tag = reader.uint32();
|
|
5535
|
+
switch (tag >>> 3) {
|
|
5536
|
+
case 1: {
|
|
5537
|
+
if (tag !== 10) {
|
|
5538
|
+
break;
|
|
5539
|
+
}
|
|
5540
|
+
message.gpuConfig.push(GPUConfig.decode(reader, reader.uint32()));
|
|
5541
|
+
continue;
|
|
5542
|
+
}
|
|
5543
|
+
case 2: {
|
|
5544
|
+
if (tag !== 18) {
|
|
5545
|
+
break;
|
|
5546
|
+
}
|
|
5547
|
+
message.schedule = Schedule.decode(reader, reader.uint32());
|
|
5548
|
+
continue;
|
|
5549
|
+
}
|
|
5550
|
+
case 3: {
|
|
5551
|
+
if (tag !== 24) {
|
|
5552
|
+
break;
|
|
5553
|
+
}
|
|
5554
|
+
message.webFunction = reader.bool();
|
|
5555
|
+
continue;
|
|
5556
|
+
}
|
|
5557
|
+
case 4: {
|
|
5558
|
+
if (tag !== 32) {
|
|
5559
|
+
break;
|
|
5560
|
+
}
|
|
5561
|
+
message.requiresProxyAuth = reader.bool();
|
|
5562
|
+
continue;
|
|
5563
|
+
}
|
|
5564
|
+
}
|
|
5565
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5566
|
+
break;
|
|
5567
|
+
}
|
|
5568
|
+
reader.skip(tag & 7);
|
|
5569
|
+
}
|
|
5570
|
+
return message;
|
|
5571
|
+
},
|
|
5572
|
+
fromJSON(object) {
|
|
5573
|
+
return {
|
|
5574
|
+
gpuConfig: globalThis.Array.isArray(object?.gpuConfig) ? object.gpuConfig.map((e) => GPUConfig.fromJSON(e)) : [],
|
|
5575
|
+
schedule: isSet5(object.schedule) ? Schedule.fromJSON(object.schedule) : void 0,
|
|
5576
|
+
webFunction: isSet5(object.webFunction) ? globalThis.Boolean(object.webFunction) : false,
|
|
5577
|
+
requiresProxyAuth: isSet5(object.requiresProxyAuth) ? globalThis.Boolean(object.requiresProxyAuth) : void 0
|
|
5578
|
+
};
|
|
5579
|
+
},
|
|
5580
|
+
toJSON(message) {
|
|
5581
|
+
const obj = {};
|
|
5582
|
+
if (message.gpuConfig?.length) {
|
|
5583
|
+
obj.gpuConfig = message.gpuConfig.map((e) => GPUConfig.toJSON(e));
|
|
5584
|
+
}
|
|
5585
|
+
if (message.schedule !== void 0) {
|
|
5586
|
+
obj.schedule = Schedule.toJSON(message.schedule);
|
|
5587
|
+
}
|
|
5588
|
+
if (message.webFunction !== false) {
|
|
5589
|
+
obj.webFunction = message.webFunction;
|
|
5590
|
+
}
|
|
5591
|
+
if (message.requiresProxyAuth !== void 0) {
|
|
5592
|
+
obj.requiresProxyAuth = message.requiresProxyAuth;
|
|
5593
|
+
}
|
|
5594
|
+
return obj;
|
|
5595
|
+
},
|
|
5596
|
+
create(base) {
|
|
5597
|
+
return AppGetInfoResponse_FunctionInfoSummary.fromPartial(base ?? {});
|
|
5598
|
+
},
|
|
5599
|
+
fromPartial(object) {
|
|
5600
|
+
const message = createBaseAppGetInfoResponse_FunctionInfoSummary();
|
|
5601
|
+
message.gpuConfig = object.gpuConfig?.map((e) => GPUConfig.fromPartial(e)) || [];
|
|
5602
|
+
message.schedule = object.schedule !== void 0 && object.schedule !== null ? Schedule.fromPartial(object.schedule) : void 0;
|
|
5603
|
+
message.webFunction = object.webFunction ?? false;
|
|
5604
|
+
message.requiresProxyAuth = object.requiresProxyAuth ?? void 0;
|
|
5605
|
+
return message;
|
|
5606
|
+
}
|
|
5607
|
+
};
|
|
5608
|
+
function createBaseAppGetInfoResponse_FunctionInfoSummariesEntry() {
|
|
5609
|
+
return { key: "", value: void 0 };
|
|
5610
|
+
}
|
|
5611
|
+
var AppGetInfoResponse_FunctionInfoSummariesEntry = {
|
|
5612
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5613
|
+
if (message.key !== "") {
|
|
5614
|
+
writer.uint32(10).string(message.key);
|
|
5615
|
+
}
|
|
5616
|
+
if (message.value !== void 0) {
|
|
5617
|
+
AppGetInfoResponse_FunctionInfoSummary.encode(message.value, writer.uint32(18).fork()).join();
|
|
5618
|
+
}
|
|
5619
|
+
return writer;
|
|
5620
|
+
},
|
|
5621
|
+
decode(input, length) {
|
|
5622
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5623
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5624
|
+
const message = createBaseAppGetInfoResponse_FunctionInfoSummariesEntry();
|
|
5625
|
+
while (reader.pos < end) {
|
|
5626
|
+
const tag = reader.uint32();
|
|
5627
|
+
switch (tag >>> 3) {
|
|
5628
|
+
case 1: {
|
|
5629
|
+
if (tag !== 10) {
|
|
5630
|
+
break;
|
|
5631
|
+
}
|
|
5632
|
+
message.key = reader.string();
|
|
5633
|
+
continue;
|
|
5634
|
+
}
|
|
5635
|
+
case 2: {
|
|
5636
|
+
if (tag !== 18) {
|
|
5637
|
+
break;
|
|
5638
|
+
}
|
|
5639
|
+
message.value = AppGetInfoResponse_FunctionInfoSummary.decode(reader, reader.uint32());
|
|
5640
|
+
continue;
|
|
5641
|
+
}
|
|
5642
|
+
}
|
|
5643
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5644
|
+
break;
|
|
5645
|
+
}
|
|
5646
|
+
reader.skip(tag & 7);
|
|
5647
|
+
}
|
|
5648
|
+
return message;
|
|
5649
|
+
},
|
|
5650
|
+
fromJSON(object) {
|
|
5651
|
+
return {
|
|
5652
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
5653
|
+
value: isSet5(object.value) ? AppGetInfoResponse_FunctionInfoSummary.fromJSON(object.value) : void 0
|
|
5654
|
+
};
|
|
5655
|
+
},
|
|
5656
|
+
toJSON(message) {
|
|
5657
|
+
const obj = {};
|
|
5658
|
+
if (message.key !== "") {
|
|
5659
|
+
obj.key = message.key;
|
|
5660
|
+
}
|
|
5661
|
+
if (message.value !== void 0) {
|
|
5662
|
+
obj.value = AppGetInfoResponse_FunctionInfoSummary.toJSON(message.value);
|
|
5663
|
+
}
|
|
5664
|
+
return obj;
|
|
5665
|
+
},
|
|
5666
|
+
create(base) {
|
|
5667
|
+
return AppGetInfoResponse_FunctionInfoSummariesEntry.fromPartial(base ?? {});
|
|
5668
|
+
},
|
|
5669
|
+
fromPartial(object) {
|
|
5670
|
+
const message = createBaseAppGetInfoResponse_FunctionInfoSummariesEntry();
|
|
5671
|
+
message.key = object.key ?? "";
|
|
5672
|
+
message.value = object.value !== void 0 && object.value !== null ? AppGetInfoResponse_FunctionInfoSummary.fromPartial(object.value) : void 0;
|
|
5346
5673
|
return message;
|
|
5347
5674
|
}
|
|
5348
5675
|
};
|
|
@@ -9521,6 +9848,213 @@ var AuthTokenGetResponse = {
|
|
|
9521
9848
|
return message;
|
|
9522
9849
|
}
|
|
9523
9850
|
};
|
|
9851
|
+
function createBaseAutoscalerConfiguration() {
|
|
9852
|
+
return {
|
|
9853
|
+
settings: void 0,
|
|
9854
|
+
overrideEvents: {},
|
|
9855
|
+
defaultSettings: void 0,
|
|
9856
|
+
staticSettings: void 0,
|
|
9857
|
+
overrideSettings: void 0
|
|
9858
|
+
};
|
|
9859
|
+
}
|
|
9860
|
+
var AutoscalerConfiguration = {
|
|
9861
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9862
|
+
if (message.settings !== void 0) {
|
|
9863
|
+
AutoscalerSettings.encode(message.settings, writer.uint32(10).fork()).join();
|
|
9864
|
+
}
|
|
9865
|
+
Object.entries(message.overrideEvents).forEach(([key, value]) => {
|
|
9866
|
+
AutoscalerConfiguration_OverrideEventsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
9867
|
+
});
|
|
9868
|
+
if (message.defaultSettings !== void 0) {
|
|
9869
|
+
AutoscalerSettings.encode(message.defaultSettings, writer.uint32(26).fork()).join();
|
|
9870
|
+
}
|
|
9871
|
+
if (message.staticSettings !== void 0) {
|
|
9872
|
+
AutoscalerSettings.encode(message.staticSettings, writer.uint32(34).fork()).join();
|
|
9873
|
+
}
|
|
9874
|
+
if (message.overrideSettings !== void 0) {
|
|
9875
|
+
AutoscalerSettings.encode(message.overrideSettings, writer.uint32(42).fork()).join();
|
|
9876
|
+
}
|
|
9877
|
+
return writer;
|
|
9878
|
+
},
|
|
9879
|
+
decode(input, length) {
|
|
9880
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9881
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9882
|
+
const message = createBaseAutoscalerConfiguration();
|
|
9883
|
+
while (reader.pos < end) {
|
|
9884
|
+
const tag = reader.uint32();
|
|
9885
|
+
switch (tag >>> 3) {
|
|
9886
|
+
case 1: {
|
|
9887
|
+
if (tag !== 10) {
|
|
9888
|
+
break;
|
|
9889
|
+
}
|
|
9890
|
+
message.settings = AutoscalerSettings.decode(reader, reader.uint32());
|
|
9891
|
+
continue;
|
|
9892
|
+
}
|
|
9893
|
+
case 2: {
|
|
9894
|
+
if (tag !== 18) {
|
|
9895
|
+
break;
|
|
9896
|
+
}
|
|
9897
|
+
const entry2 = AutoscalerConfiguration_OverrideEventsEntry.decode(reader, reader.uint32());
|
|
9898
|
+
if (entry2.value !== void 0) {
|
|
9899
|
+
message.overrideEvents[entry2.key] = entry2.value;
|
|
9900
|
+
}
|
|
9901
|
+
continue;
|
|
9902
|
+
}
|
|
9903
|
+
case 3: {
|
|
9904
|
+
if (tag !== 26) {
|
|
9905
|
+
break;
|
|
9906
|
+
}
|
|
9907
|
+
message.defaultSettings = AutoscalerSettings.decode(reader, reader.uint32());
|
|
9908
|
+
continue;
|
|
9909
|
+
}
|
|
9910
|
+
case 4: {
|
|
9911
|
+
if (tag !== 34) {
|
|
9912
|
+
break;
|
|
9913
|
+
}
|
|
9914
|
+
message.staticSettings = AutoscalerSettings.decode(reader, reader.uint32());
|
|
9915
|
+
continue;
|
|
9916
|
+
}
|
|
9917
|
+
case 5: {
|
|
9918
|
+
if (tag !== 42) {
|
|
9919
|
+
break;
|
|
9920
|
+
}
|
|
9921
|
+
message.overrideSettings = AutoscalerSettings.decode(reader, reader.uint32());
|
|
9922
|
+
continue;
|
|
9923
|
+
}
|
|
9924
|
+
}
|
|
9925
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9926
|
+
break;
|
|
9927
|
+
}
|
|
9928
|
+
reader.skip(tag & 7);
|
|
9929
|
+
}
|
|
9930
|
+
return message;
|
|
9931
|
+
},
|
|
9932
|
+
fromJSON(object) {
|
|
9933
|
+
return {
|
|
9934
|
+
settings: isSet5(object.settings) ? AutoscalerSettings.fromJSON(object.settings) : void 0,
|
|
9935
|
+
overrideEvents: isObject2(object.overrideEvents) ? Object.entries(object.overrideEvents).reduce((acc, [key, value]) => {
|
|
9936
|
+
acc[key] = UserActionInfo.fromJSON(value);
|
|
9937
|
+
return acc;
|
|
9938
|
+
}, {}) : {},
|
|
9939
|
+
defaultSettings: isSet5(object.defaultSettings) ? AutoscalerSettings.fromJSON(object.defaultSettings) : void 0,
|
|
9940
|
+
staticSettings: isSet5(object.staticSettings) ? AutoscalerSettings.fromJSON(object.staticSettings) : void 0,
|
|
9941
|
+
overrideSettings: isSet5(object.overrideSettings) ? AutoscalerSettings.fromJSON(object.overrideSettings) : void 0
|
|
9942
|
+
};
|
|
9943
|
+
},
|
|
9944
|
+
toJSON(message) {
|
|
9945
|
+
const obj = {};
|
|
9946
|
+
if (message.settings !== void 0) {
|
|
9947
|
+
obj.settings = AutoscalerSettings.toJSON(message.settings);
|
|
9948
|
+
}
|
|
9949
|
+
if (message.overrideEvents) {
|
|
9950
|
+
const entries = Object.entries(message.overrideEvents);
|
|
9951
|
+
if (entries.length > 0) {
|
|
9952
|
+
obj.overrideEvents = {};
|
|
9953
|
+
entries.forEach(([k, v]) => {
|
|
9954
|
+
obj.overrideEvents[k] = UserActionInfo.toJSON(v);
|
|
9955
|
+
});
|
|
9956
|
+
}
|
|
9957
|
+
}
|
|
9958
|
+
if (message.defaultSettings !== void 0) {
|
|
9959
|
+
obj.defaultSettings = AutoscalerSettings.toJSON(message.defaultSettings);
|
|
9960
|
+
}
|
|
9961
|
+
if (message.staticSettings !== void 0) {
|
|
9962
|
+
obj.staticSettings = AutoscalerSettings.toJSON(message.staticSettings);
|
|
9963
|
+
}
|
|
9964
|
+
if (message.overrideSettings !== void 0) {
|
|
9965
|
+
obj.overrideSettings = AutoscalerSettings.toJSON(message.overrideSettings);
|
|
9966
|
+
}
|
|
9967
|
+
return obj;
|
|
9968
|
+
},
|
|
9969
|
+
create(base) {
|
|
9970
|
+
return AutoscalerConfiguration.fromPartial(base ?? {});
|
|
9971
|
+
},
|
|
9972
|
+
fromPartial(object) {
|
|
9973
|
+
const message = createBaseAutoscalerConfiguration();
|
|
9974
|
+
message.settings = object.settings !== void 0 && object.settings !== null ? AutoscalerSettings.fromPartial(object.settings) : void 0;
|
|
9975
|
+
message.overrideEvents = Object.entries(object.overrideEvents ?? {}).reduce(
|
|
9976
|
+
(acc, [key, value]) => {
|
|
9977
|
+
if (value !== void 0) {
|
|
9978
|
+
acc[key] = UserActionInfo.fromPartial(value);
|
|
9979
|
+
}
|
|
9980
|
+
return acc;
|
|
9981
|
+
},
|
|
9982
|
+
{}
|
|
9983
|
+
);
|
|
9984
|
+
message.defaultSettings = object.defaultSettings !== void 0 && object.defaultSettings !== null ? AutoscalerSettings.fromPartial(object.defaultSettings) : void 0;
|
|
9985
|
+
message.staticSettings = object.staticSettings !== void 0 && object.staticSettings !== null ? AutoscalerSettings.fromPartial(object.staticSettings) : void 0;
|
|
9986
|
+
message.overrideSettings = object.overrideSettings !== void 0 && object.overrideSettings !== null ? AutoscalerSettings.fromPartial(object.overrideSettings) : void 0;
|
|
9987
|
+
return message;
|
|
9988
|
+
}
|
|
9989
|
+
};
|
|
9990
|
+
function createBaseAutoscalerConfiguration_OverrideEventsEntry() {
|
|
9991
|
+
return { key: "", value: void 0 };
|
|
9992
|
+
}
|
|
9993
|
+
var AutoscalerConfiguration_OverrideEventsEntry = {
|
|
9994
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9995
|
+
if (message.key !== "") {
|
|
9996
|
+
writer.uint32(10).string(message.key);
|
|
9997
|
+
}
|
|
9998
|
+
if (message.value !== void 0) {
|
|
9999
|
+
UserActionInfo.encode(message.value, writer.uint32(18).fork()).join();
|
|
10000
|
+
}
|
|
10001
|
+
return writer;
|
|
10002
|
+
},
|
|
10003
|
+
decode(input, length) {
|
|
10004
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10005
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
10006
|
+
const message = createBaseAutoscalerConfiguration_OverrideEventsEntry();
|
|
10007
|
+
while (reader.pos < end) {
|
|
10008
|
+
const tag = reader.uint32();
|
|
10009
|
+
switch (tag >>> 3) {
|
|
10010
|
+
case 1: {
|
|
10011
|
+
if (tag !== 10) {
|
|
10012
|
+
break;
|
|
10013
|
+
}
|
|
10014
|
+
message.key = reader.string();
|
|
10015
|
+
continue;
|
|
10016
|
+
}
|
|
10017
|
+
case 2: {
|
|
10018
|
+
if (tag !== 18) {
|
|
10019
|
+
break;
|
|
10020
|
+
}
|
|
10021
|
+
message.value = UserActionInfo.decode(reader, reader.uint32());
|
|
10022
|
+
continue;
|
|
10023
|
+
}
|
|
10024
|
+
}
|
|
10025
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10026
|
+
break;
|
|
10027
|
+
}
|
|
10028
|
+
reader.skip(tag & 7);
|
|
10029
|
+
}
|
|
10030
|
+
return message;
|
|
10031
|
+
},
|
|
10032
|
+
fromJSON(object) {
|
|
10033
|
+
return {
|
|
10034
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
10035
|
+
value: isSet5(object.value) ? UserActionInfo.fromJSON(object.value) : void 0
|
|
10036
|
+
};
|
|
10037
|
+
},
|
|
10038
|
+
toJSON(message) {
|
|
10039
|
+
const obj = {};
|
|
10040
|
+
if (message.key !== "") {
|
|
10041
|
+
obj.key = message.key;
|
|
10042
|
+
}
|
|
10043
|
+
if (message.value !== void 0) {
|
|
10044
|
+
obj.value = UserActionInfo.toJSON(message.value);
|
|
10045
|
+
}
|
|
10046
|
+
return obj;
|
|
10047
|
+
},
|
|
10048
|
+
create(base) {
|
|
10049
|
+
return AutoscalerConfiguration_OverrideEventsEntry.fromPartial(base ?? {});
|
|
10050
|
+
},
|
|
10051
|
+
fromPartial(object) {
|
|
10052
|
+
const message = createBaseAutoscalerConfiguration_OverrideEventsEntry();
|
|
10053
|
+
message.key = object.key ?? "";
|
|
10054
|
+
message.value = object.value !== void 0 && object.value !== null ? UserActionInfo.fromPartial(object.value) : void 0;
|
|
10055
|
+
return message;
|
|
10056
|
+
}
|
|
10057
|
+
};
|
|
9524
10058
|
function createBaseAutoscalerSettings() {
|
|
9525
10059
|
return {
|
|
9526
10060
|
minContainers: void 0,
|
|
@@ -10076,6 +10610,89 @@ var BlobGetResponse = {
|
|
|
10076
10610
|
return message;
|
|
10077
10611
|
}
|
|
10078
10612
|
};
|
|
10613
|
+
function createBaseBlobUploadResult() {
|
|
10614
|
+
return { blobId: "", outcome: 0, throughputBytesS: 0 };
|
|
10615
|
+
}
|
|
10616
|
+
var BlobUploadResult = {
|
|
10617
|
+
encode(message, writer = new BinaryWriter()) {
|
|
10618
|
+
if (message.blobId !== "") {
|
|
10619
|
+
writer.uint32(10).string(message.blobId);
|
|
10620
|
+
}
|
|
10621
|
+
if (message.outcome !== 0) {
|
|
10622
|
+
writer.uint32(16).int32(message.outcome);
|
|
10623
|
+
}
|
|
10624
|
+
if (message.throughputBytesS !== 0) {
|
|
10625
|
+
writer.uint32(24).uint64(message.throughputBytesS);
|
|
10626
|
+
}
|
|
10627
|
+
return writer;
|
|
10628
|
+
},
|
|
10629
|
+
decode(input, length) {
|
|
10630
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10631
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
10632
|
+
const message = createBaseBlobUploadResult();
|
|
10633
|
+
while (reader.pos < end) {
|
|
10634
|
+
const tag = reader.uint32();
|
|
10635
|
+
switch (tag >>> 3) {
|
|
10636
|
+
case 1: {
|
|
10637
|
+
if (tag !== 10) {
|
|
10638
|
+
break;
|
|
10639
|
+
}
|
|
10640
|
+
message.blobId = reader.string();
|
|
10641
|
+
continue;
|
|
10642
|
+
}
|
|
10643
|
+
case 2: {
|
|
10644
|
+
if (tag !== 16) {
|
|
10645
|
+
break;
|
|
10646
|
+
}
|
|
10647
|
+
message.outcome = reader.int32();
|
|
10648
|
+
continue;
|
|
10649
|
+
}
|
|
10650
|
+
case 3: {
|
|
10651
|
+
if (tag !== 24) {
|
|
10652
|
+
break;
|
|
10653
|
+
}
|
|
10654
|
+
message.throughputBytesS = longToNumber2(reader.uint64());
|
|
10655
|
+
continue;
|
|
10656
|
+
}
|
|
10657
|
+
}
|
|
10658
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10659
|
+
break;
|
|
10660
|
+
}
|
|
10661
|
+
reader.skip(tag & 7);
|
|
10662
|
+
}
|
|
10663
|
+
return message;
|
|
10664
|
+
},
|
|
10665
|
+
fromJSON(object) {
|
|
10666
|
+
return {
|
|
10667
|
+
blobId: isSet5(object.blobId) ? globalThis.String(object.blobId) : "",
|
|
10668
|
+
outcome: isSet5(object.outcome) ? blobUploadResult_OutcomeFromJSON(object.outcome) : 0,
|
|
10669
|
+
throughputBytesS: isSet5(object.throughputBytesS) ? globalThis.Number(object.throughputBytesS) : 0
|
|
10670
|
+
};
|
|
10671
|
+
},
|
|
10672
|
+
toJSON(message) {
|
|
10673
|
+
const obj = {};
|
|
10674
|
+
if (message.blobId !== "") {
|
|
10675
|
+
obj.blobId = message.blobId;
|
|
10676
|
+
}
|
|
10677
|
+
if (message.outcome !== 0) {
|
|
10678
|
+
obj.outcome = blobUploadResult_OutcomeToJSON(message.outcome);
|
|
10679
|
+
}
|
|
10680
|
+
if (message.throughputBytesS !== 0) {
|
|
10681
|
+
obj.throughputBytesS = Math.round(message.throughputBytesS);
|
|
10682
|
+
}
|
|
10683
|
+
return obj;
|
|
10684
|
+
},
|
|
10685
|
+
create(base) {
|
|
10686
|
+
return BlobUploadResult.fromPartial(base ?? {});
|
|
10687
|
+
},
|
|
10688
|
+
fromPartial(object) {
|
|
10689
|
+
const message = createBaseBlobUploadResult();
|
|
10690
|
+
message.blobId = object.blobId ?? "";
|
|
10691
|
+
message.outcome = object.outcome ?? 0;
|
|
10692
|
+
message.throughputBytesS = object.throughputBytesS ?? 0;
|
|
10693
|
+
return message;
|
|
10694
|
+
}
|
|
10695
|
+
};
|
|
10079
10696
|
function createBaseBuildFunction() {
|
|
10080
10697
|
return { definition: "", globals: new Uint8Array(0), input: void 0 };
|
|
10081
10698
|
}
|
|
@@ -27556,6 +28173,110 @@ var FunctionGetResponse = {
|
|
|
27556
28173
|
return message;
|
|
27557
28174
|
}
|
|
27558
28175
|
};
|
|
28176
|
+
function createBaseFunctionGetSchedulingParamsRequest() {
|
|
28177
|
+
return { functionId: "" };
|
|
28178
|
+
}
|
|
28179
|
+
var FunctionGetSchedulingParamsRequest = {
|
|
28180
|
+
encode(message, writer = new BinaryWriter()) {
|
|
28181
|
+
if (message.functionId !== "") {
|
|
28182
|
+
writer.uint32(10).string(message.functionId);
|
|
28183
|
+
}
|
|
28184
|
+
return writer;
|
|
28185
|
+
},
|
|
28186
|
+
decode(input, length) {
|
|
28187
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
28188
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
28189
|
+
const message = createBaseFunctionGetSchedulingParamsRequest();
|
|
28190
|
+
while (reader.pos < end) {
|
|
28191
|
+
const tag = reader.uint32();
|
|
28192
|
+
switch (tag >>> 3) {
|
|
28193
|
+
case 1: {
|
|
28194
|
+
if (tag !== 10) {
|
|
28195
|
+
break;
|
|
28196
|
+
}
|
|
28197
|
+
message.functionId = reader.string();
|
|
28198
|
+
continue;
|
|
28199
|
+
}
|
|
28200
|
+
}
|
|
28201
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
28202
|
+
break;
|
|
28203
|
+
}
|
|
28204
|
+
reader.skip(tag & 7);
|
|
28205
|
+
}
|
|
28206
|
+
return message;
|
|
28207
|
+
},
|
|
28208
|
+
fromJSON(object) {
|
|
28209
|
+
return { functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "" };
|
|
28210
|
+
},
|
|
28211
|
+
toJSON(message) {
|
|
28212
|
+
const obj = {};
|
|
28213
|
+
if (message.functionId !== "") {
|
|
28214
|
+
obj.functionId = message.functionId;
|
|
28215
|
+
}
|
|
28216
|
+
return obj;
|
|
28217
|
+
},
|
|
28218
|
+
create(base) {
|
|
28219
|
+
return FunctionGetSchedulingParamsRequest.fromPartial(base ?? {});
|
|
28220
|
+
},
|
|
28221
|
+
fromPartial(object) {
|
|
28222
|
+
const message = createBaseFunctionGetSchedulingParamsRequest();
|
|
28223
|
+
message.functionId = object.functionId ?? "";
|
|
28224
|
+
return message;
|
|
28225
|
+
}
|
|
28226
|
+
};
|
|
28227
|
+
function createBaseFunctionGetSchedulingParamsResponse() {
|
|
28228
|
+
return { autoscalerConfiguration: void 0 };
|
|
28229
|
+
}
|
|
28230
|
+
var FunctionGetSchedulingParamsResponse = {
|
|
28231
|
+
encode(message, writer = new BinaryWriter()) {
|
|
28232
|
+
if (message.autoscalerConfiguration !== void 0) {
|
|
28233
|
+
AutoscalerConfiguration.encode(message.autoscalerConfiguration, writer.uint32(10).fork()).join();
|
|
28234
|
+
}
|
|
28235
|
+
return writer;
|
|
28236
|
+
},
|
|
28237
|
+
decode(input, length) {
|
|
28238
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
28239
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
28240
|
+
const message = createBaseFunctionGetSchedulingParamsResponse();
|
|
28241
|
+
while (reader.pos < end) {
|
|
28242
|
+
const tag = reader.uint32();
|
|
28243
|
+
switch (tag >>> 3) {
|
|
28244
|
+
case 1: {
|
|
28245
|
+
if (tag !== 10) {
|
|
28246
|
+
break;
|
|
28247
|
+
}
|
|
28248
|
+
message.autoscalerConfiguration = AutoscalerConfiguration.decode(reader, reader.uint32());
|
|
28249
|
+
continue;
|
|
28250
|
+
}
|
|
28251
|
+
}
|
|
28252
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
28253
|
+
break;
|
|
28254
|
+
}
|
|
28255
|
+
reader.skip(tag & 7);
|
|
28256
|
+
}
|
|
28257
|
+
return message;
|
|
28258
|
+
},
|
|
28259
|
+
fromJSON(object) {
|
|
28260
|
+
return {
|
|
28261
|
+
autoscalerConfiguration: isSet5(object.autoscalerConfiguration) ? AutoscalerConfiguration.fromJSON(object.autoscalerConfiguration) : void 0
|
|
28262
|
+
};
|
|
28263
|
+
},
|
|
28264
|
+
toJSON(message) {
|
|
28265
|
+
const obj = {};
|
|
28266
|
+
if (message.autoscalerConfiguration !== void 0) {
|
|
28267
|
+
obj.autoscalerConfiguration = AutoscalerConfiguration.toJSON(message.autoscalerConfiguration);
|
|
28268
|
+
}
|
|
28269
|
+
return obj;
|
|
28270
|
+
},
|
|
28271
|
+
create(base) {
|
|
28272
|
+
return FunctionGetSchedulingParamsResponse.fromPartial(base ?? {});
|
|
28273
|
+
},
|
|
28274
|
+
fromPartial(object) {
|
|
28275
|
+
const message = createBaseFunctionGetSchedulingParamsResponse();
|
|
28276
|
+
message.autoscalerConfiguration = object.autoscalerConfiguration !== void 0 && object.autoscalerConfiguration !== null ? AutoscalerConfiguration.fromPartial(object.autoscalerConfiguration) : void 0;
|
|
28277
|
+
return message;
|
|
28278
|
+
}
|
|
28279
|
+
};
|
|
27559
28280
|
function createBaseFunctionGetSerializedRequest() {
|
|
27560
28281
|
return { functionId: "" };
|
|
27561
28282
|
}
|
|
@@ -28223,7 +28944,8 @@ function createBaseFunctionHandleMetadata() {
|
|
|
28223
28944
|
ExperimentalFlashUrls: [],
|
|
28224
28945
|
supportedInputFormats: [],
|
|
28225
28946
|
supportedOutputFormats: [],
|
|
28226
|
-
appId: ""
|
|
28947
|
+
appId: "",
|
|
28948
|
+
baseFunctionId: ""
|
|
28227
28949
|
};
|
|
28228
28950
|
}
|
|
28229
28951
|
var FunctionHandleMetadata = {
|
|
@@ -28286,6 +29008,9 @@ var FunctionHandleMetadata = {
|
|
|
28286
29008
|
if (message.appId !== "") {
|
|
28287
29009
|
writer.uint32(418).string(message.appId);
|
|
28288
29010
|
}
|
|
29011
|
+
if (message.baseFunctionId !== "") {
|
|
29012
|
+
writer.uint32(434).string(message.baseFunctionId);
|
|
29013
|
+
}
|
|
28289
29014
|
return writer;
|
|
28290
29015
|
},
|
|
28291
29016
|
decode(input, length) {
|
|
@@ -28438,6 +29163,13 @@ var FunctionHandleMetadata = {
|
|
|
28438
29163
|
message.appId = reader.string();
|
|
28439
29164
|
continue;
|
|
28440
29165
|
}
|
|
29166
|
+
case 54: {
|
|
29167
|
+
if (tag !== 434) {
|
|
29168
|
+
break;
|
|
29169
|
+
}
|
|
29170
|
+
message.baseFunctionId = reader.string();
|
|
29171
|
+
continue;
|
|
29172
|
+
}
|
|
28441
29173
|
}
|
|
28442
29174
|
if ((tag & 7) === 4 || tag === 0) {
|
|
28443
29175
|
break;
|
|
@@ -28471,7 +29203,8 @@ var FunctionHandleMetadata = {
|
|
|
28471
29203
|
ExperimentalFlashUrls: globalThis.Array.isArray(object?.ExperimentalFlashUrls) ? object.ExperimentalFlashUrls.map((e) => globalThis.String(e)) : [],
|
|
28472
29204
|
supportedInputFormats: globalThis.Array.isArray(object?.supportedInputFormats) ? object.supportedInputFormats.map((e) => dataFormatFromJSON(e)) : [],
|
|
28473
29205
|
supportedOutputFormats: globalThis.Array.isArray(object?.supportedOutputFormats) ? object.supportedOutputFormats.map((e) => dataFormatFromJSON(e)) : [],
|
|
28474
|
-
appId: isSet5(object.appId) ? globalThis.String(object.appId) : ""
|
|
29206
|
+
appId: isSet5(object.appId) ? globalThis.String(object.appId) : "",
|
|
29207
|
+
baseFunctionId: isSet5(object.baseFunctionId) ? globalThis.String(object.baseFunctionId) : ""
|
|
28475
29208
|
};
|
|
28476
29209
|
},
|
|
28477
29210
|
toJSON(message) {
|
|
@@ -28536,6 +29269,9 @@ var FunctionHandleMetadata = {
|
|
|
28536
29269
|
if (message.appId !== "") {
|
|
28537
29270
|
obj.appId = message.appId;
|
|
28538
29271
|
}
|
|
29272
|
+
if (message.baseFunctionId !== "") {
|
|
29273
|
+
obj.baseFunctionId = message.baseFunctionId;
|
|
29274
|
+
}
|
|
28539
29275
|
return obj;
|
|
28540
29276
|
},
|
|
28541
29277
|
create(base) {
|
|
@@ -28566,6 +29302,7 @@ var FunctionHandleMetadata = {
|
|
|
28566
29302
|
message.supportedInputFormats = object.supportedInputFormats?.map((e) => e) || [];
|
|
28567
29303
|
message.supportedOutputFormats = object.supportedOutputFormats?.map((e) => e) || [];
|
|
28568
29304
|
message.appId = object.appId ?? "";
|
|
29305
|
+
message.baseFunctionId = object.baseFunctionId ?? "";
|
|
28569
29306
|
return message;
|
|
28570
29307
|
}
|
|
28571
29308
|
};
|
|
@@ -29814,7 +30551,7 @@ var FunctionPrecreateResponse = {
|
|
|
29814
30551
|
}
|
|
29815
30552
|
};
|
|
29816
30553
|
function createBaseFunctionPutInputsItem() {
|
|
29817
|
-
return { idx: 0, input: void 0, r2Failed: false, r2ThroughputBytesS: 0 };
|
|
30554
|
+
return { idx: 0, input: void 0, r2Failed: false, r2ThroughputBytesS: 0, blobUploadResults: [] };
|
|
29818
30555
|
}
|
|
29819
30556
|
var FunctionPutInputsItem = {
|
|
29820
30557
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -29830,6 +30567,9 @@ var FunctionPutInputsItem = {
|
|
|
29830
30567
|
if (message.r2ThroughputBytesS !== 0) {
|
|
29831
30568
|
writer.uint32(40).uint64(message.r2ThroughputBytesS);
|
|
29832
30569
|
}
|
|
30570
|
+
for (const v of message.blobUploadResults) {
|
|
30571
|
+
BlobUploadResult.encode(v, writer.uint32(50).fork()).join();
|
|
30572
|
+
}
|
|
29833
30573
|
return writer;
|
|
29834
30574
|
},
|
|
29835
30575
|
decode(input, length) {
|
|
@@ -29867,6 +30607,13 @@ var FunctionPutInputsItem = {
|
|
|
29867
30607
|
message.r2ThroughputBytesS = longToNumber2(reader.uint64());
|
|
29868
30608
|
continue;
|
|
29869
30609
|
}
|
|
30610
|
+
case 6: {
|
|
30611
|
+
if (tag !== 50) {
|
|
30612
|
+
break;
|
|
30613
|
+
}
|
|
30614
|
+
message.blobUploadResults.push(BlobUploadResult.decode(reader, reader.uint32()));
|
|
30615
|
+
continue;
|
|
30616
|
+
}
|
|
29870
30617
|
}
|
|
29871
30618
|
if ((tag & 7) === 4 || tag === 0) {
|
|
29872
30619
|
break;
|
|
@@ -29880,7 +30627,8 @@ var FunctionPutInputsItem = {
|
|
|
29880
30627
|
idx: isSet5(object.idx) ? globalThis.Number(object.idx) : 0,
|
|
29881
30628
|
input: isSet5(object.input) ? FunctionInput.fromJSON(object.input) : void 0,
|
|
29882
30629
|
r2Failed: isSet5(object.r2Failed) ? globalThis.Boolean(object.r2Failed) : false,
|
|
29883
|
-
r2ThroughputBytesS: isSet5(object.r2ThroughputBytesS) ? globalThis.Number(object.r2ThroughputBytesS) : 0
|
|
30630
|
+
r2ThroughputBytesS: isSet5(object.r2ThroughputBytesS) ? globalThis.Number(object.r2ThroughputBytesS) : 0,
|
|
30631
|
+
blobUploadResults: globalThis.Array.isArray(object?.blobUploadResults) ? object.blobUploadResults.map((e) => BlobUploadResult.fromJSON(e)) : []
|
|
29884
30632
|
};
|
|
29885
30633
|
},
|
|
29886
30634
|
toJSON(message) {
|
|
@@ -29897,6 +30645,9 @@ var FunctionPutInputsItem = {
|
|
|
29897
30645
|
if (message.r2ThroughputBytesS !== 0) {
|
|
29898
30646
|
obj.r2ThroughputBytesS = Math.round(message.r2ThroughputBytesS);
|
|
29899
30647
|
}
|
|
30648
|
+
if (message.blobUploadResults?.length) {
|
|
30649
|
+
obj.blobUploadResults = message.blobUploadResults.map((e) => BlobUploadResult.toJSON(e));
|
|
30650
|
+
}
|
|
29900
30651
|
return obj;
|
|
29901
30652
|
},
|
|
29902
30653
|
create(base) {
|
|
@@ -29908,6 +30659,7 @@ var FunctionPutInputsItem = {
|
|
|
29908
30659
|
message.input = object.input !== void 0 && object.input !== null ? FunctionInput.fromPartial(object.input) : void 0;
|
|
29909
30660
|
message.r2Failed = object.r2Failed ?? false;
|
|
29910
30661
|
message.r2ThroughputBytesS = object.r2ThroughputBytesS ?? 0;
|
|
30662
|
+
message.blobUploadResults = object.blobUploadResults?.map((e) => BlobUploadResult.fromPartial(e)) || [];
|
|
29911
30663
|
return message;
|
|
29912
30664
|
}
|
|
29913
30665
|
};
|
|
@@ -36949,22 +37701,19 @@ var OutboundPolicy = {
|
|
|
36949
37701
|
}
|
|
36950
37702
|
};
|
|
36951
37703
|
function createBaseOutboundPolicy_HeaderReplacement() {
|
|
36952
|
-
return { domain: "",
|
|
37704
|
+
return { domain: "", secretId: "", headers: {} };
|
|
36953
37705
|
}
|
|
36954
37706
|
var OutboundPolicy_HeaderReplacement = {
|
|
36955
37707
|
encode(message, writer = new BinaryWriter()) {
|
|
36956
37708
|
if (message.domain !== "") {
|
|
36957
37709
|
writer.uint32(10).string(message.domain);
|
|
36958
37710
|
}
|
|
36959
|
-
if (message.headerName !== "") {
|
|
36960
|
-
writer.uint32(18).string(message.headerName);
|
|
36961
|
-
}
|
|
36962
|
-
if (message.headerValue !== "") {
|
|
36963
|
-
writer.uint32(26).string(message.headerValue);
|
|
36964
|
-
}
|
|
36965
37711
|
if (message.secretId !== "") {
|
|
36966
37712
|
writer.uint32(34).string(message.secretId);
|
|
36967
37713
|
}
|
|
37714
|
+
Object.entries(message.headers).forEach(([key, value]) => {
|
|
37715
|
+
OutboundPolicy_HeaderReplacement_HeadersEntry.encode({ key, value }, writer.uint32(42).fork()).join();
|
|
37716
|
+
});
|
|
36968
37717
|
return writer;
|
|
36969
37718
|
},
|
|
36970
37719
|
decode(input, length) {
|
|
@@ -36981,25 +37730,21 @@ var OutboundPolicy_HeaderReplacement = {
|
|
|
36981
37730
|
message.domain = reader.string();
|
|
36982
37731
|
continue;
|
|
36983
37732
|
}
|
|
36984
|
-
case
|
|
36985
|
-
if (tag !==
|
|
37733
|
+
case 4: {
|
|
37734
|
+
if (tag !== 34) {
|
|
36986
37735
|
break;
|
|
36987
37736
|
}
|
|
36988
|
-
message.
|
|
37737
|
+
message.secretId = reader.string();
|
|
36989
37738
|
continue;
|
|
36990
37739
|
}
|
|
36991
|
-
case
|
|
36992
|
-
if (tag !==
|
|
37740
|
+
case 5: {
|
|
37741
|
+
if (tag !== 42) {
|
|
36993
37742
|
break;
|
|
36994
37743
|
}
|
|
36995
|
-
|
|
36996
|
-
|
|
36997
|
-
|
|
36998
|
-
case 4: {
|
|
36999
|
-
if (tag !== 34) {
|
|
37000
|
-
break;
|
|
37744
|
+
const entry5 = OutboundPolicy_HeaderReplacement_HeadersEntry.decode(reader, reader.uint32());
|
|
37745
|
+
if (entry5.value !== void 0) {
|
|
37746
|
+
message.headers[entry5.key] = entry5.value;
|
|
37001
37747
|
}
|
|
37002
|
-
message.secretId = reader.string();
|
|
37003
37748
|
continue;
|
|
37004
37749
|
}
|
|
37005
37750
|
}
|
|
@@ -37013,9 +37758,11 @@ var OutboundPolicy_HeaderReplacement = {
|
|
|
37013
37758
|
fromJSON(object) {
|
|
37014
37759
|
return {
|
|
37015
37760
|
domain: isSet5(object.domain) ? globalThis.String(object.domain) : "",
|
|
37016
|
-
|
|
37017
|
-
|
|
37018
|
-
|
|
37761
|
+
secretId: isSet5(object.secretId) ? globalThis.String(object.secretId) : "",
|
|
37762
|
+
headers: isObject2(object.headers) ? Object.entries(object.headers).reduce((acc, [key, value]) => {
|
|
37763
|
+
acc[key] = String(value);
|
|
37764
|
+
return acc;
|
|
37765
|
+
}, {}) : {}
|
|
37019
37766
|
};
|
|
37020
37767
|
},
|
|
37021
37768
|
toJSON(message) {
|
|
@@ -37023,15 +37770,18 @@ var OutboundPolicy_HeaderReplacement = {
|
|
|
37023
37770
|
if (message.domain !== "") {
|
|
37024
37771
|
obj.domain = message.domain;
|
|
37025
37772
|
}
|
|
37026
|
-
if (message.headerName !== "") {
|
|
37027
|
-
obj.headerName = message.headerName;
|
|
37028
|
-
}
|
|
37029
|
-
if (message.headerValue !== "") {
|
|
37030
|
-
obj.headerValue = message.headerValue;
|
|
37031
|
-
}
|
|
37032
37773
|
if (message.secretId !== "") {
|
|
37033
37774
|
obj.secretId = message.secretId;
|
|
37034
37775
|
}
|
|
37776
|
+
if (message.headers) {
|
|
37777
|
+
const entries = Object.entries(message.headers);
|
|
37778
|
+
if (entries.length > 0) {
|
|
37779
|
+
obj.headers = {};
|
|
37780
|
+
entries.forEach(([k, v]) => {
|
|
37781
|
+
obj.headers[k] = v;
|
|
37782
|
+
});
|
|
37783
|
+
}
|
|
37784
|
+
}
|
|
37035
37785
|
return obj;
|
|
37036
37786
|
},
|
|
37037
37787
|
create(base) {
|
|
@@ -37040,9 +37790,81 @@ var OutboundPolicy_HeaderReplacement = {
|
|
|
37040
37790
|
fromPartial(object) {
|
|
37041
37791
|
const message = createBaseOutboundPolicy_HeaderReplacement();
|
|
37042
37792
|
message.domain = object.domain ?? "";
|
|
37043
|
-
message.headerName = object.headerName ?? "";
|
|
37044
|
-
message.headerValue = object.headerValue ?? "";
|
|
37045
37793
|
message.secretId = object.secretId ?? "";
|
|
37794
|
+
message.headers = Object.entries(object.headers ?? {}).reduce((acc, [key, value]) => {
|
|
37795
|
+
if (value !== void 0) {
|
|
37796
|
+
acc[key] = globalThis.String(value);
|
|
37797
|
+
}
|
|
37798
|
+
return acc;
|
|
37799
|
+
}, {});
|
|
37800
|
+
return message;
|
|
37801
|
+
}
|
|
37802
|
+
};
|
|
37803
|
+
function createBaseOutboundPolicy_HeaderReplacement_HeadersEntry() {
|
|
37804
|
+
return { key: "", value: "" };
|
|
37805
|
+
}
|
|
37806
|
+
var OutboundPolicy_HeaderReplacement_HeadersEntry = {
|
|
37807
|
+
encode(message, writer = new BinaryWriter()) {
|
|
37808
|
+
if (message.key !== "") {
|
|
37809
|
+
writer.uint32(10).string(message.key);
|
|
37810
|
+
}
|
|
37811
|
+
if (message.value !== "") {
|
|
37812
|
+
writer.uint32(18).string(message.value);
|
|
37813
|
+
}
|
|
37814
|
+
return writer;
|
|
37815
|
+
},
|
|
37816
|
+
decode(input, length) {
|
|
37817
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
37818
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
37819
|
+
const message = createBaseOutboundPolicy_HeaderReplacement_HeadersEntry();
|
|
37820
|
+
while (reader.pos < end) {
|
|
37821
|
+
const tag = reader.uint32();
|
|
37822
|
+
switch (tag >>> 3) {
|
|
37823
|
+
case 1: {
|
|
37824
|
+
if (tag !== 10) {
|
|
37825
|
+
break;
|
|
37826
|
+
}
|
|
37827
|
+
message.key = reader.string();
|
|
37828
|
+
continue;
|
|
37829
|
+
}
|
|
37830
|
+
case 2: {
|
|
37831
|
+
if (tag !== 18) {
|
|
37832
|
+
break;
|
|
37833
|
+
}
|
|
37834
|
+
message.value = reader.string();
|
|
37835
|
+
continue;
|
|
37836
|
+
}
|
|
37837
|
+
}
|
|
37838
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37839
|
+
break;
|
|
37840
|
+
}
|
|
37841
|
+
reader.skip(tag & 7);
|
|
37842
|
+
}
|
|
37843
|
+
return message;
|
|
37844
|
+
},
|
|
37845
|
+
fromJSON(object) {
|
|
37846
|
+
return {
|
|
37847
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
37848
|
+
value: isSet5(object.value) ? globalThis.String(object.value) : ""
|
|
37849
|
+
};
|
|
37850
|
+
},
|
|
37851
|
+
toJSON(message) {
|
|
37852
|
+
const obj = {};
|
|
37853
|
+
if (message.key !== "") {
|
|
37854
|
+
obj.key = message.key;
|
|
37855
|
+
}
|
|
37856
|
+
if (message.value !== "") {
|
|
37857
|
+
obj.value = message.value;
|
|
37858
|
+
}
|
|
37859
|
+
return obj;
|
|
37860
|
+
},
|
|
37861
|
+
create(base) {
|
|
37862
|
+
return OutboundPolicy_HeaderReplacement_HeadersEntry.fromPartial(base ?? {});
|
|
37863
|
+
},
|
|
37864
|
+
fromPartial(object) {
|
|
37865
|
+
const message = createBaseOutboundPolicy_HeaderReplacement_HeadersEntry();
|
|
37866
|
+
message.key = object.key ?? "";
|
|
37867
|
+
message.value = object.value ?? "";
|
|
37046
37868
|
return message;
|
|
37047
37869
|
}
|
|
37048
37870
|
};
|
|
@@ -40737,7 +41559,8 @@ function createBaseSandbox() {
|
|
|
40737
41559
|
readinessProbe: void 0,
|
|
40738
41560
|
inboundCidrAllowlist: [],
|
|
40739
41561
|
environmentVariables: void 0,
|
|
40740
|
-
outboundPolicy: void 0
|
|
41562
|
+
outboundPolicy: void 0,
|
|
41563
|
+
includeX509Svid: false
|
|
40741
41564
|
};
|
|
40742
41565
|
}
|
|
40743
41566
|
var Sandbox = {
|
|
@@ -40862,6 +41685,9 @@ var Sandbox = {
|
|
|
40862
41685
|
if (message.outboundPolicy !== void 0) {
|
|
40863
41686
|
OutboundPolicy.encode(message.outboundPolicy, writer.uint32(338).fork()).join();
|
|
40864
41687
|
}
|
|
41688
|
+
if (message.includeX509Svid !== false) {
|
|
41689
|
+
writer.uint32(344).bool(message.includeX509Svid);
|
|
41690
|
+
}
|
|
40865
41691
|
return writer;
|
|
40866
41692
|
},
|
|
40867
41693
|
decode(input, length) {
|
|
@@ -41157,6 +41983,13 @@ var Sandbox = {
|
|
|
41157
41983
|
message.outboundPolicy = OutboundPolicy.decode(reader, reader.uint32());
|
|
41158
41984
|
continue;
|
|
41159
41985
|
}
|
|
41986
|
+
case 43: {
|
|
41987
|
+
if (tag !== 344) {
|
|
41988
|
+
break;
|
|
41989
|
+
}
|
|
41990
|
+
message.includeX509Svid = reader.bool();
|
|
41991
|
+
continue;
|
|
41992
|
+
}
|
|
41160
41993
|
}
|
|
41161
41994
|
if ((tag & 7) === 4 || tag === 0) {
|
|
41162
41995
|
break;
|
|
@@ -41212,7 +42045,8 @@ var Sandbox = {
|
|
|
41212
42045
|
readinessProbe: isSet5(object.readinessProbe) ? Probe.fromJSON(object.readinessProbe) : void 0,
|
|
41213
42046
|
inboundCidrAllowlist: globalThis.Array.isArray(object?.inboundCidrAllowlist) ? object.inboundCidrAllowlist.map((e) => globalThis.String(e)) : [],
|
|
41214
42047
|
environmentVariables: isSet5(object.environmentVariables) ? StringMap.fromJSON(object.environmentVariables) : void 0,
|
|
41215
|
-
outboundPolicy: isSet5(object.outboundPolicy) ? OutboundPolicy.fromJSON(object.outboundPolicy) : void 0
|
|
42048
|
+
outboundPolicy: isSet5(object.outboundPolicy) ? OutboundPolicy.fromJSON(object.outboundPolicy) : void 0,
|
|
42049
|
+
includeX509Svid: isSet5(object.includeX509Svid) ? globalThis.Boolean(object.includeX509Svid) : false
|
|
41216
42050
|
};
|
|
41217
42051
|
},
|
|
41218
42052
|
toJSON(message) {
|
|
@@ -41349,6 +42183,9 @@ var Sandbox = {
|
|
|
41349
42183
|
if (message.outboundPolicy !== void 0) {
|
|
41350
42184
|
obj.outboundPolicy = OutboundPolicy.toJSON(message.outboundPolicy);
|
|
41351
42185
|
}
|
|
42186
|
+
if (message.includeX509Svid !== false) {
|
|
42187
|
+
obj.includeX509Svid = message.includeX509Svid;
|
|
42188
|
+
}
|
|
41352
42189
|
return obj;
|
|
41353
42190
|
},
|
|
41354
42191
|
create(base) {
|
|
@@ -41409,6 +42246,7 @@ var Sandbox = {
|
|
|
41409
42246
|
message.inboundCidrAllowlist = object.inboundCidrAllowlist?.map((e) => e) || [];
|
|
41410
42247
|
message.environmentVariables = object.environmentVariables !== void 0 && object.environmentVariables !== null ? StringMap.fromPartial(object.environmentVariables) : void 0;
|
|
41411
42248
|
message.outboundPolicy = object.outboundPolicy !== void 0 && object.outboundPolicy !== null ? OutboundPolicy.fromPartial(object.outboundPolicy) : void 0;
|
|
42249
|
+
message.includeX509Svid = object.includeX509Svid ?? false;
|
|
41412
42250
|
return message;
|
|
41413
42251
|
}
|
|
41414
42252
|
};
|
|
@@ -47274,6 +48112,863 @@ var SecretUpdateRequest_Update = {
|
|
|
47274
48112
|
return message;
|
|
47275
48113
|
}
|
|
47276
48114
|
};
|
|
48115
|
+
function createBaseServerGetTimeRangeStatsRequest() {
|
|
48116
|
+
return { functionId: "", since: void 0, until: void 0, containerId: void 0 };
|
|
48117
|
+
}
|
|
48118
|
+
var ServerGetTimeRangeStatsRequest = {
|
|
48119
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48120
|
+
if (message.functionId !== "") {
|
|
48121
|
+
writer.uint32(10).string(message.functionId);
|
|
48122
|
+
}
|
|
48123
|
+
if (message.since !== void 0) {
|
|
48124
|
+
Timestamp.encode(toTimestamp(message.since), writer.uint32(18).fork()).join();
|
|
48125
|
+
}
|
|
48126
|
+
if (message.until !== void 0) {
|
|
48127
|
+
Timestamp.encode(toTimestamp(message.until), writer.uint32(26).fork()).join();
|
|
48128
|
+
}
|
|
48129
|
+
if (message.containerId !== void 0) {
|
|
48130
|
+
writer.uint32(34).string(message.containerId);
|
|
48131
|
+
}
|
|
48132
|
+
return writer;
|
|
48133
|
+
},
|
|
48134
|
+
decode(input, length) {
|
|
48135
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48136
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48137
|
+
const message = createBaseServerGetTimeRangeStatsRequest();
|
|
48138
|
+
while (reader.pos < end) {
|
|
48139
|
+
const tag = reader.uint32();
|
|
48140
|
+
switch (tag >>> 3) {
|
|
48141
|
+
case 1: {
|
|
48142
|
+
if (tag !== 10) {
|
|
48143
|
+
break;
|
|
48144
|
+
}
|
|
48145
|
+
message.functionId = reader.string();
|
|
48146
|
+
continue;
|
|
48147
|
+
}
|
|
48148
|
+
case 2: {
|
|
48149
|
+
if (tag !== 18) {
|
|
48150
|
+
break;
|
|
48151
|
+
}
|
|
48152
|
+
message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
48153
|
+
continue;
|
|
48154
|
+
}
|
|
48155
|
+
case 3: {
|
|
48156
|
+
if (tag !== 26) {
|
|
48157
|
+
break;
|
|
48158
|
+
}
|
|
48159
|
+
message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
48160
|
+
continue;
|
|
48161
|
+
}
|
|
48162
|
+
case 4: {
|
|
48163
|
+
if (tag !== 34) {
|
|
48164
|
+
break;
|
|
48165
|
+
}
|
|
48166
|
+
message.containerId = reader.string();
|
|
48167
|
+
continue;
|
|
48168
|
+
}
|
|
48169
|
+
}
|
|
48170
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48171
|
+
break;
|
|
48172
|
+
}
|
|
48173
|
+
reader.skip(tag & 7);
|
|
48174
|
+
}
|
|
48175
|
+
return message;
|
|
48176
|
+
},
|
|
48177
|
+
fromJSON(object) {
|
|
48178
|
+
return {
|
|
48179
|
+
functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
48180
|
+
since: isSet5(object.since) ? fromJsonTimestamp(object.since) : void 0,
|
|
48181
|
+
until: isSet5(object.until) ? fromJsonTimestamp(object.until) : void 0,
|
|
48182
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : void 0
|
|
48183
|
+
};
|
|
48184
|
+
},
|
|
48185
|
+
toJSON(message) {
|
|
48186
|
+
const obj = {};
|
|
48187
|
+
if (message.functionId !== "") {
|
|
48188
|
+
obj.functionId = message.functionId;
|
|
48189
|
+
}
|
|
48190
|
+
if (message.since !== void 0) {
|
|
48191
|
+
obj.since = message.since.toISOString();
|
|
48192
|
+
}
|
|
48193
|
+
if (message.until !== void 0) {
|
|
48194
|
+
obj.until = message.until.toISOString();
|
|
48195
|
+
}
|
|
48196
|
+
if (message.containerId !== void 0) {
|
|
48197
|
+
obj.containerId = message.containerId;
|
|
48198
|
+
}
|
|
48199
|
+
return obj;
|
|
48200
|
+
},
|
|
48201
|
+
create(base) {
|
|
48202
|
+
return ServerGetTimeRangeStatsRequest.fromPartial(base ?? {});
|
|
48203
|
+
},
|
|
48204
|
+
fromPartial(object) {
|
|
48205
|
+
const message = createBaseServerGetTimeRangeStatsRequest();
|
|
48206
|
+
message.functionId = object.functionId ?? "";
|
|
48207
|
+
message.since = object.since ?? void 0;
|
|
48208
|
+
message.until = object.until ?? void 0;
|
|
48209
|
+
message.containerId = object.containerId ?? void 0;
|
|
48210
|
+
return message;
|
|
48211
|
+
}
|
|
48212
|
+
};
|
|
48213
|
+
function createBaseServerGetTimeRangeStatsResponse() {
|
|
48214
|
+
return {
|
|
48215
|
+
since: void 0,
|
|
48216
|
+
until: void 0,
|
|
48217
|
+
requestCount: 0,
|
|
48218
|
+
requestCountByStatusCode: [],
|
|
48219
|
+
requestRatePerSecond: 0,
|
|
48220
|
+
requestPercentileStats: {},
|
|
48221
|
+
containerPercentileStats: {},
|
|
48222
|
+
inference: void 0,
|
|
48223
|
+
containerStartedCount: 0,
|
|
48224
|
+
containerErrorCount: 0,
|
|
48225
|
+
containerCreatingAtEndCount: 0
|
|
48226
|
+
};
|
|
48227
|
+
}
|
|
48228
|
+
var ServerGetTimeRangeStatsResponse = {
|
|
48229
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48230
|
+
if (message.since !== void 0) {
|
|
48231
|
+
Timestamp.encode(toTimestamp(message.since), writer.uint32(10).fork()).join();
|
|
48232
|
+
}
|
|
48233
|
+
if (message.until !== void 0) {
|
|
48234
|
+
Timestamp.encode(toTimestamp(message.until), writer.uint32(18).fork()).join();
|
|
48235
|
+
}
|
|
48236
|
+
if (message.requestCount !== 0) {
|
|
48237
|
+
writer.uint32(24).uint64(message.requestCount);
|
|
48238
|
+
}
|
|
48239
|
+
for (const v of message.requestCountByStatusCode) {
|
|
48240
|
+
ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.encode(v, writer.uint32(34).fork()).join();
|
|
48241
|
+
}
|
|
48242
|
+
if (message.requestRatePerSecond !== 0) {
|
|
48243
|
+
writer.uint32(41).double(message.requestRatePerSecond);
|
|
48244
|
+
}
|
|
48245
|
+
Object.entries(message.requestPercentileStats).forEach(([key, value]) => {
|
|
48246
|
+
ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry.encode(
|
|
48247
|
+
{ key, value },
|
|
48248
|
+
writer.uint32(50).fork()
|
|
48249
|
+
).join();
|
|
48250
|
+
});
|
|
48251
|
+
Object.entries(message.containerPercentileStats).forEach(([key, value]) => {
|
|
48252
|
+
ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry.encode(
|
|
48253
|
+
{ key, value },
|
|
48254
|
+
writer.uint32(58).fork()
|
|
48255
|
+
).join();
|
|
48256
|
+
});
|
|
48257
|
+
if (message.inference !== void 0) {
|
|
48258
|
+
ServerGetTimeRangeStatsResponse_ServerInferenceStats.encode(message.inference, writer.uint32(66).fork()).join();
|
|
48259
|
+
}
|
|
48260
|
+
if (message.containerStartedCount !== 0) {
|
|
48261
|
+
writer.uint32(72).uint64(message.containerStartedCount);
|
|
48262
|
+
}
|
|
48263
|
+
if (message.containerErrorCount !== 0) {
|
|
48264
|
+
writer.uint32(80).uint64(message.containerErrorCount);
|
|
48265
|
+
}
|
|
48266
|
+
if (message.containerCreatingAtEndCount !== 0) {
|
|
48267
|
+
writer.uint32(88).uint64(message.containerCreatingAtEndCount);
|
|
48268
|
+
}
|
|
48269
|
+
return writer;
|
|
48270
|
+
},
|
|
48271
|
+
decode(input, length) {
|
|
48272
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48273
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48274
|
+
const message = createBaseServerGetTimeRangeStatsResponse();
|
|
48275
|
+
while (reader.pos < end) {
|
|
48276
|
+
const tag = reader.uint32();
|
|
48277
|
+
switch (tag >>> 3) {
|
|
48278
|
+
case 1: {
|
|
48279
|
+
if (tag !== 10) {
|
|
48280
|
+
break;
|
|
48281
|
+
}
|
|
48282
|
+
message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
48283
|
+
continue;
|
|
48284
|
+
}
|
|
48285
|
+
case 2: {
|
|
48286
|
+
if (tag !== 18) {
|
|
48287
|
+
break;
|
|
48288
|
+
}
|
|
48289
|
+
message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
48290
|
+
continue;
|
|
48291
|
+
}
|
|
48292
|
+
case 3: {
|
|
48293
|
+
if (tag !== 24) {
|
|
48294
|
+
break;
|
|
48295
|
+
}
|
|
48296
|
+
message.requestCount = longToNumber2(reader.uint64());
|
|
48297
|
+
continue;
|
|
48298
|
+
}
|
|
48299
|
+
case 4: {
|
|
48300
|
+
if (tag !== 34) {
|
|
48301
|
+
break;
|
|
48302
|
+
}
|
|
48303
|
+
message.requestCountByStatusCode.push(
|
|
48304
|
+
ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.decode(reader, reader.uint32())
|
|
48305
|
+
);
|
|
48306
|
+
continue;
|
|
48307
|
+
}
|
|
48308
|
+
case 5: {
|
|
48309
|
+
if (tag !== 41) {
|
|
48310
|
+
break;
|
|
48311
|
+
}
|
|
48312
|
+
message.requestRatePerSecond = reader.double();
|
|
48313
|
+
continue;
|
|
48314
|
+
}
|
|
48315
|
+
case 6: {
|
|
48316
|
+
if (tag !== 50) {
|
|
48317
|
+
break;
|
|
48318
|
+
}
|
|
48319
|
+
const entry6 = ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry.decode(reader, reader.uint32());
|
|
48320
|
+
if (entry6.value !== void 0) {
|
|
48321
|
+
message.requestPercentileStats[entry6.key] = entry6.value;
|
|
48322
|
+
}
|
|
48323
|
+
continue;
|
|
48324
|
+
}
|
|
48325
|
+
case 7: {
|
|
48326
|
+
if (tag !== 58) {
|
|
48327
|
+
break;
|
|
48328
|
+
}
|
|
48329
|
+
const entry7 = ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry.decode(reader, reader.uint32());
|
|
48330
|
+
if (entry7.value !== void 0) {
|
|
48331
|
+
message.containerPercentileStats[entry7.key] = entry7.value;
|
|
48332
|
+
}
|
|
48333
|
+
continue;
|
|
48334
|
+
}
|
|
48335
|
+
case 8: {
|
|
48336
|
+
if (tag !== 66) {
|
|
48337
|
+
break;
|
|
48338
|
+
}
|
|
48339
|
+
message.inference = ServerGetTimeRangeStatsResponse_ServerInferenceStats.decode(reader, reader.uint32());
|
|
48340
|
+
continue;
|
|
48341
|
+
}
|
|
48342
|
+
case 9: {
|
|
48343
|
+
if (tag !== 72) {
|
|
48344
|
+
break;
|
|
48345
|
+
}
|
|
48346
|
+
message.containerStartedCount = longToNumber2(reader.uint64());
|
|
48347
|
+
continue;
|
|
48348
|
+
}
|
|
48349
|
+
case 10: {
|
|
48350
|
+
if (tag !== 80) {
|
|
48351
|
+
break;
|
|
48352
|
+
}
|
|
48353
|
+
message.containerErrorCount = longToNumber2(reader.uint64());
|
|
48354
|
+
continue;
|
|
48355
|
+
}
|
|
48356
|
+
case 11: {
|
|
48357
|
+
if (tag !== 88) {
|
|
48358
|
+
break;
|
|
48359
|
+
}
|
|
48360
|
+
message.containerCreatingAtEndCount = longToNumber2(reader.uint64());
|
|
48361
|
+
continue;
|
|
48362
|
+
}
|
|
48363
|
+
}
|
|
48364
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48365
|
+
break;
|
|
48366
|
+
}
|
|
48367
|
+
reader.skip(tag & 7);
|
|
48368
|
+
}
|
|
48369
|
+
return message;
|
|
48370
|
+
},
|
|
48371
|
+
fromJSON(object) {
|
|
48372
|
+
return {
|
|
48373
|
+
since: isSet5(object.since) ? fromJsonTimestamp(object.since) : void 0,
|
|
48374
|
+
until: isSet5(object.until) ? fromJsonTimestamp(object.until) : void 0,
|
|
48375
|
+
requestCount: isSet5(object.requestCount) ? globalThis.Number(object.requestCount) : 0,
|
|
48376
|
+
requestCountByStatusCode: globalThis.Array.isArray(object?.requestCountByStatusCode) ? object.requestCountByStatusCode.map(
|
|
48377
|
+
(e) => ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.fromJSON(e)
|
|
48378
|
+
) : [],
|
|
48379
|
+
requestRatePerSecond: isSet5(object.requestRatePerSecond) ? globalThis.Number(object.requestRatePerSecond) : 0,
|
|
48380
|
+
requestPercentileStats: isObject2(object.requestPercentileStats) ? Object.entries(object.requestPercentileStats).reduce(
|
|
48381
|
+
(acc, [key, value]) => {
|
|
48382
|
+
acc[key] = StatsPercentileDistribution.fromJSON(value);
|
|
48383
|
+
return acc;
|
|
48384
|
+
},
|
|
48385
|
+
{}
|
|
48386
|
+
) : {},
|
|
48387
|
+
containerPercentileStats: isObject2(object.containerPercentileStats) ? Object.entries(object.containerPercentileStats).reduce(
|
|
48388
|
+
(acc, [key, value]) => {
|
|
48389
|
+
acc[key] = StatsPercentileDistribution.fromJSON(value);
|
|
48390
|
+
return acc;
|
|
48391
|
+
},
|
|
48392
|
+
{}
|
|
48393
|
+
) : {},
|
|
48394
|
+
inference: isSet5(object.inference) ? ServerGetTimeRangeStatsResponse_ServerInferenceStats.fromJSON(object.inference) : void 0,
|
|
48395
|
+
containerStartedCount: isSet5(object.containerStartedCount) ? globalThis.Number(object.containerStartedCount) : 0,
|
|
48396
|
+
containerErrorCount: isSet5(object.containerErrorCount) ? globalThis.Number(object.containerErrorCount) : 0,
|
|
48397
|
+
containerCreatingAtEndCount: isSet5(object.containerCreatingAtEndCount) ? globalThis.Number(object.containerCreatingAtEndCount) : 0
|
|
48398
|
+
};
|
|
48399
|
+
},
|
|
48400
|
+
toJSON(message) {
|
|
48401
|
+
const obj = {};
|
|
48402
|
+
if (message.since !== void 0) {
|
|
48403
|
+
obj.since = message.since.toISOString();
|
|
48404
|
+
}
|
|
48405
|
+
if (message.until !== void 0) {
|
|
48406
|
+
obj.until = message.until.toISOString();
|
|
48407
|
+
}
|
|
48408
|
+
if (message.requestCount !== 0) {
|
|
48409
|
+
obj.requestCount = Math.round(message.requestCount);
|
|
48410
|
+
}
|
|
48411
|
+
if (message.requestCountByStatusCode?.length) {
|
|
48412
|
+
obj.requestCountByStatusCode = message.requestCountByStatusCode.map(
|
|
48413
|
+
(e) => ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.toJSON(e)
|
|
48414
|
+
);
|
|
48415
|
+
}
|
|
48416
|
+
if (message.requestRatePerSecond !== 0) {
|
|
48417
|
+
obj.requestRatePerSecond = message.requestRatePerSecond;
|
|
48418
|
+
}
|
|
48419
|
+
if (message.requestPercentileStats) {
|
|
48420
|
+
const entries = Object.entries(message.requestPercentileStats);
|
|
48421
|
+
if (entries.length > 0) {
|
|
48422
|
+
obj.requestPercentileStats = {};
|
|
48423
|
+
entries.forEach(([k, v]) => {
|
|
48424
|
+
obj.requestPercentileStats[k] = StatsPercentileDistribution.toJSON(v);
|
|
48425
|
+
});
|
|
48426
|
+
}
|
|
48427
|
+
}
|
|
48428
|
+
if (message.containerPercentileStats) {
|
|
48429
|
+
const entries = Object.entries(message.containerPercentileStats);
|
|
48430
|
+
if (entries.length > 0) {
|
|
48431
|
+
obj.containerPercentileStats = {};
|
|
48432
|
+
entries.forEach(([k, v]) => {
|
|
48433
|
+
obj.containerPercentileStats[k] = StatsPercentileDistribution.toJSON(v);
|
|
48434
|
+
});
|
|
48435
|
+
}
|
|
48436
|
+
}
|
|
48437
|
+
if (message.inference !== void 0) {
|
|
48438
|
+
obj.inference = ServerGetTimeRangeStatsResponse_ServerInferenceStats.toJSON(message.inference);
|
|
48439
|
+
}
|
|
48440
|
+
if (message.containerStartedCount !== 0) {
|
|
48441
|
+
obj.containerStartedCount = Math.round(message.containerStartedCount);
|
|
48442
|
+
}
|
|
48443
|
+
if (message.containerErrorCount !== 0) {
|
|
48444
|
+
obj.containerErrorCount = Math.round(message.containerErrorCount);
|
|
48445
|
+
}
|
|
48446
|
+
if (message.containerCreatingAtEndCount !== 0) {
|
|
48447
|
+
obj.containerCreatingAtEndCount = Math.round(message.containerCreatingAtEndCount);
|
|
48448
|
+
}
|
|
48449
|
+
return obj;
|
|
48450
|
+
},
|
|
48451
|
+
create(base) {
|
|
48452
|
+
return ServerGetTimeRangeStatsResponse.fromPartial(base ?? {});
|
|
48453
|
+
},
|
|
48454
|
+
fromPartial(object) {
|
|
48455
|
+
const message = createBaseServerGetTimeRangeStatsResponse();
|
|
48456
|
+
message.since = object.since ?? void 0;
|
|
48457
|
+
message.until = object.until ?? void 0;
|
|
48458
|
+
message.requestCount = object.requestCount ?? 0;
|
|
48459
|
+
message.requestCountByStatusCode = object.requestCountByStatusCode?.map(
|
|
48460
|
+
(e) => ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.fromPartial(e)
|
|
48461
|
+
) || [];
|
|
48462
|
+
message.requestRatePerSecond = object.requestRatePerSecond ?? 0;
|
|
48463
|
+
message.requestPercentileStats = Object.entries(object.requestPercentileStats ?? {}).reduce((acc, [key, value]) => {
|
|
48464
|
+
if (value !== void 0) {
|
|
48465
|
+
acc[key] = StatsPercentileDistribution.fromPartial(value);
|
|
48466
|
+
}
|
|
48467
|
+
return acc;
|
|
48468
|
+
}, {});
|
|
48469
|
+
message.containerPercentileStats = Object.entries(object.containerPercentileStats ?? {}).reduce((acc, [key, value]) => {
|
|
48470
|
+
if (value !== void 0) {
|
|
48471
|
+
acc[key] = StatsPercentileDistribution.fromPartial(value);
|
|
48472
|
+
}
|
|
48473
|
+
return acc;
|
|
48474
|
+
}, {});
|
|
48475
|
+
message.inference = object.inference !== void 0 && object.inference !== null ? ServerGetTimeRangeStatsResponse_ServerInferenceStats.fromPartial(object.inference) : void 0;
|
|
48476
|
+
message.containerStartedCount = object.containerStartedCount ?? 0;
|
|
48477
|
+
message.containerErrorCount = object.containerErrorCount ?? 0;
|
|
48478
|
+
message.containerCreatingAtEndCount = object.containerCreatingAtEndCount ?? 0;
|
|
48479
|
+
return message;
|
|
48480
|
+
}
|
|
48481
|
+
};
|
|
48482
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats() {
|
|
48483
|
+
return { engine: 0, status: 0, percentileStats: {}, scalarStats: {} };
|
|
48484
|
+
}
|
|
48485
|
+
var ServerGetTimeRangeStatsResponse_ServerInferenceStats = {
|
|
48486
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48487
|
+
if (message.engine !== 0) {
|
|
48488
|
+
writer.uint32(8).int32(message.engine);
|
|
48489
|
+
}
|
|
48490
|
+
if (message.status !== 0) {
|
|
48491
|
+
writer.uint32(16).int32(message.status);
|
|
48492
|
+
}
|
|
48493
|
+
Object.entries(message.percentileStats).forEach(([key, value]) => {
|
|
48494
|
+
ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.encode(
|
|
48495
|
+
{ key, value },
|
|
48496
|
+
writer.uint32(26).fork()
|
|
48497
|
+
).join();
|
|
48498
|
+
});
|
|
48499
|
+
Object.entries(message.scalarStats).forEach(([key, value]) => {
|
|
48500
|
+
ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry.encode(
|
|
48501
|
+
{ key, value },
|
|
48502
|
+
writer.uint32(34).fork()
|
|
48503
|
+
).join();
|
|
48504
|
+
});
|
|
48505
|
+
return writer;
|
|
48506
|
+
},
|
|
48507
|
+
decode(input, length) {
|
|
48508
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48509
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48510
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats();
|
|
48511
|
+
while (reader.pos < end) {
|
|
48512
|
+
const tag = reader.uint32();
|
|
48513
|
+
switch (tag >>> 3) {
|
|
48514
|
+
case 1: {
|
|
48515
|
+
if (tag !== 8) {
|
|
48516
|
+
break;
|
|
48517
|
+
}
|
|
48518
|
+
message.engine = reader.int32();
|
|
48519
|
+
continue;
|
|
48520
|
+
}
|
|
48521
|
+
case 2: {
|
|
48522
|
+
if (tag !== 16) {
|
|
48523
|
+
break;
|
|
48524
|
+
}
|
|
48525
|
+
message.status = reader.int32();
|
|
48526
|
+
continue;
|
|
48527
|
+
}
|
|
48528
|
+
case 3: {
|
|
48529
|
+
if (tag !== 26) {
|
|
48530
|
+
break;
|
|
48531
|
+
}
|
|
48532
|
+
const entry3 = ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.decode(
|
|
48533
|
+
reader,
|
|
48534
|
+
reader.uint32()
|
|
48535
|
+
);
|
|
48536
|
+
if (entry3.value !== void 0) {
|
|
48537
|
+
message.percentileStats[entry3.key] = entry3.value;
|
|
48538
|
+
}
|
|
48539
|
+
continue;
|
|
48540
|
+
}
|
|
48541
|
+
case 4: {
|
|
48542
|
+
if (tag !== 34) {
|
|
48543
|
+
break;
|
|
48544
|
+
}
|
|
48545
|
+
const entry4 = ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry.decode(
|
|
48546
|
+
reader,
|
|
48547
|
+
reader.uint32()
|
|
48548
|
+
);
|
|
48549
|
+
if (entry4.value !== void 0) {
|
|
48550
|
+
message.scalarStats[entry4.key] = entry4.value;
|
|
48551
|
+
}
|
|
48552
|
+
continue;
|
|
48553
|
+
}
|
|
48554
|
+
}
|
|
48555
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48556
|
+
break;
|
|
48557
|
+
}
|
|
48558
|
+
reader.skip(tag & 7);
|
|
48559
|
+
}
|
|
48560
|
+
return message;
|
|
48561
|
+
},
|
|
48562
|
+
fromJSON(object) {
|
|
48563
|
+
return {
|
|
48564
|
+
engine: isSet5(object.engine) ? lLMEngineFromJSON(object.engine) : 0,
|
|
48565
|
+
status: isSet5(object.status) ? serverInferenceStatsStatusFromJSON(object.status) : 0,
|
|
48566
|
+
percentileStats: isObject2(object.percentileStats) ? Object.entries(object.percentileStats).reduce(
|
|
48567
|
+
(acc, [key, value]) => {
|
|
48568
|
+
acc[key] = StatsPercentileDistribution.fromJSON(value);
|
|
48569
|
+
return acc;
|
|
48570
|
+
},
|
|
48571
|
+
{}
|
|
48572
|
+
) : {},
|
|
48573
|
+
scalarStats: isObject2(object.scalarStats) ? Object.entries(object.scalarStats).reduce((acc, [key, value]) => {
|
|
48574
|
+
acc[key] = Number(value);
|
|
48575
|
+
return acc;
|
|
48576
|
+
}, {}) : {}
|
|
48577
|
+
};
|
|
48578
|
+
},
|
|
48579
|
+
toJSON(message) {
|
|
48580
|
+
const obj = {};
|
|
48581
|
+
if (message.engine !== 0) {
|
|
48582
|
+
obj.engine = lLMEngineToJSON(message.engine);
|
|
48583
|
+
}
|
|
48584
|
+
if (message.status !== 0) {
|
|
48585
|
+
obj.status = serverInferenceStatsStatusToJSON(message.status);
|
|
48586
|
+
}
|
|
48587
|
+
if (message.percentileStats) {
|
|
48588
|
+
const entries = Object.entries(message.percentileStats);
|
|
48589
|
+
if (entries.length > 0) {
|
|
48590
|
+
obj.percentileStats = {};
|
|
48591
|
+
entries.forEach(([k, v]) => {
|
|
48592
|
+
obj.percentileStats[k] = StatsPercentileDistribution.toJSON(v);
|
|
48593
|
+
});
|
|
48594
|
+
}
|
|
48595
|
+
}
|
|
48596
|
+
if (message.scalarStats) {
|
|
48597
|
+
const entries = Object.entries(message.scalarStats);
|
|
48598
|
+
if (entries.length > 0) {
|
|
48599
|
+
obj.scalarStats = {};
|
|
48600
|
+
entries.forEach(([k, v]) => {
|
|
48601
|
+
obj.scalarStats[k] = v;
|
|
48602
|
+
});
|
|
48603
|
+
}
|
|
48604
|
+
}
|
|
48605
|
+
return obj;
|
|
48606
|
+
},
|
|
48607
|
+
create(base) {
|
|
48608
|
+
return ServerGetTimeRangeStatsResponse_ServerInferenceStats.fromPartial(base ?? {});
|
|
48609
|
+
},
|
|
48610
|
+
fromPartial(object) {
|
|
48611
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats();
|
|
48612
|
+
message.engine = object.engine ?? 0;
|
|
48613
|
+
message.status = object.status ?? 0;
|
|
48614
|
+
message.percentileStats = Object.entries(object.percentileStats ?? {}).reduce((acc, [key, value]) => {
|
|
48615
|
+
if (value !== void 0) {
|
|
48616
|
+
acc[key] = StatsPercentileDistribution.fromPartial(value);
|
|
48617
|
+
}
|
|
48618
|
+
return acc;
|
|
48619
|
+
}, {});
|
|
48620
|
+
message.scalarStats = Object.entries(object.scalarStats ?? {}).reduce(
|
|
48621
|
+
(acc, [key, value]) => {
|
|
48622
|
+
if (value !== void 0) {
|
|
48623
|
+
acc[key] = globalThis.Number(value);
|
|
48624
|
+
}
|
|
48625
|
+
return acc;
|
|
48626
|
+
},
|
|
48627
|
+
{}
|
|
48628
|
+
);
|
|
48629
|
+
return message;
|
|
48630
|
+
}
|
|
48631
|
+
};
|
|
48632
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry() {
|
|
48633
|
+
return { key: "", value: void 0 };
|
|
48634
|
+
}
|
|
48635
|
+
var ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry = {
|
|
48636
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48637
|
+
if (message.key !== "") {
|
|
48638
|
+
writer.uint32(10).string(message.key);
|
|
48639
|
+
}
|
|
48640
|
+
if (message.value !== void 0) {
|
|
48641
|
+
StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
|
|
48642
|
+
}
|
|
48643
|
+
return writer;
|
|
48644
|
+
},
|
|
48645
|
+
decode(input, length) {
|
|
48646
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48647
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48648
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry();
|
|
48649
|
+
while (reader.pos < end) {
|
|
48650
|
+
const tag = reader.uint32();
|
|
48651
|
+
switch (tag >>> 3) {
|
|
48652
|
+
case 1: {
|
|
48653
|
+
if (tag !== 10) {
|
|
48654
|
+
break;
|
|
48655
|
+
}
|
|
48656
|
+
message.key = reader.string();
|
|
48657
|
+
continue;
|
|
48658
|
+
}
|
|
48659
|
+
case 2: {
|
|
48660
|
+
if (tag !== 18) {
|
|
48661
|
+
break;
|
|
48662
|
+
}
|
|
48663
|
+
message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
|
|
48664
|
+
continue;
|
|
48665
|
+
}
|
|
48666
|
+
}
|
|
48667
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48668
|
+
break;
|
|
48669
|
+
}
|
|
48670
|
+
reader.skip(tag & 7);
|
|
48671
|
+
}
|
|
48672
|
+
return message;
|
|
48673
|
+
},
|
|
48674
|
+
fromJSON(object) {
|
|
48675
|
+
return {
|
|
48676
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
48677
|
+
value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
|
|
48678
|
+
};
|
|
48679
|
+
},
|
|
48680
|
+
toJSON(message) {
|
|
48681
|
+
const obj = {};
|
|
48682
|
+
if (message.key !== "") {
|
|
48683
|
+
obj.key = message.key;
|
|
48684
|
+
}
|
|
48685
|
+
if (message.value !== void 0) {
|
|
48686
|
+
obj.value = StatsPercentileDistribution.toJSON(message.value);
|
|
48687
|
+
}
|
|
48688
|
+
return obj;
|
|
48689
|
+
},
|
|
48690
|
+
create(base) {
|
|
48691
|
+
return ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.fromPartial(base ?? {});
|
|
48692
|
+
},
|
|
48693
|
+
fromPartial(object) {
|
|
48694
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry();
|
|
48695
|
+
message.key = object.key ?? "";
|
|
48696
|
+
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
48697
|
+
return message;
|
|
48698
|
+
}
|
|
48699
|
+
};
|
|
48700
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry() {
|
|
48701
|
+
return { key: "", value: 0 };
|
|
48702
|
+
}
|
|
48703
|
+
var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
|
|
48704
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48705
|
+
if (message.key !== "") {
|
|
48706
|
+
writer.uint32(10).string(message.key);
|
|
48707
|
+
}
|
|
48708
|
+
if (message.value !== 0) {
|
|
48709
|
+
writer.uint32(17).double(message.value);
|
|
48710
|
+
}
|
|
48711
|
+
return writer;
|
|
48712
|
+
},
|
|
48713
|
+
decode(input, length) {
|
|
48714
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48715
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48716
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
|
|
48717
|
+
while (reader.pos < end) {
|
|
48718
|
+
const tag = reader.uint32();
|
|
48719
|
+
switch (tag >>> 3) {
|
|
48720
|
+
case 1: {
|
|
48721
|
+
if (tag !== 10) {
|
|
48722
|
+
break;
|
|
48723
|
+
}
|
|
48724
|
+
message.key = reader.string();
|
|
48725
|
+
continue;
|
|
48726
|
+
}
|
|
48727
|
+
case 2: {
|
|
48728
|
+
if (tag !== 17) {
|
|
48729
|
+
break;
|
|
48730
|
+
}
|
|
48731
|
+
message.value = reader.double();
|
|
48732
|
+
continue;
|
|
48733
|
+
}
|
|
48734
|
+
}
|
|
48735
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48736
|
+
break;
|
|
48737
|
+
}
|
|
48738
|
+
reader.skip(tag & 7);
|
|
48739
|
+
}
|
|
48740
|
+
return message;
|
|
48741
|
+
},
|
|
48742
|
+
fromJSON(object) {
|
|
48743
|
+
return {
|
|
48744
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
48745
|
+
value: isSet5(object.value) ? globalThis.Number(object.value) : 0
|
|
48746
|
+
};
|
|
48747
|
+
},
|
|
48748
|
+
toJSON(message) {
|
|
48749
|
+
const obj = {};
|
|
48750
|
+
if (message.key !== "") {
|
|
48751
|
+
obj.key = message.key;
|
|
48752
|
+
}
|
|
48753
|
+
if (message.value !== 0) {
|
|
48754
|
+
obj.value = message.value;
|
|
48755
|
+
}
|
|
48756
|
+
return obj;
|
|
48757
|
+
},
|
|
48758
|
+
create(base) {
|
|
48759
|
+
return ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry.fromPartial(base ?? {});
|
|
48760
|
+
},
|
|
48761
|
+
fromPartial(object) {
|
|
48762
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
|
|
48763
|
+
message.key = object.key ?? "";
|
|
48764
|
+
message.value = object.value ?? 0;
|
|
48765
|
+
return message;
|
|
48766
|
+
}
|
|
48767
|
+
};
|
|
48768
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount() {
|
|
48769
|
+
return { statusCode: 0, count: 0 };
|
|
48770
|
+
}
|
|
48771
|
+
var ServerGetTimeRangeStatsResponse_ServerStatusCodeCount = {
|
|
48772
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48773
|
+
if (message.statusCode !== 0) {
|
|
48774
|
+
writer.uint32(8).uint32(message.statusCode);
|
|
48775
|
+
}
|
|
48776
|
+
if (message.count !== 0) {
|
|
48777
|
+
writer.uint32(16).uint64(message.count);
|
|
48778
|
+
}
|
|
48779
|
+
return writer;
|
|
48780
|
+
},
|
|
48781
|
+
decode(input, length) {
|
|
48782
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48783
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48784
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
|
|
48785
|
+
while (reader.pos < end) {
|
|
48786
|
+
const tag = reader.uint32();
|
|
48787
|
+
switch (tag >>> 3) {
|
|
48788
|
+
case 1: {
|
|
48789
|
+
if (tag !== 8) {
|
|
48790
|
+
break;
|
|
48791
|
+
}
|
|
48792
|
+
message.statusCode = reader.uint32();
|
|
48793
|
+
continue;
|
|
48794
|
+
}
|
|
48795
|
+
case 2: {
|
|
48796
|
+
if (tag !== 16) {
|
|
48797
|
+
break;
|
|
48798
|
+
}
|
|
48799
|
+
message.count = longToNumber2(reader.uint64());
|
|
48800
|
+
continue;
|
|
48801
|
+
}
|
|
48802
|
+
}
|
|
48803
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48804
|
+
break;
|
|
48805
|
+
}
|
|
48806
|
+
reader.skip(tag & 7);
|
|
48807
|
+
}
|
|
48808
|
+
return message;
|
|
48809
|
+
},
|
|
48810
|
+
fromJSON(object) {
|
|
48811
|
+
return {
|
|
48812
|
+
statusCode: isSet5(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
|
|
48813
|
+
count: isSet5(object.count) ? globalThis.Number(object.count) : 0
|
|
48814
|
+
};
|
|
48815
|
+
},
|
|
48816
|
+
toJSON(message) {
|
|
48817
|
+
const obj = {};
|
|
48818
|
+
if (message.statusCode !== 0) {
|
|
48819
|
+
obj.statusCode = Math.round(message.statusCode);
|
|
48820
|
+
}
|
|
48821
|
+
if (message.count !== 0) {
|
|
48822
|
+
obj.count = Math.round(message.count);
|
|
48823
|
+
}
|
|
48824
|
+
return obj;
|
|
48825
|
+
},
|
|
48826
|
+
create(base) {
|
|
48827
|
+
return ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.fromPartial(base ?? {});
|
|
48828
|
+
},
|
|
48829
|
+
fromPartial(object) {
|
|
48830
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
|
|
48831
|
+
message.statusCode = object.statusCode ?? 0;
|
|
48832
|
+
message.count = object.count ?? 0;
|
|
48833
|
+
return message;
|
|
48834
|
+
}
|
|
48835
|
+
};
|
|
48836
|
+
function createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry() {
|
|
48837
|
+
return { key: "", value: void 0 };
|
|
48838
|
+
}
|
|
48839
|
+
var ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry = {
|
|
48840
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48841
|
+
if (message.key !== "") {
|
|
48842
|
+
writer.uint32(10).string(message.key);
|
|
48843
|
+
}
|
|
48844
|
+
if (message.value !== void 0) {
|
|
48845
|
+
StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
|
|
48846
|
+
}
|
|
48847
|
+
return writer;
|
|
48848
|
+
},
|
|
48849
|
+
decode(input, length) {
|
|
48850
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48851
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48852
|
+
const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
|
|
48853
|
+
while (reader.pos < end) {
|
|
48854
|
+
const tag = reader.uint32();
|
|
48855
|
+
switch (tag >>> 3) {
|
|
48856
|
+
case 1: {
|
|
48857
|
+
if (tag !== 10) {
|
|
48858
|
+
break;
|
|
48859
|
+
}
|
|
48860
|
+
message.key = reader.string();
|
|
48861
|
+
continue;
|
|
48862
|
+
}
|
|
48863
|
+
case 2: {
|
|
48864
|
+
if (tag !== 18) {
|
|
48865
|
+
break;
|
|
48866
|
+
}
|
|
48867
|
+
message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
|
|
48868
|
+
continue;
|
|
48869
|
+
}
|
|
48870
|
+
}
|
|
48871
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48872
|
+
break;
|
|
48873
|
+
}
|
|
48874
|
+
reader.skip(tag & 7);
|
|
48875
|
+
}
|
|
48876
|
+
return message;
|
|
48877
|
+
},
|
|
48878
|
+
fromJSON(object) {
|
|
48879
|
+
return {
|
|
48880
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
48881
|
+
value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
|
|
48882
|
+
};
|
|
48883
|
+
},
|
|
48884
|
+
toJSON(message) {
|
|
48885
|
+
const obj = {};
|
|
48886
|
+
if (message.key !== "") {
|
|
48887
|
+
obj.key = message.key;
|
|
48888
|
+
}
|
|
48889
|
+
if (message.value !== void 0) {
|
|
48890
|
+
obj.value = StatsPercentileDistribution.toJSON(message.value);
|
|
48891
|
+
}
|
|
48892
|
+
return obj;
|
|
48893
|
+
},
|
|
48894
|
+
create(base) {
|
|
48895
|
+
return ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry.fromPartial(base ?? {});
|
|
48896
|
+
},
|
|
48897
|
+
fromPartial(object) {
|
|
48898
|
+
const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
|
|
48899
|
+
message.key = object.key ?? "";
|
|
48900
|
+
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
48901
|
+
return message;
|
|
48902
|
+
}
|
|
48903
|
+
};
|
|
48904
|
+
function createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry() {
|
|
48905
|
+
return { key: "", value: void 0 };
|
|
48906
|
+
}
|
|
48907
|
+
var ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry = {
|
|
48908
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48909
|
+
if (message.key !== "") {
|
|
48910
|
+
writer.uint32(10).string(message.key);
|
|
48911
|
+
}
|
|
48912
|
+
if (message.value !== void 0) {
|
|
48913
|
+
StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
|
|
48914
|
+
}
|
|
48915
|
+
return writer;
|
|
48916
|
+
},
|
|
48917
|
+
decode(input, length) {
|
|
48918
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48919
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48920
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
|
|
48921
|
+
while (reader.pos < end) {
|
|
48922
|
+
const tag = reader.uint32();
|
|
48923
|
+
switch (tag >>> 3) {
|
|
48924
|
+
case 1: {
|
|
48925
|
+
if (tag !== 10) {
|
|
48926
|
+
break;
|
|
48927
|
+
}
|
|
48928
|
+
message.key = reader.string();
|
|
48929
|
+
continue;
|
|
48930
|
+
}
|
|
48931
|
+
case 2: {
|
|
48932
|
+
if (tag !== 18) {
|
|
48933
|
+
break;
|
|
48934
|
+
}
|
|
48935
|
+
message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
|
|
48936
|
+
continue;
|
|
48937
|
+
}
|
|
48938
|
+
}
|
|
48939
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48940
|
+
break;
|
|
48941
|
+
}
|
|
48942
|
+
reader.skip(tag & 7);
|
|
48943
|
+
}
|
|
48944
|
+
return message;
|
|
48945
|
+
},
|
|
48946
|
+
fromJSON(object) {
|
|
48947
|
+
return {
|
|
48948
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
48949
|
+
value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
|
|
48950
|
+
};
|
|
48951
|
+
},
|
|
48952
|
+
toJSON(message) {
|
|
48953
|
+
const obj = {};
|
|
48954
|
+
if (message.key !== "") {
|
|
48955
|
+
obj.key = message.key;
|
|
48956
|
+
}
|
|
48957
|
+
if (message.value !== void 0) {
|
|
48958
|
+
obj.value = StatsPercentileDistribution.toJSON(message.value);
|
|
48959
|
+
}
|
|
48960
|
+
return obj;
|
|
48961
|
+
},
|
|
48962
|
+
create(base) {
|
|
48963
|
+
return ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry.fromPartial(base ?? {});
|
|
48964
|
+
},
|
|
48965
|
+
fromPartial(object) {
|
|
48966
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
|
|
48967
|
+
message.key = object.key ?? "";
|
|
48968
|
+
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
48969
|
+
return message;
|
|
48970
|
+
}
|
|
48971
|
+
};
|
|
47277
48972
|
function createBaseServiceUser() {
|
|
47278
48973
|
return {
|
|
47279
48974
|
name: "",
|
|
@@ -51483,13 +53178,199 @@ var TunnelData = {
|
|
|
51483
53178
|
message.unencryptedPort = reader.uint32();
|
|
51484
53179
|
continue;
|
|
51485
53180
|
}
|
|
51486
|
-
case 5: {
|
|
51487
|
-
if (tag !== 40) {
|
|
51488
|
-
break;
|
|
51489
|
-
}
|
|
51490
|
-
message.containerPort = reader.uint32();
|
|
51491
|
-
continue;
|
|
51492
|
-
}
|
|
53181
|
+
case 5: {
|
|
53182
|
+
if (tag !== 40) {
|
|
53183
|
+
break;
|
|
53184
|
+
}
|
|
53185
|
+
message.containerPort = reader.uint32();
|
|
53186
|
+
continue;
|
|
53187
|
+
}
|
|
53188
|
+
}
|
|
53189
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
53190
|
+
break;
|
|
53191
|
+
}
|
|
53192
|
+
reader.skip(tag & 7);
|
|
53193
|
+
}
|
|
53194
|
+
return message;
|
|
53195
|
+
},
|
|
53196
|
+
fromJSON(object) {
|
|
53197
|
+
return {
|
|
53198
|
+
host: isSet5(object.host) ? globalThis.String(object.host) : "",
|
|
53199
|
+
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
53200
|
+
unencryptedHost: isSet5(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
53201
|
+
unencryptedPort: isSet5(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0,
|
|
53202
|
+
containerPort: isSet5(object.containerPort) ? globalThis.Number(object.containerPort) : 0
|
|
53203
|
+
};
|
|
53204
|
+
},
|
|
53205
|
+
toJSON(message) {
|
|
53206
|
+
const obj = {};
|
|
53207
|
+
if (message.host !== "") {
|
|
53208
|
+
obj.host = message.host;
|
|
53209
|
+
}
|
|
53210
|
+
if (message.port !== 0) {
|
|
53211
|
+
obj.port = Math.round(message.port);
|
|
53212
|
+
}
|
|
53213
|
+
if (message.unencryptedHost !== void 0) {
|
|
53214
|
+
obj.unencryptedHost = message.unencryptedHost;
|
|
53215
|
+
}
|
|
53216
|
+
if (message.unencryptedPort !== void 0) {
|
|
53217
|
+
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
53218
|
+
}
|
|
53219
|
+
if (message.containerPort !== 0) {
|
|
53220
|
+
obj.containerPort = Math.round(message.containerPort);
|
|
53221
|
+
}
|
|
53222
|
+
return obj;
|
|
53223
|
+
},
|
|
53224
|
+
create(base) {
|
|
53225
|
+
return TunnelData.fromPartial(base ?? {});
|
|
53226
|
+
},
|
|
53227
|
+
fromPartial(object) {
|
|
53228
|
+
const message = createBaseTunnelData();
|
|
53229
|
+
message.host = object.host ?? "";
|
|
53230
|
+
message.port = object.port ?? 0;
|
|
53231
|
+
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
53232
|
+
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
53233
|
+
message.containerPort = object.containerPort ?? 0;
|
|
53234
|
+
return message;
|
|
53235
|
+
}
|
|
53236
|
+
};
|
|
53237
|
+
function createBaseTunnelStartRequest() {
|
|
53238
|
+
return { port: 0, unencrypted: false, tunnelType: void 0 };
|
|
53239
|
+
}
|
|
53240
|
+
var TunnelStartRequest = {
|
|
53241
|
+
encode(message, writer = new BinaryWriter()) {
|
|
53242
|
+
if (message.port !== 0) {
|
|
53243
|
+
writer.uint32(8).uint32(message.port);
|
|
53244
|
+
}
|
|
53245
|
+
if (message.unencrypted !== false) {
|
|
53246
|
+
writer.uint32(16).bool(message.unencrypted);
|
|
53247
|
+
}
|
|
53248
|
+
if (message.tunnelType !== void 0) {
|
|
53249
|
+
writer.uint32(24).int32(message.tunnelType);
|
|
53250
|
+
}
|
|
53251
|
+
return writer;
|
|
53252
|
+
},
|
|
53253
|
+
decode(input, length) {
|
|
53254
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
53255
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
53256
|
+
const message = createBaseTunnelStartRequest();
|
|
53257
|
+
while (reader.pos < end) {
|
|
53258
|
+
const tag = reader.uint32();
|
|
53259
|
+
switch (tag >>> 3) {
|
|
53260
|
+
case 1: {
|
|
53261
|
+
if (tag !== 8) {
|
|
53262
|
+
break;
|
|
53263
|
+
}
|
|
53264
|
+
message.port = reader.uint32();
|
|
53265
|
+
continue;
|
|
53266
|
+
}
|
|
53267
|
+
case 2: {
|
|
53268
|
+
if (tag !== 16) {
|
|
53269
|
+
break;
|
|
53270
|
+
}
|
|
53271
|
+
message.unencrypted = reader.bool();
|
|
53272
|
+
continue;
|
|
53273
|
+
}
|
|
53274
|
+
case 3: {
|
|
53275
|
+
if (tag !== 24) {
|
|
53276
|
+
break;
|
|
53277
|
+
}
|
|
53278
|
+
message.tunnelType = reader.int32();
|
|
53279
|
+
continue;
|
|
53280
|
+
}
|
|
53281
|
+
}
|
|
53282
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
53283
|
+
break;
|
|
53284
|
+
}
|
|
53285
|
+
reader.skip(tag & 7);
|
|
53286
|
+
}
|
|
53287
|
+
return message;
|
|
53288
|
+
},
|
|
53289
|
+
fromJSON(object) {
|
|
53290
|
+
return {
|
|
53291
|
+
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
53292
|
+
unencrypted: isSet5(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
|
|
53293
|
+
tunnelType: isSet5(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
|
|
53294
|
+
};
|
|
53295
|
+
},
|
|
53296
|
+
toJSON(message) {
|
|
53297
|
+
const obj = {};
|
|
53298
|
+
if (message.port !== 0) {
|
|
53299
|
+
obj.port = Math.round(message.port);
|
|
53300
|
+
}
|
|
53301
|
+
if (message.unencrypted !== false) {
|
|
53302
|
+
obj.unencrypted = message.unencrypted;
|
|
53303
|
+
}
|
|
53304
|
+
if (message.tunnelType !== void 0) {
|
|
53305
|
+
obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
|
|
53306
|
+
}
|
|
53307
|
+
return obj;
|
|
53308
|
+
},
|
|
53309
|
+
create(base) {
|
|
53310
|
+
return TunnelStartRequest.fromPartial(base ?? {});
|
|
53311
|
+
},
|
|
53312
|
+
fromPartial(object) {
|
|
53313
|
+
const message = createBaseTunnelStartRequest();
|
|
53314
|
+
message.port = object.port ?? 0;
|
|
53315
|
+
message.unencrypted = object.unencrypted ?? false;
|
|
53316
|
+
message.tunnelType = object.tunnelType ?? void 0;
|
|
53317
|
+
return message;
|
|
53318
|
+
}
|
|
53319
|
+
};
|
|
53320
|
+
function createBaseTunnelStartResponse() {
|
|
53321
|
+
return { host: "", port: 0, unencryptedHost: void 0, unencryptedPort: void 0 };
|
|
53322
|
+
}
|
|
53323
|
+
var TunnelStartResponse = {
|
|
53324
|
+
encode(message, writer = new BinaryWriter()) {
|
|
53325
|
+
if (message.host !== "") {
|
|
53326
|
+
writer.uint32(10).string(message.host);
|
|
53327
|
+
}
|
|
53328
|
+
if (message.port !== 0) {
|
|
53329
|
+
writer.uint32(16).uint32(message.port);
|
|
53330
|
+
}
|
|
53331
|
+
if (message.unencryptedHost !== void 0) {
|
|
53332
|
+
writer.uint32(26).string(message.unencryptedHost);
|
|
53333
|
+
}
|
|
53334
|
+
if (message.unencryptedPort !== void 0) {
|
|
53335
|
+
writer.uint32(32).uint32(message.unencryptedPort);
|
|
53336
|
+
}
|
|
53337
|
+
return writer;
|
|
53338
|
+
},
|
|
53339
|
+
decode(input, length) {
|
|
53340
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
53341
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
53342
|
+
const message = createBaseTunnelStartResponse();
|
|
53343
|
+
while (reader.pos < end) {
|
|
53344
|
+
const tag = reader.uint32();
|
|
53345
|
+
switch (tag >>> 3) {
|
|
53346
|
+
case 1: {
|
|
53347
|
+
if (tag !== 10) {
|
|
53348
|
+
break;
|
|
53349
|
+
}
|
|
53350
|
+
message.host = reader.string();
|
|
53351
|
+
continue;
|
|
53352
|
+
}
|
|
53353
|
+
case 2: {
|
|
53354
|
+
if (tag !== 16) {
|
|
53355
|
+
break;
|
|
53356
|
+
}
|
|
53357
|
+
message.port = reader.uint32();
|
|
53358
|
+
continue;
|
|
53359
|
+
}
|
|
53360
|
+
case 3: {
|
|
53361
|
+
if (tag !== 26) {
|
|
53362
|
+
break;
|
|
53363
|
+
}
|
|
53364
|
+
message.unencryptedHost = reader.string();
|
|
53365
|
+
continue;
|
|
53366
|
+
}
|
|
53367
|
+
case 4: {
|
|
53368
|
+
if (tag !== 32) {
|
|
53369
|
+
break;
|
|
53370
|
+
}
|
|
53371
|
+
message.unencryptedPort = reader.uint32();
|
|
53372
|
+
continue;
|
|
53373
|
+
}
|
|
51493
53374
|
}
|
|
51494
53375
|
if ((tag & 7) === 4 || tag === 0) {
|
|
51495
53376
|
break;
|
|
@@ -51503,8 +53384,7 @@ var TunnelData = {
|
|
|
51503
53384
|
host: isSet5(object.host) ? globalThis.String(object.host) : "",
|
|
51504
53385
|
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
51505
53386
|
unencryptedHost: isSet5(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
51506
|
-
unencryptedPort: isSet5(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
51507
|
-
containerPort: isSet5(object.containerPort) ? globalThis.Number(object.containerPort) : 0
|
|
53387
|
+
unencryptedPort: isSet5(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
51508
53388
|
};
|
|
51509
53389
|
},
|
|
51510
53390
|
toJSON(message) {
|
|
@@ -51521,44 +53401,34 @@ var TunnelData = {
|
|
|
51521
53401
|
if (message.unencryptedPort !== void 0) {
|
|
51522
53402
|
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
51523
53403
|
}
|
|
51524
|
-
if (message.containerPort !== 0) {
|
|
51525
|
-
obj.containerPort = Math.round(message.containerPort);
|
|
51526
|
-
}
|
|
51527
53404
|
return obj;
|
|
51528
53405
|
},
|
|
51529
53406
|
create(base) {
|
|
51530
|
-
return
|
|
53407
|
+
return TunnelStartResponse.fromPartial(base ?? {});
|
|
51531
53408
|
},
|
|
51532
53409
|
fromPartial(object) {
|
|
51533
|
-
const message =
|
|
53410
|
+
const message = createBaseTunnelStartResponse();
|
|
51534
53411
|
message.host = object.host ?? "";
|
|
51535
53412
|
message.port = object.port ?? 0;
|
|
51536
53413
|
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
51537
53414
|
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
51538
|
-
message.containerPort = object.containerPort ?? 0;
|
|
51539
53415
|
return message;
|
|
51540
53416
|
}
|
|
51541
53417
|
};
|
|
51542
|
-
function
|
|
51543
|
-
return { port: 0
|
|
53418
|
+
function createBaseTunnelStopRequest() {
|
|
53419
|
+
return { port: 0 };
|
|
51544
53420
|
}
|
|
51545
|
-
var
|
|
53421
|
+
var TunnelStopRequest = {
|
|
51546
53422
|
encode(message, writer = new BinaryWriter()) {
|
|
51547
53423
|
if (message.port !== 0) {
|
|
51548
53424
|
writer.uint32(8).uint32(message.port);
|
|
51549
53425
|
}
|
|
51550
|
-
if (message.unencrypted !== false) {
|
|
51551
|
-
writer.uint32(16).bool(message.unencrypted);
|
|
51552
|
-
}
|
|
51553
|
-
if (message.tunnelType !== void 0) {
|
|
51554
|
-
writer.uint32(24).int32(message.tunnelType);
|
|
51555
|
-
}
|
|
51556
53426
|
return writer;
|
|
51557
53427
|
},
|
|
51558
53428
|
decode(input, length) {
|
|
51559
53429
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51560
53430
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51561
|
-
const message =
|
|
53431
|
+
const message = createBaseTunnelStopRequest();
|
|
51562
53432
|
while (reader.pos < end) {
|
|
51563
53433
|
const tag = reader.uint32();
|
|
51564
53434
|
switch (tag >>> 3) {
|
|
@@ -51569,20 +53439,6 @@ var TunnelStartRequest = {
|
|
|
51569
53439
|
message.port = reader.uint32();
|
|
51570
53440
|
continue;
|
|
51571
53441
|
}
|
|
51572
|
-
case 2: {
|
|
51573
|
-
if (tag !== 16) {
|
|
51574
|
-
break;
|
|
51575
|
-
}
|
|
51576
|
-
message.unencrypted = reader.bool();
|
|
51577
|
-
continue;
|
|
51578
|
-
}
|
|
51579
|
-
case 3: {
|
|
51580
|
-
if (tag !== 24) {
|
|
51581
|
-
break;
|
|
51582
|
-
}
|
|
51583
|
-
message.tunnelType = reader.int32();
|
|
51584
|
-
continue;
|
|
51585
|
-
}
|
|
51586
53442
|
}
|
|
51587
53443
|
if ((tag & 7) === 4 || tag === 0) {
|
|
51588
53444
|
break;
|
|
@@ -51592,88 +53448,46 @@ var TunnelStartRequest = {
|
|
|
51592
53448
|
return message;
|
|
51593
53449
|
},
|
|
51594
53450
|
fromJSON(object) {
|
|
51595
|
-
return {
|
|
51596
|
-
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
51597
|
-
unencrypted: isSet5(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
|
|
51598
|
-
tunnelType: isSet5(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
|
|
51599
|
-
};
|
|
53451
|
+
return { port: isSet5(object.port) ? globalThis.Number(object.port) : 0 };
|
|
51600
53452
|
},
|
|
51601
53453
|
toJSON(message) {
|
|
51602
53454
|
const obj = {};
|
|
51603
53455
|
if (message.port !== 0) {
|
|
51604
53456
|
obj.port = Math.round(message.port);
|
|
51605
53457
|
}
|
|
51606
|
-
if (message.unencrypted !== false) {
|
|
51607
|
-
obj.unencrypted = message.unencrypted;
|
|
51608
|
-
}
|
|
51609
|
-
if (message.tunnelType !== void 0) {
|
|
51610
|
-
obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
|
|
51611
|
-
}
|
|
51612
53458
|
return obj;
|
|
51613
53459
|
},
|
|
51614
53460
|
create(base) {
|
|
51615
|
-
return
|
|
53461
|
+
return TunnelStopRequest.fromPartial(base ?? {});
|
|
51616
53462
|
},
|
|
51617
53463
|
fromPartial(object) {
|
|
51618
|
-
const message =
|
|
53464
|
+
const message = createBaseTunnelStopRequest();
|
|
51619
53465
|
message.port = object.port ?? 0;
|
|
51620
|
-
message.unencrypted = object.unencrypted ?? false;
|
|
51621
|
-
message.tunnelType = object.tunnelType ?? void 0;
|
|
51622
53466
|
return message;
|
|
51623
53467
|
}
|
|
51624
53468
|
};
|
|
51625
|
-
function
|
|
51626
|
-
return {
|
|
53469
|
+
function createBaseTunnelStopResponse() {
|
|
53470
|
+
return { exists: false };
|
|
51627
53471
|
}
|
|
51628
|
-
var
|
|
53472
|
+
var TunnelStopResponse = {
|
|
51629
53473
|
encode(message, writer = new BinaryWriter()) {
|
|
51630
|
-
if (message.
|
|
51631
|
-
writer.uint32(
|
|
51632
|
-
}
|
|
51633
|
-
if (message.port !== 0) {
|
|
51634
|
-
writer.uint32(16).uint32(message.port);
|
|
51635
|
-
}
|
|
51636
|
-
if (message.unencryptedHost !== void 0) {
|
|
51637
|
-
writer.uint32(26).string(message.unencryptedHost);
|
|
51638
|
-
}
|
|
51639
|
-
if (message.unencryptedPort !== void 0) {
|
|
51640
|
-
writer.uint32(32).uint32(message.unencryptedPort);
|
|
53474
|
+
if (message.exists !== false) {
|
|
53475
|
+
writer.uint32(8).bool(message.exists);
|
|
51641
53476
|
}
|
|
51642
53477
|
return writer;
|
|
51643
53478
|
},
|
|
51644
53479
|
decode(input, length) {
|
|
51645
53480
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51646
53481
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51647
|
-
const message =
|
|
53482
|
+
const message = createBaseTunnelStopResponse();
|
|
51648
53483
|
while (reader.pos < end) {
|
|
51649
53484
|
const tag = reader.uint32();
|
|
51650
53485
|
switch (tag >>> 3) {
|
|
51651
53486
|
case 1: {
|
|
51652
|
-
if (tag !==
|
|
51653
|
-
break;
|
|
51654
|
-
}
|
|
51655
|
-
message.host = reader.string();
|
|
51656
|
-
continue;
|
|
51657
|
-
}
|
|
51658
|
-
case 2: {
|
|
51659
|
-
if (tag !== 16) {
|
|
51660
|
-
break;
|
|
51661
|
-
}
|
|
51662
|
-
message.port = reader.uint32();
|
|
51663
|
-
continue;
|
|
51664
|
-
}
|
|
51665
|
-
case 3: {
|
|
51666
|
-
if (tag !== 26) {
|
|
51667
|
-
break;
|
|
51668
|
-
}
|
|
51669
|
-
message.unencryptedHost = reader.string();
|
|
51670
|
-
continue;
|
|
51671
|
-
}
|
|
51672
|
-
case 4: {
|
|
51673
|
-
if (tag !== 32) {
|
|
53487
|
+
if (tag !== 8) {
|
|
51674
53488
|
break;
|
|
51675
53489
|
}
|
|
51676
|
-
message.
|
|
53490
|
+
message.exists = reader.bool();
|
|
51677
53491
|
continue;
|
|
51678
53492
|
}
|
|
51679
53493
|
}
|
|
@@ -51685,63 +53499,46 @@ var TunnelStartResponse = {
|
|
|
51685
53499
|
return message;
|
|
51686
53500
|
},
|
|
51687
53501
|
fromJSON(object) {
|
|
51688
|
-
return {
|
|
51689
|
-
host: isSet5(object.host) ? globalThis.String(object.host) : "",
|
|
51690
|
-
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
51691
|
-
unencryptedHost: isSet5(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
51692
|
-
unencryptedPort: isSet5(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
51693
|
-
};
|
|
53502
|
+
return { exists: isSet5(object.exists) ? globalThis.Boolean(object.exists) : false };
|
|
51694
53503
|
},
|
|
51695
53504
|
toJSON(message) {
|
|
51696
53505
|
const obj = {};
|
|
51697
|
-
if (message.
|
|
51698
|
-
obj.
|
|
51699
|
-
}
|
|
51700
|
-
if (message.port !== 0) {
|
|
51701
|
-
obj.port = Math.round(message.port);
|
|
51702
|
-
}
|
|
51703
|
-
if (message.unencryptedHost !== void 0) {
|
|
51704
|
-
obj.unencryptedHost = message.unencryptedHost;
|
|
51705
|
-
}
|
|
51706
|
-
if (message.unencryptedPort !== void 0) {
|
|
51707
|
-
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
53506
|
+
if (message.exists !== false) {
|
|
53507
|
+
obj.exists = message.exists;
|
|
51708
53508
|
}
|
|
51709
53509
|
return obj;
|
|
51710
53510
|
},
|
|
51711
53511
|
create(base) {
|
|
51712
|
-
return
|
|
53512
|
+
return TunnelStopResponse.fromPartial(base ?? {});
|
|
51713
53513
|
},
|
|
51714
53514
|
fromPartial(object) {
|
|
51715
|
-
const message =
|
|
51716
|
-
message.
|
|
51717
|
-
message.port = object.port ?? 0;
|
|
51718
|
-
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
51719
|
-
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
53515
|
+
const message = createBaseTunnelStopResponse();
|
|
53516
|
+
message.exists = object.exists ?? false;
|
|
51720
53517
|
return message;
|
|
51721
53518
|
}
|
|
51722
53519
|
};
|
|
51723
|
-
function
|
|
51724
|
-
return {
|
|
53520
|
+
function createBaseUploadUrlList() {
|
|
53521
|
+
return { items: [] };
|
|
51725
53522
|
}
|
|
51726
|
-
var
|
|
53523
|
+
var UploadUrlList = {
|
|
51727
53524
|
encode(message, writer = new BinaryWriter()) {
|
|
51728
|
-
|
|
51729
|
-
writer.uint32(
|
|
53525
|
+
for (const v of message.items) {
|
|
53526
|
+
writer.uint32(10).string(v);
|
|
51730
53527
|
}
|
|
51731
53528
|
return writer;
|
|
51732
53529
|
},
|
|
51733
53530
|
decode(input, length) {
|
|
51734
53531
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51735
53532
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51736
|
-
const message =
|
|
53533
|
+
const message = createBaseUploadUrlList();
|
|
51737
53534
|
while (reader.pos < end) {
|
|
51738
53535
|
const tag = reader.uint32();
|
|
51739
53536
|
switch (tag >>> 3) {
|
|
51740
53537
|
case 1: {
|
|
51741
|
-
if (tag !==
|
|
53538
|
+
if (tag !== 10) {
|
|
51742
53539
|
break;
|
|
51743
53540
|
}
|
|
51744
|
-
message.
|
|
53541
|
+
message.items.push(reader.string());
|
|
51745
53542
|
continue;
|
|
51746
53543
|
}
|
|
51747
53544
|
}
|
|
@@ -51753,89 +53550,47 @@ var TunnelStopRequest = {
|
|
|
51753
53550
|
return message;
|
|
51754
53551
|
},
|
|
51755
53552
|
fromJSON(object) {
|
|
51756
|
-
return {
|
|
53553
|
+
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => globalThis.String(e)) : [] };
|
|
51757
53554
|
},
|
|
51758
53555
|
toJSON(message) {
|
|
51759
53556
|
const obj = {};
|
|
51760
|
-
if (message.
|
|
51761
|
-
obj.
|
|
53557
|
+
if (message.items?.length) {
|
|
53558
|
+
obj.items = message.items;
|
|
51762
53559
|
}
|
|
51763
53560
|
return obj;
|
|
51764
53561
|
},
|
|
51765
53562
|
create(base) {
|
|
51766
|
-
return
|
|
53563
|
+
return UploadUrlList.fromPartial(base ?? {});
|
|
51767
53564
|
},
|
|
51768
53565
|
fromPartial(object) {
|
|
51769
|
-
const message =
|
|
51770
|
-
message.
|
|
53566
|
+
const message = createBaseUploadUrlList();
|
|
53567
|
+
message.items = object.items?.map((e) => e) || [];
|
|
51771
53568
|
return message;
|
|
51772
53569
|
}
|
|
51773
53570
|
};
|
|
51774
|
-
function
|
|
51775
|
-
return {
|
|
53571
|
+
function createBaseUserActionInfo() {
|
|
53572
|
+
return { userId: "", serviceUserId: "", timestamp: 0, requestedBy: "" };
|
|
51776
53573
|
}
|
|
51777
|
-
var
|
|
53574
|
+
var UserActionInfo = {
|
|
51778
53575
|
encode(message, writer = new BinaryWriter()) {
|
|
51779
|
-
if (message.
|
|
51780
|
-
writer.uint32(
|
|
53576
|
+
if (message.userId !== "") {
|
|
53577
|
+
writer.uint32(10).string(message.userId);
|
|
51781
53578
|
}
|
|
51782
|
-
|
|
51783
|
-
|
|
51784
|
-
decode(input, length) {
|
|
51785
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51786
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51787
|
-
const message = createBaseTunnelStopResponse();
|
|
51788
|
-
while (reader.pos < end) {
|
|
51789
|
-
const tag = reader.uint32();
|
|
51790
|
-
switch (tag >>> 3) {
|
|
51791
|
-
case 1: {
|
|
51792
|
-
if (tag !== 8) {
|
|
51793
|
-
break;
|
|
51794
|
-
}
|
|
51795
|
-
message.exists = reader.bool();
|
|
51796
|
-
continue;
|
|
51797
|
-
}
|
|
51798
|
-
}
|
|
51799
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
51800
|
-
break;
|
|
51801
|
-
}
|
|
51802
|
-
reader.skip(tag & 7);
|
|
53579
|
+
if (message.serviceUserId !== "") {
|
|
53580
|
+
writer.uint32(34).string(message.serviceUserId);
|
|
51803
53581
|
}
|
|
51804
|
-
|
|
51805
|
-
|
|
51806
|
-
fromJSON(object) {
|
|
51807
|
-
return { exists: isSet5(object.exists) ? globalThis.Boolean(object.exists) : false };
|
|
51808
|
-
},
|
|
51809
|
-
toJSON(message) {
|
|
51810
|
-
const obj = {};
|
|
51811
|
-
if (message.exists !== false) {
|
|
51812
|
-
obj.exists = message.exists;
|
|
53582
|
+
if (message.timestamp !== 0) {
|
|
53583
|
+
writer.uint32(17).double(message.timestamp);
|
|
51813
53584
|
}
|
|
51814
|
-
|
|
51815
|
-
|
|
51816
|
-
create(base) {
|
|
51817
|
-
return TunnelStopResponse.fromPartial(base ?? {});
|
|
51818
|
-
},
|
|
51819
|
-
fromPartial(object) {
|
|
51820
|
-
const message = createBaseTunnelStopResponse();
|
|
51821
|
-
message.exists = object.exists ?? false;
|
|
51822
|
-
return message;
|
|
51823
|
-
}
|
|
51824
|
-
};
|
|
51825
|
-
function createBaseUploadUrlList() {
|
|
51826
|
-
return { items: [] };
|
|
51827
|
-
}
|
|
51828
|
-
var UploadUrlList = {
|
|
51829
|
-
encode(message, writer = new BinaryWriter()) {
|
|
51830
|
-
for (const v of message.items) {
|
|
51831
|
-
writer.uint32(10).string(v);
|
|
53585
|
+
if (message.requestedBy !== "") {
|
|
53586
|
+
writer.uint32(26).string(message.requestedBy);
|
|
51832
53587
|
}
|
|
51833
53588
|
return writer;
|
|
51834
53589
|
},
|
|
51835
53590
|
decode(input, length) {
|
|
51836
53591
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51837
53592
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51838
|
-
const message =
|
|
53593
|
+
const message = createBaseUserActionInfo();
|
|
51839
53594
|
while (reader.pos < end) {
|
|
51840
53595
|
const tag = reader.uint32();
|
|
51841
53596
|
switch (tag >>> 3) {
|
|
@@ -51843,7 +53598,28 @@ var UploadUrlList = {
|
|
|
51843
53598
|
if (tag !== 10) {
|
|
51844
53599
|
break;
|
|
51845
53600
|
}
|
|
51846
|
-
message.
|
|
53601
|
+
message.userId = reader.string();
|
|
53602
|
+
continue;
|
|
53603
|
+
}
|
|
53604
|
+
case 4: {
|
|
53605
|
+
if (tag !== 34) {
|
|
53606
|
+
break;
|
|
53607
|
+
}
|
|
53608
|
+
message.serviceUserId = reader.string();
|
|
53609
|
+
continue;
|
|
53610
|
+
}
|
|
53611
|
+
case 2: {
|
|
53612
|
+
if (tag !== 17) {
|
|
53613
|
+
break;
|
|
53614
|
+
}
|
|
53615
|
+
message.timestamp = reader.double();
|
|
53616
|
+
continue;
|
|
53617
|
+
}
|
|
53618
|
+
case 3: {
|
|
53619
|
+
if (tag !== 26) {
|
|
53620
|
+
break;
|
|
53621
|
+
}
|
|
53622
|
+
message.requestedBy = reader.string();
|
|
51847
53623
|
continue;
|
|
51848
53624
|
}
|
|
51849
53625
|
}
|
|
@@ -51855,21 +53631,38 @@ var UploadUrlList = {
|
|
|
51855
53631
|
return message;
|
|
51856
53632
|
},
|
|
51857
53633
|
fromJSON(object) {
|
|
51858
|
-
return {
|
|
53634
|
+
return {
|
|
53635
|
+
userId: isSet5(object.userId) ? globalThis.String(object.userId) : "",
|
|
53636
|
+
serviceUserId: isSet5(object.serviceUserId) ? globalThis.String(object.serviceUserId) : "",
|
|
53637
|
+
timestamp: isSet5(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
|
|
53638
|
+
requestedBy: isSet5(object.requestedBy) ? globalThis.String(object.requestedBy) : ""
|
|
53639
|
+
};
|
|
51859
53640
|
},
|
|
51860
53641
|
toJSON(message) {
|
|
51861
53642
|
const obj = {};
|
|
51862
|
-
if (message.
|
|
51863
|
-
obj.
|
|
53643
|
+
if (message.userId !== "") {
|
|
53644
|
+
obj.userId = message.userId;
|
|
53645
|
+
}
|
|
53646
|
+
if (message.serviceUserId !== "") {
|
|
53647
|
+
obj.serviceUserId = message.serviceUserId;
|
|
53648
|
+
}
|
|
53649
|
+
if (message.timestamp !== 0) {
|
|
53650
|
+
obj.timestamp = message.timestamp;
|
|
53651
|
+
}
|
|
53652
|
+
if (message.requestedBy !== "") {
|
|
53653
|
+
obj.requestedBy = message.requestedBy;
|
|
51864
53654
|
}
|
|
51865
53655
|
return obj;
|
|
51866
53656
|
},
|
|
51867
53657
|
create(base) {
|
|
51868
|
-
return
|
|
53658
|
+
return UserActionInfo.fromPartial(base ?? {});
|
|
51869
53659
|
},
|
|
51870
53660
|
fromPartial(object) {
|
|
51871
|
-
const message =
|
|
51872
|
-
message.
|
|
53661
|
+
const message = createBaseUserActionInfo();
|
|
53662
|
+
message.userId = object.userId ?? "";
|
|
53663
|
+
message.serviceUserId = object.serviceUserId ?? "";
|
|
53664
|
+
message.timestamp = object.timestamp ?? 0;
|
|
53665
|
+
message.requestedBy = object.requestedBy ?? "";
|
|
51873
53666
|
return message;
|
|
51874
53667
|
}
|
|
51875
53668
|
};
|
|
@@ -55194,7 +56987,7 @@ var WebhookConfig = {
|
|
|
55194
56987
|
}
|
|
55195
56988
|
};
|
|
55196
56989
|
function createBaseWebhookToken() {
|
|
55197
|
-
return { tokenId: "", createdAt: 0, scoped: false };
|
|
56990
|
+
return { tokenId: "", createdAt: 0, scoped: false, name: "", createdBy: void 0 };
|
|
55198
56991
|
}
|
|
55199
56992
|
var WebhookToken = {
|
|
55200
56993
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -55207,6 +57000,12 @@ var WebhookToken = {
|
|
|
55207
57000
|
if (message.scoped !== false) {
|
|
55208
57001
|
writer.uint32(24).bool(message.scoped);
|
|
55209
57002
|
}
|
|
57003
|
+
if (message.name !== "") {
|
|
57004
|
+
writer.uint32(34).string(message.name);
|
|
57005
|
+
}
|
|
57006
|
+
if (message.createdBy !== void 0) {
|
|
57007
|
+
UserIdentity.encode(message.createdBy, writer.uint32(42).fork()).join();
|
|
57008
|
+
}
|
|
55210
57009
|
return writer;
|
|
55211
57010
|
},
|
|
55212
57011
|
decode(input, length) {
|
|
@@ -55237,6 +57036,20 @@ var WebhookToken = {
|
|
|
55237
57036
|
message.scoped = reader.bool();
|
|
55238
57037
|
continue;
|
|
55239
57038
|
}
|
|
57039
|
+
case 4: {
|
|
57040
|
+
if (tag !== 34) {
|
|
57041
|
+
break;
|
|
57042
|
+
}
|
|
57043
|
+
message.name = reader.string();
|
|
57044
|
+
continue;
|
|
57045
|
+
}
|
|
57046
|
+
case 5: {
|
|
57047
|
+
if (tag !== 42) {
|
|
57048
|
+
break;
|
|
57049
|
+
}
|
|
57050
|
+
message.createdBy = UserIdentity.decode(reader, reader.uint32());
|
|
57051
|
+
continue;
|
|
57052
|
+
}
|
|
55240
57053
|
}
|
|
55241
57054
|
if ((tag & 7) === 4 || tag === 0) {
|
|
55242
57055
|
break;
|
|
@@ -55249,7 +57062,9 @@ var WebhookToken = {
|
|
|
55249
57062
|
return {
|
|
55250
57063
|
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
55251
57064
|
createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
55252
|
-
scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false
|
|
57065
|
+
scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false,
|
|
57066
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : "",
|
|
57067
|
+
createdBy: isSet5(object.createdBy) ? UserIdentity.fromJSON(object.createdBy) : void 0
|
|
55253
57068
|
};
|
|
55254
57069
|
},
|
|
55255
57070
|
toJSON(message) {
|
|
@@ -55263,6 +57078,12 @@ var WebhookToken = {
|
|
|
55263
57078
|
if (message.scoped !== false) {
|
|
55264
57079
|
obj.scoped = message.scoped;
|
|
55265
57080
|
}
|
|
57081
|
+
if (message.name !== "") {
|
|
57082
|
+
obj.name = message.name;
|
|
57083
|
+
}
|
|
57084
|
+
if (message.createdBy !== void 0) {
|
|
57085
|
+
obj.createdBy = UserIdentity.toJSON(message.createdBy);
|
|
57086
|
+
}
|
|
55266
57087
|
return obj;
|
|
55267
57088
|
},
|
|
55268
57089
|
create(base) {
|
|
@@ -55273,17 +57094,22 @@ var WebhookToken = {
|
|
|
55273
57094
|
message.tokenId = object.tokenId ?? "";
|
|
55274
57095
|
message.createdAt = object.createdAt ?? 0;
|
|
55275
57096
|
message.scoped = object.scoped ?? false;
|
|
57097
|
+
message.name = object.name ?? "";
|
|
57098
|
+
message.createdBy = object.createdBy !== void 0 && object.createdBy !== null ? UserIdentity.fromPartial(object.createdBy) : void 0;
|
|
55276
57099
|
return message;
|
|
55277
57100
|
}
|
|
55278
57101
|
};
|
|
55279
57102
|
function createBaseWebhookTokenCreateRequest() {
|
|
55280
|
-
return { scoped: false };
|
|
57103
|
+
return { scoped: false, name: "" };
|
|
55281
57104
|
}
|
|
55282
57105
|
var WebhookTokenCreateRequest = {
|
|
55283
57106
|
encode(message, writer = new BinaryWriter()) {
|
|
55284
57107
|
if (message.scoped !== false) {
|
|
55285
57108
|
writer.uint32(8).bool(message.scoped);
|
|
55286
57109
|
}
|
|
57110
|
+
if (message.name !== "") {
|
|
57111
|
+
writer.uint32(18).string(message.name);
|
|
57112
|
+
}
|
|
55287
57113
|
return writer;
|
|
55288
57114
|
},
|
|
55289
57115
|
decode(input, length) {
|
|
@@ -55300,6 +57126,13 @@ var WebhookTokenCreateRequest = {
|
|
|
55300
57126
|
message.scoped = reader.bool();
|
|
55301
57127
|
continue;
|
|
55302
57128
|
}
|
|
57129
|
+
case 2: {
|
|
57130
|
+
if (tag !== 18) {
|
|
57131
|
+
break;
|
|
57132
|
+
}
|
|
57133
|
+
message.name = reader.string();
|
|
57134
|
+
continue;
|
|
57135
|
+
}
|
|
55303
57136
|
}
|
|
55304
57137
|
if ((tag & 7) === 4 || tag === 0) {
|
|
55305
57138
|
break;
|
|
@@ -55309,13 +57142,19 @@ var WebhookTokenCreateRequest = {
|
|
|
55309
57142
|
return message;
|
|
55310
57143
|
},
|
|
55311
57144
|
fromJSON(object) {
|
|
55312
|
-
return {
|
|
57145
|
+
return {
|
|
57146
|
+
scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false,
|
|
57147
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : ""
|
|
57148
|
+
};
|
|
55313
57149
|
},
|
|
55314
57150
|
toJSON(message) {
|
|
55315
57151
|
const obj = {};
|
|
55316
57152
|
if (message.scoped !== false) {
|
|
55317
57153
|
obj.scoped = message.scoped;
|
|
55318
57154
|
}
|
|
57155
|
+
if (message.name !== "") {
|
|
57156
|
+
obj.name = message.name;
|
|
57157
|
+
}
|
|
55319
57158
|
return obj;
|
|
55320
57159
|
},
|
|
55321
57160
|
create(base) {
|
|
@@ -55324,6 +57163,7 @@ var WebhookTokenCreateRequest = {
|
|
|
55324
57163
|
fromPartial(object) {
|
|
55325
57164
|
const message = createBaseWebhookTokenCreateRequest();
|
|
55326
57165
|
message.scoped = object.scoped ?? false;
|
|
57166
|
+
message.name = object.name ?? "";
|
|
55327
57167
|
return message;
|
|
55328
57168
|
}
|
|
55329
57169
|
};
|
|
@@ -56937,302 +58777,474 @@ var WorkspaceDashboardUrlRequest = {
|
|
|
56937
58777
|
return obj;
|
|
56938
58778
|
},
|
|
56939
58779
|
create(base) {
|
|
56940
|
-
return WorkspaceDashboardUrlRequest.fromPartial(base ?? {});
|
|
58780
|
+
return WorkspaceDashboardUrlRequest.fromPartial(base ?? {});
|
|
58781
|
+
},
|
|
58782
|
+
fromPartial(object) {
|
|
58783
|
+
const message = createBaseWorkspaceDashboardUrlRequest();
|
|
58784
|
+
message.environmentName = object.environmentName ?? "";
|
|
58785
|
+
return message;
|
|
58786
|
+
}
|
|
58787
|
+
};
|
|
58788
|
+
function createBaseWorkspaceDashboardUrlResponse() {
|
|
58789
|
+
return { url: "" };
|
|
58790
|
+
}
|
|
58791
|
+
var WorkspaceDashboardUrlResponse = {
|
|
58792
|
+
encode(message, writer = new BinaryWriter()) {
|
|
58793
|
+
if (message.url !== "") {
|
|
58794
|
+
writer.uint32(10).string(message.url);
|
|
58795
|
+
}
|
|
58796
|
+
return writer;
|
|
58797
|
+
},
|
|
58798
|
+
decode(input, length) {
|
|
58799
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58800
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
58801
|
+
const message = createBaseWorkspaceDashboardUrlResponse();
|
|
58802
|
+
while (reader.pos < end) {
|
|
58803
|
+
const tag = reader.uint32();
|
|
58804
|
+
switch (tag >>> 3) {
|
|
58805
|
+
case 1: {
|
|
58806
|
+
if (tag !== 10) {
|
|
58807
|
+
break;
|
|
58808
|
+
}
|
|
58809
|
+
message.url = reader.string();
|
|
58810
|
+
continue;
|
|
58811
|
+
}
|
|
58812
|
+
}
|
|
58813
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58814
|
+
break;
|
|
58815
|
+
}
|
|
58816
|
+
reader.skip(tag & 7);
|
|
58817
|
+
}
|
|
58818
|
+
return message;
|
|
58819
|
+
},
|
|
58820
|
+
fromJSON(object) {
|
|
58821
|
+
return { url: isSet5(object.url) ? globalThis.String(object.url) : "" };
|
|
58822
|
+
},
|
|
58823
|
+
toJSON(message) {
|
|
58824
|
+
const obj = {};
|
|
58825
|
+
if (message.url !== "") {
|
|
58826
|
+
obj.url = message.url;
|
|
58827
|
+
}
|
|
58828
|
+
return obj;
|
|
58829
|
+
},
|
|
58830
|
+
create(base) {
|
|
58831
|
+
return WorkspaceDashboardUrlResponse.fromPartial(base ?? {});
|
|
58832
|
+
},
|
|
58833
|
+
fromPartial(object) {
|
|
58834
|
+
const message = createBaseWorkspaceDashboardUrlResponse();
|
|
58835
|
+
message.url = object.url ?? "";
|
|
58836
|
+
return message;
|
|
58837
|
+
}
|
|
58838
|
+
};
|
|
58839
|
+
function createBaseWorkspaceMembersListItem() {
|
|
58840
|
+
return {
|
|
58841
|
+
memberId: "",
|
|
58842
|
+
memberDisplayname: "",
|
|
58843
|
+
memberRole: 0,
|
|
58844
|
+
joinedAt: 0,
|
|
58845
|
+
lastActiveAt: 0,
|
|
58846
|
+
deletedAt: 0,
|
|
58847
|
+
userId: "",
|
|
58848
|
+
identityProviderType: 0,
|
|
58849
|
+
email: "",
|
|
58850
|
+
avatarUrl: "",
|
|
58851
|
+
idpExternalId: ""
|
|
58852
|
+
};
|
|
58853
|
+
}
|
|
58854
|
+
var WorkspaceMembersListItem = {
|
|
58855
|
+
encode(message, writer = new BinaryWriter()) {
|
|
58856
|
+
if (message.memberId !== "") {
|
|
58857
|
+
writer.uint32(10).string(message.memberId);
|
|
58858
|
+
}
|
|
58859
|
+
if (message.memberDisplayname !== "") {
|
|
58860
|
+
writer.uint32(18).string(message.memberDisplayname);
|
|
58861
|
+
}
|
|
58862
|
+
if (message.memberRole !== 0) {
|
|
58863
|
+
writer.uint32(24).int32(message.memberRole);
|
|
58864
|
+
}
|
|
58865
|
+
if (message.joinedAt !== 0) {
|
|
58866
|
+
writer.uint32(33).double(message.joinedAt);
|
|
58867
|
+
}
|
|
58868
|
+
if (message.lastActiveAt !== 0) {
|
|
58869
|
+
writer.uint32(41).double(message.lastActiveAt);
|
|
58870
|
+
}
|
|
58871
|
+
if (message.deletedAt !== 0) {
|
|
58872
|
+
writer.uint32(57).double(message.deletedAt);
|
|
58873
|
+
}
|
|
58874
|
+
if (message.userId !== "") {
|
|
58875
|
+
writer.uint32(66).string(message.userId);
|
|
58876
|
+
}
|
|
58877
|
+
if (message.identityProviderType !== 0) {
|
|
58878
|
+
writer.uint32(72).int32(message.identityProviderType);
|
|
58879
|
+
}
|
|
58880
|
+
if (message.email !== "") {
|
|
58881
|
+
writer.uint32(82).string(message.email);
|
|
58882
|
+
}
|
|
58883
|
+
if (message.avatarUrl !== "") {
|
|
58884
|
+
writer.uint32(90).string(message.avatarUrl);
|
|
58885
|
+
}
|
|
58886
|
+
if (message.idpExternalId !== "") {
|
|
58887
|
+
writer.uint32(98).string(message.idpExternalId);
|
|
58888
|
+
}
|
|
58889
|
+
return writer;
|
|
58890
|
+
},
|
|
58891
|
+
decode(input, length) {
|
|
58892
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58893
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
58894
|
+
const message = createBaseWorkspaceMembersListItem();
|
|
58895
|
+
while (reader.pos < end) {
|
|
58896
|
+
const tag = reader.uint32();
|
|
58897
|
+
switch (tag >>> 3) {
|
|
58898
|
+
case 1: {
|
|
58899
|
+
if (tag !== 10) {
|
|
58900
|
+
break;
|
|
58901
|
+
}
|
|
58902
|
+
message.memberId = reader.string();
|
|
58903
|
+
continue;
|
|
58904
|
+
}
|
|
58905
|
+
case 2: {
|
|
58906
|
+
if (tag !== 18) {
|
|
58907
|
+
break;
|
|
58908
|
+
}
|
|
58909
|
+
message.memberDisplayname = reader.string();
|
|
58910
|
+
continue;
|
|
58911
|
+
}
|
|
58912
|
+
case 3: {
|
|
58913
|
+
if (tag !== 24) {
|
|
58914
|
+
break;
|
|
58915
|
+
}
|
|
58916
|
+
message.memberRole = reader.int32();
|
|
58917
|
+
continue;
|
|
58918
|
+
}
|
|
58919
|
+
case 4: {
|
|
58920
|
+
if (tag !== 33) {
|
|
58921
|
+
break;
|
|
58922
|
+
}
|
|
58923
|
+
message.joinedAt = reader.double();
|
|
58924
|
+
continue;
|
|
58925
|
+
}
|
|
58926
|
+
case 5: {
|
|
58927
|
+
if (tag !== 41) {
|
|
58928
|
+
break;
|
|
58929
|
+
}
|
|
58930
|
+
message.lastActiveAt = reader.double();
|
|
58931
|
+
continue;
|
|
58932
|
+
}
|
|
58933
|
+
case 7: {
|
|
58934
|
+
if (tag !== 57) {
|
|
58935
|
+
break;
|
|
58936
|
+
}
|
|
58937
|
+
message.deletedAt = reader.double();
|
|
58938
|
+
continue;
|
|
58939
|
+
}
|
|
58940
|
+
case 8: {
|
|
58941
|
+
if (tag !== 66) {
|
|
58942
|
+
break;
|
|
58943
|
+
}
|
|
58944
|
+
message.userId = reader.string();
|
|
58945
|
+
continue;
|
|
58946
|
+
}
|
|
58947
|
+
case 9: {
|
|
58948
|
+
if (tag !== 72) {
|
|
58949
|
+
break;
|
|
58950
|
+
}
|
|
58951
|
+
message.identityProviderType = reader.int32();
|
|
58952
|
+
continue;
|
|
58953
|
+
}
|
|
58954
|
+
case 10: {
|
|
58955
|
+
if (tag !== 82) {
|
|
58956
|
+
break;
|
|
58957
|
+
}
|
|
58958
|
+
message.email = reader.string();
|
|
58959
|
+
continue;
|
|
58960
|
+
}
|
|
58961
|
+
case 11: {
|
|
58962
|
+
if (tag !== 90) {
|
|
58963
|
+
break;
|
|
58964
|
+
}
|
|
58965
|
+
message.avatarUrl = reader.string();
|
|
58966
|
+
continue;
|
|
58967
|
+
}
|
|
58968
|
+
case 12: {
|
|
58969
|
+
if (tag !== 98) {
|
|
58970
|
+
break;
|
|
58971
|
+
}
|
|
58972
|
+
message.idpExternalId = reader.string();
|
|
58973
|
+
continue;
|
|
58974
|
+
}
|
|
58975
|
+
}
|
|
58976
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58977
|
+
break;
|
|
58978
|
+
}
|
|
58979
|
+
reader.skip(tag & 7);
|
|
58980
|
+
}
|
|
58981
|
+
return message;
|
|
58982
|
+
},
|
|
58983
|
+
fromJSON(object) {
|
|
58984
|
+
return {
|
|
58985
|
+
memberId: isSet5(object.memberId) ? globalThis.String(object.memberId) : "",
|
|
58986
|
+
memberDisplayname: isSet5(object.memberDisplayname) ? globalThis.String(object.memberDisplayname) : "",
|
|
58987
|
+
memberRole: isSet5(object.memberRole) ? memberRoleFromJSON(object.memberRole) : 0,
|
|
58988
|
+
joinedAt: isSet5(object.joinedAt) ? globalThis.Number(object.joinedAt) : 0,
|
|
58989
|
+
lastActiveAt: isSet5(object.lastActiveAt) ? globalThis.Number(object.lastActiveAt) : 0,
|
|
58990
|
+
deletedAt: isSet5(object.deletedAt) ? globalThis.Number(object.deletedAt) : 0,
|
|
58991
|
+
userId: isSet5(object.userId) ? globalThis.String(object.userId) : "",
|
|
58992
|
+
identityProviderType: isSet5(object.identityProviderType) ? identityProviderTypeFromJSON(object.identityProviderType) : 0,
|
|
58993
|
+
email: isSet5(object.email) ? globalThis.String(object.email) : "",
|
|
58994
|
+
avatarUrl: isSet5(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
|
|
58995
|
+
idpExternalId: isSet5(object.idpExternalId) ? globalThis.String(object.idpExternalId) : ""
|
|
58996
|
+
};
|
|
58997
|
+
},
|
|
58998
|
+
toJSON(message) {
|
|
58999
|
+
const obj = {};
|
|
59000
|
+
if (message.memberId !== "") {
|
|
59001
|
+
obj.memberId = message.memberId;
|
|
59002
|
+
}
|
|
59003
|
+
if (message.memberDisplayname !== "") {
|
|
59004
|
+
obj.memberDisplayname = message.memberDisplayname;
|
|
59005
|
+
}
|
|
59006
|
+
if (message.memberRole !== 0) {
|
|
59007
|
+
obj.memberRole = memberRoleToJSON(message.memberRole);
|
|
59008
|
+
}
|
|
59009
|
+
if (message.joinedAt !== 0) {
|
|
59010
|
+
obj.joinedAt = message.joinedAt;
|
|
59011
|
+
}
|
|
59012
|
+
if (message.lastActiveAt !== 0) {
|
|
59013
|
+
obj.lastActiveAt = message.lastActiveAt;
|
|
59014
|
+
}
|
|
59015
|
+
if (message.deletedAt !== 0) {
|
|
59016
|
+
obj.deletedAt = message.deletedAt;
|
|
59017
|
+
}
|
|
59018
|
+
if (message.userId !== "") {
|
|
59019
|
+
obj.userId = message.userId;
|
|
59020
|
+
}
|
|
59021
|
+
if (message.identityProviderType !== 0) {
|
|
59022
|
+
obj.identityProviderType = identityProviderTypeToJSON(message.identityProviderType);
|
|
59023
|
+
}
|
|
59024
|
+
if (message.email !== "") {
|
|
59025
|
+
obj.email = message.email;
|
|
59026
|
+
}
|
|
59027
|
+
if (message.avatarUrl !== "") {
|
|
59028
|
+
obj.avatarUrl = message.avatarUrl;
|
|
59029
|
+
}
|
|
59030
|
+
if (message.idpExternalId !== "") {
|
|
59031
|
+
obj.idpExternalId = message.idpExternalId;
|
|
59032
|
+
}
|
|
59033
|
+
return obj;
|
|
59034
|
+
},
|
|
59035
|
+
create(base) {
|
|
59036
|
+
return WorkspaceMembersListItem.fromPartial(base ?? {});
|
|
59037
|
+
},
|
|
59038
|
+
fromPartial(object) {
|
|
59039
|
+
const message = createBaseWorkspaceMembersListItem();
|
|
59040
|
+
message.memberId = object.memberId ?? "";
|
|
59041
|
+
message.memberDisplayname = object.memberDisplayname ?? "";
|
|
59042
|
+
message.memberRole = object.memberRole ?? 0;
|
|
59043
|
+
message.joinedAt = object.joinedAt ?? 0;
|
|
59044
|
+
message.lastActiveAt = object.lastActiveAt ?? 0;
|
|
59045
|
+
message.deletedAt = object.deletedAt ?? 0;
|
|
59046
|
+
message.userId = object.userId ?? "";
|
|
59047
|
+
message.identityProviderType = object.identityProviderType ?? 0;
|
|
59048
|
+
message.email = object.email ?? "";
|
|
59049
|
+
message.avatarUrl = object.avatarUrl ?? "";
|
|
59050
|
+
message.idpExternalId = object.idpExternalId ?? "";
|
|
59051
|
+
return message;
|
|
59052
|
+
}
|
|
59053
|
+
};
|
|
59054
|
+
function createBaseWorkspaceMembersListResponse() {
|
|
59055
|
+
return { members: [] };
|
|
59056
|
+
}
|
|
59057
|
+
var WorkspaceMembersListResponse = {
|
|
59058
|
+
encode(message, writer = new BinaryWriter()) {
|
|
59059
|
+
for (const v of message.members) {
|
|
59060
|
+
WorkspaceMembersListItem.encode(v, writer.uint32(10).fork()).join();
|
|
59061
|
+
}
|
|
59062
|
+
return writer;
|
|
59063
|
+
},
|
|
59064
|
+
decode(input, length) {
|
|
59065
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
59066
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
59067
|
+
const message = createBaseWorkspaceMembersListResponse();
|
|
59068
|
+
while (reader.pos < end) {
|
|
59069
|
+
const tag = reader.uint32();
|
|
59070
|
+
switch (tag >>> 3) {
|
|
59071
|
+
case 1: {
|
|
59072
|
+
if (tag !== 10) {
|
|
59073
|
+
break;
|
|
59074
|
+
}
|
|
59075
|
+
message.members.push(WorkspaceMembersListItem.decode(reader, reader.uint32()));
|
|
59076
|
+
continue;
|
|
59077
|
+
}
|
|
59078
|
+
}
|
|
59079
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59080
|
+
break;
|
|
59081
|
+
}
|
|
59082
|
+
reader.skip(tag & 7);
|
|
59083
|
+
}
|
|
59084
|
+
return message;
|
|
59085
|
+
},
|
|
59086
|
+
fromJSON(object) {
|
|
59087
|
+
return {
|
|
59088
|
+
members: globalThis.Array.isArray(object?.members) ? object.members.map((e) => WorkspaceMembersListItem.fromJSON(e)) : []
|
|
59089
|
+
};
|
|
59090
|
+
},
|
|
59091
|
+
toJSON(message) {
|
|
59092
|
+
const obj = {};
|
|
59093
|
+
if (message.members?.length) {
|
|
59094
|
+
obj.members = message.members.map((e) => WorkspaceMembersListItem.toJSON(e));
|
|
59095
|
+
}
|
|
59096
|
+
return obj;
|
|
59097
|
+
},
|
|
59098
|
+
create(base) {
|
|
59099
|
+
return WorkspaceMembersListResponse.fromPartial(base ?? {});
|
|
59100
|
+
},
|
|
59101
|
+
fromPartial(object) {
|
|
59102
|
+
const message = createBaseWorkspaceMembersListResponse();
|
|
59103
|
+
message.members = object.members?.map((e) => WorkspaceMembersListItem.fromPartial(e)) || [];
|
|
59104
|
+
return message;
|
|
59105
|
+
}
|
|
59106
|
+
};
|
|
59107
|
+
function createBaseWorkspaceNameLookupResponse() {
|
|
59108
|
+
return { workspaceName: "", username: "" };
|
|
59109
|
+
}
|
|
59110
|
+
var WorkspaceNameLookupResponse = {
|
|
59111
|
+
encode(message, writer = new BinaryWriter()) {
|
|
59112
|
+
if (message.workspaceName !== "") {
|
|
59113
|
+
writer.uint32(10).string(message.workspaceName);
|
|
59114
|
+
}
|
|
59115
|
+
if (message.username !== "") {
|
|
59116
|
+
writer.uint32(18).string(message.username);
|
|
59117
|
+
}
|
|
59118
|
+
return writer;
|
|
59119
|
+
},
|
|
59120
|
+
decode(input, length) {
|
|
59121
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
59122
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
59123
|
+
const message = createBaseWorkspaceNameLookupResponse();
|
|
59124
|
+
while (reader.pos < end) {
|
|
59125
|
+
const tag = reader.uint32();
|
|
59126
|
+
switch (tag >>> 3) {
|
|
59127
|
+
case 1: {
|
|
59128
|
+
if (tag !== 10) {
|
|
59129
|
+
break;
|
|
59130
|
+
}
|
|
59131
|
+
message.workspaceName = reader.string();
|
|
59132
|
+
continue;
|
|
59133
|
+
}
|
|
59134
|
+
case 2: {
|
|
59135
|
+
if (tag !== 18) {
|
|
59136
|
+
break;
|
|
59137
|
+
}
|
|
59138
|
+
message.username = reader.string();
|
|
59139
|
+
continue;
|
|
59140
|
+
}
|
|
59141
|
+
}
|
|
59142
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59143
|
+
break;
|
|
59144
|
+
}
|
|
59145
|
+
reader.skip(tag & 7);
|
|
59146
|
+
}
|
|
59147
|
+
return message;
|
|
59148
|
+
},
|
|
59149
|
+
fromJSON(object) {
|
|
59150
|
+
return {
|
|
59151
|
+
workspaceName: isSet5(object.workspaceName) ? globalThis.String(object.workspaceName) : "",
|
|
59152
|
+
username: isSet5(object.username) ? globalThis.String(object.username) : ""
|
|
59153
|
+
};
|
|
59154
|
+
},
|
|
59155
|
+
toJSON(message) {
|
|
59156
|
+
const obj = {};
|
|
59157
|
+
if (message.workspaceName !== "") {
|
|
59158
|
+
obj.workspaceName = message.workspaceName;
|
|
59159
|
+
}
|
|
59160
|
+
if (message.username !== "") {
|
|
59161
|
+
obj.username = message.username;
|
|
59162
|
+
}
|
|
59163
|
+
return obj;
|
|
59164
|
+
},
|
|
59165
|
+
create(base) {
|
|
59166
|
+
return WorkspaceNameLookupResponse.fromPartial(base ?? {});
|
|
59167
|
+
},
|
|
59168
|
+
fromPartial(object) {
|
|
59169
|
+
const message = createBaseWorkspaceNameLookupResponse();
|
|
59170
|
+
message.workspaceName = object.workspaceName ?? "";
|
|
59171
|
+
message.username = object.username ?? "";
|
|
59172
|
+
return message;
|
|
59173
|
+
}
|
|
59174
|
+
};
|
|
59175
|
+
function createBaseWorkspaceSetDefaultEnvironmentRequest() {
|
|
59176
|
+
return { environmentName: "" };
|
|
59177
|
+
}
|
|
59178
|
+
var WorkspaceSetDefaultEnvironmentRequest = {
|
|
59179
|
+
encode(message, writer = new BinaryWriter()) {
|
|
59180
|
+
if (message.environmentName !== "") {
|
|
59181
|
+
writer.uint32(10).string(message.environmentName);
|
|
59182
|
+
}
|
|
59183
|
+
return writer;
|
|
59184
|
+
},
|
|
59185
|
+
decode(input, length) {
|
|
59186
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
59187
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
59188
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
|
|
59189
|
+
while (reader.pos < end) {
|
|
59190
|
+
const tag = reader.uint32();
|
|
59191
|
+
switch (tag >>> 3) {
|
|
59192
|
+
case 1: {
|
|
59193
|
+
if (tag !== 10) {
|
|
59194
|
+
break;
|
|
59195
|
+
}
|
|
59196
|
+
message.environmentName = reader.string();
|
|
59197
|
+
continue;
|
|
59198
|
+
}
|
|
59199
|
+
}
|
|
59200
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59201
|
+
break;
|
|
59202
|
+
}
|
|
59203
|
+
reader.skip(tag & 7);
|
|
59204
|
+
}
|
|
59205
|
+
return message;
|
|
59206
|
+
},
|
|
59207
|
+
fromJSON(object) {
|
|
59208
|
+
return { environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "" };
|
|
59209
|
+
},
|
|
59210
|
+
toJSON(message) {
|
|
59211
|
+
const obj = {};
|
|
59212
|
+
if (message.environmentName !== "") {
|
|
59213
|
+
obj.environmentName = message.environmentName;
|
|
59214
|
+
}
|
|
59215
|
+
return obj;
|
|
59216
|
+
},
|
|
59217
|
+
create(base) {
|
|
59218
|
+
return WorkspaceSetDefaultEnvironmentRequest.fromPartial(base ?? {});
|
|
56941
59219
|
},
|
|
56942
59220
|
fromPartial(object) {
|
|
56943
|
-
const message =
|
|
59221
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
|
|
56944
59222
|
message.environmentName = object.environmentName ?? "";
|
|
56945
59223
|
return message;
|
|
56946
59224
|
}
|
|
56947
59225
|
};
|
|
56948
|
-
function
|
|
56949
|
-
return {
|
|
56950
|
-
}
|
|
56951
|
-
var WorkspaceDashboardUrlResponse = {
|
|
56952
|
-
encode(message, writer = new BinaryWriter()) {
|
|
56953
|
-
if (message.url !== "") {
|
|
56954
|
-
writer.uint32(10).string(message.url);
|
|
56955
|
-
}
|
|
56956
|
-
return writer;
|
|
56957
|
-
},
|
|
56958
|
-
decode(input, length) {
|
|
56959
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
56960
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
56961
|
-
const message = createBaseWorkspaceDashboardUrlResponse();
|
|
56962
|
-
while (reader.pos < end) {
|
|
56963
|
-
const tag = reader.uint32();
|
|
56964
|
-
switch (tag >>> 3) {
|
|
56965
|
-
case 1: {
|
|
56966
|
-
if (tag !== 10) {
|
|
56967
|
-
break;
|
|
56968
|
-
}
|
|
56969
|
-
message.url = reader.string();
|
|
56970
|
-
continue;
|
|
56971
|
-
}
|
|
56972
|
-
}
|
|
56973
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
56974
|
-
break;
|
|
56975
|
-
}
|
|
56976
|
-
reader.skip(tag & 7);
|
|
56977
|
-
}
|
|
56978
|
-
return message;
|
|
56979
|
-
},
|
|
56980
|
-
fromJSON(object) {
|
|
56981
|
-
return { url: isSet5(object.url) ? globalThis.String(object.url) : "" };
|
|
56982
|
-
},
|
|
56983
|
-
toJSON(message) {
|
|
56984
|
-
const obj = {};
|
|
56985
|
-
if (message.url !== "") {
|
|
56986
|
-
obj.url = message.url;
|
|
56987
|
-
}
|
|
56988
|
-
return obj;
|
|
56989
|
-
},
|
|
56990
|
-
create(base) {
|
|
56991
|
-
return WorkspaceDashboardUrlResponse.fromPartial(base ?? {});
|
|
56992
|
-
},
|
|
56993
|
-
fromPartial(object) {
|
|
56994
|
-
const message = createBaseWorkspaceDashboardUrlResponse();
|
|
56995
|
-
message.url = object.url ?? "";
|
|
56996
|
-
return message;
|
|
56997
|
-
}
|
|
56998
|
-
};
|
|
56999
|
-
function createBaseWorkspaceMembersListItem() {
|
|
57000
|
-
return {
|
|
57001
|
-
memberId: "",
|
|
57002
|
-
memberDisplayname: "",
|
|
57003
|
-
memberRole: 0,
|
|
57004
|
-
joinedAt: 0,
|
|
57005
|
-
lastActiveAt: 0,
|
|
57006
|
-
deletedAt: 0,
|
|
57007
|
-
userId: "",
|
|
57008
|
-
identityProviderType: 0,
|
|
57009
|
-
email: "",
|
|
57010
|
-
avatarUrl: "",
|
|
57011
|
-
idpExternalId: ""
|
|
57012
|
-
};
|
|
59226
|
+
function createBaseWorkspaceSetDefaultEnvironmentSettingsRequest() {
|
|
59227
|
+
return { blockUnauthenticatedResources: void 0 };
|
|
57013
59228
|
}
|
|
57014
|
-
var
|
|
59229
|
+
var WorkspaceSetDefaultEnvironmentSettingsRequest = {
|
|
57015
59230
|
encode(message, writer = new BinaryWriter()) {
|
|
57016
|
-
if (message.
|
|
57017
|
-
writer.uint32(
|
|
57018
|
-
}
|
|
57019
|
-
if (message.memberDisplayname !== "") {
|
|
57020
|
-
writer.uint32(18).string(message.memberDisplayname);
|
|
57021
|
-
}
|
|
57022
|
-
if (message.memberRole !== 0) {
|
|
57023
|
-
writer.uint32(24).int32(message.memberRole);
|
|
57024
|
-
}
|
|
57025
|
-
if (message.joinedAt !== 0) {
|
|
57026
|
-
writer.uint32(33).double(message.joinedAt);
|
|
57027
|
-
}
|
|
57028
|
-
if (message.lastActiveAt !== 0) {
|
|
57029
|
-
writer.uint32(41).double(message.lastActiveAt);
|
|
57030
|
-
}
|
|
57031
|
-
if (message.deletedAt !== 0) {
|
|
57032
|
-
writer.uint32(57).double(message.deletedAt);
|
|
57033
|
-
}
|
|
57034
|
-
if (message.userId !== "") {
|
|
57035
|
-
writer.uint32(66).string(message.userId);
|
|
57036
|
-
}
|
|
57037
|
-
if (message.identityProviderType !== 0) {
|
|
57038
|
-
writer.uint32(72).int32(message.identityProviderType);
|
|
57039
|
-
}
|
|
57040
|
-
if (message.email !== "") {
|
|
57041
|
-
writer.uint32(82).string(message.email);
|
|
57042
|
-
}
|
|
57043
|
-
if (message.avatarUrl !== "") {
|
|
57044
|
-
writer.uint32(90).string(message.avatarUrl);
|
|
57045
|
-
}
|
|
57046
|
-
if (message.idpExternalId !== "") {
|
|
57047
|
-
writer.uint32(98).string(message.idpExternalId);
|
|
57048
|
-
}
|
|
57049
|
-
return writer;
|
|
57050
|
-
},
|
|
57051
|
-
decode(input, length) {
|
|
57052
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
57053
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
57054
|
-
const message = createBaseWorkspaceMembersListItem();
|
|
57055
|
-
while (reader.pos < end) {
|
|
57056
|
-
const tag = reader.uint32();
|
|
57057
|
-
switch (tag >>> 3) {
|
|
57058
|
-
case 1: {
|
|
57059
|
-
if (tag !== 10) {
|
|
57060
|
-
break;
|
|
57061
|
-
}
|
|
57062
|
-
message.memberId = reader.string();
|
|
57063
|
-
continue;
|
|
57064
|
-
}
|
|
57065
|
-
case 2: {
|
|
57066
|
-
if (tag !== 18) {
|
|
57067
|
-
break;
|
|
57068
|
-
}
|
|
57069
|
-
message.memberDisplayname = reader.string();
|
|
57070
|
-
continue;
|
|
57071
|
-
}
|
|
57072
|
-
case 3: {
|
|
57073
|
-
if (tag !== 24) {
|
|
57074
|
-
break;
|
|
57075
|
-
}
|
|
57076
|
-
message.memberRole = reader.int32();
|
|
57077
|
-
continue;
|
|
57078
|
-
}
|
|
57079
|
-
case 4: {
|
|
57080
|
-
if (tag !== 33) {
|
|
57081
|
-
break;
|
|
57082
|
-
}
|
|
57083
|
-
message.joinedAt = reader.double();
|
|
57084
|
-
continue;
|
|
57085
|
-
}
|
|
57086
|
-
case 5: {
|
|
57087
|
-
if (tag !== 41) {
|
|
57088
|
-
break;
|
|
57089
|
-
}
|
|
57090
|
-
message.lastActiveAt = reader.double();
|
|
57091
|
-
continue;
|
|
57092
|
-
}
|
|
57093
|
-
case 7: {
|
|
57094
|
-
if (tag !== 57) {
|
|
57095
|
-
break;
|
|
57096
|
-
}
|
|
57097
|
-
message.deletedAt = reader.double();
|
|
57098
|
-
continue;
|
|
57099
|
-
}
|
|
57100
|
-
case 8: {
|
|
57101
|
-
if (tag !== 66) {
|
|
57102
|
-
break;
|
|
57103
|
-
}
|
|
57104
|
-
message.userId = reader.string();
|
|
57105
|
-
continue;
|
|
57106
|
-
}
|
|
57107
|
-
case 9: {
|
|
57108
|
-
if (tag !== 72) {
|
|
57109
|
-
break;
|
|
57110
|
-
}
|
|
57111
|
-
message.identityProviderType = reader.int32();
|
|
57112
|
-
continue;
|
|
57113
|
-
}
|
|
57114
|
-
case 10: {
|
|
57115
|
-
if (tag !== 82) {
|
|
57116
|
-
break;
|
|
57117
|
-
}
|
|
57118
|
-
message.email = reader.string();
|
|
57119
|
-
continue;
|
|
57120
|
-
}
|
|
57121
|
-
case 11: {
|
|
57122
|
-
if (tag !== 90) {
|
|
57123
|
-
break;
|
|
57124
|
-
}
|
|
57125
|
-
message.avatarUrl = reader.string();
|
|
57126
|
-
continue;
|
|
57127
|
-
}
|
|
57128
|
-
case 12: {
|
|
57129
|
-
if (tag !== 98) {
|
|
57130
|
-
break;
|
|
57131
|
-
}
|
|
57132
|
-
message.idpExternalId = reader.string();
|
|
57133
|
-
continue;
|
|
57134
|
-
}
|
|
57135
|
-
}
|
|
57136
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
57137
|
-
break;
|
|
57138
|
-
}
|
|
57139
|
-
reader.skip(tag & 7);
|
|
57140
|
-
}
|
|
57141
|
-
return message;
|
|
57142
|
-
},
|
|
57143
|
-
fromJSON(object) {
|
|
57144
|
-
return {
|
|
57145
|
-
memberId: isSet5(object.memberId) ? globalThis.String(object.memberId) : "",
|
|
57146
|
-
memberDisplayname: isSet5(object.memberDisplayname) ? globalThis.String(object.memberDisplayname) : "",
|
|
57147
|
-
memberRole: isSet5(object.memberRole) ? memberRoleFromJSON(object.memberRole) : 0,
|
|
57148
|
-
joinedAt: isSet5(object.joinedAt) ? globalThis.Number(object.joinedAt) : 0,
|
|
57149
|
-
lastActiveAt: isSet5(object.lastActiveAt) ? globalThis.Number(object.lastActiveAt) : 0,
|
|
57150
|
-
deletedAt: isSet5(object.deletedAt) ? globalThis.Number(object.deletedAt) : 0,
|
|
57151
|
-
userId: isSet5(object.userId) ? globalThis.String(object.userId) : "",
|
|
57152
|
-
identityProviderType: isSet5(object.identityProviderType) ? identityProviderTypeFromJSON(object.identityProviderType) : 0,
|
|
57153
|
-
email: isSet5(object.email) ? globalThis.String(object.email) : "",
|
|
57154
|
-
avatarUrl: isSet5(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
|
|
57155
|
-
idpExternalId: isSet5(object.idpExternalId) ? globalThis.String(object.idpExternalId) : ""
|
|
57156
|
-
};
|
|
57157
|
-
},
|
|
57158
|
-
toJSON(message) {
|
|
57159
|
-
const obj = {};
|
|
57160
|
-
if (message.memberId !== "") {
|
|
57161
|
-
obj.memberId = message.memberId;
|
|
57162
|
-
}
|
|
57163
|
-
if (message.memberDisplayname !== "") {
|
|
57164
|
-
obj.memberDisplayname = message.memberDisplayname;
|
|
57165
|
-
}
|
|
57166
|
-
if (message.memberRole !== 0) {
|
|
57167
|
-
obj.memberRole = memberRoleToJSON(message.memberRole);
|
|
57168
|
-
}
|
|
57169
|
-
if (message.joinedAt !== 0) {
|
|
57170
|
-
obj.joinedAt = message.joinedAt;
|
|
57171
|
-
}
|
|
57172
|
-
if (message.lastActiveAt !== 0) {
|
|
57173
|
-
obj.lastActiveAt = message.lastActiveAt;
|
|
57174
|
-
}
|
|
57175
|
-
if (message.deletedAt !== 0) {
|
|
57176
|
-
obj.deletedAt = message.deletedAt;
|
|
57177
|
-
}
|
|
57178
|
-
if (message.userId !== "") {
|
|
57179
|
-
obj.userId = message.userId;
|
|
57180
|
-
}
|
|
57181
|
-
if (message.identityProviderType !== 0) {
|
|
57182
|
-
obj.identityProviderType = identityProviderTypeToJSON(message.identityProviderType);
|
|
57183
|
-
}
|
|
57184
|
-
if (message.email !== "") {
|
|
57185
|
-
obj.email = message.email;
|
|
57186
|
-
}
|
|
57187
|
-
if (message.avatarUrl !== "") {
|
|
57188
|
-
obj.avatarUrl = message.avatarUrl;
|
|
57189
|
-
}
|
|
57190
|
-
if (message.idpExternalId !== "") {
|
|
57191
|
-
obj.idpExternalId = message.idpExternalId;
|
|
57192
|
-
}
|
|
57193
|
-
return obj;
|
|
57194
|
-
},
|
|
57195
|
-
create(base) {
|
|
57196
|
-
return WorkspaceMembersListItem.fromPartial(base ?? {});
|
|
57197
|
-
},
|
|
57198
|
-
fromPartial(object) {
|
|
57199
|
-
const message = createBaseWorkspaceMembersListItem();
|
|
57200
|
-
message.memberId = object.memberId ?? "";
|
|
57201
|
-
message.memberDisplayname = object.memberDisplayname ?? "";
|
|
57202
|
-
message.memberRole = object.memberRole ?? 0;
|
|
57203
|
-
message.joinedAt = object.joinedAt ?? 0;
|
|
57204
|
-
message.lastActiveAt = object.lastActiveAt ?? 0;
|
|
57205
|
-
message.deletedAt = object.deletedAt ?? 0;
|
|
57206
|
-
message.userId = object.userId ?? "";
|
|
57207
|
-
message.identityProviderType = object.identityProviderType ?? 0;
|
|
57208
|
-
message.email = object.email ?? "";
|
|
57209
|
-
message.avatarUrl = object.avatarUrl ?? "";
|
|
57210
|
-
message.idpExternalId = object.idpExternalId ?? "";
|
|
57211
|
-
return message;
|
|
57212
|
-
}
|
|
57213
|
-
};
|
|
57214
|
-
function createBaseWorkspaceMembersListResponse() {
|
|
57215
|
-
return { members: [] };
|
|
57216
|
-
}
|
|
57217
|
-
var WorkspaceMembersListResponse = {
|
|
57218
|
-
encode(message, writer = new BinaryWriter()) {
|
|
57219
|
-
for (const v of message.members) {
|
|
57220
|
-
WorkspaceMembersListItem.encode(v, writer.uint32(10).fork()).join();
|
|
59231
|
+
if (message.blockUnauthenticatedResources !== void 0) {
|
|
59232
|
+
writer.uint32(8).int32(message.blockUnauthenticatedResources);
|
|
57221
59233
|
}
|
|
57222
59234
|
return writer;
|
|
57223
59235
|
},
|
|
57224
59236
|
decode(input, length) {
|
|
57225
59237
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
57226
59238
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
57227
|
-
const message =
|
|
59239
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentSettingsRequest();
|
|
57228
59240
|
while (reader.pos < end) {
|
|
57229
59241
|
const tag = reader.uint32();
|
|
57230
59242
|
switch (tag >>> 3) {
|
|
57231
59243
|
case 1: {
|
|
57232
|
-
if (tag !==
|
|
59244
|
+
if (tag !== 8) {
|
|
57233
59245
|
break;
|
|
57234
59246
|
}
|
|
57235
|
-
message.
|
|
59247
|
+
message.blockUnauthenticatedResources = reader.int32();
|
|
57236
59248
|
continue;
|
|
57237
59249
|
}
|
|
57238
59250
|
}
|
|
@@ -57245,42 +59257,41 @@ var WorkspaceMembersListResponse = {
|
|
|
57245
59257
|
},
|
|
57246
59258
|
fromJSON(object) {
|
|
57247
59259
|
return {
|
|
57248
|
-
|
|
59260
|
+
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? environmentBlockUnauthenticatedResourcesFromJSON(object.blockUnauthenticatedResources) : void 0
|
|
57249
59261
|
};
|
|
57250
59262
|
},
|
|
57251
59263
|
toJSON(message) {
|
|
57252
59264
|
const obj = {};
|
|
57253
|
-
if (message.
|
|
57254
|
-
obj.
|
|
59265
|
+
if (message.blockUnauthenticatedResources !== void 0) {
|
|
59266
|
+
obj.blockUnauthenticatedResources = environmentBlockUnauthenticatedResourcesToJSON(
|
|
59267
|
+
message.blockUnauthenticatedResources
|
|
59268
|
+
);
|
|
57255
59269
|
}
|
|
57256
59270
|
return obj;
|
|
57257
59271
|
},
|
|
57258
59272
|
create(base) {
|
|
57259
|
-
return
|
|
59273
|
+
return WorkspaceSetDefaultEnvironmentSettingsRequest.fromPartial(base ?? {});
|
|
57260
59274
|
},
|
|
57261
59275
|
fromPartial(object) {
|
|
57262
|
-
const message =
|
|
57263
|
-
message.
|
|
59276
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentSettingsRequest();
|
|
59277
|
+
message.blockUnauthenticatedResources = object.blockUnauthenticatedResources ?? void 0;
|
|
57264
59278
|
return message;
|
|
57265
59279
|
}
|
|
57266
59280
|
};
|
|
57267
|
-
function
|
|
57268
|
-
return {
|
|
59281
|
+
function createBaseWorkspaceSetDefaultEnvironmentSettingsResponse() {
|
|
59282
|
+
return { defaultEnvironmentSettings: void 0 };
|
|
57269
59283
|
}
|
|
57270
|
-
var
|
|
59284
|
+
var WorkspaceSetDefaultEnvironmentSettingsResponse = {
|
|
57271
59285
|
encode(message, writer = new BinaryWriter()) {
|
|
57272
|
-
if (message.
|
|
57273
|
-
writer.uint32(10).
|
|
57274
|
-
}
|
|
57275
|
-
if (message.username !== "") {
|
|
57276
|
-
writer.uint32(18).string(message.username);
|
|
59286
|
+
if (message.defaultEnvironmentSettings !== void 0) {
|
|
59287
|
+
EnvironmentSettings.encode(message.defaultEnvironmentSettings, writer.uint32(10).fork()).join();
|
|
57277
59288
|
}
|
|
57278
59289
|
return writer;
|
|
57279
59290
|
},
|
|
57280
59291
|
decode(input, length) {
|
|
57281
59292
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
57282
59293
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
57283
|
-
const message =
|
|
59294
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentSettingsResponse();
|
|
57284
59295
|
while (reader.pos < end) {
|
|
57285
59296
|
const tag = reader.uint32();
|
|
57286
59297
|
switch (tag >>> 3) {
|
|
@@ -57288,14 +59299,7 @@ var WorkspaceNameLookupResponse = {
|
|
|
57288
59299
|
if (tag !== 10) {
|
|
57289
59300
|
break;
|
|
57290
59301
|
}
|
|
57291
|
-
message.
|
|
57292
|
-
continue;
|
|
57293
|
-
}
|
|
57294
|
-
case 2: {
|
|
57295
|
-
if (tag !== 18) {
|
|
57296
|
-
break;
|
|
57297
|
-
}
|
|
57298
|
-
message.username = reader.string();
|
|
59302
|
+
message.defaultEnvironmentSettings = EnvironmentSettings.decode(reader, reader.uint32());
|
|
57299
59303
|
continue;
|
|
57300
59304
|
}
|
|
57301
59305
|
}
|
|
@@ -57308,78 +59312,22 @@ var WorkspaceNameLookupResponse = {
|
|
|
57308
59312
|
},
|
|
57309
59313
|
fromJSON(object) {
|
|
57310
59314
|
return {
|
|
57311
|
-
|
|
57312
|
-
username: isSet5(object.username) ? globalThis.String(object.username) : ""
|
|
59315
|
+
defaultEnvironmentSettings: isSet5(object.defaultEnvironmentSettings) ? EnvironmentSettings.fromJSON(object.defaultEnvironmentSettings) : void 0
|
|
57313
59316
|
};
|
|
57314
59317
|
},
|
|
57315
59318
|
toJSON(message) {
|
|
57316
59319
|
const obj = {};
|
|
57317
|
-
if (message.
|
|
57318
|
-
obj.
|
|
57319
|
-
}
|
|
57320
|
-
if (message.username !== "") {
|
|
57321
|
-
obj.username = message.username;
|
|
59320
|
+
if (message.defaultEnvironmentSettings !== void 0) {
|
|
59321
|
+
obj.defaultEnvironmentSettings = EnvironmentSettings.toJSON(message.defaultEnvironmentSettings);
|
|
57322
59322
|
}
|
|
57323
59323
|
return obj;
|
|
57324
59324
|
},
|
|
57325
59325
|
create(base) {
|
|
57326
|
-
return
|
|
59326
|
+
return WorkspaceSetDefaultEnvironmentSettingsResponse.fromPartial(base ?? {});
|
|
57327
59327
|
},
|
|
57328
59328
|
fromPartial(object) {
|
|
57329
|
-
const message =
|
|
57330
|
-
message.
|
|
57331
|
-
message.username = object.username ?? "";
|
|
57332
|
-
return message;
|
|
57333
|
-
}
|
|
57334
|
-
};
|
|
57335
|
-
function createBaseWorkspaceSetDefaultEnvironmentRequest() {
|
|
57336
|
-
return { environmentName: "" };
|
|
57337
|
-
}
|
|
57338
|
-
var WorkspaceSetDefaultEnvironmentRequest = {
|
|
57339
|
-
encode(message, writer = new BinaryWriter()) {
|
|
57340
|
-
if (message.environmentName !== "") {
|
|
57341
|
-
writer.uint32(10).string(message.environmentName);
|
|
57342
|
-
}
|
|
57343
|
-
return writer;
|
|
57344
|
-
},
|
|
57345
|
-
decode(input, length) {
|
|
57346
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
57347
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
57348
|
-
const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
|
|
57349
|
-
while (reader.pos < end) {
|
|
57350
|
-
const tag = reader.uint32();
|
|
57351
|
-
switch (tag >>> 3) {
|
|
57352
|
-
case 1: {
|
|
57353
|
-
if (tag !== 10) {
|
|
57354
|
-
break;
|
|
57355
|
-
}
|
|
57356
|
-
message.environmentName = reader.string();
|
|
57357
|
-
continue;
|
|
57358
|
-
}
|
|
57359
|
-
}
|
|
57360
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
57361
|
-
break;
|
|
57362
|
-
}
|
|
57363
|
-
reader.skip(tag & 7);
|
|
57364
|
-
}
|
|
57365
|
-
return message;
|
|
57366
|
-
},
|
|
57367
|
-
fromJSON(object) {
|
|
57368
|
-
return { environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "" };
|
|
57369
|
-
},
|
|
57370
|
-
toJSON(message) {
|
|
57371
|
-
const obj = {};
|
|
57372
|
-
if (message.environmentName !== "") {
|
|
57373
|
-
obj.environmentName = message.environmentName;
|
|
57374
|
-
}
|
|
57375
|
-
return obj;
|
|
57376
|
-
},
|
|
57377
|
-
create(base) {
|
|
57378
|
-
return WorkspaceSetDefaultEnvironmentRequest.fromPartial(base ?? {});
|
|
57379
|
-
},
|
|
57380
|
-
fromPartial(object) {
|
|
57381
|
-
const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
|
|
57382
|
-
message.environmentName = object.environmentName ?? "";
|
|
59329
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentSettingsResponse();
|
|
59330
|
+
message.defaultEnvironmentSettings = object.defaultEnvironmentSettings !== void 0 && object.defaultEnvironmentSettings !== null ? EnvironmentSettings.fromPartial(object.defaultEnvironmentSettings) : void 0;
|
|
57383
59331
|
return message;
|
|
57384
59332
|
}
|
|
57385
59333
|
};
|
|
@@ -58419,6 +60367,14 @@ var ModalClientDefinition = {
|
|
|
58419
60367
|
responseStream: false,
|
|
58420
60368
|
options: {}
|
|
58421
60369
|
},
|
|
60370
|
+
functionGetSchedulingParams: {
|
|
60371
|
+
name: "FunctionGetSchedulingParams",
|
|
60372
|
+
requestType: FunctionGetSchedulingParamsRequest,
|
|
60373
|
+
requestStream: false,
|
|
60374
|
+
responseType: FunctionGetSchedulingParamsResponse,
|
|
60375
|
+
responseStream: false,
|
|
60376
|
+
options: {}
|
|
60377
|
+
},
|
|
58422
60378
|
functionGetSerialized: {
|
|
58423
60379
|
name: "FunctionGetSerialized",
|
|
58424
60380
|
requestType: FunctionGetSerializedRequest,
|
|
@@ -59093,6 +61049,15 @@ var ModalClientDefinition = {
|
|
|
59093
61049
|
responseStream: false,
|
|
59094
61050
|
options: {}
|
|
59095
61051
|
},
|
|
61052
|
+
/** Servers */
|
|
61053
|
+
serverGetTimeRangeStats: {
|
|
61054
|
+
name: "ServerGetTimeRangeStats",
|
|
61055
|
+
requestType: ServerGetTimeRangeStatsRequest,
|
|
61056
|
+
requestStream: false,
|
|
61057
|
+
responseType: ServerGetTimeRangeStatsResponse,
|
|
61058
|
+
responseStream: false,
|
|
61059
|
+
options: {}
|
|
61060
|
+
},
|
|
59096
61061
|
/** Service users */
|
|
59097
61062
|
serviceUserList: {
|
|
59098
61063
|
name: "ServiceUserList",
|
|
@@ -59543,6 +61508,14 @@ var ModalClientDefinition = {
|
|
|
59543
61508
|
responseStream: false,
|
|
59544
61509
|
options: {}
|
|
59545
61510
|
},
|
|
61511
|
+
workspaceSetDefaultEnvironmentSettings: {
|
|
61512
|
+
name: "WorkspaceSetDefaultEnvironmentSettings",
|
|
61513
|
+
requestType: WorkspaceSetDefaultEnvironmentSettingsRequest,
|
|
61514
|
+
requestStream: false,
|
|
61515
|
+
responseType: WorkspaceSetDefaultEnvironmentSettingsResponse,
|
|
61516
|
+
responseStream: false,
|
|
61517
|
+
options: {}
|
|
61518
|
+
},
|
|
59546
61519
|
workspaceSetImageBuilderVersion: {
|
|
59547
61520
|
name: "WorkspaceSetImageBuilderVersion",
|
|
59548
61521
|
requestType: WorkspaceSetImageBuilderVersionRequest,
|
|
@@ -67524,6 +69497,10 @@ var import_nice_grpc10 = require("nice-grpc");
|
|
|
67524
69497
|
var import_uuid = require("uuid");
|
|
67525
69498
|
var MAIN_CONTAINER_NAME = "main";
|
|
67526
69499
|
var CONTAINER_WAIT_POLL_TIMEOUT_SECONDS = 10;
|
|
69500
|
+
var CONTROL_PLANE_SIDECAR_CREATE_ENV_VAR = "MODAL_USE_CONTROL_PLANE_SIDECAR_CREATE";
|
|
69501
|
+
function useControlPlaneSidecarCreate(sandboxId) {
|
|
69502
|
+
return getSandboxVersion(sandboxId) === "V2" /* V2 */ && process.env[CONTROL_PLANE_SIDECAR_CREATE_ENV_VAR] === "1";
|
|
69503
|
+
}
|
|
67527
69504
|
function validateSidecarName(name) {
|
|
67528
69505
|
if (name === "") {
|
|
67529
69506
|
throw new InvalidError("sidecar name must not be empty");
|
|
@@ -67554,6 +69531,7 @@ var SidecarService = class {
|
|
|
67554
69531
|
* passed to `create`.
|
|
67555
69532
|
*/
|
|
67556
69533
|
async create(name, image, params) {
|
|
69534
|
+
this.#access.ensureAttached();
|
|
67557
69535
|
validateSidecarName(name);
|
|
67558
69536
|
if (!image || image.imageId === "") {
|
|
67559
69537
|
throw new InvalidError(
|
|
@@ -67571,26 +69549,46 @@ var SidecarService = class {
|
|
|
67571
69549
|
await hydrateSecrets(this.#access.client, resolvableSecrets);
|
|
67572
69550
|
const secretIds = collectSecretIds(resolvableSecrets);
|
|
67573
69551
|
const ptyInfo = params?.pty ? defaultSandboxPTYInfo() : void 0;
|
|
67574
|
-
const
|
|
69552
|
+
const networkAccess = buildOutboundNetworkAccess(
|
|
69553
|
+
false,
|
|
69554
|
+
params?.outboundCidrAllowlist,
|
|
69555
|
+
params?.outboundDomainAllowlist
|
|
69556
|
+
);
|
|
67575
69557
|
let resp;
|
|
67576
69558
|
try {
|
|
67577
|
-
|
|
67578
|
-
|
|
67579
|
-
|
|
67580
|
-
|
|
67581
|
-
|
|
67582
|
-
|
|
67583
|
-
|
|
67584
|
-
|
|
67585
|
-
|
|
67586
|
-
|
|
67587
|
-
|
|
67588
|
-
|
|
67589
|
-
|
|
67590
|
-
|
|
67591
|
-
|
|
67592
|
-
|
|
67593
|
-
|
|
69559
|
+
if (useControlPlaneSidecarCreate(this.#access.sandboxId)) {
|
|
69560
|
+
const ephemeralSecrets = Object.keys(envDict).length > 0 ? StringMap.create({ contents: envDict }) : void 0;
|
|
69561
|
+
resp = await this.#access.client.cpClient.sandboxContainerCreateV2(
|
|
69562
|
+
SandboxContainerCreateV2Request.create({
|
|
69563
|
+
sandboxId: this.#access.sandboxId,
|
|
69564
|
+
containerName: name,
|
|
69565
|
+
definition: Sandbox.create({
|
|
69566
|
+
imageId: image.imageId,
|
|
69567
|
+
entrypointArgs: command,
|
|
69568
|
+
workdir: params?.workdir ?? void 0,
|
|
69569
|
+
secretIds,
|
|
69570
|
+
networkAccess,
|
|
69571
|
+
ptyInfo
|
|
69572
|
+
}),
|
|
69573
|
+
ephemeralSecrets
|
|
69574
|
+
})
|
|
69575
|
+
);
|
|
69576
|
+
} else {
|
|
69577
|
+
const [taskId, client] = await this.#access.commandRouter();
|
|
69578
|
+
resp = await client.containerCreate(
|
|
69579
|
+
TaskContainerCreateRequest.create({
|
|
69580
|
+
taskId,
|
|
69581
|
+
containerName: name,
|
|
69582
|
+
imageId: image.imageId,
|
|
69583
|
+
args: command,
|
|
69584
|
+
env: envDict,
|
|
69585
|
+
workdir: params?.workdir ?? "",
|
|
69586
|
+
secretIds,
|
|
69587
|
+
networkAccess,
|
|
69588
|
+
ptyInfo
|
|
69589
|
+
})
|
|
69590
|
+
);
|
|
69591
|
+
}
|
|
67594
69592
|
} catch (err) {
|
|
67595
69593
|
if (err instanceof import_nice_grpc10.ClientError) {
|
|
67596
69594
|
if (err.code === import_nice_grpc10.Status.ALREADY_EXISTS) {
|
|
@@ -69080,6 +71078,8 @@ var Sandbox2 = class _Sandbox {
|
|
|
69080
71078
|
if (!this.#sidecars) {
|
|
69081
71079
|
this.#sidecars = new SidecarService({
|
|
69082
71080
|
client: this.#client,
|
|
71081
|
+
sandboxId: this.sandboxId,
|
|
71082
|
+
ensureAttached: () => this.#ensureAttached(),
|
|
69083
71083
|
exec: (command, params, containerId) => this.#execInternal(command, params, containerId),
|
|
69084
71084
|
commandRouter: () => this.#getCommandRouter(),
|
|
69085
71085
|
reloadVolumes: (containerId, params) => this.#reloadVolumes(containerId, params),
|
|
@@ -70092,8 +72092,11 @@ var AUTH_TOKEN_GET_MAX_RETRIES = 3;
|
|
|
70092
72092
|
var FAILURE_BACKOFF_BASE_MS = 500;
|
|
70093
72093
|
var FAILURE_BACKOFF_MAX_MS = 60 * 1e3;
|
|
70094
72094
|
var DEFAULT_EXPIRY_OFFSET = 20 * 60;
|
|
72095
|
+
function authTokenGetFetcher(client) {
|
|
72096
|
+
return async (options) => (await client.authTokenGet({}, options)).token;
|
|
72097
|
+
}
|
|
70095
72098
|
var AuthTokenManager = class {
|
|
70096
|
-
|
|
72099
|
+
fetch;
|
|
70097
72100
|
logger;
|
|
70098
72101
|
currentToken = "";
|
|
70099
72102
|
tokenExpiry = 0;
|
|
@@ -70101,8 +72104,8 @@ var AuthTokenManager = class {
|
|
|
70101
72104
|
refreshPromise = null;
|
|
70102
72105
|
retryAfter = 0;
|
|
70103
72106
|
backoffMs = FAILURE_BACKOFF_BASE_MS;
|
|
70104
|
-
constructor(
|
|
70105
|
-
this.
|
|
72107
|
+
constructor(fetch2, logger2) {
|
|
72108
|
+
this.fetch = fetch2;
|
|
70106
72109
|
this.logger = logger2;
|
|
70107
72110
|
}
|
|
70108
72111
|
/**
|
|
@@ -70162,16 +72165,12 @@ var AuthTokenManager = class {
|
|
|
70162
72165
|
async fetchToken() {
|
|
70163
72166
|
try {
|
|
70164
72167
|
const hasCachedToken = !!this.currentToken;
|
|
70165
|
-
const
|
|
70166
|
-
|
|
70167
|
-
|
|
70168
|
-
|
|
70169
|
-
|
|
70170
|
-
|
|
70171
|
-
timeoutMs: AUTH_TOKEN_GET_TIMEOUT_MS
|
|
70172
|
-
}
|
|
70173
|
-
);
|
|
70174
|
-
const token = response.token;
|
|
72168
|
+
const token = await this.fetch({
|
|
72169
|
+
// No cached token to fall back on, so a failure is user-visible: retry transient errors.
|
|
72170
|
+
// Otherwise one attempt, and retryAfter handles the cooldown.
|
|
72171
|
+
retries: hasCachedToken ? 0 : AUTH_TOKEN_GET_MAX_RETRIES,
|
|
72172
|
+
timeoutMs: AUTH_TOKEN_GET_TIMEOUT_MS
|
|
72173
|
+
});
|
|
70175
72174
|
if (!token) {
|
|
70176
72175
|
throw new Error(
|
|
70177
72176
|
"Internal error: did not receive auth token from server, please contact Modal support"
|
|
@@ -70274,7 +72273,7 @@ var AuthTokenManager = class {
|
|
|
70274
72273
|
};
|
|
70275
72274
|
|
|
70276
72275
|
// src/version.ts
|
|
70277
|
-
var SDK_VERSION = "0.10.1";
|
|
72276
|
+
var SDK_VERSION = "0.10.2-dev.1";
|
|
70278
72277
|
function getSDKVersion() {
|
|
70279
72278
|
return SDK_VERSION;
|
|
70280
72279
|
}
|
|
@@ -70707,7 +72706,7 @@ var ModalClient = class {
|
|
|
70707
72706
|
const getOrCreateAuthTokenManager = () => {
|
|
70708
72707
|
if (!this.authTokenManager) {
|
|
70709
72708
|
this.authTokenManager = new AuthTokenManager(
|
|
70710
|
-
this.cpClient,
|
|
72709
|
+
authTokenGetFetcher(this.cpClient),
|
|
70711
72710
|
this.logger
|
|
70712
72711
|
);
|
|
70713
72712
|
}
|