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.js
CHANGED
|
@@ -2401,8 +2401,8 @@ function identityProviderTypeFromJSON(object) {
|
|
|
2401
2401
|
case "IDENTITY_PROVIDER_TYPE_GITHUB":
|
|
2402
2402
|
return 1 /* IDENTITY_PROVIDER_TYPE_GITHUB */;
|
|
2403
2403
|
case 2:
|
|
2404
|
-
case "
|
|
2405
|
-
return 2 /*
|
|
2404
|
+
case "IDENTITY_PROVIDER_TYPE_SAML":
|
|
2405
|
+
return 2 /* IDENTITY_PROVIDER_TYPE_SAML */;
|
|
2406
2406
|
case 3:
|
|
2407
2407
|
case "IDENTITY_PROVIDER_TYPE_GOOGLE_OAUTH":
|
|
2408
2408
|
return 3 /* IDENTITY_PROVIDER_TYPE_GOOGLE_OAUTH */;
|
|
@@ -2418,8 +2418,8 @@ function identityProviderTypeToJSON(object) {
|
|
|
2418
2418
|
return "IDENTITY_PROVIDER_TYPE_UNSPECIFIED";
|
|
2419
2419
|
case 1 /* IDENTITY_PROVIDER_TYPE_GITHUB */:
|
|
2420
2420
|
return "IDENTITY_PROVIDER_TYPE_GITHUB";
|
|
2421
|
-
case 2 /*
|
|
2422
|
-
return "
|
|
2421
|
+
case 2 /* IDENTITY_PROVIDER_TYPE_SAML */:
|
|
2422
|
+
return "IDENTITY_PROVIDER_TYPE_SAML";
|
|
2423
2423
|
case 3 /* IDENTITY_PROVIDER_TYPE_GOOGLE_OAUTH */:
|
|
2424
2424
|
return "IDENTITY_PROVIDER_TYPE_GOOGLE_OAUTH";
|
|
2425
2425
|
case -1 /* UNRECOGNIZED */:
|
|
@@ -2427,6 +2427,36 @@ function identityProviderTypeToJSON(object) {
|
|
|
2427
2427
|
return "UNRECOGNIZED";
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
+
function lLMEngineFromJSON(object) {
|
|
2431
|
+
switch (object) {
|
|
2432
|
+
case 0:
|
|
2433
|
+
case "LLM_ENGINE_UNSPECIFIED":
|
|
2434
|
+
return 0 /* LLM_ENGINE_UNSPECIFIED */;
|
|
2435
|
+
case 1:
|
|
2436
|
+
case "LLM_ENGINE_SGLANG":
|
|
2437
|
+
return 1 /* LLM_ENGINE_SGLANG */;
|
|
2438
|
+
case 2:
|
|
2439
|
+
case "LLM_ENGINE_VLLM":
|
|
2440
|
+
return 2 /* LLM_ENGINE_VLLM */;
|
|
2441
|
+
case -1:
|
|
2442
|
+
case "UNRECOGNIZED":
|
|
2443
|
+
default:
|
|
2444
|
+
return -1 /* UNRECOGNIZED */;
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2447
|
+
function lLMEngineToJSON(object) {
|
|
2448
|
+
switch (object) {
|
|
2449
|
+
case 0 /* LLM_ENGINE_UNSPECIFIED */:
|
|
2450
|
+
return "LLM_ENGINE_UNSPECIFIED";
|
|
2451
|
+
case 1 /* LLM_ENGINE_SGLANG */:
|
|
2452
|
+
return "LLM_ENGINE_SGLANG";
|
|
2453
|
+
case 2 /* LLM_ENGINE_VLLM */:
|
|
2454
|
+
return "LLM_ENGINE_VLLM";
|
|
2455
|
+
case -1 /* UNRECOGNIZED */:
|
|
2456
|
+
default:
|
|
2457
|
+
return "UNRECOGNIZED";
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2430
2460
|
function memberRoleFromJSON(object) {
|
|
2431
2461
|
switch (object) {
|
|
2432
2462
|
case 0:
|
|
@@ -2737,6 +2767,41 @@ function seekWhenceToJSON(object) {
|
|
|
2737
2767
|
return "UNRECOGNIZED";
|
|
2738
2768
|
}
|
|
2739
2769
|
}
|
|
2770
|
+
function serverInferenceStatsStatusFromJSON(object) {
|
|
2771
|
+
switch (object) {
|
|
2772
|
+
case 0:
|
|
2773
|
+
case "SERVER_INFERENCE_STATS_STATUS_UNSPECIFIED":
|
|
2774
|
+
return 0 /* SERVER_INFERENCE_STATS_STATUS_UNSPECIFIED */;
|
|
2775
|
+
case 1:
|
|
2776
|
+
case "SERVER_INFERENCE_STATS_STATUS_AVAILABLE":
|
|
2777
|
+
return 1 /* SERVER_INFERENCE_STATS_STATUS_AVAILABLE */;
|
|
2778
|
+
case 2:
|
|
2779
|
+
case "SERVER_INFERENCE_STATS_STATUS_NO_DATA":
|
|
2780
|
+
return 2 /* SERVER_INFERENCE_STATS_STATUS_NO_DATA */;
|
|
2781
|
+
case 3:
|
|
2782
|
+
case "SERVER_INFERENCE_STATS_STATUS_UNAVAILABLE":
|
|
2783
|
+
return 3 /* SERVER_INFERENCE_STATS_STATUS_UNAVAILABLE */;
|
|
2784
|
+
case -1:
|
|
2785
|
+
case "UNRECOGNIZED":
|
|
2786
|
+
default:
|
|
2787
|
+
return -1 /* UNRECOGNIZED */;
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
function serverInferenceStatsStatusToJSON(object) {
|
|
2791
|
+
switch (object) {
|
|
2792
|
+
case 0 /* SERVER_INFERENCE_STATS_STATUS_UNSPECIFIED */:
|
|
2793
|
+
return "SERVER_INFERENCE_STATS_STATUS_UNSPECIFIED";
|
|
2794
|
+
case 1 /* SERVER_INFERENCE_STATS_STATUS_AVAILABLE */:
|
|
2795
|
+
return "SERVER_INFERENCE_STATS_STATUS_AVAILABLE";
|
|
2796
|
+
case 2 /* SERVER_INFERENCE_STATS_STATUS_NO_DATA */:
|
|
2797
|
+
return "SERVER_INFERENCE_STATS_STATUS_NO_DATA";
|
|
2798
|
+
case 3 /* SERVER_INFERENCE_STATS_STATUS_UNAVAILABLE */:
|
|
2799
|
+
return "SERVER_INFERENCE_STATS_STATUS_UNAVAILABLE";
|
|
2800
|
+
case -1 /* UNRECOGNIZED */:
|
|
2801
|
+
default:
|
|
2802
|
+
return "UNRECOGNIZED";
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2740
2805
|
function systemErrorCodeFromJSON(object) {
|
|
2741
2806
|
switch (object) {
|
|
2742
2807
|
case 0:
|
|
@@ -3062,6 +3127,36 @@ function webhookTypeToJSON(object) {
|
|
|
3062
3127
|
return "UNRECOGNIZED";
|
|
3063
3128
|
}
|
|
3064
3129
|
}
|
|
3130
|
+
function blobUploadResult_OutcomeFromJSON(object) {
|
|
3131
|
+
switch (object) {
|
|
3132
|
+
case 0:
|
|
3133
|
+
case "OUTCOME_UNSPECIFIED":
|
|
3134
|
+
return 0 /* OUTCOME_UNSPECIFIED */;
|
|
3135
|
+
case 1:
|
|
3136
|
+
case "OUTCOME_SUCCESS":
|
|
3137
|
+
return 1 /* OUTCOME_SUCCESS */;
|
|
3138
|
+
case 2:
|
|
3139
|
+
case "OUTCOME_FAILURE":
|
|
3140
|
+
return 2 /* OUTCOME_FAILURE */;
|
|
3141
|
+
case -1:
|
|
3142
|
+
case "UNRECOGNIZED":
|
|
3143
|
+
default:
|
|
3144
|
+
return -1 /* UNRECOGNIZED */;
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
function blobUploadResult_OutcomeToJSON(object) {
|
|
3148
|
+
switch (object) {
|
|
3149
|
+
case 0 /* OUTCOME_UNSPECIFIED */:
|
|
3150
|
+
return "OUTCOME_UNSPECIFIED";
|
|
3151
|
+
case 1 /* OUTCOME_SUCCESS */:
|
|
3152
|
+
return "OUTCOME_SUCCESS";
|
|
3153
|
+
case 2 /* OUTCOME_FAILURE */:
|
|
3154
|
+
return "OUTCOME_FAILURE";
|
|
3155
|
+
case -1 /* UNRECOGNIZED */:
|
|
3156
|
+
default:
|
|
3157
|
+
return "UNRECOGNIZED";
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3065
3160
|
function classParameterInfo_ParameterSerializationFormatFromJSON(object) {
|
|
3066
3161
|
switch (object) {
|
|
3067
3162
|
case 0:
|
|
@@ -3601,7 +3696,8 @@ function createBaseAppCountLogsRequest() {
|
|
|
3601
3696
|
since: void 0,
|
|
3602
3697
|
until: void 0,
|
|
3603
3698
|
bucketSecs: 0,
|
|
3604
|
-
source: 0
|
|
3699
|
+
source: 0,
|
|
3700
|
+
parametrizedFunctionId: ""
|
|
3605
3701
|
};
|
|
3606
3702
|
}
|
|
3607
3703
|
var AppCountLogsRequest = {
|
|
@@ -3636,6 +3732,9 @@ var AppCountLogsRequest = {
|
|
|
3636
3732
|
if (message.source !== 0) {
|
|
3637
3733
|
writer.uint32(80).int32(message.source);
|
|
3638
3734
|
}
|
|
3735
|
+
if (message.parametrizedFunctionId !== "") {
|
|
3736
|
+
writer.uint32(90).string(message.parametrizedFunctionId);
|
|
3737
|
+
}
|
|
3639
3738
|
return writer;
|
|
3640
3739
|
},
|
|
3641
3740
|
decode(input, length) {
|
|
@@ -3715,6 +3814,13 @@ var AppCountLogsRequest = {
|
|
|
3715
3814
|
message.source = reader.int32();
|
|
3716
3815
|
continue;
|
|
3717
3816
|
}
|
|
3817
|
+
case 11: {
|
|
3818
|
+
if (tag !== 90) {
|
|
3819
|
+
break;
|
|
3820
|
+
}
|
|
3821
|
+
message.parametrizedFunctionId = reader.string();
|
|
3822
|
+
continue;
|
|
3823
|
+
}
|
|
3718
3824
|
}
|
|
3719
3825
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3720
3826
|
break;
|
|
@@ -3734,7 +3840,8 @@ var AppCountLogsRequest = {
|
|
|
3734
3840
|
since: isSet5(object.since) ? fromJsonTimestamp(object.since) : void 0,
|
|
3735
3841
|
until: isSet5(object.until) ? fromJsonTimestamp(object.until) : void 0,
|
|
3736
3842
|
bucketSecs: isSet5(object.bucketSecs) ? globalThis.Number(object.bucketSecs) : 0,
|
|
3737
|
-
source: isSet5(object.source) ? fileDescriptorFromJSON(object.source) : 0
|
|
3843
|
+
source: isSet5(object.source) ? fileDescriptorFromJSON(object.source) : 0,
|
|
3844
|
+
parametrizedFunctionId: isSet5(object.parametrizedFunctionId) ? globalThis.String(object.parametrizedFunctionId) : ""
|
|
3738
3845
|
};
|
|
3739
3846
|
},
|
|
3740
3847
|
toJSON(message) {
|
|
@@ -3769,6 +3876,9 @@ var AppCountLogsRequest = {
|
|
|
3769
3876
|
if (message.source !== 0) {
|
|
3770
3877
|
obj.source = fileDescriptorToJSON(message.source);
|
|
3771
3878
|
}
|
|
3879
|
+
if (message.parametrizedFunctionId !== "") {
|
|
3880
|
+
obj.parametrizedFunctionId = message.parametrizedFunctionId;
|
|
3881
|
+
}
|
|
3772
3882
|
return obj;
|
|
3773
3883
|
},
|
|
3774
3884
|
create(base) {
|
|
@@ -3786,6 +3896,7 @@ var AppCountLogsRequest = {
|
|
|
3786
3896
|
message.until = object.until ?? void 0;
|
|
3787
3897
|
message.bucketSecs = object.bucketSecs ?? 0;
|
|
3788
3898
|
message.source = object.source ?? 0;
|
|
3899
|
+
message.parametrizedFunctionId = object.parametrizedFunctionId ?? "";
|
|
3789
3900
|
return message;
|
|
3790
3901
|
}
|
|
3791
3902
|
};
|
|
@@ -4745,7 +4856,8 @@ function createBaseAppFetchLogsRequest() {
|
|
|
4745
4856
|
functionCallId: "",
|
|
4746
4857
|
taskId: "",
|
|
4747
4858
|
sandboxId: "",
|
|
4748
|
-
searchText: ""
|
|
4859
|
+
searchText: "",
|
|
4860
|
+
parametrizedFunctionId: ""
|
|
4749
4861
|
};
|
|
4750
4862
|
}
|
|
4751
4863
|
var AppFetchLogsRequest = {
|
|
@@ -4780,6 +4892,9 @@ var AppFetchLogsRequest = {
|
|
|
4780
4892
|
if (message.searchText !== "") {
|
|
4781
4893
|
writer.uint32(82).string(message.searchText);
|
|
4782
4894
|
}
|
|
4895
|
+
if (message.parametrizedFunctionId !== "") {
|
|
4896
|
+
writer.uint32(90).string(message.parametrizedFunctionId);
|
|
4897
|
+
}
|
|
4783
4898
|
return writer;
|
|
4784
4899
|
},
|
|
4785
4900
|
decode(input, length) {
|
|
@@ -4859,6 +4974,13 @@ var AppFetchLogsRequest = {
|
|
|
4859
4974
|
message.searchText = reader.string();
|
|
4860
4975
|
continue;
|
|
4861
4976
|
}
|
|
4977
|
+
case 11: {
|
|
4978
|
+
if (tag !== 90) {
|
|
4979
|
+
break;
|
|
4980
|
+
}
|
|
4981
|
+
message.parametrizedFunctionId = reader.string();
|
|
4982
|
+
continue;
|
|
4983
|
+
}
|
|
4862
4984
|
}
|
|
4863
4985
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4864
4986
|
break;
|
|
@@ -4878,7 +5000,8 @@ var AppFetchLogsRequest = {
|
|
|
4878
5000
|
functionCallId: isSet5(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
4879
5001
|
taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
|
|
4880
5002
|
sandboxId: isSet5(object.sandboxId) ? globalThis.String(object.sandboxId) : "",
|
|
4881
|
-
searchText: isSet5(object.searchText) ? globalThis.String(object.searchText) : ""
|
|
5003
|
+
searchText: isSet5(object.searchText) ? globalThis.String(object.searchText) : "",
|
|
5004
|
+
parametrizedFunctionId: isSet5(object.parametrizedFunctionId) ? globalThis.String(object.parametrizedFunctionId) : ""
|
|
4882
5005
|
};
|
|
4883
5006
|
},
|
|
4884
5007
|
toJSON(message) {
|
|
@@ -4913,6 +5036,9 @@ var AppFetchLogsRequest = {
|
|
|
4913
5036
|
if (message.searchText !== "") {
|
|
4914
5037
|
obj.searchText = message.searchText;
|
|
4915
5038
|
}
|
|
5039
|
+
if (message.parametrizedFunctionId !== "") {
|
|
5040
|
+
obj.parametrizedFunctionId = message.parametrizedFunctionId;
|
|
5041
|
+
}
|
|
4916
5042
|
return obj;
|
|
4917
5043
|
},
|
|
4918
5044
|
create(base) {
|
|
@@ -4930,6 +5056,7 @@ var AppFetchLogsRequest = {
|
|
|
4930
5056
|
message.taskId = object.taskId ?? "";
|
|
4931
5057
|
message.sandboxId = object.sandboxId ?? "";
|
|
4932
5058
|
message.searchText = object.searchText ?? "";
|
|
5059
|
+
message.parametrizedFunctionId = object.parametrizedFunctionId ?? "";
|
|
4933
5060
|
return message;
|
|
4934
5061
|
}
|
|
4935
5062
|
};
|
|
@@ -5204,13 +5331,16 @@ var AppGetInfoRequest = {
|
|
|
5204
5331
|
}
|
|
5205
5332
|
};
|
|
5206
5333
|
function createBaseAppGetInfoResponse() {
|
|
5207
|
-
return { info: void 0 };
|
|
5334
|
+
return { info: void 0, functionInfoSummaries: {} };
|
|
5208
5335
|
}
|
|
5209
5336
|
var AppGetInfoResponse = {
|
|
5210
5337
|
encode(message, writer = new BinaryWriter()) {
|
|
5211
5338
|
if (message.info !== void 0) {
|
|
5212
5339
|
AppHandleMetadata.encode(message.info, writer.uint32(10).fork()).join();
|
|
5213
5340
|
}
|
|
5341
|
+
Object.entries(message.functionInfoSummaries).forEach(([key, value]) => {
|
|
5342
|
+
AppGetInfoResponse_FunctionInfoSummariesEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
5343
|
+
});
|
|
5214
5344
|
return writer;
|
|
5215
5345
|
},
|
|
5216
5346
|
decode(input, length) {
|
|
@@ -5227,6 +5357,16 @@ var AppGetInfoResponse = {
|
|
|
5227
5357
|
message.info = AppHandleMetadata.decode(reader, reader.uint32());
|
|
5228
5358
|
continue;
|
|
5229
5359
|
}
|
|
5360
|
+
case 2: {
|
|
5361
|
+
if (tag !== 18) {
|
|
5362
|
+
break;
|
|
5363
|
+
}
|
|
5364
|
+
const entry2 = AppGetInfoResponse_FunctionInfoSummariesEntry.decode(reader, reader.uint32());
|
|
5365
|
+
if (entry2.value !== void 0) {
|
|
5366
|
+
message.functionInfoSummaries[entry2.key] = entry2.value;
|
|
5367
|
+
}
|
|
5368
|
+
continue;
|
|
5369
|
+
}
|
|
5230
5370
|
}
|
|
5231
5371
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5232
5372
|
break;
|
|
@@ -5236,13 +5376,28 @@ var AppGetInfoResponse = {
|
|
|
5236
5376
|
return message;
|
|
5237
5377
|
},
|
|
5238
5378
|
fromJSON(object) {
|
|
5239
|
-
return {
|
|
5379
|
+
return {
|
|
5380
|
+
info: isSet5(object.info) ? AppHandleMetadata.fromJSON(object.info) : void 0,
|
|
5381
|
+
functionInfoSummaries: isObject2(object.functionInfoSummaries) ? Object.entries(object.functionInfoSummaries).reduce((acc, [key, value]) => {
|
|
5382
|
+
acc[key] = AppGetInfoResponse_FunctionInfoSummary.fromJSON(value);
|
|
5383
|
+
return acc;
|
|
5384
|
+
}, {}) : {}
|
|
5385
|
+
};
|
|
5240
5386
|
},
|
|
5241
5387
|
toJSON(message) {
|
|
5242
5388
|
const obj = {};
|
|
5243
5389
|
if (message.info !== void 0) {
|
|
5244
5390
|
obj.info = AppHandleMetadata.toJSON(message.info);
|
|
5245
5391
|
}
|
|
5392
|
+
if (message.functionInfoSummaries) {
|
|
5393
|
+
const entries = Object.entries(message.functionInfoSummaries);
|
|
5394
|
+
if (entries.length > 0) {
|
|
5395
|
+
obj.functionInfoSummaries = {};
|
|
5396
|
+
entries.forEach(([k, v]) => {
|
|
5397
|
+
obj.functionInfoSummaries[k] = AppGetInfoResponse_FunctionInfoSummary.toJSON(v);
|
|
5398
|
+
});
|
|
5399
|
+
}
|
|
5400
|
+
}
|
|
5246
5401
|
return obj;
|
|
5247
5402
|
},
|
|
5248
5403
|
create(base) {
|
|
@@ -5251,6 +5406,178 @@ var AppGetInfoResponse = {
|
|
|
5251
5406
|
fromPartial(object) {
|
|
5252
5407
|
const message = createBaseAppGetInfoResponse();
|
|
5253
5408
|
message.info = object.info !== void 0 && object.info !== null ? AppHandleMetadata.fromPartial(object.info) : void 0;
|
|
5409
|
+
message.functionInfoSummaries = Object.entries(object.functionInfoSummaries ?? {}).reduce((acc, [key, value]) => {
|
|
5410
|
+
if (value !== void 0) {
|
|
5411
|
+
acc[key] = AppGetInfoResponse_FunctionInfoSummary.fromPartial(value);
|
|
5412
|
+
}
|
|
5413
|
+
return acc;
|
|
5414
|
+
}, {});
|
|
5415
|
+
return message;
|
|
5416
|
+
}
|
|
5417
|
+
};
|
|
5418
|
+
function createBaseAppGetInfoResponse_FunctionInfoSummary() {
|
|
5419
|
+
return { gpuConfig: [], schedule: void 0, webFunction: false, requiresProxyAuth: void 0 };
|
|
5420
|
+
}
|
|
5421
|
+
var AppGetInfoResponse_FunctionInfoSummary = {
|
|
5422
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5423
|
+
for (const v of message.gpuConfig) {
|
|
5424
|
+
GPUConfig.encode(v, writer.uint32(10).fork()).join();
|
|
5425
|
+
}
|
|
5426
|
+
if (message.schedule !== void 0) {
|
|
5427
|
+
Schedule.encode(message.schedule, writer.uint32(18).fork()).join();
|
|
5428
|
+
}
|
|
5429
|
+
if (message.webFunction !== false) {
|
|
5430
|
+
writer.uint32(24).bool(message.webFunction);
|
|
5431
|
+
}
|
|
5432
|
+
if (message.requiresProxyAuth !== void 0) {
|
|
5433
|
+
writer.uint32(32).bool(message.requiresProxyAuth);
|
|
5434
|
+
}
|
|
5435
|
+
return writer;
|
|
5436
|
+
},
|
|
5437
|
+
decode(input, length) {
|
|
5438
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5439
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5440
|
+
const message = createBaseAppGetInfoResponse_FunctionInfoSummary();
|
|
5441
|
+
while (reader.pos < end) {
|
|
5442
|
+
const tag = reader.uint32();
|
|
5443
|
+
switch (tag >>> 3) {
|
|
5444
|
+
case 1: {
|
|
5445
|
+
if (tag !== 10) {
|
|
5446
|
+
break;
|
|
5447
|
+
}
|
|
5448
|
+
message.gpuConfig.push(GPUConfig.decode(reader, reader.uint32()));
|
|
5449
|
+
continue;
|
|
5450
|
+
}
|
|
5451
|
+
case 2: {
|
|
5452
|
+
if (tag !== 18) {
|
|
5453
|
+
break;
|
|
5454
|
+
}
|
|
5455
|
+
message.schedule = Schedule.decode(reader, reader.uint32());
|
|
5456
|
+
continue;
|
|
5457
|
+
}
|
|
5458
|
+
case 3: {
|
|
5459
|
+
if (tag !== 24) {
|
|
5460
|
+
break;
|
|
5461
|
+
}
|
|
5462
|
+
message.webFunction = reader.bool();
|
|
5463
|
+
continue;
|
|
5464
|
+
}
|
|
5465
|
+
case 4: {
|
|
5466
|
+
if (tag !== 32) {
|
|
5467
|
+
break;
|
|
5468
|
+
}
|
|
5469
|
+
message.requiresProxyAuth = reader.bool();
|
|
5470
|
+
continue;
|
|
5471
|
+
}
|
|
5472
|
+
}
|
|
5473
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5474
|
+
break;
|
|
5475
|
+
}
|
|
5476
|
+
reader.skip(tag & 7);
|
|
5477
|
+
}
|
|
5478
|
+
return message;
|
|
5479
|
+
},
|
|
5480
|
+
fromJSON(object) {
|
|
5481
|
+
return {
|
|
5482
|
+
gpuConfig: globalThis.Array.isArray(object?.gpuConfig) ? object.gpuConfig.map((e) => GPUConfig.fromJSON(e)) : [],
|
|
5483
|
+
schedule: isSet5(object.schedule) ? Schedule.fromJSON(object.schedule) : void 0,
|
|
5484
|
+
webFunction: isSet5(object.webFunction) ? globalThis.Boolean(object.webFunction) : false,
|
|
5485
|
+
requiresProxyAuth: isSet5(object.requiresProxyAuth) ? globalThis.Boolean(object.requiresProxyAuth) : void 0
|
|
5486
|
+
};
|
|
5487
|
+
},
|
|
5488
|
+
toJSON(message) {
|
|
5489
|
+
const obj = {};
|
|
5490
|
+
if (message.gpuConfig?.length) {
|
|
5491
|
+
obj.gpuConfig = message.gpuConfig.map((e) => GPUConfig.toJSON(e));
|
|
5492
|
+
}
|
|
5493
|
+
if (message.schedule !== void 0) {
|
|
5494
|
+
obj.schedule = Schedule.toJSON(message.schedule);
|
|
5495
|
+
}
|
|
5496
|
+
if (message.webFunction !== false) {
|
|
5497
|
+
obj.webFunction = message.webFunction;
|
|
5498
|
+
}
|
|
5499
|
+
if (message.requiresProxyAuth !== void 0) {
|
|
5500
|
+
obj.requiresProxyAuth = message.requiresProxyAuth;
|
|
5501
|
+
}
|
|
5502
|
+
return obj;
|
|
5503
|
+
},
|
|
5504
|
+
create(base) {
|
|
5505
|
+
return AppGetInfoResponse_FunctionInfoSummary.fromPartial(base ?? {});
|
|
5506
|
+
},
|
|
5507
|
+
fromPartial(object) {
|
|
5508
|
+
const message = createBaseAppGetInfoResponse_FunctionInfoSummary();
|
|
5509
|
+
message.gpuConfig = object.gpuConfig?.map((e) => GPUConfig.fromPartial(e)) || [];
|
|
5510
|
+
message.schedule = object.schedule !== void 0 && object.schedule !== null ? Schedule.fromPartial(object.schedule) : void 0;
|
|
5511
|
+
message.webFunction = object.webFunction ?? false;
|
|
5512
|
+
message.requiresProxyAuth = object.requiresProxyAuth ?? void 0;
|
|
5513
|
+
return message;
|
|
5514
|
+
}
|
|
5515
|
+
};
|
|
5516
|
+
function createBaseAppGetInfoResponse_FunctionInfoSummariesEntry() {
|
|
5517
|
+
return { key: "", value: void 0 };
|
|
5518
|
+
}
|
|
5519
|
+
var AppGetInfoResponse_FunctionInfoSummariesEntry = {
|
|
5520
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5521
|
+
if (message.key !== "") {
|
|
5522
|
+
writer.uint32(10).string(message.key);
|
|
5523
|
+
}
|
|
5524
|
+
if (message.value !== void 0) {
|
|
5525
|
+
AppGetInfoResponse_FunctionInfoSummary.encode(message.value, writer.uint32(18).fork()).join();
|
|
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_FunctionInfoSummariesEntry();
|
|
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.key = reader.string();
|
|
5541
|
+
continue;
|
|
5542
|
+
}
|
|
5543
|
+
case 2: {
|
|
5544
|
+
if (tag !== 18) {
|
|
5545
|
+
break;
|
|
5546
|
+
}
|
|
5547
|
+
message.value = AppGetInfoResponse_FunctionInfoSummary.decode(reader, reader.uint32());
|
|
5548
|
+
continue;
|
|
5549
|
+
}
|
|
5550
|
+
}
|
|
5551
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5552
|
+
break;
|
|
5553
|
+
}
|
|
5554
|
+
reader.skip(tag & 7);
|
|
5555
|
+
}
|
|
5556
|
+
return message;
|
|
5557
|
+
},
|
|
5558
|
+
fromJSON(object) {
|
|
5559
|
+
return {
|
|
5560
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
5561
|
+
value: isSet5(object.value) ? AppGetInfoResponse_FunctionInfoSummary.fromJSON(object.value) : void 0
|
|
5562
|
+
};
|
|
5563
|
+
},
|
|
5564
|
+
toJSON(message) {
|
|
5565
|
+
const obj = {};
|
|
5566
|
+
if (message.key !== "") {
|
|
5567
|
+
obj.key = message.key;
|
|
5568
|
+
}
|
|
5569
|
+
if (message.value !== void 0) {
|
|
5570
|
+
obj.value = AppGetInfoResponse_FunctionInfoSummary.toJSON(message.value);
|
|
5571
|
+
}
|
|
5572
|
+
return obj;
|
|
5573
|
+
},
|
|
5574
|
+
create(base) {
|
|
5575
|
+
return AppGetInfoResponse_FunctionInfoSummariesEntry.fromPartial(base ?? {});
|
|
5576
|
+
},
|
|
5577
|
+
fromPartial(object) {
|
|
5578
|
+
const message = createBaseAppGetInfoResponse_FunctionInfoSummariesEntry();
|
|
5579
|
+
message.key = object.key ?? "";
|
|
5580
|
+
message.value = object.value !== void 0 && object.value !== null ? AppGetInfoResponse_FunctionInfoSummary.fromPartial(object.value) : void 0;
|
|
5254
5581
|
return message;
|
|
5255
5582
|
}
|
|
5256
5583
|
};
|
|
@@ -9429,6 +9756,213 @@ var AuthTokenGetResponse = {
|
|
|
9429
9756
|
return message;
|
|
9430
9757
|
}
|
|
9431
9758
|
};
|
|
9759
|
+
function createBaseAutoscalerConfiguration() {
|
|
9760
|
+
return {
|
|
9761
|
+
settings: void 0,
|
|
9762
|
+
overrideEvents: {},
|
|
9763
|
+
defaultSettings: void 0,
|
|
9764
|
+
staticSettings: void 0,
|
|
9765
|
+
overrideSettings: void 0
|
|
9766
|
+
};
|
|
9767
|
+
}
|
|
9768
|
+
var AutoscalerConfiguration = {
|
|
9769
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9770
|
+
if (message.settings !== void 0) {
|
|
9771
|
+
AutoscalerSettings.encode(message.settings, writer.uint32(10).fork()).join();
|
|
9772
|
+
}
|
|
9773
|
+
Object.entries(message.overrideEvents).forEach(([key, value]) => {
|
|
9774
|
+
AutoscalerConfiguration_OverrideEventsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
9775
|
+
});
|
|
9776
|
+
if (message.defaultSettings !== void 0) {
|
|
9777
|
+
AutoscalerSettings.encode(message.defaultSettings, writer.uint32(26).fork()).join();
|
|
9778
|
+
}
|
|
9779
|
+
if (message.staticSettings !== void 0) {
|
|
9780
|
+
AutoscalerSettings.encode(message.staticSettings, writer.uint32(34).fork()).join();
|
|
9781
|
+
}
|
|
9782
|
+
if (message.overrideSettings !== void 0) {
|
|
9783
|
+
AutoscalerSettings.encode(message.overrideSettings, writer.uint32(42).fork()).join();
|
|
9784
|
+
}
|
|
9785
|
+
return writer;
|
|
9786
|
+
},
|
|
9787
|
+
decode(input, length) {
|
|
9788
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9789
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9790
|
+
const message = createBaseAutoscalerConfiguration();
|
|
9791
|
+
while (reader.pos < end) {
|
|
9792
|
+
const tag = reader.uint32();
|
|
9793
|
+
switch (tag >>> 3) {
|
|
9794
|
+
case 1: {
|
|
9795
|
+
if (tag !== 10) {
|
|
9796
|
+
break;
|
|
9797
|
+
}
|
|
9798
|
+
message.settings = AutoscalerSettings.decode(reader, reader.uint32());
|
|
9799
|
+
continue;
|
|
9800
|
+
}
|
|
9801
|
+
case 2: {
|
|
9802
|
+
if (tag !== 18) {
|
|
9803
|
+
break;
|
|
9804
|
+
}
|
|
9805
|
+
const entry2 = AutoscalerConfiguration_OverrideEventsEntry.decode(reader, reader.uint32());
|
|
9806
|
+
if (entry2.value !== void 0) {
|
|
9807
|
+
message.overrideEvents[entry2.key] = entry2.value;
|
|
9808
|
+
}
|
|
9809
|
+
continue;
|
|
9810
|
+
}
|
|
9811
|
+
case 3: {
|
|
9812
|
+
if (tag !== 26) {
|
|
9813
|
+
break;
|
|
9814
|
+
}
|
|
9815
|
+
message.defaultSettings = AutoscalerSettings.decode(reader, reader.uint32());
|
|
9816
|
+
continue;
|
|
9817
|
+
}
|
|
9818
|
+
case 4: {
|
|
9819
|
+
if (tag !== 34) {
|
|
9820
|
+
break;
|
|
9821
|
+
}
|
|
9822
|
+
message.staticSettings = AutoscalerSettings.decode(reader, reader.uint32());
|
|
9823
|
+
continue;
|
|
9824
|
+
}
|
|
9825
|
+
case 5: {
|
|
9826
|
+
if (tag !== 42) {
|
|
9827
|
+
break;
|
|
9828
|
+
}
|
|
9829
|
+
message.overrideSettings = AutoscalerSettings.decode(reader, reader.uint32());
|
|
9830
|
+
continue;
|
|
9831
|
+
}
|
|
9832
|
+
}
|
|
9833
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9834
|
+
break;
|
|
9835
|
+
}
|
|
9836
|
+
reader.skip(tag & 7);
|
|
9837
|
+
}
|
|
9838
|
+
return message;
|
|
9839
|
+
},
|
|
9840
|
+
fromJSON(object) {
|
|
9841
|
+
return {
|
|
9842
|
+
settings: isSet5(object.settings) ? AutoscalerSettings.fromJSON(object.settings) : void 0,
|
|
9843
|
+
overrideEvents: isObject2(object.overrideEvents) ? Object.entries(object.overrideEvents).reduce((acc, [key, value]) => {
|
|
9844
|
+
acc[key] = UserActionInfo.fromJSON(value);
|
|
9845
|
+
return acc;
|
|
9846
|
+
}, {}) : {},
|
|
9847
|
+
defaultSettings: isSet5(object.defaultSettings) ? AutoscalerSettings.fromJSON(object.defaultSettings) : void 0,
|
|
9848
|
+
staticSettings: isSet5(object.staticSettings) ? AutoscalerSettings.fromJSON(object.staticSettings) : void 0,
|
|
9849
|
+
overrideSettings: isSet5(object.overrideSettings) ? AutoscalerSettings.fromJSON(object.overrideSettings) : void 0
|
|
9850
|
+
};
|
|
9851
|
+
},
|
|
9852
|
+
toJSON(message) {
|
|
9853
|
+
const obj = {};
|
|
9854
|
+
if (message.settings !== void 0) {
|
|
9855
|
+
obj.settings = AutoscalerSettings.toJSON(message.settings);
|
|
9856
|
+
}
|
|
9857
|
+
if (message.overrideEvents) {
|
|
9858
|
+
const entries = Object.entries(message.overrideEvents);
|
|
9859
|
+
if (entries.length > 0) {
|
|
9860
|
+
obj.overrideEvents = {};
|
|
9861
|
+
entries.forEach(([k, v]) => {
|
|
9862
|
+
obj.overrideEvents[k] = UserActionInfo.toJSON(v);
|
|
9863
|
+
});
|
|
9864
|
+
}
|
|
9865
|
+
}
|
|
9866
|
+
if (message.defaultSettings !== void 0) {
|
|
9867
|
+
obj.defaultSettings = AutoscalerSettings.toJSON(message.defaultSettings);
|
|
9868
|
+
}
|
|
9869
|
+
if (message.staticSettings !== void 0) {
|
|
9870
|
+
obj.staticSettings = AutoscalerSettings.toJSON(message.staticSettings);
|
|
9871
|
+
}
|
|
9872
|
+
if (message.overrideSettings !== void 0) {
|
|
9873
|
+
obj.overrideSettings = AutoscalerSettings.toJSON(message.overrideSettings);
|
|
9874
|
+
}
|
|
9875
|
+
return obj;
|
|
9876
|
+
},
|
|
9877
|
+
create(base) {
|
|
9878
|
+
return AutoscalerConfiguration.fromPartial(base ?? {});
|
|
9879
|
+
},
|
|
9880
|
+
fromPartial(object) {
|
|
9881
|
+
const message = createBaseAutoscalerConfiguration();
|
|
9882
|
+
message.settings = object.settings !== void 0 && object.settings !== null ? AutoscalerSettings.fromPartial(object.settings) : void 0;
|
|
9883
|
+
message.overrideEvents = Object.entries(object.overrideEvents ?? {}).reduce(
|
|
9884
|
+
(acc, [key, value]) => {
|
|
9885
|
+
if (value !== void 0) {
|
|
9886
|
+
acc[key] = UserActionInfo.fromPartial(value);
|
|
9887
|
+
}
|
|
9888
|
+
return acc;
|
|
9889
|
+
},
|
|
9890
|
+
{}
|
|
9891
|
+
);
|
|
9892
|
+
message.defaultSettings = object.defaultSettings !== void 0 && object.defaultSettings !== null ? AutoscalerSettings.fromPartial(object.defaultSettings) : void 0;
|
|
9893
|
+
message.staticSettings = object.staticSettings !== void 0 && object.staticSettings !== null ? AutoscalerSettings.fromPartial(object.staticSettings) : void 0;
|
|
9894
|
+
message.overrideSettings = object.overrideSettings !== void 0 && object.overrideSettings !== null ? AutoscalerSettings.fromPartial(object.overrideSettings) : void 0;
|
|
9895
|
+
return message;
|
|
9896
|
+
}
|
|
9897
|
+
};
|
|
9898
|
+
function createBaseAutoscalerConfiguration_OverrideEventsEntry() {
|
|
9899
|
+
return { key: "", value: void 0 };
|
|
9900
|
+
}
|
|
9901
|
+
var AutoscalerConfiguration_OverrideEventsEntry = {
|
|
9902
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9903
|
+
if (message.key !== "") {
|
|
9904
|
+
writer.uint32(10).string(message.key);
|
|
9905
|
+
}
|
|
9906
|
+
if (message.value !== void 0) {
|
|
9907
|
+
UserActionInfo.encode(message.value, writer.uint32(18).fork()).join();
|
|
9908
|
+
}
|
|
9909
|
+
return writer;
|
|
9910
|
+
},
|
|
9911
|
+
decode(input, length) {
|
|
9912
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9913
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9914
|
+
const message = createBaseAutoscalerConfiguration_OverrideEventsEntry();
|
|
9915
|
+
while (reader.pos < end) {
|
|
9916
|
+
const tag = reader.uint32();
|
|
9917
|
+
switch (tag >>> 3) {
|
|
9918
|
+
case 1: {
|
|
9919
|
+
if (tag !== 10) {
|
|
9920
|
+
break;
|
|
9921
|
+
}
|
|
9922
|
+
message.key = reader.string();
|
|
9923
|
+
continue;
|
|
9924
|
+
}
|
|
9925
|
+
case 2: {
|
|
9926
|
+
if (tag !== 18) {
|
|
9927
|
+
break;
|
|
9928
|
+
}
|
|
9929
|
+
message.value = UserActionInfo.decode(reader, reader.uint32());
|
|
9930
|
+
continue;
|
|
9931
|
+
}
|
|
9932
|
+
}
|
|
9933
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9934
|
+
break;
|
|
9935
|
+
}
|
|
9936
|
+
reader.skip(tag & 7);
|
|
9937
|
+
}
|
|
9938
|
+
return message;
|
|
9939
|
+
},
|
|
9940
|
+
fromJSON(object) {
|
|
9941
|
+
return {
|
|
9942
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
9943
|
+
value: isSet5(object.value) ? UserActionInfo.fromJSON(object.value) : void 0
|
|
9944
|
+
};
|
|
9945
|
+
},
|
|
9946
|
+
toJSON(message) {
|
|
9947
|
+
const obj = {};
|
|
9948
|
+
if (message.key !== "") {
|
|
9949
|
+
obj.key = message.key;
|
|
9950
|
+
}
|
|
9951
|
+
if (message.value !== void 0) {
|
|
9952
|
+
obj.value = UserActionInfo.toJSON(message.value);
|
|
9953
|
+
}
|
|
9954
|
+
return obj;
|
|
9955
|
+
},
|
|
9956
|
+
create(base) {
|
|
9957
|
+
return AutoscalerConfiguration_OverrideEventsEntry.fromPartial(base ?? {});
|
|
9958
|
+
},
|
|
9959
|
+
fromPartial(object) {
|
|
9960
|
+
const message = createBaseAutoscalerConfiguration_OverrideEventsEntry();
|
|
9961
|
+
message.key = object.key ?? "";
|
|
9962
|
+
message.value = object.value !== void 0 && object.value !== null ? UserActionInfo.fromPartial(object.value) : void 0;
|
|
9963
|
+
return message;
|
|
9964
|
+
}
|
|
9965
|
+
};
|
|
9432
9966
|
function createBaseAutoscalerSettings() {
|
|
9433
9967
|
return {
|
|
9434
9968
|
minContainers: void 0,
|
|
@@ -9984,6 +10518,89 @@ var BlobGetResponse = {
|
|
|
9984
10518
|
return message;
|
|
9985
10519
|
}
|
|
9986
10520
|
};
|
|
10521
|
+
function createBaseBlobUploadResult() {
|
|
10522
|
+
return { blobId: "", outcome: 0, throughputBytesS: 0 };
|
|
10523
|
+
}
|
|
10524
|
+
var BlobUploadResult = {
|
|
10525
|
+
encode(message, writer = new BinaryWriter()) {
|
|
10526
|
+
if (message.blobId !== "") {
|
|
10527
|
+
writer.uint32(10).string(message.blobId);
|
|
10528
|
+
}
|
|
10529
|
+
if (message.outcome !== 0) {
|
|
10530
|
+
writer.uint32(16).int32(message.outcome);
|
|
10531
|
+
}
|
|
10532
|
+
if (message.throughputBytesS !== 0) {
|
|
10533
|
+
writer.uint32(24).uint64(message.throughputBytesS);
|
|
10534
|
+
}
|
|
10535
|
+
return writer;
|
|
10536
|
+
},
|
|
10537
|
+
decode(input, length) {
|
|
10538
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10539
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
10540
|
+
const message = createBaseBlobUploadResult();
|
|
10541
|
+
while (reader.pos < end) {
|
|
10542
|
+
const tag = reader.uint32();
|
|
10543
|
+
switch (tag >>> 3) {
|
|
10544
|
+
case 1: {
|
|
10545
|
+
if (tag !== 10) {
|
|
10546
|
+
break;
|
|
10547
|
+
}
|
|
10548
|
+
message.blobId = reader.string();
|
|
10549
|
+
continue;
|
|
10550
|
+
}
|
|
10551
|
+
case 2: {
|
|
10552
|
+
if (tag !== 16) {
|
|
10553
|
+
break;
|
|
10554
|
+
}
|
|
10555
|
+
message.outcome = reader.int32();
|
|
10556
|
+
continue;
|
|
10557
|
+
}
|
|
10558
|
+
case 3: {
|
|
10559
|
+
if (tag !== 24) {
|
|
10560
|
+
break;
|
|
10561
|
+
}
|
|
10562
|
+
message.throughputBytesS = longToNumber2(reader.uint64());
|
|
10563
|
+
continue;
|
|
10564
|
+
}
|
|
10565
|
+
}
|
|
10566
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10567
|
+
break;
|
|
10568
|
+
}
|
|
10569
|
+
reader.skip(tag & 7);
|
|
10570
|
+
}
|
|
10571
|
+
return message;
|
|
10572
|
+
},
|
|
10573
|
+
fromJSON(object) {
|
|
10574
|
+
return {
|
|
10575
|
+
blobId: isSet5(object.blobId) ? globalThis.String(object.blobId) : "",
|
|
10576
|
+
outcome: isSet5(object.outcome) ? blobUploadResult_OutcomeFromJSON(object.outcome) : 0,
|
|
10577
|
+
throughputBytesS: isSet5(object.throughputBytesS) ? globalThis.Number(object.throughputBytesS) : 0
|
|
10578
|
+
};
|
|
10579
|
+
},
|
|
10580
|
+
toJSON(message) {
|
|
10581
|
+
const obj = {};
|
|
10582
|
+
if (message.blobId !== "") {
|
|
10583
|
+
obj.blobId = message.blobId;
|
|
10584
|
+
}
|
|
10585
|
+
if (message.outcome !== 0) {
|
|
10586
|
+
obj.outcome = blobUploadResult_OutcomeToJSON(message.outcome);
|
|
10587
|
+
}
|
|
10588
|
+
if (message.throughputBytesS !== 0) {
|
|
10589
|
+
obj.throughputBytesS = Math.round(message.throughputBytesS);
|
|
10590
|
+
}
|
|
10591
|
+
return obj;
|
|
10592
|
+
},
|
|
10593
|
+
create(base) {
|
|
10594
|
+
return BlobUploadResult.fromPartial(base ?? {});
|
|
10595
|
+
},
|
|
10596
|
+
fromPartial(object) {
|
|
10597
|
+
const message = createBaseBlobUploadResult();
|
|
10598
|
+
message.blobId = object.blobId ?? "";
|
|
10599
|
+
message.outcome = object.outcome ?? 0;
|
|
10600
|
+
message.throughputBytesS = object.throughputBytesS ?? 0;
|
|
10601
|
+
return message;
|
|
10602
|
+
}
|
|
10603
|
+
};
|
|
9987
10604
|
function createBaseBuildFunction() {
|
|
9988
10605
|
return { definition: "", globals: new Uint8Array(0), input: void 0 };
|
|
9989
10606
|
}
|
|
@@ -27464,6 +28081,110 @@ var FunctionGetResponse = {
|
|
|
27464
28081
|
return message;
|
|
27465
28082
|
}
|
|
27466
28083
|
};
|
|
28084
|
+
function createBaseFunctionGetSchedulingParamsRequest() {
|
|
28085
|
+
return { functionId: "" };
|
|
28086
|
+
}
|
|
28087
|
+
var FunctionGetSchedulingParamsRequest = {
|
|
28088
|
+
encode(message, writer = new BinaryWriter()) {
|
|
28089
|
+
if (message.functionId !== "") {
|
|
28090
|
+
writer.uint32(10).string(message.functionId);
|
|
28091
|
+
}
|
|
28092
|
+
return writer;
|
|
28093
|
+
},
|
|
28094
|
+
decode(input, length) {
|
|
28095
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
28096
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
28097
|
+
const message = createBaseFunctionGetSchedulingParamsRequest();
|
|
28098
|
+
while (reader.pos < end) {
|
|
28099
|
+
const tag = reader.uint32();
|
|
28100
|
+
switch (tag >>> 3) {
|
|
28101
|
+
case 1: {
|
|
28102
|
+
if (tag !== 10) {
|
|
28103
|
+
break;
|
|
28104
|
+
}
|
|
28105
|
+
message.functionId = reader.string();
|
|
28106
|
+
continue;
|
|
28107
|
+
}
|
|
28108
|
+
}
|
|
28109
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
28110
|
+
break;
|
|
28111
|
+
}
|
|
28112
|
+
reader.skip(tag & 7);
|
|
28113
|
+
}
|
|
28114
|
+
return message;
|
|
28115
|
+
},
|
|
28116
|
+
fromJSON(object) {
|
|
28117
|
+
return { functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "" };
|
|
28118
|
+
},
|
|
28119
|
+
toJSON(message) {
|
|
28120
|
+
const obj = {};
|
|
28121
|
+
if (message.functionId !== "") {
|
|
28122
|
+
obj.functionId = message.functionId;
|
|
28123
|
+
}
|
|
28124
|
+
return obj;
|
|
28125
|
+
},
|
|
28126
|
+
create(base) {
|
|
28127
|
+
return FunctionGetSchedulingParamsRequest.fromPartial(base ?? {});
|
|
28128
|
+
},
|
|
28129
|
+
fromPartial(object) {
|
|
28130
|
+
const message = createBaseFunctionGetSchedulingParamsRequest();
|
|
28131
|
+
message.functionId = object.functionId ?? "";
|
|
28132
|
+
return message;
|
|
28133
|
+
}
|
|
28134
|
+
};
|
|
28135
|
+
function createBaseFunctionGetSchedulingParamsResponse() {
|
|
28136
|
+
return { autoscalerConfiguration: void 0 };
|
|
28137
|
+
}
|
|
28138
|
+
var FunctionGetSchedulingParamsResponse = {
|
|
28139
|
+
encode(message, writer = new BinaryWriter()) {
|
|
28140
|
+
if (message.autoscalerConfiguration !== void 0) {
|
|
28141
|
+
AutoscalerConfiguration.encode(message.autoscalerConfiguration, writer.uint32(10).fork()).join();
|
|
28142
|
+
}
|
|
28143
|
+
return writer;
|
|
28144
|
+
},
|
|
28145
|
+
decode(input, length) {
|
|
28146
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
28147
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
28148
|
+
const message = createBaseFunctionGetSchedulingParamsResponse();
|
|
28149
|
+
while (reader.pos < end) {
|
|
28150
|
+
const tag = reader.uint32();
|
|
28151
|
+
switch (tag >>> 3) {
|
|
28152
|
+
case 1: {
|
|
28153
|
+
if (tag !== 10) {
|
|
28154
|
+
break;
|
|
28155
|
+
}
|
|
28156
|
+
message.autoscalerConfiguration = AutoscalerConfiguration.decode(reader, reader.uint32());
|
|
28157
|
+
continue;
|
|
28158
|
+
}
|
|
28159
|
+
}
|
|
28160
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
28161
|
+
break;
|
|
28162
|
+
}
|
|
28163
|
+
reader.skip(tag & 7);
|
|
28164
|
+
}
|
|
28165
|
+
return message;
|
|
28166
|
+
},
|
|
28167
|
+
fromJSON(object) {
|
|
28168
|
+
return {
|
|
28169
|
+
autoscalerConfiguration: isSet5(object.autoscalerConfiguration) ? AutoscalerConfiguration.fromJSON(object.autoscalerConfiguration) : void 0
|
|
28170
|
+
};
|
|
28171
|
+
},
|
|
28172
|
+
toJSON(message) {
|
|
28173
|
+
const obj = {};
|
|
28174
|
+
if (message.autoscalerConfiguration !== void 0) {
|
|
28175
|
+
obj.autoscalerConfiguration = AutoscalerConfiguration.toJSON(message.autoscalerConfiguration);
|
|
28176
|
+
}
|
|
28177
|
+
return obj;
|
|
28178
|
+
},
|
|
28179
|
+
create(base) {
|
|
28180
|
+
return FunctionGetSchedulingParamsResponse.fromPartial(base ?? {});
|
|
28181
|
+
},
|
|
28182
|
+
fromPartial(object) {
|
|
28183
|
+
const message = createBaseFunctionGetSchedulingParamsResponse();
|
|
28184
|
+
message.autoscalerConfiguration = object.autoscalerConfiguration !== void 0 && object.autoscalerConfiguration !== null ? AutoscalerConfiguration.fromPartial(object.autoscalerConfiguration) : void 0;
|
|
28185
|
+
return message;
|
|
28186
|
+
}
|
|
28187
|
+
};
|
|
27467
28188
|
function createBaseFunctionGetSerializedRequest() {
|
|
27468
28189
|
return { functionId: "" };
|
|
27469
28190
|
}
|
|
@@ -28131,7 +28852,8 @@ function createBaseFunctionHandleMetadata() {
|
|
|
28131
28852
|
ExperimentalFlashUrls: [],
|
|
28132
28853
|
supportedInputFormats: [],
|
|
28133
28854
|
supportedOutputFormats: [],
|
|
28134
|
-
appId: ""
|
|
28855
|
+
appId: "",
|
|
28856
|
+
baseFunctionId: ""
|
|
28135
28857
|
};
|
|
28136
28858
|
}
|
|
28137
28859
|
var FunctionHandleMetadata = {
|
|
@@ -28194,6 +28916,9 @@ var FunctionHandleMetadata = {
|
|
|
28194
28916
|
if (message.appId !== "") {
|
|
28195
28917
|
writer.uint32(418).string(message.appId);
|
|
28196
28918
|
}
|
|
28919
|
+
if (message.baseFunctionId !== "") {
|
|
28920
|
+
writer.uint32(434).string(message.baseFunctionId);
|
|
28921
|
+
}
|
|
28197
28922
|
return writer;
|
|
28198
28923
|
},
|
|
28199
28924
|
decode(input, length) {
|
|
@@ -28346,6 +29071,13 @@ var FunctionHandleMetadata = {
|
|
|
28346
29071
|
message.appId = reader.string();
|
|
28347
29072
|
continue;
|
|
28348
29073
|
}
|
|
29074
|
+
case 54: {
|
|
29075
|
+
if (tag !== 434) {
|
|
29076
|
+
break;
|
|
29077
|
+
}
|
|
29078
|
+
message.baseFunctionId = reader.string();
|
|
29079
|
+
continue;
|
|
29080
|
+
}
|
|
28349
29081
|
}
|
|
28350
29082
|
if ((tag & 7) === 4 || tag === 0) {
|
|
28351
29083
|
break;
|
|
@@ -28379,7 +29111,8 @@ var FunctionHandleMetadata = {
|
|
|
28379
29111
|
ExperimentalFlashUrls: globalThis.Array.isArray(object?.ExperimentalFlashUrls) ? object.ExperimentalFlashUrls.map((e) => globalThis.String(e)) : [],
|
|
28380
29112
|
supportedInputFormats: globalThis.Array.isArray(object?.supportedInputFormats) ? object.supportedInputFormats.map((e) => dataFormatFromJSON(e)) : [],
|
|
28381
29113
|
supportedOutputFormats: globalThis.Array.isArray(object?.supportedOutputFormats) ? object.supportedOutputFormats.map((e) => dataFormatFromJSON(e)) : [],
|
|
28382
|
-
appId: isSet5(object.appId) ? globalThis.String(object.appId) : ""
|
|
29114
|
+
appId: isSet5(object.appId) ? globalThis.String(object.appId) : "",
|
|
29115
|
+
baseFunctionId: isSet5(object.baseFunctionId) ? globalThis.String(object.baseFunctionId) : ""
|
|
28383
29116
|
};
|
|
28384
29117
|
},
|
|
28385
29118
|
toJSON(message) {
|
|
@@ -28444,6 +29177,9 @@ var FunctionHandleMetadata = {
|
|
|
28444
29177
|
if (message.appId !== "") {
|
|
28445
29178
|
obj.appId = message.appId;
|
|
28446
29179
|
}
|
|
29180
|
+
if (message.baseFunctionId !== "") {
|
|
29181
|
+
obj.baseFunctionId = message.baseFunctionId;
|
|
29182
|
+
}
|
|
28447
29183
|
return obj;
|
|
28448
29184
|
},
|
|
28449
29185
|
create(base) {
|
|
@@ -28474,6 +29210,7 @@ var FunctionHandleMetadata = {
|
|
|
28474
29210
|
message.supportedInputFormats = object.supportedInputFormats?.map((e) => e) || [];
|
|
28475
29211
|
message.supportedOutputFormats = object.supportedOutputFormats?.map((e) => e) || [];
|
|
28476
29212
|
message.appId = object.appId ?? "";
|
|
29213
|
+
message.baseFunctionId = object.baseFunctionId ?? "";
|
|
28477
29214
|
return message;
|
|
28478
29215
|
}
|
|
28479
29216
|
};
|
|
@@ -29722,7 +30459,7 @@ var FunctionPrecreateResponse = {
|
|
|
29722
30459
|
}
|
|
29723
30460
|
};
|
|
29724
30461
|
function createBaseFunctionPutInputsItem() {
|
|
29725
|
-
return { idx: 0, input: void 0, r2Failed: false, r2ThroughputBytesS: 0 };
|
|
30462
|
+
return { idx: 0, input: void 0, r2Failed: false, r2ThroughputBytesS: 0, blobUploadResults: [] };
|
|
29726
30463
|
}
|
|
29727
30464
|
var FunctionPutInputsItem = {
|
|
29728
30465
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -29738,6 +30475,9 @@ var FunctionPutInputsItem = {
|
|
|
29738
30475
|
if (message.r2ThroughputBytesS !== 0) {
|
|
29739
30476
|
writer.uint32(40).uint64(message.r2ThroughputBytesS);
|
|
29740
30477
|
}
|
|
30478
|
+
for (const v of message.blobUploadResults) {
|
|
30479
|
+
BlobUploadResult.encode(v, writer.uint32(50).fork()).join();
|
|
30480
|
+
}
|
|
29741
30481
|
return writer;
|
|
29742
30482
|
},
|
|
29743
30483
|
decode(input, length) {
|
|
@@ -29775,6 +30515,13 @@ var FunctionPutInputsItem = {
|
|
|
29775
30515
|
message.r2ThroughputBytesS = longToNumber2(reader.uint64());
|
|
29776
30516
|
continue;
|
|
29777
30517
|
}
|
|
30518
|
+
case 6: {
|
|
30519
|
+
if (tag !== 50) {
|
|
30520
|
+
break;
|
|
30521
|
+
}
|
|
30522
|
+
message.blobUploadResults.push(BlobUploadResult.decode(reader, reader.uint32()));
|
|
30523
|
+
continue;
|
|
30524
|
+
}
|
|
29778
30525
|
}
|
|
29779
30526
|
if ((tag & 7) === 4 || tag === 0) {
|
|
29780
30527
|
break;
|
|
@@ -29788,7 +30535,8 @@ var FunctionPutInputsItem = {
|
|
|
29788
30535
|
idx: isSet5(object.idx) ? globalThis.Number(object.idx) : 0,
|
|
29789
30536
|
input: isSet5(object.input) ? FunctionInput.fromJSON(object.input) : void 0,
|
|
29790
30537
|
r2Failed: isSet5(object.r2Failed) ? globalThis.Boolean(object.r2Failed) : false,
|
|
29791
|
-
r2ThroughputBytesS: isSet5(object.r2ThroughputBytesS) ? globalThis.Number(object.r2ThroughputBytesS) : 0
|
|
30538
|
+
r2ThroughputBytesS: isSet5(object.r2ThroughputBytesS) ? globalThis.Number(object.r2ThroughputBytesS) : 0,
|
|
30539
|
+
blobUploadResults: globalThis.Array.isArray(object?.blobUploadResults) ? object.blobUploadResults.map((e) => BlobUploadResult.fromJSON(e)) : []
|
|
29792
30540
|
};
|
|
29793
30541
|
},
|
|
29794
30542
|
toJSON(message) {
|
|
@@ -29805,6 +30553,9 @@ var FunctionPutInputsItem = {
|
|
|
29805
30553
|
if (message.r2ThroughputBytesS !== 0) {
|
|
29806
30554
|
obj.r2ThroughputBytesS = Math.round(message.r2ThroughputBytesS);
|
|
29807
30555
|
}
|
|
30556
|
+
if (message.blobUploadResults?.length) {
|
|
30557
|
+
obj.blobUploadResults = message.blobUploadResults.map((e) => BlobUploadResult.toJSON(e));
|
|
30558
|
+
}
|
|
29808
30559
|
return obj;
|
|
29809
30560
|
},
|
|
29810
30561
|
create(base) {
|
|
@@ -29816,6 +30567,7 @@ var FunctionPutInputsItem = {
|
|
|
29816
30567
|
message.input = object.input !== void 0 && object.input !== null ? FunctionInput.fromPartial(object.input) : void 0;
|
|
29817
30568
|
message.r2Failed = object.r2Failed ?? false;
|
|
29818
30569
|
message.r2ThroughputBytesS = object.r2ThroughputBytesS ?? 0;
|
|
30570
|
+
message.blobUploadResults = object.blobUploadResults?.map((e) => BlobUploadResult.fromPartial(e)) || [];
|
|
29819
30571
|
return message;
|
|
29820
30572
|
}
|
|
29821
30573
|
};
|
|
@@ -36857,22 +37609,19 @@ var OutboundPolicy = {
|
|
|
36857
37609
|
}
|
|
36858
37610
|
};
|
|
36859
37611
|
function createBaseOutboundPolicy_HeaderReplacement() {
|
|
36860
|
-
return { domain: "",
|
|
37612
|
+
return { domain: "", secretId: "", headers: {} };
|
|
36861
37613
|
}
|
|
36862
37614
|
var OutboundPolicy_HeaderReplacement = {
|
|
36863
37615
|
encode(message, writer = new BinaryWriter()) {
|
|
36864
37616
|
if (message.domain !== "") {
|
|
36865
37617
|
writer.uint32(10).string(message.domain);
|
|
36866
37618
|
}
|
|
36867
|
-
if (message.headerName !== "") {
|
|
36868
|
-
writer.uint32(18).string(message.headerName);
|
|
36869
|
-
}
|
|
36870
|
-
if (message.headerValue !== "") {
|
|
36871
|
-
writer.uint32(26).string(message.headerValue);
|
|
36872
|
-
}
|
|
36873
37619
|
if (message.secretId !== "") {
|
|
36874
37620
|
writer.uint32(34).string(message.secretId);
|
|
36875
37621
|
}
|
|
37622
|
+
Object.entries(message.headers).forEach(([key, value]) => {
|
|
37623
|
+
OutboundPolicy_HeaderReplacement_HeadersEntry.encode({ key, value }, writer.uint32(42).fork()).join();
|
|
37624
|
+
});
|
|
36876
37625
|
return writer;
|
|
36877
37626
|
},
|
|
36878
37627
|
decode(input, length) {
|
|
@@ -36889,25 +37638,21 @@ var OutboundPolicy_HeaderReplacement = {
|
|
|
36889
37638
|
message.domain = reader.string();
|
|
36890
37639
|
continue;
|
|
36891
37640
|
}
|
|
36892
|
-
case
|
|
36893
|
-
if (tag !==
|
|
37641
|
+
case 4: {
|
|
37642
|
+
if (tag !== 34) {
|
|
36894
37643
|
break;
|
|
36895
37644
|
}
|
|
36896
|
-
message.
|
|
37645
|
+
message.secretId = reader.string();
|
|
36897
37646
|
continue;
|
|
36898
37647
|
}
|
|
36899
|
-
case
|
|
36900
|
-
if (tag !==
|
|
37648
|
+
case 5: {
|
|
37649
|
+
if (tag !== 42) {
|
|
36901
37650
|
break;
|
|
36902
37651
|
}
|
|
36903
|
-
|
|
36904
|
-
|
|
36905
|
-
|
|
36906
|
-
case 4: {
|
|
36907
|
-
if (tag !== 34) {
|
|
36908
|
-
break;
|
|
37652
|
+
const entry5 = OutboundPolicy_HeaderReplacement_HeadersEntry.decode(reader, reader.uint32());
|
|
37653
|
+
if (entry5.value !== void 0) {
|
|
37654
|
+
message.headers[entry5.key] = entry5.value;
|
|
36909
37655
|
}
|
|
36910
|
-
message.secretId = reader.string();
|
|
36911
37656
|
continue;
|
|
36912
37657
|
}
|
|
36913
37658
|
}
|
|
@@ -36921,9 +37666,11 @@ var OutboundPolicy_HeaderReplacement = {
|
|
|
36921
37666
|
fromJSON(object) {
|
|
36922
37667
|
return {
|
|
36923
37668
|
domain: isSet5(object.domain) ? globalThis.String(object.domain) : "",
|
|
36924
|
-
|
|
36925
|
-
|
|
36926
|
-
|
|
37669
|
+
secretId: isSet5(object.secretId) ? globalThis.String(object.secretId) : "",
|
|
37670
|
+
headers: isObject2(object.headers) ? Object.entries(object.headers).reduce((acc, [key, value]) => {
|
|
37671
|
+
acc[key] = String(value);
|
|
37672
|
+
return acc;
|
|
37673
|
+
}, {}) : {}
|
|
36927
37674
|
};
|
|
36928
37675
|
},
|
|
36929
37676
|
toJSON(message) {
|
|
@@ -36931,15 +37678,18 @@ var OutboundPolicy_HeaderReplacement = {
|
|
|
36931
37678
|
if (message.domain !== "") {
|
|
36932
37679
|
obj.domain = message.domain;
|
|
36933
37680
|
}
|
|
36934
|
-
if (message.headerName !== "") {
|
|
36935
|
-
obj.headerName = message.headerName;
|
|
36936
|
-
}
|
|
36937
|
-
if (message.headerValue !== "") {
|
|
36938
|
-
obj.headerValue = message.headerValue;
|
|
36939
|
-
}
|
|
36940
37681
|
if (message.secretId !== "") {
|
|
36941
37682
|
obj.secretId = message.secretId;
|
|
36942
37683
|
}
|
|
37684
|
+
if (message.headers) {
|
|
37685
|
+
const entries = Object.entries(message.headers);
|
|
37686
|
+
if (entries.length > 0) {
|
|
37687
|
+
obj.headers = {};
|
|
37688
|
+
entries.forEach(([k, v]) => {
|
|
37689
|
+
obj.headers[k] = v;
|
|
37690
|
+
});
|
|
37691
|
+
}
|
|
37692
|
+
}
|
|
36943
37693
|
return obj;
|
|
36944
37694
|
},
|
|
36945
37695
|
create(base) {
|
|
@@ -36948,9 +37698,81 @@ var OutboundPolicy_HeaderReplacement = {
|
|
|
36948
37698
|
fromPartial(object) {
|
|
36949
37699
|
const message = createBaseOutboundPolicy_HeaderReplacement();
|
|
36950
37700
|
message.domain = object.domain ?? "";
|
|
36951
|
-
message.headerName = object.headerName ?? "";
|
|
36952
|
-
message.headerValue = object.headerValue ?? "";
|
|
36953
37701
|
message.secretId = object.secretId ?? "";
|
|
37702
|
+
message.headers = Object.entries(object.headers ?? {}).reduce((acc, [key, value]) => {
|
|
37703
|
+
if (value !== void 0) {
|
|
37704
|
+
acc[key] = globalThis.String(value);
|
|
37705
|
+
}
|
|
37706
|
+
return acc;
|
|
37707
|
+
}, {});
|
|
37708
|
+
return message;
|
|
37709
|
+
}
|
|
37710
|
+
};
|
|
37711
|
+
function createBaseOutboundPolicy_HeaderReplacement_HeadersEntry() {
|
|
37712
|
+
return { key: "", value: "" };
|
|
37713
|
+
}
|
|
37714
|
+
var OutboundPolicy_HeaderReplacement_HeadersEntry = {
|
|
37715
|
+
encode(message, writer = new BinaryWriter()) {
|
|
37716
|
+
if (message.key !== "") {
|
|
37717
|
+
writer.uint32(10).string(message.key);
|
|
37718
|
+
}
|
|
37719
|
+
if (message.value !== "") {
|
|
37720
|
+
writer.uint32(18).string(message.value);
|
|
37721
|
+
}
|
|
37722
|
+
return writer;
|
|
37723
|
+
},
|
|
37724
|
+
decode(input, length) {
|
|
37725
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
37726
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
37727
|
+
const message = createBaseOutboundPolicy_HeaderReplacement_HeadersEntry();
|
|
37728
|
+
while (reader.pos < end) {
|
|
37729
|
+
const tag = reader.uint32();
|
|
37730
|
+
switch (tag >>> 3) {
|
|
37731
|
+
case 1: {
|
|
37732
|
+
if (tag !== 10) {
|
|
37733
|
+
break;
|
|
37734
|
+
}
|
|
37735
|
+
message.key = reader.string();
|
|
37736
|
+
continue;
|
|
37737
|
+
}
|
|
37738
|
+
case 2: {
|
|
37739
|
+
if (tag !== 18) {
|
|
37740
|
+
break;
|
|
37741
|
+
}
|
|
37742
|
+
message.value = reader.string();
|
|
37743
|
+
continue;
|
|
37744
|
+
}
|
|
37745
|
+
}
|
|
37746
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37747
|
+
break;
|
|
37748
|
+
}
|
|
37749
|
+
reader.skip(tag & 7);
|
|
37750
|
+
}
|
|
37751
|
+
return message;
|
|
37752
|
+
},
|
|
37753
|
+
fromJSON(object) {
|
|
37754
|
+
return {
|
|
37755
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
37756
|
+
value: isSet5(object.value) ? globalThis.String(object.value) : ""
|
|
37757
|
+
};
|
|
37758
|
+
},
|
|
37759
|
+
toJSON(message) {
|
|
37760
|
+
const obj = {};
|
|
37761
|
+
if (message.key !== "") {
|
|
37762
|
+
obj.key = message.key;
|
|
37763
|
+
}
|
|
37764
|
+
if (message.value !== "") {
|
|
37765
|
+
obj.value = message.value;
|
|
37766
|
+
}
|
|
37767
|
+
return obj;
|
|
37768
|
+
},
|
|
37769
|
+
create(base) {
|
|
37770
|
+
return OutboundPolicy_HeaderReplacement_HeadersEntry.fromPartial(base ?? {});
|
|
37771
|
+
},
|
|
37772
|
+
fromPartial(object) {
|
|
37773
|
+
const message = createBaseOutboundPolicy_HeaderReplacement_HeadersEntry();
|
|
37774
|
+
message.key = object.key ?? "";
|
|
37775
|
+
message.value = object.value ?? "";
|
|
36954
37776
|
return message;
|
|
36955
37777
|
}
|
|
36956
37778
|
};
|
|
@@ -40645,7 +41467,8 @@ function createBaseSandbox() {
|
|
|
40645
41467
|
readinessProbe: void 0,
|
|
40646
41468
|
inboundCidrAllowlist: [],
|
|
40647
41469
|
environmentVariables: void 0,
|
|
40648
|
-
outboundPolicy: void 0
|
|
41470
|
+
outboundPolicy: void 0,
|
|
41471
|
+
includeX509Svid: false
|
|
40649
41472
|
};
|
|
40650
41473
|
}
|
|
40651
41474
|
var Sandbox = {
|
|
@@ -40770,6 +41593,9 @@ var Sandbox = {
|
|
|
40770
41593
|
if (message.outboundPolicy !== void 0) {
|
|
40771
41594
|
OutboundPolicy.encode(message.outboundPolicy, writer.uint32(338).fork()).join();
|
|
40772
41595
|
}
|
|
41596
|
+
if (message.includeX509Svid !== false) {
|
|
41597
|
+
writer.uint32(344).bool(message.includeX509Svid);
|
|
41598
|
+
}
|
|
40773
41599
|
return writer;
|
|
40774
41600
|
},
|
|
40775
41601
|
decode(input, length) {
|
|
@@ -41065,6 +41891,13 @@ var Sandbox = {
|
|
|
41065
41891
|
message.outboundPolicy = OutboundPolicy.decode(reader, reader.uint32());
|
|
41066
41892
|
continue;
|
|
41067
41893
|
}
|
|
41894
|
+
case 43: {
|
|
41895
|
+
if (tag !== 344) {
|
|
41896
|
+
break;
|
|
41897
|
+
}
|
|
41898
|
+
message.includeX509Svid = reader.bool();
|
|
41899
|
+
continue;
|
|
41900
|
+
}
|
|
41068
41901
|
}
|
|
41069
41902
|
if ((tag & 7) === 4 || tag === 0) {
|
|
41070
41903
|
break;
|
|
@@ -41120,7 +41953,8 @@ var Sandbox = {
|
|
|
41120
41953
|
readinessProbe: isSet5(object.readinessProbe) ? Probe.fromJSON(object.readinessProbe) : void 0,
|
|
41121
41954
|
inboundCidrAllowlist: globalThis.Array.isArray(object?.inboundCidrAllowlist) ? object.inboundCidrAllowlist.map((e) => globalThis.String(e)) : [],
|
|
41122
41955
|
environmentVariables: isSet5(object.environmentVariables) ? StringMap.fromJSON(object.environmentVariables) : void 0,
|
|
41123
|
-
outboundPolicy: isSet5(object.outboundPolicy) ? OutboundPolicy.fromJSON(object.outboundPolicy) : void 0
|
|
41956
|
+
outboundPolicy: isSet5(object.outboundPolicy) ? OutboundPolicy.fromJSON(object.outboundPolicy) : void 0,
|
|
41957
|
+
includeX509Svid: isSet5(object.includeX509Svid) ? globalThis.Boolean(object.includeX509Svid) : false
|
|
41124
41958
|
};
|
|
41125
41959
|
},
|
|
41126
41960
|
toJSON(message) {
|
|
@@ -41257,6 +42091,9 @@ var Sandbox = {
|
|
|
41257
42091
|
if (message.outboundPolicy !== void 0) {
|
|
41258
42092
|
obj.outboundPolicy = OutboundPolicy.toJSON(message.outboundPolicy);
|
|
41259
42093
|
}
|
|
42094
|
+
if (message.includeX509Svid !== false) {
|
|
42095
|
+
obj.includeX509Svid = message.includeX509Svid;
|
|
42096
|
+
}
|
|
41260
42097
|
return obj;
|
|
41261
42098
|
},
|
|
41262
42099
|
create(base) {
|
|
@@ -41317,6 +42154,7 @@ var Sandbox = {
|
|
|
41317
42154
|
message.inboundCidrAllowlist = object.inboundCidrAllowlist?.map((e) => e) || [];
|
|
41318
42155
|
message.environmentVariables = object.environmentVariables !== void 0 && object.environmentVariables !== null ? StringMap.fromPartial(object.environmentVariables) : void 0;
|
|
41319
42156
|
message.outboundPolicy = object.outboundPolicy !== void 0 && object.outboundPolicy !== null ? OutboundPolicy.fromPartial(object.outboundPolicy) : void 0;
|
|
42157
|
+
message.includeX509Svid = object.includeX509Svid ?? false;
|
|
41320
42158
|
return message;
|
|
41321
42159
|
}
|
|
41322
42160
|
};
|
|
@@ -47182,6 +48020,863 @@ var SecretUpdateRequest_Update = {
|
|
|
47182
48020
|
return message;
|
|
47183
48021
|
}
|
|
47184
48022
|
};
|
|
48023
|
+
function createBaseServerGetTimeRangeStatsRequest() {
|
|
48024
|
+
return { functionId: "", since: void 0, until: void 0, containerId: void 0 };
|
|
48025
|
+
}
|
|
48026
|
+
var ServerGetTimeRangeStatsRequest = {
|
|
48027
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48028
|
+
if (message.functionId !== "") {
|
|
48029
|
+
writer.uint32(10).string(message.functionId);
|
|
48030
|
+
}
|
|
48031
|
+
if (message.since !== void 0) {
|
|
48032
|
+
Timestamp.encode(toTimestamp(message.since), writer.uint32(18).fork()).join();
|
|
48033
|
+
}
|
|
48034
|
+
if (message.until !== void 0) {
|
|
48035
|
+
Timestamp.encode(toTimestamp(message.until), writer.uint32(26).fork()).join();
|
|
48036
|
+
}
|
|
48037
|
+
if (message.containerId !== void 0) {
|
|
48038
|
+
writer.uint32(34).string(message.containerId);
|
|
48039
|
+
}
|
|
48040
|
+
return writer;
|
|
48041
|
+
},
|
|
48042
|
+
decode(input, length) {
|
|
48043
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48044
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48045
|
+
const message = createBaseServerGetTimeRangeStatsRequest();
|
|
48046
|
+
while (reader.pos < end) {
|
|
48047
|
+
const tag = reader.uint32();
|
|
48048
|
+
switch (tag >>> 3) {
|
|
48049
|
+
case 1: {
|
|
48050
|
+
if (tag !== 10) {
|
|
48051
|
+
break;
|
|
48052
|
+
}
|
|
48053
|
+
message.functionId = reader.string();
|
|
48054
|
+
continue;
|
|
48055
|
+
}
|
|
48056
|
+
case 2: {
|
|
48057
|
+
if (tag !== 18) {
|
|
48058
|
+
break;
|
|
48059
|
+
}
|
|
48060
|
+
message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
48061
|
+
continue;
|
|
48062
|
+
}
|
|
48063
|
+
case 3: {
|
|
48064
|
+
if (tag !== 26) {
|
|
48065
|
+
break;
|
|
48066
|
+
}
|
|
48067
|
+
message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
48068
|
+
continue;
|
|
48069
|
+
}
|
|
48070
|
+
case 4: {
|
|
48071
|
+
if (tag !== 34) {
|
|
48072
|
+
break;
|
|
48073
|
+
}
|
|
48074
|
+
message.containerId = reader.string();
|
|
48075
|
+
continue;
|
|
48076
|
+
}
|
|
48077
|
+
}
|
|
48078
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48079
|
+
break;
|
|
48080
|
+
}
|
|
48081
|
+
reader.skip(tag & 7);
|
|
48082
|
+
}
|
|
48083
|
+
return message;
|
|
48084
|
+
},
|
|
48085
|
+
fromJSON(object) {
|
|
48086
|
+
return {
|
|
48087
|
+
functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
48088
|
+
since: isSet5(object.since) ? fromJsonTimestamp(object.since) : void 0,
|
|
48089
|
+
until: isSet5(object.until) ? fromJsonTimestamp(object.until) : void 0,
|
|
48090
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : void 0
|
|
48091
|
+
};
|
|
48092
|
+
},
|
|
48093
|
+
toJSON(message) {
|
|
48094
|
+
const obj = {};
|
|
48095
|
+
if (message.functionId !== "") {
|
|
48096
|
+
obj.functionId = message.functionId;
|
|
48097
|
+
}
|
|
48098
|
+
if (message.since !== void 0) {
|
|
48099
|
+
obj.since = message.since.toISOString();
|
|
48100
|
+
}
|
|
48101
|
+
if (message.until !== void 0) {
|
|
48102
|
+
obj.until = message.until.toISOString();
|
|
48103
|
+
}
|
|
48104
|
+
if (message.containerId !== void 0) {
|
|
48105
|
+
obj.containerId = message.containerId;
|
|
48106
|
+
}
|
|
48107
|
+
return obj;
|
|
48108
|
+
},
|
|
48109
|
+
create(base) {
|
|
48110
|
+
return ServerGetTimeRangeStatsRequest.fromPartial(base ?? {});
|
|
48111
|
+
},
|
|
48112
|
+
fromPartial(object) {
|
|
48113
|
+
const message = createBaseServerGetTimeRangeStatsRequest();
|
|
48114
|
+
message.functionId = object.functionId ?? "";
|
|
48115
|
+
message.since = object.since ?? void 0;
|
|
48116
|
+
message.until = object.until ?? void 0;
|
|
48117
|
+
message.containerId = object.containerId ?? void 0;
|
|
48118
|
+
return message;
|
|
48119
|
+
}
|
|
48120
|
+
};
|
|
48121
|
+
function createBaseServerGetTimeRangeStatsResponse() {
|
|
48122
|
+
return {
|
|
48123
|
+
since: void 0,
|
|
48124
|
+
until: void 0,
|
|
48125
|
+
requestCount: 0,
|
|
48126
|
+
requestCountByStatusCode: [],
|
|
48127
|
+
requestRatePerSecond: 0,
|
|
48128
|
+
requestPercentileStats: {},
|
|
48129
|
+
containerPercentileStats: {},
|
|
48130
|
+
inference: void 0,
|
|
48131
|
+
containerStartedCount: 0,
|
|
48132
|
+
containerErrorCount: 0,
|
|
48133
|
+
containerCreatingAtEndCount: 0
|
|
48134
|
+
};
|
|
48135
|
+
}
|
|
48136
|
+
var ServerGetTimeRangeStatsResponse = {
|
|
48137
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48138
|
+
if (message.since !== void 0) {
|
|
48139
|
+
Timestamp.encode(toTimestamp(message.since), writer.uint32(10).fork()).join();
|
|
48140
|
+
}
|
|
48141
|
+
if (message.until !== void 0) {
|
|
48142
|
+
Timestamp.encode(toTimestamp(message.until), writer.uint32(18).fork()).join();
|
|
48143
|
+
}
|
|
48144
|
+
if (message.requestCount !== 0) {
|
|
48145
|
+
writer.uint32(24).uint64(message.requestCount);
|
|
48146
|
+
}
|
|
48147
|
+
for (const v of message.requestCountByStatusCode) {
|
|
48148
|
+
ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.encode(v, writer.uint32(34).fork()).join();
|
|
48149
|
+
}
|
|
48150
|
+
if (message.requestRatePerSecond !== 0) {
|
|
48151
|
+
writer.uint32(41).double(message.requestRatePerSecond);
|
|
48152
|
+
}
|
|
48153
|
+
Object.entries(message.requestPercentileStats).forEach(([key, value]) => {
|
|
48154
|
+
ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry.encode(
|
|
48155
|
+
{ key, value },
|
|
48156
|
+
writer.uint32(50).fork()
|
|
48157
|
+
).join();
|
|
48158
|
+
});
|
|
48159
|
+
Object.entries(message.containerPercentileStats).forEach(([key, value]) => {
|
|
48160
|
+
ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry.encode(
|
|
48161
|
+
{ key, value },
|
|
48162
|
+
writer.uint32(58).fork()
|
|
48163
|
+
).join();
|
|
48164
|
+
});
|
|
48165
|
+
if (message.inference !== void 0) {
|
|
48166
|
+
ServerGetTimeRangeStatsResponse_ServerInferenceStats.encode(message.inference, writer.uint32(66).fork()).join();
|
|
48167
|
+
}
|
|
48168
|
+
if (message.containerStartedCount !== 0) {
|
|
48169
|
+
writer.uint32(72).uint64(message.containerStartedCount);
|
|
48170
|
+
}
|
|
48171
|
+
if (message.containerErrorCount !== 0) {
|
|
48172
|
+
writer.uint32(80).uint64(message.containerErrorCount);
|
|
48173
|
+
}
|
|
48174
|
+
if (message.containerCreatingAtEndCount !== 0) {
|
|
48175
|
+
writer.uint32(88).uint64(message.containerCreatingAtEndCount);
|
|
48176
|
+
}
|
|
48177
|
+
return writer;
|
|
48178
|
+
},
|
|
48179
|
+
decode(input, length) {
|
|
48180
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48181
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48182
|
+
const message = createBaseServerGetTimeRangeStatsResponse();
|
|
48183
|
+
while (reader.pos < end) {
|
|
48184
|
+
const tag = reader.uint32();
|
|
48185
|
+
switch (tag >>> 3) {
|
|
48186
|
+
case 1: {
|
|
48187
|
+
if (tag !== 10) {
|
|
48188
|
+
break;
|
|
48189
|
+
}
|
|
48190
|
+
message.since = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
48191
|
+
continue;
|
|
48192
|
+
}
|
|
48193
|
+
case 2: {
|
|
48194
|
+
if (tag !== 18) {
|
|
48195
|
+
break;
|
|
48196
|
+
}
|
|
48197
|
+
message.until = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
48198
|
+
continue;
|
|
48199
|
+
}
|
|
48200
|
+
case 3: {
|
|
48201
|
+
if (tag !== 24) {
|
|
48202
|
+
break;
|
|
48203
|
+
}
|
|
48204
|
+
message.requestCount = longToNumber2(reader.uint64());
|
|
48205
|
+
continue;
|
|
48206
|
+
}
|
|
48207
|
+
case 4: {
|
|
48208
|
+
if (tag !== 34) {
|
|
48209
|
+
break;
|
|
48210
|
+
}
|
|
48211
|
+
message.requestCountByStatusCode.push(
|
|
48212
|
+
ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.decode(reader, reader.uint32())
|
|
48213
|
+
);
|
|
48214
|
+
continue;
|
|
48215
|
+
}
|
|
48216
|
+
case 5: {
|
|
48217
|
+
if (tag !== 41) {
|
|
48218
|
+
break;
|
|
48219
|
+
}
|
|
48220
|
+
message.requestRatePerSecond = reader.double();
|
|
48221
|
+
continue;
|
|
48222
|
+
}
|
|
48223
|
+
case 6: {
|
|
48224
|
+
if (tag !== 50) {
|
|
48225
|
+
break;
|
|
48226
|
+
}
|
|
48227
|
+
const entry6 = ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry.decode(reader, reader.uint32());
|
|
48228
|
+
if (entry6.value !== void 0) {
|
|
48229
|
+
message.requestPercentileStats[entry6.key] = entry6.value;
|
|
48230
|
+
}
|
|
48231
|
+
continue;
|
|
48232
|
+
}
|
|
48233
|
+
case 7: {
|
|
48234
|
+
if (tag !== 58) {
|
|
48235
|
+
break;
|
|
48236
|
+
}
|
|
48237
|
+
const entry7 = ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry.decode(reader, reader.uint32());
|
|
48238
|
+
if (entry7.value !== void 0) {
|
|
48239
|
+
message.containerPercentileStats[entry7.key] = entry7.value;
|
|
48240
|
+
}
|
|
48241
|
+
continue;
|
|
48242
|
+
}
|
|
48243
|
+
case 8: {
|
|
48244
|
+
if (tag !== 66) {
|
|
48245
|
+
break;
|
|
48246
|
+
}
|
|
48247
|
+
message.inference = ServerGetTimeRangeStatsResponse_ServerInferenceStats.decode(reader, reader.uint32());
|
|
48248
|
+
continue;
|
|
48249
|
+
}
|
|
48250
|
+
case 9: {
|
|
48251
|
+
if (tag !== 72) {
|
|
48252
|
+
break;
|
|
48253
|
+
}
|
|
48254
|
+
message.containerStartedCount = longToNumber2(reader.uint64());
|
|
48255
|
+
continue;
|
|
48256
|
+
}
|
|
48257
|
+
case 10: {
|
|
48258
|
+
if (tag !== 80) {
|
|
48259
|
+
break;
|
|
48260
|
+
}
|
|
48261
|
+
message.containerErrorCount = longToNumber2(reader.uint64());
|
|
48262
|
+
continue;
|
|
48263
|
+
}
|
|
48264
|
+
case 11: {
|
|
48265
|
+
if (tag !== 88) {
|
|
48266
|
+
break;
|
|
48267
|
+
}
|
|
48268
|
+
message.containerCreatingAtEndCount = longToNumber2(reader.uint64());
|
|
48269
|
+
continue;
|
|
48270
|
+
}
|
|
48271
|
+
}
|
|
48272
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48273
|
+
break;
|
|
48274
|
+
}
|
|
48275
|
+
reader.skip(tag & 7);
|
|
48276
|
+
}
|
|
48277
|
+
return message;
|
|
48278
|
+
},
|
|
48279
|
+
fromJSON(object) {
|
|
48280
|
+
return {
|
|
48281
|
+
since: isSet5(object.since) ? fromJsonTimestamp(object.since) : void 0,
|
|
48282
|
+
until: isSet5(object.until) ? fromJsonTimestamp(object.until) : void 0,
|
|
48283
|
+
requestCount: isSet5(object.requestCount) ? globalThis.Number(object.requestCount) : 0,
|
|
48284
|
+
requestCountByStatusCode: globalThis.Array.isArray(object?.requestCountByStatusCode) ? object.requestCountByStatusCode.map(
|
|
48285
|
+
(e) => ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.fromJSON(e)
|
|
48286
|
+
) : [],
|
|
48287
|
+
requestRatePerSecond: isSet5(object.requestRatePerSecond) ? globalThis.Number(object.requestRatePerSecond) : 0,
|
|
48288
|
+
requestPercentileStats: isObject2(object.requestPercentileStats) ? Object.entries(object.requestPercentileStats).reduce(
|
|
48289
|
+
(acc, [key, value]) => {
|
|
48290
|
+
acc[key] = StatsPercentileDistribution.fromJSON(value);
|
|
48291
|
+
return acc;
|
|
48292
|
+
},
|
|
48293
|
+
{}
|
|
48294
|
+
) : {},
|
|
48295
|
+
containerPercentileStats: isObject2(object.containerPercentileStats) ? Object.entries(object.containerPercentileStats).reduce(
|
|
48296
|
+
(acc, [key, value]) => {
|
|
48297
|
+
acc[key] = StatsPercentileDistribution.fromJSON(value);
|
|
48298
|
+
return acc;
|
|
48299
|
+
},
|
|
48300
|
+
{}
|
|
48301
|
+
) : {},
|
|
48302
|
+
inference: isSet5(object.inference) ? ServerGetTimeRangeStatsResponse_ServerInferenceStats.fromJSON(object.inference) : void 0,
|
|
48303
|
+
containerStartedCount: isSet5(object.containerStartedCount) ? globalThis.Number(object.containerStartedCount) : 0,
|
|
48304
|
+
containerErrorCount: isSet5(object.containerErrorCount) ? globalThis.Number(object.containerErrorCount) : 0,
|
|
48305
|
+
containerCreatingAtEndCount: isSet5(object.containerCreatingAtEndCount) ? globalThis.Number(object.containerCreatingAtEndCount) : 0
|
|
48306
|
+
};
|
|
48307
|
+
},
|
|
48308
|
+
toJSON(message) {
|
|
48309
|
+
const obj = {};
|
|
48310
|
+
if (message.since !== void 0) {
|
|
48311
|
+
obj.since = message.since.toISOString();
|
|
48312
|
+
}
|
|
48313
|
+
if (message.until !== void 0) {
|
|
48314
|
+
obj.until = message.until.toISOString();
|
|
48315
|
+
}
|
|
48316
|
+
if (message.requestCount !== 0) {
|
|
48317
|
+
obj.requestCount = Math.round(message.requestCount);
|
|
48318
|
+
}
|
|
48319
|
+
if (message.requestCountByStatusCode?.length) {
|
|
48320
|
+
obj.requestCountByStatusCode = message.requestCountByStatusCode.map(
|
|
48321
|
+
(e) => ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.toJSON(e)
|
|
48322
|
+
);
|
|
48323
|
+
}
|
|
48324
|
+
if (message.requestRatePerSecond !== 0) {
|
|
48325
|
+
obj.requestRatePerSecond = message.requestRatePerSecond;
|
|
48326
|
+
}
|
|
48327
|
+
if (message.requestPercentileStats) {
|
|
48328
|
+
const entries = Object.entries(message.requestPercentileStats);
|
|
48329
|
+
if (entries.length > 0) {
|
|
48330
|
+
obj.requestPercentileStats = {};
|
|
48331
|
+
entries.forEach(([k, v]) => {
|
|
48332
|
+
obj.requestPercentileStats[k] = StatsPercentileDistribution.toJSON(v);
|
|
48333
|
+
});
|
|
48334
|
+
}
|
|
48335
|
+
}
|
|
48336
|
+
if (message.containerPercentileStats) {
|
|
48337
|
+
const entries = Object.entries(message.containerPercentileStats);
|
|
48338
|
+
if (entries.length > 0) {
|
|
48339
|
+
obj.containerPercentileStats = {};
|
|
48340
|
+
entries.forEach(([k, v]) => {
|
|
48341
|
+
obj.containerPercentileStats[k] = StatsPercentileDistribution.toJSON(v);
|
|
48342
|
+
});
|
|
48343
|
+
}
|
|
48344
|
+
}
|
|
48345
|
+
if (message.inference !== void 0) {
|
|
48346
|
+
obj.inference = ServerGetTimeRangeStatsResponse_ServerInferenceStats.toJSON(message.inference);
|
|
48347
|
+
}
|
|
48348
|
+
if (message.containerStartedCount !== 0) {
|
|
48349
|
+
obj.containerStartedCount = Math.round(message.containerStartedCount);
|
|
48350
|
+
}
|
|
48351
|
+
if (message.containerErrorCount !== 0) {
|
|
48352
|
+
obj.containerErrorCount = Math.round(message.containerErrorCount);
|
|
48353
|
+
}
|
|
48354
|
+
if (message.containerCreatingAtEndCount !== 0) {
|
|
48355
|
+
obj.containerCreatingAtEndCount = Math.round(message.containerCreatingAtEndCount);
|
|
48356
|
+
}
|
|
48357
|
+
return obj;
|
|
48358
|
+
},
|
|
48359
|
+
create(base) {
|
|
48360
|
+
return ServerGetTimeRangeStatsResponse.fromPartial(base ?? {});
|
|
48361
|
+
},
|
|
48362
|
+
fromPartial(object) {
|
|
48363
|
+
const message = createBaseServerGetTimeRangeStatsResponse();
|
|
48364
|
+
message.since = object.since ?? void 0;
|
|
48365
|
+
message.until = object.until ?? void 0;
|
|
48366
|
+
message.requestCount = object.requestCount ?? 0;
|
|
48367
|
+
message.requestCountByStatusCode = object.requestCountByStatusCode?.map(
|
|
48368
|
+
(e) => ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.fromPartial(e)
|
|
48369
|
+
) || [];
|
|
48370
|
+
message.requestRatePerSecond = object.requestRatePerSecond ?? 0;
|
|
48371
|
+
message.requestPercentileStats = Object.entries(object.requestPercentileStats ?? {}).reduce((acc, [key, value]) => {
|
|
48372
|
+
if (value !== void 0) {
|
|
48373
|
+
acc[key] = StatsPercentileDistribution.fromPartial(value);
|
|
48374
|
+
}
|
|
48375
|
+
return acc;
|
|
48376
|
+
}, {});
|
|
48377
|
+
message.containerPercentileStats = Object.entries(object.containerPercentileStats ?? {}).reduce((acc, [key, value]) => {
|
|
48378
|
+
if (value !== void 0) {
|
|
48379
|
+
acc[key] = StatsPercentileDistribution.fromPartial(value);
|
|
48380
|
+
}
|
|
48381
|
+
return acc;
|
|
48382
|
+
}, {});
|
|
48383
|
+
message.inference = object.inference !== void 0 && object.inference !== null ? ServerGetTimeRangeStatsResponse_ServerInferenceStats.fromPartial(object.inference) : void 0;
|
|
48384
|
+
message.containerStartedCount = object.containerStartedCount ?? 0;
|
|
48385
|
+
message.containerErrorCount = object.containerErrorCount ?? 0;
|
|
48386
|
+
message.containerCreatingAtEndCount = object.containerCreatingAtEndCount ?? 0;
|
|
48387
|
+
return message;
|
|
48388
|
+
}
|
|
48389
|
+
};
|
|
48390
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats() {
|
|
48391
|
+
return { engine: 0, status: 0, percentileStats: {}, scalarStats: {} };
|
|
48392
|
+
}
|
|
48393
|
+
var ServerGetTimeRangeStatsResponse_ServerInferenceStats = {
|
|
48394
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48395
|
+
if (message.engine !== 0) {
|
|
48396
|
+
writer.uint32(8).int32(message.engine);
|
|
48397
|
+
}
|
|
48398
|
+
if (message.status !== 0) {
|
|
48399
|
+
writer.uint32(16).int32(message.status);
|
|
48400
|
+
}
|
|
48401
|
+
Object.entries(message.percentileStats).forEach(([key, value]) => {
|
|
48402
|
+
ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.encode(
|
|
48403
|
+
{ key, value },
|
|
48404
|
+
writer.uint32(26).fork()
|
|
48405
|
+
).join();
|
|
48406
|
+
});
|
|
48407
|
+
Object.entries(message.scalarStats).forEach(([key, value]) => {
|
|
48408
|
+
ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry.encode(
|
|
48409
|
+
{ key, value },
|
|
48410
|
+
writer.uint32(34).fork()
|
|
48411
|
+
).join();
|
|
48412
|
+
});
|
|
48413
|
+
return writer;
|
|
48414
|
+
},
|
|
48415
|
+
decode(input, length) {
|
|
48416
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48417
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48418
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats();
|
|
48419
|
+
while (reader.pos < end) {
|
|
48420
|
+
const tag = reader.uint32();
|
|
48421
|
+
switch (tag >>> 3) {
|
|
48422
|
+
case 1: {
|
|
48423
|
+
if (tag !== 8) {
|
|
48424
|
+
break;
|
|
48425
|
+
}
|
|
48426
|
+
message.engine = reader.int32();
|
|
48427
|
+
continue;
|
|
48428
|
+
}
|
|
48429
|
+
case 2: {
|
|
48430
|
+
if (tag !== 16) {
|
|
48431
|
+
break;
|
|
48432
|
+
}
|
|
48433
|
+
message.status = reader.int32();
|
|
48434
|
+
continue;
|
|
48435
|
+
}
|
|
48436
|
+
case 3: {
|
|
48437
|
+
if (tag !== 26) {
|
|
48438
|
+
break;
|
|
48439
|
+
}
|
|
48440
|
+
const entry3 = ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.decode(
|
|
48441
|
+
reader,
|
|
48442
|
+
reader.uint32()
|
|
48443
|
+
);
|
|
48444
|
+
if (entry3.value !== void 0) {
|
|
48445
|
+
message.percentileStats[entry3.key] = entry3.value;
|
|
48446
|
+
}
|
|
48447
|
+
continue;
|
|
48448
|
+
}
|
|
48449
|
+
case 4: {
|
|
48450
|
+
if (tag !== 34) {
|
|
48451
|
+
break;
|
|
48452
|
+
}
|
|
48453
|
+
const entry4 = ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry.decode(
|
|
48454
|
+
reader,
|
|
48455
|
+
reader.uint32()
|
|
48456
|
+
);
|
|
48457
|
+
if (entry4.value !== void 0) {
|
|
48458
|
+
message.scalarStats[entry4.key] = entry4.value;
|
|
48459
|
+
}
|
|
48460
|
+
continue;
|
|
48461
|
+
}
|
|
48462
|
+
}
|
|
48463
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48464
|
+
break;
|
|
48465
|
+
}
|
|
48466
|
+
reader.skip(tag & 7);
|
|
48467
|
+
}
|
|
48468
|
+
return message;
|
|
48469
|
+
},
|
|
48470
|
+
fromJSON(object) {
|
|
48471
|
+
return {
|
|
48472
|
+
engine: isSet5(object.engine) ? lLMEngineFromJSON(object.engine) : 0,
|
|
48473
|
+
status: isSet5(object.status) ? serverInferenceStatsStatusFromJSON(object.status) : 0,
|
|
48474
|
+
percentileStats: isObject2(object.percentileStats) ? Object.entries(object.percentileStats).reduce(
|
|
48475
|
+
(acc, [key, value]) => {
|
|
48476
|
+
acc[key] = StatsPercentileDistribution.fromJSON(value);
|
|
48477
|
+
return acc;
|
|
48478
|
+
},
|
|
48479
|
+
{}
|
|
48480
|
+
) : {},
|
|
48481
|
+
scalarStats: isObject2(object.scalarStats) ? Object.entries(object.scalarStats).reduce((acc, [key, value]) => {
|
|
48482
|
+
acc[key] = Number(value);
|
|
48483
|
+
return acc;
|
|
48484
|
+
}, {}) : {}
|
|
48485
|
+
};
|
|
48486
|
+
},
|
|
48487
|
+
toJSON(message) {
|
|
48488
|
+
const obj = {};
|
|
48489
|
+
if (message.engine !== 0) {
|
|
48490
|
+
obj.engine = lLMEngineToJSON(message.engine);
|
|
48491
|
+
}
|
|
48492
|
+
if (message.status !== 0) {
|
|
48493
|
+
obj.status = serverInferenceStatsStatusToJSON(message.status);
|
|
48494
|
+
}
|
|
48495
|
+
if (message.percentileStats) {
|
|
48496
|
+
const entries = Object.entries(message.percentileStats);
|
|
48497
|
+
if (entries.length > 0) {
|
|
48498
|
+
obj.percentileStats = {};
|
|
48499
|
+
entries.forEach(([k, v]) => {
|
|
48500
|
+
obj.percentileStats[k] = StatsPercentileDistribution.toJSON(v);
|
|
48501
|
+
});
|
|
48502
|
+
}
|
|
48503
|
+
}
|
|
48504
|
+
if (message.scalarStats) {
|
|
48505
|
+
const entries = Object.entries(message.scalarStats);
|
|
48506
|
+
if (entries.length > 0) {
|
|
48507
|
+
obj.scalarStats = {};
|
|
48508
|
+
entries.forEach(([k, v]) => {
|
|
48509
|
+
obj.scalarStats[k] = v;
|
|
48510
|
+
});
|
|
48511
|
+
}
|
|
48512
|
+
}
|
|
48513
|
+
return obj;
|
|
48514
|
+
},
|
|
48515
|
+
create(base) {
|
|
48516
|
+
return ServerGetTimeRangeStatsResponse_ServerInferenceStats.fromPartial(base ?? {});
|
|
48517
|
+
},
|
|
48518
|
+
fromPartial(object) {
|
|
48519
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats();
|
|
48520
|
+
message.engine = object.engine ?? 0;
|
|
48521
|
+
message.status = object.status ?? 0;
|
|
48522
|
+
message.percentileStats = Object.entries(object.percentileStats ?? {}).reduce((acc, [key, value]) => {
|
|
48523
|
+
if (value !== void 0) {
|
|
48524
|
+
acc[key] = StatsPercentileDistribution.fromPartial(value);
|
|
48525
|
+
}
|
|
48526
|
+
return acc;
|
|
48527
|
+
}, {});
|
|
48528
|
+
message.scalarStats = Object.entries(object.scalarStats ?? {}).reduce(
|
|
48529
|
+
(acc, [key, value]) => {
|
|
48530
|
+
if (value !== void 0) {
|
|
48531
|
+
acc[key] = globalThis.Number(value);
|
|
48532
|
+
}
|
|
48533
|
+
return acc;
|
|
48534
|
+
},
|
|
48535
|
+
{}
|
|
48536
|
+
);
|
|
48537
|
+
return message;
|
|
48538
|
+
}
|
|
48539
|
+
};
|
|
48540
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry() {
|
|
48541
|
+
return { key: "", value: void 0 };
|
|
48542
|
+
}
|
|
48543
|
+
var ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry = {
|
|
48544
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48545
|
+
if (message.key !== "") {
|
|
48546
|
+
writer.uint32(10).string(message.key);
|
|
48547
|
+
}
|
|
48548
|
+
if (message.value !== void 0) {
|
|
48549
|
+
StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
|
|
48550
|
+
}
|
|
48551
|
+
return writer;
|
|
48552
|
+
},
|
|
48553
|
+
decode(input, length) {
|
|
48554
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48555
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48556
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry();
|
|
48557
|
+
while (reader.pos < end) {
|
|
48558
|
+
const tag = reader.uint32();
|
|
48559
|
+
switch (tag >>> 3) {
|
|
48560
|
+
case 1: {
|
|
48561
|
+
if (tag !== 10) {
|
|
48562
|
+
break;
|
|
48563
|
+
}
|
|
48564
|
+
message.key = reader.string();
|
|
48565
|
+
continue;
|
|
48566
|
+
}
|
|
48567
|
+
case 2: {
|
|
48568
|
+
if (tag !== 18) {
|
|
48569
|
+
break;
|
|
48570
|
+
}
|
|
48571
|
+
message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
|
|
48572
|
+
continue;
|
|
48573
|
+
}
|
|
48574
|
+
}
|
|
48575
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48576
|
+
break;
|
|
48577
|
+
}
|
|
48578
|
+
reader.skip(tag & 7);
|
|
48579
|
+
}
|
|
48580
|
+
return message;
|
|
48581
|
+
},
|
|
48582
|
+
fromJSON(object) {
|
|
48583
|
+
return {
|
|
48584
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
48585
|
+
value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
|
|
48586
|
+
};
|
|
48587
|
+
},
|
|
48588
|
+
toJSON(message) {
|
|
48589
|
+
const obj = {};
|
|
48590
|
+
if (message.key !== "") {
|
|
48591
|
+
obj.key = message.key;
|
|
48592
|
+
}
|
|
48593
|
+
if (message.value !== void 0) {
|
|
48594
|
+
obj.value = StatsPercentileDistribution.toJSON(message.value);
|
|
48595
|
+
}
|
|
48596
|
+
return obj;
|
|
48597
|
+
},
|
|
48598
|
+
create(base) {
|
|
48599
|
+
return ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.fromPartial(base ?? {});
|
|
48600
|
+
},
|
|
48601
|
+
fromPartial(object) {
|
|
48602
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry();
|
|
48603
|
+
message.key = object.key ?? "";
|
|
48604
|
+
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
48605
|
+
return message;
|
|
48606
|
+
}
|
|
48607
|
+
};
|
|
48608
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry() {
|
|
48609
|
+
return { key: "", value: 0 };
|
|
48610
|
+
}
|
|
48611
|
+
var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
|
|
48612
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48613
|
+
if (message.key !== "") {
|
|
48614
|
+
writer.uint32(10).string(message.key);
|
|
48615
|
+
}
|
|
48616
|
+
if (message.value !== 0) {
|
|
48617
|
+
writer.uint32(17).double(message.value);
|
|
48618
|
+
}
|
|
48619
|
+
return writer;
|
|
48620
|
+
},
|
|
48621
|
+
decode(input, length) {
|
|
48622
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48623
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48624
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
|
|
48625
|
+
while (reader.pos < end) {
|
|
48626
|
+
const tag = reader.uint32();
|
|
48627
|
+
switch (tag >>> 3) {
|
|
48628
|
+
case 1: {
|
|
48629
|
+
if (tag !== 10) {
|
|
48630
|
+
break;
|
|
48631
|
+
}
|
|
48632
|
+
message.key = reader.string();
|
|
48633
|
+
continue;
|
|
48634
|
+
}
|
|
48635
|
+
case 2: {
|
|
48636
|
+
if (tag !== 17) {
|
|
48637
|
+
break;
|
|
48638
|
+
}
|
|
48639
|
+
message.value = reader.double();
|
|
48640
|
+
continue;
|
|
48641
|
+
}
|
|
48642
|
+
}
|
|
48643
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48644
|
+
break;
|
|
48645
|
+
}
|
|
48646
|
+
reader.skip(tag & 7);
|
|
48647
|
+
}
|
|
48648
|
+
return message;
|
|
48649
|
+
},
|
|
48650
|
+
fromJSON(object) {
|
|
48651
|
+
return {
|
|
48652
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
48653
|
+
value: isSet5(object.value) ? globalThis.Number(object.value) : 0
|
|
48654
|
+
};
|
|
48655
|
+
},
|
|
48656
|
+
toJSON(message) {
|
|
48657
|
+
const obj = {};
|
|
48658
|
+
if (message.key !== "") {
|
|
48659
|
+
obj.key = message.key;
|
|
48660
|
+
}
|
|
48661
|
+
if (message.value !== 0) {
|
|
48662
|
+
obj.value = message.value;
|
|
48663
|
+
}
|
|
48664
|
+
return obj;
|
|
48665
|
+
},
|
|
48666
|
+
create(base) {
|
|
48667
|
+
return ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry.fromPartial(base ?? {});
|
|
48668
|
+
},
|
|
48669
|
+
fromPartial(object) {
|
|
48670
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
|
|
48671
|
+
message.key = object.key ?? "";
|
|
48672
|
+
message.value = object.value ?? 0;
|
|
48673
|
+
return message;
|
|
48674
|
+
}
|
|
48675
|
+
};
|
|
48676
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount() {
|
|
48677
|
+
return { statusCode: 0, count: 0 };
|
|
48678
|
+
}
|
|
48679
|
+
var ServerGetTimeRangeStatsResponse_ServerStatusCodeCount = {
|
|
48680
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48681
|
+
if (message.statusCode !== 0) {
|
|
48682
|
+
writer.uint32(8).uint32(message.statusCode);
|
|
48683
|
+
}
|
|
48684
|
+
if (message.count !== 0) {
|
|
48685
|
+
writer.uint32(16).uint64(message.count);
|
|
48686
|
+
}
|
|
48687
|
+
return writer;
|
|
48688
|
+
},
|
|
48689
|
+
decode(input, length) {
|
|
48690
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48691
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48692
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
|
|
48693
|
+
while (reader.pos < end) {
|
|
48694
|
+
const tag = reader.uint32();
|
|
48695
|
+
switch (tag >>> 3) {
|
|
48696
|
+
case 1: {
|
|
48697
|
+
if (tag !== 8) {
|
|
48698
|
+
break;
|
|
48699
|
+
}
|
|
48700
|
+
message.statusCode = reader.uint32();
|
|
48701
|
+
continue;
|
|
48702
|
+
}
|
|
48703
|
+
case 2: {
|
|
48704
|
+
if (tag !== 16) {
|
|
48705
|
+
break;
|
|
48706
|
+
}
|
|
48707
|
+
message.count = longToNumber2(reader.uint64());
|
|
48708
|
+
continue;
|
|
48709
|
+
}
|
|
48710
|
+
}
|
|
48711
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48712
|
+
break;
|
|
48713
|
+
}
|
|
48714
|
+
reader.skip(tag & 7);
|
|
48715
|
+
}
|
|
48716
|
+
return message;
|
|
48717
|
+
},
|
|
48718
|
+
fromJSON(object) {
|
|
48719
|
+
return {
|
|
48720
|
+
statusCode: isSet5(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
|
|
48721
|
+
count: isSet5(object.count) ? globalThis.Number(object.count) : 0
|
|
48722
|
+
};
|
|
48723
|
+
},
|
|
48724
|
+
toJSON(message) {
|
|
48725
|
+
const obj = {};
|
|
48726
|
+
if (message.statusCode !== 0) {
|
|
48727
|
+
obj.statusCode = Math.round(message.statusCode);
|
|
48728
|
+
}
|
|
48729
|
+
if (message.count !== 0) {
|
|
48730
|
+
obj.count = Math.round(message.count);
|
|
48731
|
+
}
|
|
48732
|
+
return obj;
|
|
48733
|
+
},
|
|
48734
|
+
create(base) {
|
|
48735
|
+
return ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.fromPartial(base ?? {});
|
|
48736
|
+
},
|
|
48737
|
+
fromPartial(object) {
|
|
48738
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
|
|
48739
|
+
message.statusCode = object.statusCode ?? 0;
|
|
48740
|
+
message.count = object.count ?? 0;
|
|
48741
|
+
return message;
|
|
48742
|
+
}
|
|
48743
|
+
};
|
|
48744
|
+
function createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry() {
|
|
48745
|
+
return { key: "", value: void 0 };
|
|
48746
|
+
}
|
|
48747
|
+
var ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry = {
|
|
48748
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48749
|
+
if (message.key !== "") {
|
|
48750
|
+
writer.uint32(10).string(message.key);
|
|
48751
|
+
}
|
|
48752
|
+
if (message.value !== void 0) {
|
|
48753
|
+
StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
|
|
48754
|
+
}
|
|
48755
|
+
return writer;
|
|
48756
|
+
},
|
|
48757
|
+
decode(input, length) {
|
|
48758
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48759
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48760
|
+
const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
|
|
48761
|
+
while (reader.pos < end) {
|
|
48762
|
+
const tag = reader.uint32();
|
|
48763
|
+
switch (tag >>> 3) {
|
|
48764
|
+
case 1: {
|
|
48765
|
+
if (tag !== 10) {
|
|
48766
|
+
break;
|
|
48767
|
+
}
|
|
48768
|
+
message.key = reader.string();
|
|
48769
|
+
continue;
|
|
48770
|
+
}
|
|
48771
|
+
case 2: {
|
|
48772
|
+
if (tag !== 18) {
|
|
48773
|
+
break;
|
|
48774
|
+
}
|
|
48775
|
+
message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
|
|
48776
|
+
continue;
|
|
48777
|
+
}
|
|
48778
|
+
}
|
|
48779
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48780
|
+
break;
|
|
48781
|
+
}
|
|
48782
|
+
reader.skip(tag & 7);
|
|
48783
|
+
}
|
|
48784
|
+
return message;
|
|
48785
|
+
},
|
|
48786
|
+
fromJSON(object) {
|
|
48787
|
+
return {
|
|
48788
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
48789
|
+
value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
|
|
48790
|
+
};
|
|
48791
|
+
},
|
|
48792
|
+
toJSON(message) {
|
|
48793
|
+
const obj = {};
|
|
48794
|
+
if (message.key !== "") {
|
|
48795
|
+
obj.key = message.key;
|
|
48796
|
+
}
|
|
48797
|
+
if (message.value !== void 0) {
|
|
48798
|
+
obj.value = StatsPercentileDistribution.toJSON(message.value);
|
|
48799
|
+
}
|
|
48800
|
+
return obj;
|
|
48801
|
+
},
|
|
48802
|
+
create(base) {
|
|
48803
|
+
return ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry.fromPartial(base ?? {});
|
|
48804
|
+
},
|
|
48805
|
+
fromPartial(object) {
|
|
48806
|
+
const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
|
|
48807
|
+
message.key = object.key ?? "";
|
|
48808
|
+
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
48809
|
+
return message;
|
|
48810
|
+
}
|
|
48811
|
+
};
|
|
48812
|
+
function createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry() {
|
|
48813
|
+
return { key: "", value: void 0 };
|
|
48814
|
+
}
|
|
48815
|
+
var ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry = {
|
|
48816
|
+
encode(message, writer = new BinaryWriter()) {
|
|
48817
|
+
if (message.key !== "") {
|
|
48818
|
+
writer.uint32(10).string(message.key);
|
|
48819
|
+
}
|
|
48820
|
+
if (message.value !== void 0) {
|
|
48821
|
+
StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
|
|
48822
|
+
}
|
|
48823
|
+
return writer;
|
|
48824
|
+
},
|
|
48825
|
+
decode(input, length) {
|
|
48826
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48827
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48828
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
|
|
48829
|
+
while (reader.pos < end) {
|
|
48830
|
+
const tag = reader.uint32();
|
|
48831
|
+
switch (tag >>> 3) {
|
|
48832
|
+
case 1: {
|
|
48833
|
+
if (tag !== 10) {
|
|
48834
|
+
break;
|
|
48835
|
+
}
|
|
48836
|
+
message.key = reader.string();
|
|
48837
|
+
continue;
|
|
48838
|
+
}
|
|
48839
|
+
case 2: {
|
|
48840
|
+
if (tag !== 18) {
|
|
48841
|
+
break;
|
|
48842
|
+
}
|
|
48843
|
+
message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
|
|
48844
|
+
continue;
|
|
48845
|
+
}
|
|
48846
|
+
}
|
|
48847
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48848
|
+
break;
|
|
48849
|
+
}
|
|
48850
|
+
reader.skip(tag & 7);
|
|
48851
|
+
}
|
|
48852
|
+
return message;
|
|
48853
|
+
},
|
|
48854
|
+
fromJSON(object) {
|
|
48855
|
+
return {
|
|
48856
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
48857
|
+
value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
|
|
48858
|
+
};
|
|
48859
|
+
},
|
|
48860
|
+
toJSON(message) {
|
|
48861
|
+
const obj = {};
|
|
48862
|
+
if (message.key !== "") {
|
|
48863
|
+
obj.key = message.key;
|
|
48864
|
+
}
|
|
48865
|
+
if (message.value !== void 0) {
|
|
48866
|
+
obj.value = StatsPercentileDistribution.toJSON(message.value);
|
|
48867
|
+
}
|
|
48868
|
+
return obj;
|
|
48869
|
+
},
|
|
48870
|
+
create(base) {
|
|
48871
|
+
return ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry.fromPartial(base ?? {});
|
|
48872
|
+
},
|
|
48873
|
+
fromPartial(object) {
|
|
48874
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
|
|
48875
|
+
message.key = object.key ?? "";
|
|
48876
|
+
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
48877
|
+
return message;
|
|
48878
|
+
}
|
|
48879
|
+
};
|
|
47185
48880
|
function createBaseServiceUser() {
|
|
47186
48881
|
return {
|
|
47187
48882
|
name: "",
|
|
@@ -51391,13 +53086,199 @@ var TunnelData = {
|
|
|
51391
53086
|
message.unencryptedPort = reader.uint32();
|
|
51392
53087
|
continue;
|
|
51393
53088
|
}
|
|
51394
|
-
case 5: {
|
|
51395
|
-
if (tag !== 40) {
|
|
51396
|
-
break;
|
|
51397
|
-
}
|
|
51398
|
-
message.containerPort = reader.uint32();
|
|
51399
|
-
continue;
|
|
51400
|
-
}
|
|
53089
|
+
case 5: {
|
|
53090
|
+
if (tag !== 40) {
|
|
53091
|
+
break;
|
|
53092
|
+
}
|
|
53093
|
+
message.containerPort = reader.uint32();
|
|
53094
|
+
continue;
|
|
53095
|
+
}
|
|
53096
|
+
}
|
|
53097
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
53098
|
+
break;
|
|
53099
|
+
}
|
|
53100
|
+
reader.skip(tag & 7);
|
|
53101
|
+
}
|
|
53102
|
+
return message;
|
|
53103
|
+
},
|
|
53104
|
+
fromJSON(object) {
|
|
53105
|
+
return {
|
|
53106
|
+
host: isSet5(object.host) ? globalThis.String(object.host) : "",
|
|
53107
|
+
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
53108
|
+
unencryptedHost: isSet5(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
53109
|
+
unencryptedPort: isSet5(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0,
|
|
53110
|
+
containerPort: isSet5(object.containerPort) ? globalThis.Number(object.containerPort) : 0
|
|
53111
|
+
};
|
|
53112
|
+
},
|
|
53113
|
+
toJSON(message) {
|
|
53114
|
+
const obj = {};
|
|
53115
|
+
if (message.host !== "") {
|
|
53116
|
+
obj.host = message.host;
|
|
53117
|
+
}
|
|
53118
|
+
if (message.port !== 0) {
|
|
53119
|
+
obj.port = Math.round(message.port);
|
|
53120
|
+
}
|
|
53121
|
+
if (message.unencryptedHost !== void 0) {
|
|
53122
|
+
obj.unencryptedHost = message.unencryptedHost;
|
|
53123
|
+
}
|
|
53124
|
+
if (message.unencryptedPort !== void 0) {
|
|
53125
|
+
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
53126
|
+
}
|
|
53127
|
+
if (message.containerPort !== 0) {
|
|
53128
|
+
obj.containerPort = Math.round(message.containerPort);
|
|
53129
|
+
}
|
|
53130
|
+
return obj;
|
|
53131
|
+
},
|
|
53132
|
+
create(base) {
|
|
53133
|
+
return TunnelData.fromPartial(base ?? {});
|
|
53134
|
+
},
|
|
53135
|
+
fromPartial(object) {
|
|
53136
|
+
const message = createBaseTunnelData();
|
|
53137
|
+
message.host = object.host ?? "";
|
|
53138
|
+
message.port = object.port ?? 0;
|
|
53139
|
+
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
53140
|
+
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
53141
|
+
message.containerPort = object.containerPort ?? 0;
|
|
53142
|
+
return message;
|
|
53143
|
+
}
|
|
53144
|
+
};
|
|
53145
|
+
function createBaseTunnelStartRequest() {
|
|
53146
|
+
return { port: 0, unencrypted: false, tunnelType: void 0 };
|
|
53147
|
+
}
|
|
53148
|
+
var TunnelStartRequest = {
|
|
53149
|
+
encode(message, writer = new BinaryWriter()) {
|
|
53150
|
+
if (message.port !== 0) {
|
|
53151
|
+
writer.uint32(8).uint32(message.port);
|
|
53152
|
+
}
|
|
53153
|
+
if (message.unencrypted !== false) {
|
|
53154
|
+
writer.uint32(16).bool(message.unencrypted);
|
|
53155
|
+
}
|
|
53156
|
+
if (message.tunnelType !== void 0) {
|
|
53157
|
+
writer.uint32(24).int32(message.tunnelType);
|
|
53158
|
+
}
|
|
53159
|
+
return writer;
|
|
53160
|
+
},
|
|
53161
|
+
decode(input, length) {
|
|
53162
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
53163
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
53164
|
+
const message = createBaseTunnelStartRequest();
|
|
53165
|
+
while (reader.pos < end) {
|
|
53166
|
+
const tag = reader.uint32();
|
|
53167
|
+
switch (tag >>> 3) {
|
|
53168
|
+
case 1: {
|
|
53169
|
+
if (tag !== 8) {
|
|
53170
|
+
break;
|
|
53171
|
+
}
|
|
53172
|
+
message.port = reader.uint32();
|
|
53173
|
+
continue;
|
|
53174
|
+
}
|
|
53175
|
+
case 2: {
|
|
53176
|
+
if (tag !== 16) {
|
|
53177
|
+
break;
|
|
53178
|
+
}
|
|
53179
|
+
message.unencrypted = reader.bool();
|
|
53180
|
+
continue;
|
|
53181
|
+
}
|
|
53182
|
+
case 3: {
|
|
53183
|
+
if (tag !== 24) {
|
|
53184
|
+
break;
|
|
53185
|
+
}
|
|
53186
|
+
message.tunnelType = reader.int32();
|
|
53187
|
+
continue;
|
|
53188
|
+
}
|
|
53189
|
+
}
|
|
53190
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
53191
|
+
break;
|
|
53192
|
+
}
|
|
53193
|
+
reader.skip(tag & 7);
|
|
53194
|
+
}
|
|
53195
|
+
return message;
|
|
53196
|
+
},
|
|
53197
|
+
fromJSON(object) {
|
|
53198
|
+
return {
|
|
53199
|
+
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
53200
|
+
unencrypted: isSet5(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
|
|
53201
|
+
tunnelType: isSet5(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
|
|
53202
|
+
};
|
|
53203
|
+
},
|
|
53204
|
+
toJSON(message) {
|
|
53205
|
+
const obj = {};
|
|
53206
|
+
if (message.port !== 0) {
|
|
53207
|
+
obj.port = Math.round(message.port);
|
|
53208
|
+
}
|
|
53209
|
+
if (message.unencrypted !== false) {
|
|
53210
|
+
obj.unencrypted = message.unencrypted;
|
|
53211
|
+
}
|
|
53212
|
+
if (message.tunnelType !== void 0) {
|
|
53213
|
+
obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
|
|
53214
|
+
}
|
|
53215
|
+
return obj;
|
|
53216
|
+
},
|
|
53217
|
+
create(base) {
|
|
53218
|
+
return TunnelStartRequest.fromPartial(base ?? {});
|
|
53219
|
+
},
|
|
53220
|
+
fromPartial(object) {
|
|
53221
|
+
const message = createBaseTunnelStartRequest();
|
|
53222
|
+
message.port = object.port ?? 0;
|
|
53223
|
+
message.unencrypted = object.unencrypted ?? false;
|
|
53224
|
+
message.tunnelType = object.tunnelType ?? void 0;
|
|
53225
|
+
return message;
|
|
53226
|
+
}
|
|
53227
|
+
};
|
|
53228
|
+
function createBaseTunnelStartResponse() {
|
|
53229
|
+
return { host: "", port: 0, unencryptedHost: void 0, unencryptedPort: void 0 };
|
|
53230
|
+
}
|
|
53231
|
+
var TunnelStartResponse = {
|
|
53232
|
+
encode(message, writer = new BinaryWriter()) {
|
|
53233
|
+
if (message.host !== "") {
|
|
53234
|
+
writer.uint32(10).string(message.host);
|
|
53235
|
+
}
|
|
53236
|
+
if (message.port !== 0) {
|
|
53237
|
+
writer.uint32(16).uint32(message.port);
|
|
53238
|
+
}
|
|
53239
|
+
if (message.unencryptedHost !== void 0) {
|
|
53240
|
+
writer.uint32(26).string(message.unencryptedHost);
|
|
53241
|
+
}
|
|
53242
|
+
if (message.unencryptedPort !== void 0) {
|
|
53243
|
+
writer.uint32(32).uint32(message.unencryptedPort);
|
|
53244
|
+
}
|
|
53245
|
+
return writer;
|
|
53246
|
+
},
|
|
53247
|
+
decode(input, length) {
|
|
53248
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
53249
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
53250
|
+
const message = createBaseTunnelStartResponse();
|
|
53251
|
+
while (reader.pos < end) {
|
|
53252
|
+
const tag = reader.uint32();
|
|
53253
|
+
switch (tag >>> 3) {
|
|
53254
|
+
case 1: {
|
|
53255
|
+
if (tag !== 10) {
|
|
53256
|
+
break;
|
|
53257
|
+
}
|
|
53258
|
+
message.host = reader.string();
|
|
53259
|
+
continue;
|
|
53260
|
+
}
|
|
53261
|
+
case 2: {
|
|
53262
|
+
if (tag !== 16) {
|
|
53263
|
+
break;
|
|
53264
|
+
}
|
|
53265
|
+
message.port = reader.uint32();
|
|
53266
|
+
continue;
|
|
53267
|
+
}
|
|
53268
|
+
case 3: {
|
|
53269
|
+
if (tag !== 26) {
|
|
53270
|
+
break;
|
|
53271
|
+
}
|
|
53272
|
+
message.unencryptedHost = reader.string();
|
|
53273
|
+
continue;
|
|
53274
|
+
}
|
|
53275
|
+
case 4: {
|
|
53276
|
+
if (tag !== 32) {
|
|
53277
|
+
break;
|
|
53278
|
+
}
|
|
53279
|
+
message.unencryptedPort = reader.uint32();
|
|
53280
|
+
continue;
|
|
53281
|
+
}
|
|
51401
53282
|
}
|
|
51402
53283
|
if ((tag & 7) === 4 || tag === 0) {
|
|
51403
53284
|
break;
|
|
@@ -51411,8 +53292,7 @@ var TunnelData = {
|
|
|
51411
53292
|
host: isSet5(object.host) ? globalThis.String(object.host) : "",
|
|
51412
53293
|
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
51413
53294
|
unencryptedHost: isSet5(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
51414
|
-
unencryptedPort: isSet5(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
51415
|
-
containerPort: isSet5(object.containerPort) ? globalThis.Number(object.containerPort) : 0
|
|
53295
|
+
unencryptedPort: isSet5(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
51416
53296
|
};
|
|
51417
53297
|
},
|
|
51418
53298
|
toJSON(message) {
|
|
@@ -51429,44 +53309,34 @@ var TunnelData = {
|
|
|
51429
53309
|
if (message.unencryptedPort !== void 0) {
|
|
51430
53310
|
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
51431
53311
|
}
|
|
51432
|
-
if (message.containerPort !== 0) {
|
|
51433
|
-
obj.containerPort = Math.round(message.containerPort);
|
|
51434
|
-
}
|
|
51435
53312
|
return obj;
|
|
51436
53313
|
},
|
|
51437
53314
|
create(base) {
|
|
51438
|
-
return
|
|
53315
|
+
return TunnelStartResponse.fromPartial(base ?? {});
|
|
51439
53316
|
},
|
|
51440
53317
|
fromPartial(object) {
|
|
51441
|
-
const message =
|
|
53318
|
+
const message = createBaseTunnelStartResponse();
|
|
51442
53319
|
message.host = object.host ?? "";
|
|
51443
53320
|
message.port = object.port ?? 0;
|
|
51444
53321
|
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
51445
53322
|
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
51446
|
-
message.containerPort = object.containerPort ?? 0;
|
|
51447
53323
|
return message;
|
|
51448
53324
|
}
|
|
51449
53325
|
};
|
|
51450
|
-
function
|
|
51451
|
-
return { port: 0
|
|
53326
|
+
function createBaseTunnelStopRequest() {
|
|
53327
|
+
return { port: 0 };
|
|
51452
53328
|
}
|
|
51453
|
-
var
|
|
53329
|
+
var TunnelStopRequest = {
|
|
51454
53330
|
encode(message, writer = new BinaryWriter()) {
|
|
51455
53331
|
if (message.port !== 0) {
|
|
51456
53332
|
writer.uint32(8).uint32(message.port);
|
|
51457
53333
|
}
|
|
51458
|
-
if (message.unencrypted !== false) {
|
|
51459
|
-
writer.uint32(16).bool(message.unencrypted);
|
|
51460
|
-
}
|
|
51461
|
-
if (message.tunnelType !== void 0) {
|
|
51462
|
-
writer.uint32(24).int32(message.tunnelType);
|
|
51463
|
-
}
|
|
51464
53334
|
return writer;
|
|
51465
53335
|
},
|
|
51466
53336
|
decode(input, length) {
|
|
51467
53337
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51468
53338
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51469
|
-
const message =
|
|
53339
|
+
const message = createBaseTunnelStopRequest();
|
|
51470
53340
|
while (reader.pos < end) {
|
|
51471
53341
|
const tag = reader.uint32();
|
|
51472
53342
|
switch (tag >>> 3) {
|
|
@@ -51477,20 +53347,6 @@ var TunnelStartRequest = {
|
|
|
51477
53347
|
message.port = reader.uint32();
|
|
51478
53348
|
continue;
|
|
51479
53349
|
}
|
|
51480
|
-
case 2: {
|
|
51481
|
-
if (tag !== 16) {
|
|
51482
|
-
break;
|
|
51483
|
-
}
|
|
51484
|
-
message.unencrypted = reader.bool();
|
|
51485
|
-
continue;
|
|
51486
|
-
}
|
|
51487
|
-
case 3: {
|
|
51488
|
-
if (tag !== 24) {
|
|
51489
|
-
break;
|
|
51490
|
-
}
|
|
51491
|
-
message.tunnelType = reader.int32();
|
|
51492
|
-
continue;
|
|
51493
|
-
}
|
|
51494
53350
|
}
|
|
51495
53351
|
if ((tag & 7) === 4 || tag === 0) {
|
|
51496
53352
|
break;
|
|
@@ -51500,88 +53356,46 @@ var TunnelStartRequest = {
|
|
|
51500
53356
|
return message;
|
|
51501
53357
|
},
|
|
51502
53358
|
fromJSON(object) {
|
|
51503
|
-
return {
|
|
51504
|
-
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
51505
|
-
unencrypted: isSet5(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
|
|
51506
|
-
tunnelType: isSet5(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
|
|
51507
|
-
};
|
|
53359
|
+
return { port: isSet5(object.port) ? globalThis.Number(object.port) : 0 };
|
|
51508
53360
|
},
|
|
51509
53361
|
toJSON(message) {
|
|
51510
53362
|
const obj = {};
|
|
51511
53363
|
if (message.port !== 0) {
|
|
51512
53364
|
obj.port = Math.round(message.port);
|
|
51513
53365
|
}
|
|
51514
|
-
if (message.unencrypted !== false) {
|
|
51515
|
-
obj.unencrypted = message.unencrypted;
|
|
51516
|
-
}
|
|
51517
|
-
if (message.tunnelType !== void 0) {
|
|
51518
|
-
obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
|
|
51519
|
-
}
|
|
51520
53366
|
return obj;
|
|
51521
53367
|
},
|
|
51522
53368
|
create(base) {
|
|
51523
|
-
return
|
|
53369
|
+
return TunnelStopRequest.fromPartial(base ?? {});
|
|
51524
53370
|
},
|
|
51525
53371
|
fromPartial(object) {
|
|
51526
|
-
const message =
|
|
53372
|
+
const message = createBaseTunnelStopRequest();
|
|
51527
53373
|
message.port = object.port ?? 0;
|
|
51528
|
-
message.unencrypted = object.unencrypted ?? false;
|
|
51529
|
-
message.tunnelType = object.tunnelType ?? void 0;
|
|
51530
53374
|
return message;
|
|
51531
53375
|
}
|
|
51532
53376
|
};
|
|
51533
|
-
function
|
|
51534
|
-
return {
|
|
53377
|
+
function createBaseTunnelStopResponse() {
|
|
53378
|
+
return { exists: false };
|
|
51535
53379
|
}
|
|
51536
|
-
var
|
|
53380
|
+
var TunnelStopResponse = {
|
|
51537
53381
|
encode(message, writer = new BinaryWriter()) {
|
|
51538
|
-
if (message.
|
|
51539
|
-
writer.uint32(
|
|
51540
|
-
}
|
|
51541
|
-
if (message.port !== 0) {
|
|
51542
|
-
writer.uint32(16).uint32(message.port);
|
|
51543
|
-
}
|
|
51544
|
-
if (message.unencryptedHost !== void 0) {
|
|
51545
|
-
writer.uint32(26).string(message.unencryptedHost);
|
|
51546
|
-
}
|
|
51547
|
-
if (message.unencryptedPort !== void 0) {
|
|
51548
|
-
writer.uint32(32).uint32(message.unencryptedPort);
|
|
53382
|
+
if (message.exists !== false) {
|
|
53383
|
+
writer.uint32(8).bool(message.exists);
|
|
51549
53384
|
}
|
|
51550
53385
|
return writer;
|
|
51551
53386
|
},
|
|
51552
53387
|
decode(input, length) {
|
|
51553
53388
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51554
53389
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51555
|
-
const message =
|
|
53390
|
+
const message = createBaseTunnelStopResponse();
|
|
51556
53391
|
while (reader.pos < end) {
|
|
51557
53392
|
const tag = reader.uint32();
|
|
51558
53393
|
switch (tag >>> 3) {
|
|
51559
53394
|
case 1: {
|
|
51560
|
-
if (tag !==
|
|
51561
|
-
break;
|
|
51562
|
-
}
|
|
51563
|
-
message.host = reader.string();
|
|
51564
|
-
continue;
|
|
51565
|
-
}
|
|
51566
|
-
case 2: {
|
|
51567
|
-
if (tag !== 16) {
|
|
51568
|
-
break;
|
|
51569
|
-
}
|
|
51570
|
-
message.port = reader.uint32();
|
|
51571
|
-
continue;
|
|
51572
|
-
}
|
|
51573
|
-
case 3: {
|
|
51574
|
-
if (tag !== 26) {
|
|
51575
|
-
break;
|
|
51576
|
-
}
|
|
51577
|
-
message.unencryptedHost = reader.string();
|
|
51578
|
-
continue;
|
|
51579
|
-
}
|
|
51580
|
-
case 4: {
|
|
51581
|
-
if (tag !== 32) {
|
|
53395
|
+
if (tag !== 8) {
|
|
51582
53396
|
break;
|
|
51583
53397
|
}
|
|
51584
|
-
message.
|
|
53398
|
+
message.exists = reader.bool();
|
|
51585
53399
|
continue;
|
|
51586
53400
|
}
|
|
51587
53401
|
}
|
|
@@ -51593,63 +53407,46 @@ var TunnelStartResponse = {
|
|
|
51593
53407
|
return message;
|
|
51594
53408
|
},
|
|
51595
53409
|
fromJSON(object) {
|
|
51596
|
-
return {
|
|
51597
|
-
host: isSet5(object.host) ? globalThis.String(object.host) : "",
|
|
51598
|
-
port: isSet5(object.port) ? globalThis.Number(object.port) : 0,
|
|
51599
|
-
unencryptedHost: isSet5(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
|
|
51600
|
-
unencryptedPort: isSet5(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
|
|
51601
|
-
};
|
|
53410
|
+
return { exists: isSet5(object.exists) ? globalThis.Boolean(object.exists) : false };
|
|
51602
53411
|
},
|
|
51603
53412
|
toJSON(message) {
|
|
51604
53413
|
const obj = {};
|
|
51605
|
-
if (message.
|
|
51606
|
-
obj.
|
|
51607
|
-
}
|
|
51608
|
-
if (message.port !== 0) {
|
|
51609
|
-
obj.port = Math.round(message.port);
|
|
51610
|
-
}
|
|
51611
|
-
if (message.unencryptedHost !== void 0) {
|
|
51612
|
-
obj.unencryptedHost = message.unencryptedHost;
|
|
51613
|
-
}
|
|
51614
|
-
if (message.unencryptedPort !== void 0) {
|
|
51615
|
-
obj.unencryptedPort = Math.round(message.unencryptedPort);
|
|
53414
|
+
if (message.exists !== false) {
|
|
53415
|
+
obj.exists = message.exists;
|
|
51616
53416
|
}
|
|
51617
53417
|
return obj;
|
|
51618
53418
|
},
|
|
51619
53419
|
create(base) {
|
|
51620
|
-
return
|
|
53420
|
+
return TunnelStopResponse.fromPartial(base ?? {});
|
|
51621
53421
|
},
|
|
51622
53422
|
fromPartial(object) {
|
|
51623
|
-
const message =
|
|
51624
|
-
message.
|
|
51625
|
-
message.port = object.port ?? 0;
|
|
51626
|
-
message.unencryptedHost = object.unencryptedHost ?? void 0;
|
|
51627
|
-
message.unencryptedPort = object.unencryptedPort ?? void 0;
|
|
53423
|
+
const message = createBaseTunnelStopResponse();
|
|
53424
|
+
message.exists = object.exists ?? false;
|
|
51628
53425
|
return message;
|
|
51629
53426
|
}
|
|
51630
53427
|
};
|
|
51631
|
-
function
|
|
51632
|
-
return {
|
|
53428
|
+
function createBaseUploadUrlList() {
|
|
53429
|
+
return { items: [] };
|
|
51633
53430
|
}
|
|
51634
|
-
var
|
|
53431
|
+
var UploadUrlList = {
|
|
51635
53432
|
encode(message, writer = new BinaryWriter()) {
|
|
51636
|
-
|
|
51637
|
-
writer.uint32(
|
|
53433
|
+
for (const v of message.items) {
|
|
53434
|
+
writer.uint32(10).string(v);
|
|
51638
53435
|
}
|
|
51639
53436
|
return writer;
|
|
51640
53437
|
},
|
|
51641
53438
|
decode(input, length) {
|
|
51642
53439
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51643
53440
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51644
|
-
const message =
|
|
53441
|
+
const message = createBaseUploadUrlList();
|
|
51645
53442
|
while (reader.pos < end) {
|
|
51646
53443
|
const tag = reader.uint32();
|
|
51647
53444
|
switch (tag >>> 3) {
|
|
51648
53445
|
case 1: {
|
|
51649
|
-
if (tag !==
|
|
53446
|
+
if (tag !== 10) {
|
|
51650
53447
|
break;
|
|
51651
53448
|
}
|
|
51652
|
-
message.
|
|
53449
|
+
message.items.push(reader.string());
|
|
51653
53450
|
continue;
|
|
51654
53451
|
}
|
|
51655
53452
|
}
|
|
@@ -51661,89 +53458,47 @@ var TunnelStopRequest = {
|
|
|
51661
53458
|
return message;
|
|
51662
53459
|
},
|
|
51663
53460
|
fromJSON(object) {
|
|
51664
|
-
return {
|
|
53461
|
+
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => globalThis.String(e)) : [] };
|
|
51665
53462
|
},
|
|
51666
53463
|
toJSON(message) {
|
|
51667
53464
|
const obj = {};
|
|
51668
|
-
if (message.
|
|
51669
|
-
obj.
|
|
53465
|
+
if (message.items?.length) {
|
|
53466
|
+
obj.items = message.items;
|
|
51670
53467
|
}
|
|
51671
53468
|
return obj;
|
|
51672
53469
|
},
|
|
51673
53470
|
create(base) {
|
|
51674
|
-
return
|
|
53471
|
+
return UploadUrlList.fromPartial(base ?? {});
|
|
51675
53472
|
},
|
|
51676
53473
|
fromPartial(object) {
|
|
51677
|
-
const message =
|
|
51678
|
-
message.
|
|
53474
|
+
const message = createBaseUploadUrlList();
|
|
53475
|
+
message.items = object.items?.map((e) => e) || [];
|
|
51679
53476
|
return message;
|
|
51680
53477
|
}
|
|
51681
53478
|
};
|
|
51682
|
-
function
|
|
51683
|
-
return {
|
|
53479
|
+
function createBaseUserActionInfo() {
|
|
53480
|
+
return { userId: "", serviceUserId: "", timestamp: 0, requestedBy: "" };
|
|
51684
53481
|
}
|
|
51685
|
-
var
|
|
53482
|
+
var UserActionInfo = {
|
|
51686
53483
|
encode(message, writer = new BinaryWriter()) {
|
|
51687
|
-
if (message.
|
|
51688
|
-
writer.uint32(
|
|
53484
|
+
if (message.userId !== "") {
|
|
53485
|
+
writer.uint32(10).string(message.userId);
|
|
51689
53486
|
}
|
|
51690
|
-
|
|
51691
|
-
|
|
51692
|
-
decode(input, length) {
|
|
51693
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51694
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51695
|
-
const message = createBaseTunnelStopResponse();
|
|
51696
|
-
while (reader.pos < end) {
|
|
51697
|
-
const tag = reader.uint32();
|
|
51698
|
-
switch (tag >>> 3) {
|
|
51699
|
-
case 1: {
|
|
51700
|
-
if (tag !== 8) {
|
|
51701
|
-
break;
|
|
51702
|
-
}
|
|
51703
|
-
message.exists = reader.bool();
|
|
51704
|
-
continue;
|
|
51705
|
-
}
|
|
51706
|
-
}
|
|
51707
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
51708
|
-
break;
|
|
51709
|
-
}
|
|
51710
|
-
reader.skip(tag & 7);
|
|
53487
|
+
if (message.serviceUserId !== "") {
|
|
53488
|
+
writer.uint32(34).string(message.serviceUserId);
|
|
51711
53489
|
}
|
|
51712
|
-
|
|
51713
|
-
|
|
51714
|
-
fromJSON(object) {
|
|
51715
|
-
return { exists: isSet5(object.exists) ? globalThis.Boolean(object.exists) : false };
|
|
51716
|
-
},
|
|
51717
|
-
toJSON(message) {
|
|
51718
|
-
const obj = {};
|
|
51719
|
-
if (message.exists !== false) {
|
|
51720
|
-
obj.exists = message.exists;
|
|
53490
|
+
if (message.timestamp !== 0) {
|
|
53491
|
+
writer.uint32(17).double(message.timestamp);
|
|
51721
53492
|
}
|
|
51722
|
-
|
|
51723
|
-
|
|
51724
|
-
create(base) {
|
|
51725
|
-
return TunnelStopResponse.fromPartial(base ?? {});
|
|
51726
|
-
},
|
|
51727
|
-
fromPartial(object) {
|
|
51728
|
-
const message = createBaseTunnelStopResponse();
|
|
51729
|
-
message.exists = object.exists ?? false;
|
|
51730
|
-
return message;
|
|
51731
|
-
}
|
|
51732
|
-
};
|
|
51733
|
-
function createBaseUploadUrlList() {
|
|
51734
|
-
return { items: [] };
|
|
51735
|
-
}
|
|
51736
|
-
var UploadUrlList = {
|
|
51737
|
-
encode(message, writer = new BinaryWriter()) {
|
|
51738
|
-
for (const v of message.items) {
|
|
51739
|
-
writer.uint32(10).string(v);
|
|
53493
|
+
if (message.requestedBy !== "") {
|
|
53494
|
+
writer.uint32(26).string(message.requestedBy);
|
|
51740
53495
|
}
|
|
51741
53496
|
return writer;
|
|
51742
53497
|
},
|
|
51743
53498
|
decode(input, length) {
|
|
51744
53499
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
51745
53500
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
51746
|
-
const message =
|
|
53501
|
+
const message = createBaseUserActionInfo();
|
|
51747
53502
|
while (reader.pos < end) {
|
|
51748
53503
|
const tag = reader.uint32();
|
|
51749
53504
|
switch (tag >>> 3) {
|
|
@@ -51751,7 +53506,28 @@ var UploadUrlList = {
|
|
|
51751
53506
|
if (tag !== 10) {
|
|
51752
53507
|
break;
|
|
51753
53508
|
}
|
|
51754
|
-
message.
|
|
53509
|
+
message.userId = reader.string();
|
|
53510
|
+
continue;
|
|
53511
|
+
}
|
|
53512
|
+
case 4: {
|
|
53513
|
+
if (tag !== 34) {
|
|
53514
|
+
break;
|
|
53515
|
+
}
|
|
53516
|
+
message.serviceUserId = reader.string();
|
|
53517
|
+
continue;
|
|
53518
|
+
}
|
|
53519
|
+
case 2: {
|
|
53520
|
+
if (tag !== 17) {
|
|
53521
|
+
break;
|
|
53522
|
+
}
|
|
53523
|
+
message.timestamp = reader.double();
|
|
53524
|
+
continue;
|
|
53525
|
+
}
|
|
53526
|
+
case 3: {
|
|
53527
|
+
if (tag !== 26) {
|
|
53528
|
+
break;
|
|
53529
|
+
}
|
|
53530
|
+
message.requestedBy = reader.string();
|
|
51755
53531
|
continue;
|
|
51756
53532
|
}
|
|
51757
53533
|
}
|
|
@@ -51763,21 +53539,38 @@ var UploadUrlList = {
|
|
|
51763
53539
|
return message;
|
|
51764
53540
|
},
|
|
51765
53541
|
fromJSON(object) {
|
|
51766
|
-
return {
|
|
53542
|
+
return {
|
|
53543
|
+
userId: isSet5(object.userId) ? globalThis.String(object.userId) : "",
|
|
53544
|
+
serviceUserId: isSet5(object.serviceUserId) ? globalThis.String(object.serviceUserId) : "",
|
|
53545
|
+
timestamp: isSet5(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
|
|
53546
|
+
requestedBy: isSet5(object.requestedBy) ? globalThis.String(object.requestedBy) : ""
|
|
53547
|
+
};
|
|
51767
53548
|
},
|
|
51768
53549
|
toJSON(message) {
|
|
51769
53550
|
const obj = {};
|
|
51770
|
-
if (message.
|
|
51771
|
-
obj.
|
|
53551
|
+
if (message.userId !== "") {
|
|
53552
|
+
obj.userId = message.userId;
|
|
53553
|
+
}
|
|
53554
|
+
if (message.serviceUserId !== "") {
|
|
53555
|
+
obj.serviceUserId = message.serviceUserId;
|
|
53556
|
+
}
|
|
53557
|
+
if (message.timestamp !== 0) {
|
|
53558
|
+
obj.timestamp = message.timestamp;
|
|
53559
|
+
}
|
|
53560
|
+
if (message.requestedBy !== "") {
|
|
53561
|
+
obj.requestedBy = message.requestedBy;
|
|
51772
53562
|
}
|
|
51773
53563
|
return obj;
|
|
51774
53564
|
},
|
|
51775
53565
|
create(base) {
|
|
51776
|
-
return
|
|
53566
|
+
return UserActionInfo.fromPartial(base ?? {});
|
|
51777
53567
|
},
|
|
51778
53568
|
fromPartial(object) {
|
|
51779
|
-
const message =
|
|
51780
|
-
message.
|
|
53569
|
+
const message = createBaseUserActionInfo();
|
|
53570
|
+
message.userId = object.userId ?? "";
|
|
53571
|
+
message.serviceUserId = object.serviceUserId ?? "";
|
|
53572
|
+
message.timestamp = object.timestamp ?? 0;
|
|
53573
|
+
message.requestedBy = object.requestedBy ?? "";
|
|
51781
53574
|
return message;
|
|
51782
53575
|
}
|
|
51783
53576
|
};
|
|
@@ -55102,7 +56895,7 @@ var WebhookConfig = {
|
|
|
55102
56895
|
}
|
|
55103
56896
|
};
|
|
55104
56897
|
function createBaseWebhookToken() {
|
|
55105
|
-
return { tokenId: "", createdAt: 0, scoped: false };
|
|
56898
|
+
return { tokenId: "", createdAt: 0, scoped: false, name: "", createdBy: void 0 };
|
|
55106
56899
|
}
|
|
55107
56900
|
var WebhookToken = {
|
|
55108
56901
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -55115,6 +56908,12 @@ var WebhookToken = {
|
|
|
55115
56908
|
if (message.scoped !== false) {
|
|
55116
56909
|
writer.uint32(24).bool(message.scoped);
|
|
55117
56910
|
}
|
|
56911
|
+
if (message.name !== "") {
|
|
56912
|
+
writer.uint32(34).string(message.name);
|
|
56913
|
+
}
|
|
56914
|
+
if (message.createdBy !== void 0) {
|
|
56915
|
+
UserIdentity.encode(message.createdBy, writer.uint32(42).fork()).join();
|
|
56916
|
+
}
|
|
55118
56917
|
return writer;
|
|
55119
56918
|
},
|
|
55120
56919
|
decode(input, length) {
|
|
@@ -55145,6 +56944,20 @@ var WebhookToken = {
|
|
|
55145
56944
|
message.scoped = reader.bool();
|
|
55146
56945
|
continue;
|
|
55147
56946
|
}
|
|
56947
|
+
case 4: {
|
|
56948
|
+
if (tag !== 34) {
|
|
56949
|
+
break;
|
|
56950
|
+
}
|
|
56951
|
+
message.name = reader.string();
|
|
56952
|
+
continue;
|
|
56953
|
+
}
|
|
56954
|
+
case 5: {
|
|
56955
|
+
if (tag !== 42) {
|
|
56956
|
+
break;
|
|
56957
|
+
}
|
|
56958
|
+
message.createdBy = UserIdentity.decode(reader, reader.uint32());
|
|
56959
|
+
continue;
|
|
56960
|
+
}
|
|
55148
56961
|
}
|
|
55149
56962
|
if ((tag & 7) === 4 || tag === 0) {
|
|
55150
56963
|
break;
|
|
@@ -55157,7 +56970,9 @@ var WebhookToken = {
|
|
|
55157
56970
|
return {
|
|
55158
56971
|
tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
|
|
55159
56972
|
createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
|
|
55160
|
-
scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false
|
|
56973
|
+
scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false,
|
|
56974
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : "",
|
|
56975
|
+
createdBy: isSet5(object.createdBy) ? UserIdentity.fromJSON(object.createdBy) : void 0
|
|
55161
56976
|
};
|
|
55162
56977
|
},
|
|
55163
56978
|
toJSON(message) {
|
|
@@ -55171,6 +56986,12 @@ var WebhookToken = {
|
|
|
55171
56986
|
if (message.scoped !== false) {
|
|
55172
56987
|
obj.scoped = message.scoped;
|
|
55173
56988
|
}
|
|
56989
|
+
if (message.name !== "") {
|
|
56990
|
+
obj.name = message.name;
|
|
56991
|
+
}
|
|
56992
|
+
if (message.createdBy !== void 0) {
|
|
56993
|
+
obj.createdBy = UserIdentity.toJSON(message.createdBy);
|
|
56994
|
+
}
|
|
55174
56995
|
return obj;
|
|
55175
56996
|
},
|
|
55176
56997
|
create(base) {
|
|
@@ -55181,17 +57002,22 @@ var WebhookToken = {
|
|
|
55181
57002
|
message.tokenId = object.tokenId ?? "";
|
|
55182
57003
|
message.createdAt = object.createdAt ?? 0;
|
|
55183
57004
|
message.scoped = object.scoped ?? false;
|
|
57005
|
+
message.name = object.name ?? "";
|
|
57006
|
+
message.createdBy = object.createdBy !== void 0 && object.createdBy !== null ? UserIdentity.fromPartial(object.createdBy) : void 0;
|
|
55184
57007
|
return message;
|
|
55185
57008
|
}
|
|
55186
57009
|
};
|
|
55187
57010
|
function createBaseWebhookTokenCreateRequest() {
|
|
55188
|
-
return { scoped: false };
|
|
57011
|
+
return { scoped: false, name: "" };
|
|
55189
57012
|
}
|
|
55190
57013
|
var WebhookTokenCreateRequest = {
|
|
55191
57014
|
encode(message, writer = new BinaryWriter()) {
|
|
55192
57015
|
if (message.scoped !== false) {
|
|
55193
57016
|
writer.uint32(8).bool(message.scoped);
|
|
55194
57017
|
}
|
|
57018
|
+
if (message.name !== "") {
|
|
57019
|
+
writer.uint32(18).string(message.name);
|
|
57020
|
+
}
|
|
55195
57021
|
return writer;
|
|
55196
57022
|
},
|
|
55197
57023
|
decode(input, length) {
|
|
@@ -55208,6 +57034,13 @@ var WebhookTokenCreateRequest = {
|
|
|
55208
57034
|
message.scoped = reader.bool();
|
|
55209
57035
|
continue;
|
|
55210
57036
|
}
|
|
57037
|
+
case 2: {
|
|
57038
|
+
if (tag !== 18) {
|
|
57039
|
+
break;
|
|
57040
|
+
}
|
|
57041
|
+
message.name = reader.string();
|
|
57042
|
+
continue;
|
|
57043
|
+
}
|
|
55211
57044
|
}
|
|
55212
57045
|
if ((tag & 7) === 4 || tag === 0) {
|
|
55213
57046
|
break;
|
|
@@ -55217,13 +57050,19 @@ var WebhookTokenCreateRequest = {
|
|
|
55217
57050
|
return message;
|
|
55218
57051
|
},
|
|
55219
57052
|
fromJSON(object) {
|
|
55220
|
-
return {
|
|
57053
|
+
return {
|
|
57054
|
+
scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false,
|
|
57055
|
+
name: isSet5(object.name) ? globalThis.String(object.name) : ""
|
|
57056
|
+
};
|
|
55221
57057
|
},
|
|
55222
57058
|
toJSON(message) {
|
|
55223
57059
|
const obj = {};
|
|
55224
57060
|
if (message.scoped !== false) {
|
|
55225
57061
|
obj.scoped = message.scoped;
|
|
55226
57062
|
}
|
|
57063
|
+
if (message.name !== "") {
|
|
57064
|
+
obj.name = message.name;
|
|
57065
|
+
}
|
|
55227
57066
|
return obj;
|
|
55228
57067
|
},
|
|
55229
57068
|
create(base) {
|
|
@@ -55232,6 +57071,7 @@ var WebhookTokenCreateRequest = {
|
|
|
55232
57071
|
fromPartial(object) {
|
|
55233
57072
|
const message = createBaseWebhookTokenCreateRequest();
|
|
55234
57073
|
message.scoped = object.scoped ?? false;
|
|
57074
|
+
message.name = object.name ?? "";
|
|
55235
57075
|
return message;
|
|
55236
57076
|
}
|
|
55237
57077
|
};
|
|
@@ -56845,302 +58685,474 @@ var WorkspaceDashboardUrlRequest = {
|
|
|
56845
58685
|
return obj;
|
|
56846
58686
|
},
|
|
56847
58687
|
create(base) {
|
|
56848
|
-
return WorkspaceDashboardUrlRequest.fromPartial(base ?? {});
|
|
58688
|
+
return WorkspaceDashboardUrlRequest.fromPartial(base ?? {});
|
|
58689
|
+
},
|
|
58690
|
+
fromPartial(object) {
|
|
58691
|
+
const message = createBaseWorkspaceDashboardUrlRequest();
|
|
58692
|
+
message.environmentName = object.environmentName ?? "";
|
|
58693
|
+
return message;
|
|
58694
|
+
}
|
|
58695
|
+
};
|
|
58696
|
+
function createBaseWorkspaceDashboardUrlResponse() {
|
|
58697
|
+
return { url: "" };
|
|
58698
|
+
}
|
|
58699
|
+
var WorkspaceDashboardUrlResponse = {
|
|
58700
|
+
encode(message, writer = new BinaryWriter()) {
|
|
58701
|
+
if (message.url !== "") {
|
|
58702
|
+
writer.uint32(10).string(message.url);
|
|
58703
|
+
}
|
|
58704
|
+
return writer;
|
|
58705
|
+
},
|
|
58706
|
+
decode(input, length) {
|
|
58707
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58708
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
58709
|
+
const message = createBaseWorkspaceDashboardUrlResponse();
|
|
58710
|
+
while (reader.pos < end) {
|
|
58711
|
+
const tag = reader.uint32();
|
|
58712
|
+
switch (tag >>> 3) {
|
|
58713
|
+
case 1: {
|
|
58714
|
+
if (tag !== 10) {
|
|
58715
|
+
break;
|
|
58716
|
+
}
|
|
58717
|
+
message.url = reader.string();
|
|
58718
|
+
continue;
|
|
58719
|
+
}
|
|
58720
|
+
}
|
|
58721
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58722
|
+
break;
|
|
58723
|
+
}
|
|
58724
|
+
reader.skip(tag & 7);
|
|
58725
|
+
}
|
|
58726
|
+
return message;
|
|
58727
|
+
},
|
|
58728
|
+
fromJSON(object) {
|
|
58729
|
+
return { url: isSet5(object.url) ? globalThis.String(object.url) : "" };
|
|
58730
|
+
},
|
|
58731
|
+
toJSON(message) {
|
|
58732
|
+
const obj = {};
|
|
58733
|
+
if (message.url !== "") {
|
|
58734
|
+
obj.url = message.url;
|
|
58735
|
+
}
|
|
58736
|
+
return obj;
|
|
58737
|
+
},
|
|
58738
|
+
create(base) {
|
|
58739
|
+
return WorkspaceDashboardUrlResponse.fromPartial(base ?? {});
|
|
58740
|
+
},
|
|
58741
|
+
fromPartial(object) {
|
|
58742
|
+
const message = createBaseWorkspaceDashboardUrlResponse();
|
|
58743
|
+
message.url = object.url ?? "";
|
|
58744
|
+
return message;
|
|
58745
|
+
}
|
|
58746
|
+
};
|
|
58747
|
+
function createBaseWorkspaceMembersListItem() {
|
|
58748
|
+
return {
|
|
58749
|
+
memberId: "",
|
|
58750
|
+
memberDisplayname: "",
|
|
58751
|
+
memberRole: 0,
|
|
58752
|
+
joinedAt: 0,
|
|
58753
|
+
lastActiveAt: 0,
|
|
58754
|
+
deletedAt: 0,
|
|
58755
|
+
userId: "",
|
|
58756
|
+
identityProviderType: 0,
|
|
58757
|
+
email: "",
|
|
58758
|
+
avatarUrl: "",
|
|
58759
|
+
idpExternalId: ""
|
|
58760
|
+
};
|
|
58761
|
+
}
|
|
58762
|
+
var WorkspaceMembersListItem = {
|
|
58763
|
+
encode(message, writer = new BinaryWriter()) {
|
|
58764
|
+
if (message.memberId !== "") {
|
|
58765
|
+
writer.uint32(10).string(message.memberId);
|
|
58766
|
+
}
|
|
58767
|
+
if (message.memberDisplayname !== "") {
|
|
58768
|
+
writer.uint32(18).string(message.memberDisplayname);
|
|
58769
|
+
}
|
|
58770
|
+
if (message.memberRole !== 0) {
|
|
58771
|
+
writer.uint32(24).int32(message.memberRole);
|
|
58772
|
+
}
|
|
58773
|
+
if (message.joinedAt !== 0) {
|
|
58774
|
+
writer.uint32(33).double(message.joinedAt);
|
|
58775
|
+
}
|
|
58776
|
+
if (message.lastActiveAt !== 0) {
|
|
58777
|
+
writer.uint32(41).double(message.lastActiveAt);
|
|
58778
|
+
}
|
|
58779
|
+
if (message.deletedAt !== 0) {
|
|
58780
|
+
writer.uint32(57).double(message.deletedAt);
|
|
58781
|
+
}
|
|
58782
|
+
if (message.userId !== "") {
|
|
58783
|
+
writer.uint32(66).string(message.userId);
|
|
58784
|
+
}
|
|
58785
|
+
if (message.identityProviderType !== 0) {
|
|
58786
|
+
writer.uint32(72).int32(message.identityProviderType);
|
|
58787
|
+
}
|
|
58788
|
+
if (message.email !== "") {
|
|
58789
|
+
writer.uint32(82).string(message.email);
|
|
58790
|
+
}
|
|
58791
|
+
if (message.avatarUrl !== "") {
|
|
58792
|
+
writer.uint32(90).string(message.avatarUrl);
|
|
58793
|
+
}
|
|
58794
|
+
if (message.idpExternalId !== "") {
|
|
58795
|
+
writer.uint32(98).string(message.idpExternalId);
|
|
58796
|
+
}
|
|
58797
|
+
return writer;
|
|
58798
|
+
},
|
|
58799
|
+
decode(input, length) {
|
|
58800
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58801
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
58802
|
+
const message = createBaseWorkspaceMembersListItem();
|
|
58803
|
+
while (reader.pos < end) {
|
|
58804
|
+
const tag = reader.uint32();
|
|
58805
|
+
switch (tag >>> 3) {
|
|
58806
|
+
case 1: {
|
|
58807
|
+
if (tag !== 10) {
|
|
58808
|
+
break;
|
|
58809
|
+
}
|
|
58810
|
+
message.memberId = reader.string();
|
|
58811
|
+
continue;
|
|
58812
|
+
}
|
|
58813
|
+
case 2: {
|
|
58814
|
+
if (tag !== 18) {
|
|
58815
|
+
break;
|
|
58816
|
+
}
|
|
58817
|
+
message.memberDisplayname = reader.string();
|
|
58818
|
+
continue;
|
|
58819
|
+
}
|
|
58820
|
+
case 3: {
|
|
58821
|
+
if (tag !== 24) {
|
|
58822
|
+
break;
|
|
58823
|
+
}
|
|
58824
|
+
message.memberRole = reader.int32();
|
|
58825
|
+
continue;
|
|
58826
|
+
}
|
|
58827
|
+
case 4: {
|
|
58828
|
+
if (tag !== 33) {
|
|
58829
|
+
break;
|
|
58830
|
+
}
|
|
58831
|
+
message.joinedAt = reader.double();
|
|
58832
|
+
continue;
|
|
58833
|
+
}
|
|
58834
|
+
case 5: {
|
|
58835
|
+
if (tag !== 41) {
|
|
58836
|
+
break;
|
|
58837
|
+
}
|
|
58838
|
+
message.lastActiveAt = reader.double();
|
|
58839
|
+
continue;
|
|
58840
|
+
}
|
|
58841
|
+
case 7: {
|
|
58842
|
+
if (tag !== 57) {
|
|
58843
|
+
break;
|
|
58844
|
+
}
|
|
58845
|
+
message.deletedAt = reader.double();
|
|
58846
|
+
continue;
|
|
58847
|
+
}
|
|
58848
|
+
case 8: {
|
|
58849
|
+
if (tag !== 66) {
|
|
58850
|
+
break;
|
|
58851
|
+
}
|
|
58852
|
+
message.userId = reader.string();
|
|
58853
|
+
continue;
|
|
58854
|
+
}
|
|
58855
|
+
case 9: {
|
|
58856
|
+
if (tag !== 72) {
|
|
58857
|
+
break;
|
|
58858
|
+
}
|
|
58859
|
+
message.identityProviderType = reader.int32();
|
|
58860
|
+
continue;
|
|
58861
|
+
}
|
|
58862
|
+
case 10: {
|
|
58863
|
+
if (tag !== 82) {
|
|
58864
|
+
break;
|
|
58865
|
+
}
|
|
58866
|
+
message.email = reader.string();
|
|
58867
|
+
continue;
|
|
58868
|
+
}
|
|
58869
|
+
case 11: {
|
|
58870
|
+
if (tag !== 90) {
|
|
58871
|
+
break;
|
|
58872
|
+
}
|
|
58873
|
+
message.avatarUrl = reader.string();
|
|
58874
|
+
continue;
|
|
58875
|
+
}
|
|
58876
|
+
case 12: {
|
|
58877
|
+
if (tag !== 98) {
|
|
58878
|
+
break;
|
|
58879
|
+
}
|
|
58880
|
+
message.idpExternalId = reader.string();
|
|
58881
|
+
continue;
|
|
58882
|
+
}
|
|
58883
|
+
}
|
|
58884
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58885
|
+
break;
|
|
58886
|
+
}
|
|
58887
|
+
reader.skip(tag & 7);
|
|
58888
|
+
}
|
|
58889
|
+
return message;
|
|
58890
|
+
},
|
|
58891
|
+
fromJSON(object) {
|
|
58892
|
+
return {
|
|
58893
|
+
memberId: isSet5(object.memberId) ? globalThis.String(object.memberId) : "",
|
|
58894
|
+
memberDisplayname: isSet5(object.memberDisplayname) ? globalThis.String(object.memberDisplayname) : "",
|
|
58895
|
+
memberRole: isSet5(object.memberRole) ? memberRoleFromJSON(object.memberRole) : 0,
|
|
58896
|
+
joinedAt: isSet5(object.joinedAt) ? globalThis.Number(object.joinedAt) : 0,
|
|
58897
|
+
lastActiveAt: isSet5(object.lastActiveAt) ? globalThis.Number(object.lastActiveAt) : 0,
|
|
58898
|
+
deletedAt: isSet5(object.deletedAt) ? globalThis.Number(object.deletedAt) : 0,
|
|
58899
|
+
userId: isSet5(object.userId) ? globalThis.String(object.userId) : "",
|
|
58900
|
+
identityProviderType: isSet5(object.identityProviderType) ? identityProviderTypeFromJSON(object.identityProviderType) : 0,
|
|
58901
|
+
email: isSet5(object.email) ? globalThis.String(object.email) : "",
|
|
58902
|
+
avatarUrl: isSet5(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
|
|
58903
|
+
idpExternalId: isSet5(object.idpExternalId) ? globalThis.String(object.idpExternalId) : ""
|
|
58904
|
+
};
|
|
58905
|
+
},
|
|
58906
|
+
toJSON(message) {
|
|
58907
|
+
const obj = {};
|
|
58908
|
+
if (message.memberId !== "") {
|
|
58909
|
+
obj.memberId = message.memberId;
|
|
58910
|
+
}
|
|
58911
|
+
if (message.memberDisplayname !== "") {
|
|
58912
|
+
obj.memberDisplayname = message.memberDisplayname;
|
|
58913
|
+
}
|
|
58914
|
+
if (message.memberRole !== 0) {
|
|
58915
|
+
obj.memberRole = memberRoleToJSON(message.memberRole);
|
|
58916
|
+
}
|
|
58917
|
+
if (message.joinedAt !== 0) {
|
|
58918
|
+
obj.joinedAt = message.joinedAt;
|
|
58919
|
+
}
|
|
58920
|
+
if (message.lastActiveAt !== 0) {
|
|
58921
|
+
obj.lastActiveAt = message.lastActiveAt;
|
|
58922
|
+
}
|
|
58923
|
+
if (message.deletedAt !== 0) {
|
|
58924
|
+
obj.deletedAt = message.deletedAt;
|
|
58925
|
+
}
|
|
58926
|
+
if (message.userId !== "") {
|
|
58927
|
+
obj.userId = message.userId;
|
|
58928
|
+
}
|
|
58929
|
+
if (message.identityProviderType !== 0) {
|
|
58930
|
+
obj.identityProviderType = identityProviderTypeToJSON(message.identityProviderType);
|
|
58931
|
+
}
|
|
58932
|
+
if (message.email !== "") {
|
|
58933
|
+
obj.email = message.email;
|
|
58934
|
+
}
|
|
58935
|
+
if (message.avatarUrl !== "") {
|
|
58936
|
+
obj.avatarUrl = message.avatarUrl;
|
|
58937
|
+
}
|
|
58938
|
+
if (message.idpExternalId !== "") {
|
|
58939
|
+
obj.idpExternalId = message.idpExternalId;
|
|
58940
|
+
}
|
|
58941
|
+
return obj;
|
|
58942
|
+
},
|
|
58943
|
+
create(base) {
|
|
58944
|
+
return WorkspaceMembersListItem.fromPartial(base ?? {});
|
|
58945
|
+
},
|
|
58946
|
+
fromPartial(object) {
|
|
58947
|
+
const message = createBaseWorkspaceMembersListItem();
|
|
58948
|
+
message.memberId = object.memberId ?? "";
|
|
58949
|
+
message.memberDisplayname = object.memberDisplayname ?? "";
|
|
58950
|
+
message.memberRole = object.memberRole ?? 0;
|
|
58951
|
+
message.joinedAt = object.joinedAt ?? 0;
|
|
58952
|
+
message.lastActiveAt = object.lastActiveAt ?? 0;
|
|
58953
|
+
message.deletedAt = object.deletedAt ?? 0;
|
|
58954
|
+
message.userId = object.userId ?? "";
|
|
58955
|
+
message.identityProviderType = object.identityProviderType ?? 0;
|
|
58956
|
+
message.email = object.email ?? "";
|
|
58957
|
+
message.avatarUrl = object.avatarUrl ?? "";
|
|
58958
|
+
message.idpExternalId = object.idpExternalId ?? "";
|
|
58959
|
+
return message;
|
|
58960
|
+
}
|
|
58961
|
+
};
|
|
58962
|
+
function createBaseWorkspaceMembersListResponse() {
|
|
58963
|
+
return { members: [] };
|
|
58964
|
+
}
|
|
58965
|
+
var WorkspaceMembersListResponse = {
|
|
58966
|
+
encode(message, writer = new BinaryWriter()) {
|
|
58967
|
+
for (const v of message.members) {
|
|
58968
|
+
WorkspaceMembersListItem.encode(v, writer.uint32(10).fork()).join();
|
|
58969
|
+
}
|
|
58970
|
+
return writer;
|
|
58971
|
+
},
|
|
58972
|
+
decode(input, length) {
|
|
58973
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
58974
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
58975
|
+
const message = createBaseWorkspaceMembersListResponse();
|
|
58976
|
+
while (reader.pos < end) {
|
|
58977
|
+
const tag = reader.uint32();
|
|
58978
|
+
switch (tag >>> 3) {
|
|
58979
|
+
case 1: {
|
|
58980
|
+
if (tag !== 10) {
|
|
58981
|
+
break;
|
|
58982
|
+
}
|
|
58983
|
+
message.members.push(WorkspaceMembersListItem.decode(reader, reader.uint32()));
|
|
58984
|
+
continue;
|
|
58985
|
+
}
|
|
58986
|
+
}
|
|
58987
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58988
|
+
break;
|
|
58989
|
+
}
|
|
58990
|
+
reader.skip(tag & 7);
|
|
58991
|
+
}
|
|
58992
|
+
return message;
|
|
58993
|
+
},
|
|
58994
|
+
fromJSON(object) {
|
|
58995
|
+
return {
|
|
58996
|
+
members: globalThis.Array.isArray(object?.members) ? object.members.map((e) => WorkspaceMembersListItem.fromJSON(e)) : []
|
|
58997
|
+
};
|
|
58998
|
+
},
|
|
58999
|
+
toJSON(message) {
|
|
59000
|
+
const obj = {};
|
|
59001
|
+
if (message.members?.length) {
|
|
59002
|
+
obj.members = message.members.map((e) => WorkspaceMembersListItem.toJSON(e));
|
|
59003
|
+
}
|
|
59004
|
+
return obj;
|
|
59005
|
+
},
|
|
59006
|
+
create(base) {
|
|
59007
|
+
return WorkspaceMembersListResponse.fromPartial(base ?? {});
|
|
59008
|
+
},
|
|
59009
|
+
fromPartial(object) {
|
|
59010
|
+
const message = createBaseWorkspaceMembersListResponse();
|
|
59011
|
+
message.members = object.members?.map((e) => WorkspaceMembersListItem.fromPartial(e)) || [];
|
|
59012
|
+
return message;
|
|
59013
|
+
}
|
|
59014
|
+
};
|
|
59015
|
+
function createBaseWorkspaceNameLookupResponse() {
|
|
59016
|
+
return { workspaceName: "", username: "" };
|
|
59017
|
+
}
|
|
59018
|
+
var WorkspaceNameLookupResponse = {
|
|
59019
|
+
encode(message, writer = new BinaryWriter()) {
|
|
59020
|
+
if (message.workspaceName !== "") {
|
|
59021
|
+
writer.uint32(10).string(message.workspaceName);
|
|
59022
|
+
}
|
|
59023
|
+
if (message.username !== "") {
|
|
59024
|
+
writer.uint32(18).string(message.username);
|
|
59025
|
+
}
|
|
59026
|
+
return writer;
|
|
59027
|
+
},
|
|
59028
|
+
decode(input, length) {
|
|
59029
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
59030
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
59031
|
+
const message = createBaseWorkspaceNameLookupResponse();
|
|
59032
|
+
while (reader.pos < end) {
|
|
59033
|
+
const tag = reader.uint32();
|
|
59034
|
+
switch (tag >>> 3) {
|
|
59035
|
+
case 1: {
|
|
59036
|
+
if (tag !== 10) {
|
|
59037
|
+
break;
|
|
59038
|
+
}
|
|
59039
|
+
message.workspaceName = reader.string();
|
|
59040
|
+
continue;
|
|
59041
|
+
}
|
|
59042
|
+
case 2: {
|
|
59043
|
+
if (tag !== 18) {
|
|
59044
|
+
break;
|
|
59045
|
+
}
|
|
59046
|
+
message.username = reader.string();
|
|
59047
|
+
continue;
|
|
59048
|
+
}
|
|
59049
|
+
}
|
|
59050
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59051
|
+
break;
|
|
59052
|
+
}
|
|
59053
|
+
reader.skip(tag & 7);
|
|
59054
|
+
}
|
|
59055
|
+
return message;
|
|
59056
|
+
},
|
|
59057
|
+
fromJSON(object) {
|
|
59058
|
+
return {
|
|
59059
|
+
workspaceName: isSet5(object.workspaceName) ? globalThis.String(object.workspaceName) : "",
|
|
59060
|
+
username: isSet5(object.username) ? globalThis.String(object.username) : ""
|
|
59061
|
+
};
|
|
59062
|
+
},
|
|
59063
|
+
toJSON(message) {
|
|
59064
|
+
const obj = {};
|
|
59065
|
+
if (message.workspaceName !== "") {
|
|
59066
|
+
obj.workspaceName = message.workspaceName;
|
|
59067
|
+
}
|
|
59068
|
+
if (message.username !== "") {
|
|
59069
|
+
obj.username = message.username;
|
|
59070
|
+
}
|
|
59071
|
+
return obj;
|
|
59072
|
+
},
|
|
59073
|
+
create(base) {
|
|
59074
|
+
return WorkspaceNameLookupResponse.fromPartial(base ?? {});
|
|
59075
|
+
},
|
|
59076
|
+
fromPartial(object) {
|
|
59077
|
+
const message = createBaseWorkspaceNameLookupResponse();
|
|
59078
|
+
message.workspaceName = object.workspaceName ?? "";
|
|
59079
|
+
message.username = object.username ?? "";
|
|
59080
|
+
return message;
|
|
59081
|
+
}
|
|
59082
|
+
};
|
|
59083
|
+
function createBaseWorkspaceSetDefaultEnvironmentRequest() {
|
|
59084
|
+
return { environmentName: "" };
|
|
59085
|
+
}
|
|
59086
|
+
var WorkspaceSetDefaultEnvironmentRequest = {
|
|
59087
|
+
encode(message, writer = new BinaryWriter()) {
|
|
59088
|
+
if (message.environmentName !== "") {
|
|
59089
|
+
writer.uint32(10).string(message.environmentName);
|
|
59090
|
+
}
|
|
59091
|
+
return writer;
|
|
59092
|
+
},
|
|
59093
|
+
decode(input, length) {
|
|
59094
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
59095
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
59096
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
|
|
59097
|
+
while (reader.pos < end) {
|
|
59098
|
+
const tag = reader.uint32();
|
|
59099
|
+
switch (tag >>> 3) {
|
|
59100
|
+
case 1: {
|
|
59101
|
+
if (tag !== 10) {
|
|
59102
|
+
break;
|
|
59103
|
+
}
|
|
59104
|
+
message.environmentName = reader.string();
|
|
59105
|
+
continue;
|
|
59106
|
+
}
|
|
59107
|
+
}
|
|
59108
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59109
|
+
break;
|
|
59110
|
+
}
|
|
59111
|
+
reader.skip(tag & 7);
|
|
59112
|
+
}
|
|
59113
|
+
return message;
|
|
59114
|
+
},
|
|
59115
|
+
fromJSON(object) {
|
|
59116
|
+
return { environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "" };
|
|
59117
|
+
},
|
|
59118
|
+
toJSON(message) {
|
|
59119
|
+
const obj = {};
|
|
59120
|
+
if (message.environmentName !== "") {
|
|
59121
|
+
obj.environmentName = message.environmentName;
|
|
59122
|
+
}
|
|
59123
|
+
return obj;
|
|
59124
|
+
},
|
|
59125
|
+
create(base) {
|
|
59126
|
+
return WorkspaceSetDefaultEnvironmentRequest.fromPartial(base ?? {});
|
|
56849
59127
|
},
|
|
56850
59128
|
fromPartial(object) {
|
|
56851
|
-
const message =
|
|
59129
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
|
|
56852
59130
|
message.environmentName = object.environmentName ?? "";
|
|
56853
59131
|
return message;
|
|
56854
59132
|
}
|
|
56855
59133
|
};
|
|
56856
|
-
function
|
|
56857
|
-
return {
|
|
56858
|
-
}
|
|
56859
|
-
var WorkspaceDashboardUrlResponse = {
|
|
56860
|
-
encode(message, writer = new BinaryWriter()) {
|
|
56861
|
-
if (message.url !== "") {
|
|
56862
|
-
writer.uint32(10).string(message.url);
|
|
56863
|
-
}
|
|
56864
|
-
return writer;
|
|
56865
|
-
},
|
|
56866
|
-
decode(input, length) {
|
|
56867
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
56868
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
56869
|
-
const message = createBaseWorkspaceDashboardUrlResponse();
|
|
56870
|
-
while (reader.pos < end) {
|
|
56871
|
-
const tag = reader.uint32();
|
|
56872
|
-
switch (tag >>> 3) {
|
|
56873
|
-
case 1: {
|
|
56874
|
-
if (tag !== 10) {
|
|
56875
|
-
break;
|
|
56876
|
-
}
|
|
56877
|
-
message.url = reader.string();
|
|
56878
|
-
continue;
|
|
56879
|
-
}
|
|
56880
|
-
}
|
|
56881
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
56882
|
-
break;
|
|
56883
|
-
}
|
|
56884
|
-
reader.skip(tag & 7);
|
|
56885
|
-
}
|
|
56886
|
-
return message;
|
|
56887
|
-
},
|
|
56888
|
-
fromJSON(object) {
|
|
56889
|
-
return { url: isSet5(object.url) ? globalThis.String(object.url) : "" };
|
|
56890
|
-
},
|
|
56891
|
-
toJSON(message) {
|
|
56892
|
-
const obj = {};
|
|
56893
|
-
if (message.url !== "") {
|
|
56894
|
-
obj.url = message.url;
|
|
56895
|
-
}
|
|
56896
|
-
return obj;
|
|
56897
|
-
},
|
|
56898
|
-
create(base) {
|
|
56899
|
-
return WorkspaceDashboardUrlResponse.fromPartial(base ?? {});
|
|
56900
|
-
},
|
|
56901
|
-
fromPartial(object) {
|
|
56902
|
-
const message = createBaseWorkspaceDashboardUrlResponse();
|
|
56903
|
-
message.url = object.url ?? "";
|
|
56904
|
-
return message;
|
|
56905
|
-
}
|
|
56906
|
-
};
|
|
56907
|
-
function createBaseWorkspaceMembersListItem() {
|
|
56908
|
-
return {
|
|
56909
|
-
memberId: "",
|
|
56910
|
-
memberDisplayname: "",
|
|
56911
|
-
memberRole: 0,
|
|
56912
|
-
joinedAt: 0,
|
|
56913
|
-
lastActiveAt: 0,
|
|
56914
|
-
deletedAt: 0,
|
|
56915
|
-
userId: "",
|
|
56916
|
-
identityProviderType: 0,
|
|
56917
|
-
email: "",
|
|
56918
|
-
avatarUrl: "",
|
|
56919
|
-
idpExternalId: ""
|
|
56920
|
-
};
|
|
59134
|
+
function createBaseWorkspaceSetDefaultEnvironmentSettingsRequest() {
|
|
59135
|
+
return { blockUnauthenticatedResources: void 0 };
|
|
56921
59136
|
}
|
|
56922
|
-
var
|
|
59137
|
+
var WorkspaceSetDefaultEnvironmentSettingsRequest = {
|
|
56923
59138
|
encode(message, writer = new BinaryWriter()) {
|
|
56924
|
-
if (message.
|
|
56925
|
-
writer.uint32(
|
|
56926
|
-
}
|
|
56927
|
-
if (message.memberDisplayname !== "") {
|
|
56928
|
-
writer.uint32(18).string(message.memberDisplayname);
|
|
56929
|
-
}
|
|
56930
|
-
if (message.memberRole !== 0) {
|
|
56931
|
-
writer.uint32(24).int32(message.memberRole);
|
|
56932
|
-
}
|
|
56933
|
-
if (message.joinedAt !== 0) {
|
|
56934
|
-
writer.uint32(33).double(message.joinedAt);
|
|
56935
|
-
}
|
|
56936
|
-
if (message.lastActiveAt !== 0) {
|
|
56937
|
-
writer.uint32(41).double(message.lastActiveAt);
|
|
56938
|
-
}
|
|
56939
|
-
if (message.deletedAt !== 0) {
|
|
56940
|
-
writer.uint32(57).double(message.deletedAt);
|
|
56941
|
-
}
|
|
56942
|
-
if (message.userId !== "") {
|
|
56943
|
-
writer.uint32(66).string(message.userId);
|
|
56944
|
-
}
|
|
56945
|
-
if (message.identityProviderType !== 0) {
|
|
56946
|
-
writer.uint32(72).int32(message.identityProviderType);
|
|
56947
|
-
}
|
|
56948
|
-
if (message.email !== "") {
|
|
56949
|
-
writer.uint32(82).string(message.email);
|
|
56950
|
-
}
|
|
56951
|
-
if (message.avatarUrl !== "") {
|
|
56952
|
-
writer.uint32(90).string(message.avatarUrl);
|
|
56953
|
-
}
|
|
56954
|
-
if (message.idpExternalId !== "") {
|
|
56955
|
-
writer.uint32(98).string(message.idpExternalId);
|
|
56956
|
-
}
|
|
56957
|
-
return writer;
|
|
56958
|
-
},
|
|
56959
|
-
decode(input, length) {
|
|
56960
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
56961
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
56962
|
-
const message = createBaseWorkspaceMembersListItem();
|
|
56963
|
-
while (reader.pos < end) {
|
|
56964
|
-
const tag = reader.uint32();
|
|
56965
|
-
switch (tag >>> 3) {
|
|
56966
|
-
case 1: {
|
|
56967
|
-
if (tag !== 10) {
|
|
56968
|
-
break;
|
|
56969
|
-
}
|
|
56970
|
-
message.memberId = reader.string();
|
|
56971
|
-
continue;
|
|
56972
|
-
}
|
|
56973
|
-
case 2: {
|
|
56974
|
-
if (tag !== 18) {
|
|
56975
|
-
break;
|
|
56976
|
-
}
|
|
56977
|
-
message.memberDisplayname = reader.string();
|
|
56978
|
-
continue;
|
|
56979
|
-
}
|
|
56980
|
-
case 3: {
|
|
56981
|
-
if (tag !== 24) {
|
|
56982
|
-
break;
|
|
56983
|
-
}
|
|
56984
|
-
message.memberRole = reader.int32();
|
|
56985
|
-
continue;
|
|
56986
|
-
}
|
|
56987
|
-
case 4: {
|
|
56988
|
-
if (tag !== 33) {
|
|
56989
|
-
break;
|
|
56990
|
-
}
|
|
56991
|
-
message.joinedAt = reader.double();
|
|
56992
|
-
continue;
|
|
56993
|
-
}
|
|
56994
|
-
case 5: {
|
|
56995
|
-
if (tag !== 41) {
|
|
56996
|
-
break;
|
|
56997
|
-
}
|
|
56998
|
-
message.lastActiveAt = reader.double();
|
|
56999
|
-
continue;
|
|
57000
|
-
}
|
|
57001
|
-
case 7: {
|
|
57002
|
-
if (tag !== 57) {
|
|
57003
|
-
break;
|
|
57004
|
-
}
|
|
57005
|
-
message.deletedAt = reader.double();
|
|
57006
|
-
continue;
|
|
57007
|
-
}
|
|
57008
|
-
case 8: {
|
|
57009
|
-
if (tag !== 66) {
|
|
57010
|
-
break;
|
|
57011
|
-
}
|
|
57012
|
-
message.userId = reader.string();
|
|
57013
|
-
continue;
|
|
57014
|
-
}
|
|
57015
|
-
case 9: {
|
|
57016
|
-
if (tag !== 72) {
|
|
57017
|
-
break;
|
|
57018
|
-
}
|
|
57019
|
-
message.identityProviderType = reader.int32();
|
|
57020
|
-
continue;
|
|
57021
|
-
}
|
|
57022
|
-
case 10: {
|
|
57023
|
-
if (tag !== 82) {
|
|
57024
|
-
break;
|
|
57025
|
-
}
|
|
57026
|
-
message.email = reader.string();
|
|
57027
|
-
continue;
|
|
57028
|
-
}
|
|
57029
|
-
case 11: {
|
|
57030
|
-
if (tag !== 90) {
|
|
57031
|
-
break;
|
|
57032
|
-
}
|
|
57033
|
-
message.avatarUrl = reader.string();
|
|
57034
|
-
continue;
|
|
57035
|
-
}
|
|
57036
|
-
case 12: {
|
|
57037
|
-
if (tag !== 98) {
|
|
57038
|
-
break;
|
|
57039
|
-
}
|
|
57040
|
-
message.idpExternalId = reader.string();
|
|
57041
|
-
continue;
|
|
57042
|
-
}
|
|
57043
|
-
}
|
|
57044
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
57045
|
-
break;
|
|
57046
|
-
}
|
|
57047
|
-
reader.skip(tag & 7);
|
|
57048
|
-
}
|
|
57049
|
-
return message;
|
|
57050
|
-
},
|
|
57051
|
-
fromJSON(object) {
|
|
57052
|
-
return {
|
|
57053
|
-
memberId: isSet5(object.memberId) ? globalThis.String(object.memberId) : "",
|
|
57054
|
-
memberDisplayname: isSet5(object.memberDisplayname) ? globalThis.String(object.memberDisplayname) : "",
|
|
57055
|
-
memberRole: isSet5(object.memberRole) ? memberRoleFromJSON(object.memberRole) : 0,
|
|
57056
|
-
joinedAt: isSet5(object.joinedAt) ? globalThis.Number(object.joinedAt) : 0,
|
|
57057
|
-
lastActiveAt: isSet5(object.lastActiveAt) ? globalThis.Number(object.lastActiveAt) : 0,
|
|
57058
|
-
deletedAt: isSet5(object.deletedAt) ? globalThis.Number(object.deletedAt) : 0,
|
|
57059
|
-
userId: isSet5(object.userId) ? globalThis.String(object.userId) : "",
|
|
57060
|
-
identityProviderType: isSet5(object.identityProviderType) ? identityProviderTypeFromJSON(object.identityProviderType) : 0,
|
|
57061
|
-
email: isSet5(object.email) ? globalThis.String(object.email) : "",
|
|
57062
|
-
avatarUrl: isSet5(object.avatarUrl) ? globalThis.String(object.avatarUrl) : "",
|
|
57063
|
-
idpExternalId: isSet5(object.idpExternalId) ? globalThis.String(object.idpExternalId) : ""
|
|
57064
|
-
};
|
|
57065
|
-
},
|
|
57066
|
-
toJSON(message) {
|
|
57067
|
-
const obj = {};
|
|
57068
|
-
if (message.memberId !== "") {
|
|
57069
|
-
obj.memberId = message.memberId;
|
|
57070
|
-
}
|
|
57071
|
-
if (message.memberDisplayname !== "") {
|
|
57072
|
-
obj.memberDisplayname = message.memberDisplayname;
|
|
57073
|
-
}
|
|
57074
|
-
if (message.memberRole !== 0) {
|
|
57075
|
-
obj.memberRole = memberRoleToJSON(message.memberRole);
|
|
57076
|
-
}
|
|
57077
|
-
if (message.joinedAt !== 0) {
|
|
57078
|
-
obj.joinedAt = message.joinedAt;
|
|
57079
|
-
}
|
|
57080
|
-
if (message.lastActiveAt !== 0) {
|
|
57081
|
-
obj.lastActiveAt = message.lastActiveAt;
|
|
57082
|
-
}
|
|
57083
|
-
if (message.deletedAt !== 0) {
|
|
57084
|
-
obj.deletedAt = message.deletedAt;
|
|
57085
|
-
}
|
|
57086
|
-
if (message.userId !== "") {
|
|
57087
|
-
obj.userId = message.userId;
|
|
57088
|
-
}
|
|
57089
|
-
if (message.identityProviderType !== 0) {
|
|
57090
|
-
obj.identityProviderType = identityProviderTypeToJSON(message.identityProviderType);
|
|
57091
|
-
}
|
|
57092
|
-
if (message.email !== "") {
|
|
57093
|
-
obj.email = message.email;
|
|
57094
|
-
}
|
|
57095
|
-
if (message.avatarUrl !== "") {
|
|
57096
|
-
obj.avatarUrl = message.avatarUrl;
|
|
57097
|
-
}
|
|
57098
|
-
if (message.idpExternalId !== "") {
|
|
57099
|
-
obj.idpExternalId = message.idpExternalId;
|
|
57100
|
-
}
|
|
57101
|
-
return obj;
|
|
57102
|
-
},
|
|
57103
|
-
create(base) {
|
|
57104
|
-
return WorkspaceMembersListItem.fromPartial(base ?? {});
|
|
57105
|
-
},
|
|
57106
|
-
fromPartial(object) {
|
|
57107
|
-
const message = createBaseWorkspaceMembersListItem();
|
|
57108
|
-
message.memberId = object.memberId ?? "";
|
|
57109
|
-
message.memberDisplayname = object.memberDisplayname ?? "";
|
|
57110
|
-
message.memberRole = object.memberRole ?? 0;
|
|
57111
|
-
message.joinedAt = object.joinedAt ?? 0;
|
|
57112
|
-
message.lastActiveAt = object.lastActiveAt ?? 0;
|
|
57113
|
-
message.deletedAt = object.deletedAt ?? 0;
|
|
57114
|
-
message.userId = object.userId ?? "";
|
|
57115
|
-
message.identityProviderType = object.identityProviderType ?? 0;
|
|
57116
|
-
message.email = object.email ?? "";
|
|
57117
|
-
message.avatarUrl = object.avatarUrl ?? "";
|
|
57118
|
-
message.idpExternalId = object.idpExternalId ?? "";
|
|
57119
|
-
return message;
|
|
57120
|
-
}
|
|
57121
|
-
};
|
|
57122
|
-
function createBaseWorkspaceMembersListResponse() {
|
|
57123
|
-
return { members: [] };
|
|
57124
|
-
}
|
|
57125
|
-
var WorkspaceMembersListResponse = {
|
|
57126
|
-
encode(message, writer = new BinaryWriter()) {
|
|
57127
|
-
for (const v of message.members) {
|
|
57128
|
-
WorkspaceMembersListItem.encode(v, writer.uint32(10).fork()).join();
|
|
59139
|
+
if (message.blockUnauthenticatedResources !== void 0) {
|
|
59140
|
+
writer.uint32(8).int32(message.blockUnauthenticatedResources);
|
|
57129
59141
|
}
|
|
57130
59142
|
return writer;
|
|
57131
59143
|
},
|
|
57132
59144
|
decode(input, length) {
|
|
57133
59145
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
57134
59146
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
57135
|
-
const message =
|
|
59147
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentSettingsRequest();
|
|
57136
59148
|
while (reader.pos < end) {
|
|
57137
59149
|
const tag = reader.uint32();
|
|
57138
59150
|
switch (tag >>> 3) {
|
|
57139
59151
|
case 1: {
|
|
57140
|
-
if (tag !==
|
|
59152
|
+
if (tag !== 8) {
|
|
57141
59153
|
break;
|
|
57142
59154
|
}
|
|
57143
|
-
message.
|
|
59155
|
+
message.blockUnauthenticatedResources = reader.int32();
|
|
57144
59156
|
continue;
|
|
57145
59157
|
}
|
|
57146
59158
|
}
|
|
@@ -57153,42 +59165,41 @@ var WorkspaceMembersListResponse = {
|
|
|
57153
59165
|
},
|
|
57154
59166
|
fromJSON(object) {
|
|
57155
59167
|
return {
|
|
57156
|
-
|
|
59168
|
+
blockUnauthenticatedResources: isSet5(object.blockUnauthenticatedResources) ? environmentBlockUnauthenticatedResourcesFromJSON(object.blockUnauthenticatedResources) : void 0
|
|
57157
59169
|
};
|
|
57158
59170
|
},
|
|
57159
59171
|
toJSON(message) {
|
|
57160
59172
|
const obj = {};
|
|
57161
|
-
if (message.
|
|
57162
|
-
obj.
|
|
59173
|
+
if (message.blockUnauthenticatedResources !== void 0) {
|
|
59174
|
+
obj.blockUnauthenticatedResources = environmentBlockUnauthenticatedResourcesToJSON(
|
|
59175
|
+
message.blockUnauthenticatedResources
|
|
59176
|
+
);
|
|
57163
59177
|
}
|
|
57164
59178
|
return obj;
|
|
57165
59179
|
},
|
|
57166
59180
|
create(base) {
|
|
57167
|
-
return
|
|
59181
|
+
return WorkspaceSetDefaultEnvironmentSettingsRequest.fromPartial(base ?? {});
|
|
57168
59182
|
},
|
|
57169
59183
|
fromPartial(object) {
|
|
57170
|
-
const message =
|
|
57171
|
-
message.
|
|
59184
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentSettingsRequest();
|
|
59185
|
+
message.blockUnauthenticatedResources = object.blockUnauthenticatedResources ?? void 0;
|
|
57172
59186
|
return message;
|
|
57173
59187
|
}
|
|
57174
59188
|
};
|
|
57175
|
-
function
|
|
57176
|
-
return {
|
|
59189
|
+
function createBaseWorkspaceSetDefaultEnvironmentSettingsResponse() {
|
|
59190
|
+
return { defaultEnvironmentSettings: void 0 };
|
|
57177
59191
|
}
|
|
57178
|
-
var
|
|
59192
|
+
var WorkspaceSetDefaultEnvironmentSettingsResponse = {
|
|
57179
59193
|
encode(message, writer = new BinaryWriter()) {
|
|
57180
|
-
if (message.
|
|
57181
|
-
writer.uint32(10).
|
|
57182
|
-
}
|
|
57183
|
-
if (message.username !== "") {
|
|
57184
|
-
writer.uint32(18).string(message.username);
|
|
59194
|
+
if (message.defaultEnvironmentSettings !== void 0) {
|
|
59195
|
+
EnvironmentSettings.encode(message.defaultEnvironmentSettings, writer.uint32(10).fork()).join();
|
|
57185
59196
|
}
|
|
57186
59197
|
return writer;
|
|
57187
59198
|
},
|
|
57188
59199
|
decode(input, length) {
|
|
57189
59200
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
57190
59201
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
57191
|
-
const message =
|
|
59202
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentSettingsResponse();
|
|
57192
59203
|
while (reader.pos < end) {
|
|
57193
59204
|
const tag = reader.uint32();
|
|
57194
59205
|
switch (tag >>> 3) {
|
|
@@ -57196,14 +59207,7 @@ var WorkspaceNameLookupResponse = {
|
|
|
57196
59207
|
if (tag !== 10) {
|
|
57197
59208
|
break;
|
|
57198
59209
|
}
|
|
57199
|
-
message.
|
|
57200
|
-
continue;
|
|
57201
|
-
}
|
|
57202
|
-
case 2: {
|
|
57203
|
-
if (tag !== 18) {
|
|
57204
|
-
break;
|
|
57205
|
-
}
|
|
57206
|
-
message.username = reader.string();
|
|
59210
|
+
message.defaultEnvironmentSettings = EnvironmentSettings.decode(reader, reader.uint32());
|
|
57207
59211
|
continue;
|
|
57208
59212
|
}
|
|
57209
59213
|
}
|
|
@@ -57216,78 +59220,22 @@ var WorkspaceNameLookupResponse = {
|
|
|
57216
59220
|
},
|
|
57217
59221
|
fromJSON(object) {
|
|
57218
59222
|
return {
|
|
57219
|
-
|
|
57220
|
-
username: isSet5(object.username) ? globalThis.String(object.username) : ""
|
|
59223
|
+
defaultEnvironmentSettings: isSet5(object.defaultEnvironmentSettings) ? EnvironmentSettings.fromJSON(object.defaultEnvironmentSettings) : void 0
|
|
57221
59224
|
};
|
|
57222
59225
|
},
|
|
57223
59226
|
toJSON(message) {
|
|
57224
59227
|
const obj = {};
|
|
57225
|
-
if (message.
|
|
57226
|
-
obj.
|
|
57227
|
-
}
|
|
57228
|
-
if (message.username !== "") {
|
|
57229
|
-
obj.username = message.username;
|
|
59228
|
+
if (message.defaultEnvironmentSettings !== void 0) {
|
|
59229
|
+
obj.defaultEnvironmentSettings = EnvironmentSettings.toJSON(message.defaultEnvironmentSettings);
|
|
57230
59230
|
}
|
|
57231
59231
|
return obj;
|
|
57232
59232
|
},
|
|
57233
59233
|
create(base) {
|
|
57234
|
-
return
|
|
59234
|
+
return WorkspaceSetDefaultEnvironmentSettingsResponse.fromPartial(base ?? {});
|
|
57235
59235
|
},
|
|
57236
59236
|
fromPartial(object) {
|
|
57237
|
-
const message =
|
|
57238
|
-
message.
|
|
57239
|
-
message.username = object.username ?? "";
|
|
57240
|
-
return message;
|
|
57241
|
-
}
|
|
57242
|
-
};
|
|
57243
|
-
function createBaseWorkspaceSetDefaultEnvironmentRequest() {
|
|
57244
|
-
return { environmentName: "" };
|
|
57245
|
-
}
|
|
57246
|
-
var WorkspaceSetDefaultEnvironmentRequest = {
|
|
57247
|
-
encode(message, writer = new BinaryWriter()) {
|
|
57248
|
-
if (message.environmentName !== "") {
|
|
57249
|
-
writer.uint32(10).string(message.environmentName);
|
|
57250
|
-
}
|
|
57251
|
-
return writer;
|
|
57252
|
-
},
|
|
57253
|
-
decode(input, length) {
|
|
57254
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
57255
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
57256
|
-
const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
|
|
57257
|
-
while (reader.pos < end) {
|
|
57258
|
-
const tag = reader.uint32();
|
|
57259
|
-
switch (tag >>> 3) {
|
|
57260
|
-
case 1: {
|
|
57261
|
-
if (tag !== 10) {
|
|
57262
|
-
break;
|
|
57263
|
-
}
|
|
57264
|
-
message.environmentName = reader.string();
|
|
57265
|
-
continue;
|
|
57266
|
-
}
|
|
57267
|
-
}
|
|
57268
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
57269
|
-
break;
|
|
57270
|
-
}
|
|
57271
|
-
reader.skip(tag & 7);
|
|
57272
|
-
}
|
|
57273
|
-
return message;
|
|
57274
|
-
},
|
|
57275
|
-
fromJSON(object) {
|
|
57276
|
-
return { environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "" };
|
|
57277
|
-
},
|
|
57278
|
-
toJSON(message) {
|
|
57279
|
-
const obj = {};
|
|
57280
|
-
if (message.environmentName !== "") {
|
|
57281
|
-
obj.environmentName = message.environmentName;
|
|
57282
|
-
}
|
|
57283
|
-
return obj;
|
|
57284
|
-
},
|
|
57285
|
-
create(base) {
|
|
57286
|
-
return WorkspaceSetDefaultEnvironmentRequest.fromPartial(base ?? {});
|
|
57287
|
-
},
|
|
57288
|
-
fromPartial(object) {
|
|
57289
|
-
const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
|
|
57290
|
-
message.environmentName = object.environmentName ?? "";
|
|
59237
|
+
const message = createBaseWorkspaceSetDefaultEnvironmentSettingsResponse();
|
|
59238
|
+
message.defaultEnvironmentSettings = object.defaultEnvironmentSettings !== void 0 && object.defaultEnvironmentSettings !== null ? EnvironmentSettings.fromPartial(object.defaultEnvironmentSettings) : void 0;
|
|
57291
59239
|
return message;
|
|
57292
59240
|
}
|
|
57293
59241
|
};
|
|
@@ -58327,6 +60275,14 @@ var ModalClientDefinition = {
|
|
|
58327
60275
|
responseStream: false,
|
|
58328
60276
|
options: {}
|
|
58329
60277
|
},
|
|
60278
|
+
functionGetSchedulingParams: {
|
|
60279
|
+
name: "FunctionGetSchedulingParams",
|
|
60280
|
+
requestType: FunctionGetSchedulingParamsRequest,
|
|
60281
|
+
requestStream: false,
|
|
60282
|
+
responseType: FunctionGetSchedulingParamsResponse,
|
|
60283
|
+
responseStream: false,
|
|
60284
|
+
options: {}
|
|
60285
|
+
},
|
|
58330
60286
|
functionGetSerialized: {
|
|
58331
60287
|
name: "FunctionGetSerialized",
|
|
58332
60288
|
requestType: FunctionGetSerializedRequest,
|
|
@@ -59001,6 +60957,15 @@ var ModalClientDefinition = {
|
|
|
59001
60957
|
responseStream: false,
|
|
59002
60958
|
options: {}
|
|
59003
60959
|
},
|
|
60960
|
+
/** Servers */
|
|
60961
|
+
serverGetTimeRangeStats: {
|
|
60962
|
+
name: "ServerGetTimeRangeStats",
|
|
60963
|
+
requestType: ServerGetTimeRangeStatsRequest,
|
|
60964
|
+
requestStream: false,
|
|
60965
|
+
responseType: ServerGetTimeRangeStatsResponse,
|
|
60966
|
+
responseStream: false,
|
|
60967
|
+
options: {}
|
|
60968
|
+
},
|
|
59004
60969
|
/** Service users */
|
|
59005
60970
|
serviceUserList: {
|
|
59006
60971
|
name: "ServiceUserList",
|
|
@@ -59451,6 +61416,14 @@ var ModalClientDefinition = {
|
|
|
59451
61416
|
responseStream: false,
|
|
59452
61417
|
options: {}
|
|
59453
61418
|
},
|
|
61419
|
+
workspaceSetDefaultEnvironmentSettings: {
|
|
61420
|
+
name: "WorkspaceSetDefaultEnvironmentSettings",
|
|
61421
|
+
requestType: WorkspaceSetDefaultEnvironmentSettingsRequest,
|
|
61422
|
+
requestStream: false,
|
|
61423
|
+
responseType: WorkspaceSetDefaultEnvironmentSettingsResponse,
|
|
61424
|
+
responseStream: false,
|
|
61425
|
+
options: {}
|
|
61426
|
+
},
|
|
59454
61427
|
workspaceSetImageBuilderVersion: {
|
|
59455
61428
|
name: "WorkspaceSetImageBuilderVersion",
|
|
59456
61429
|
requestType: WorkspaceSetImageBuilderVersionRequest,
|
|
@@ -67445,6 +69418,10 @@ import { ClientError as ClientError9, Status as Status9 } from "nice-grpc";
|
|
|
67445
69418
|
import { v4 as uuidv4 } from "uuid";
|
|
67446
69419
|
var MAIN_CONTAINER_NAME = "main";
|
|
67447
69420
|
var CONTAINER_WAIT_POLL_TIMEOUT_SECONDS = 10;
|
|
69421
|
+
var CONTROL_PLANE_SIDECAR_CREATE_ENV_VAR = "MODAL_USE_CONTROL_PLANE_SIDECAR_CREATE";
|
|
69422
|
+
function useControlPlaneSidecarCreate(sandboxId) {
|
|
69423
|
+
return getSandboxVersion(sandboxId) === "V2" /* V2 */ && process.env[CONTROL_PLANE_SIDECAR_CREATE_ENV_VAR] === "1";
|
|
69424
|
+
}
|
|
67448
69425
|
function validateSidecarName(name) {
|
|
67449
69426
|
if (name === "") {
|
|
67450
69427
|
throw new InvalidError("sidecar name must not be empty");
|
|
@@ -67475,6 +69452,7 @@ var SidecarService = class {
|
|
|
67475
69452
|
* passed to `create`.
|
|
67476
69453
|
*/
|
|
67477
69454
|
async create(name, image, params) {
|
|
69455
|
+
this.#access.ensureAttached();
|
|
67478
69456
|
validateSidecarName(name);
|
|
67479
69457
|
if (!image || image.imageId === "") {
|
|
67480
69458
|
throw new InvalidError(
|
|
@@ -67492,26 +69470,46 @@ var SidecarService = class {
|
|
|
67492
69470
|
await hydrateSecrets(this.#access.client, resolvableSecrets);
|
|
67493
69471
|
const secretIds = collectSecretIds(resolvableSecrets);
|
|
67494
69472
|
const ptyInfo = params?.pty ? defaultSandboxPTYInfo() : void 0;
|
|
67495
|
-
const
|
|
69473
|
+
const networkAccess = buildOutboundNetworkAccess(
|
|
69474
|
+
false,
|
|
69475
|
+
params?.outboundCidrAllowlist,
|
|
69476
|
+
params?.outboundDomainAllowlist
|
|
69477
|
+
);
|
|
67496
69478
|
let resp;
|
|
67497
69479
|
try {
|
|
67498
|
-
|
|
67499
|
-
|
|
67500
|
-
|
|
67501
|
-
|
|
67502
|
-
|
|
67503
|
-
|
|
67504
|
-
|
|
67505
|
-
|
|
67506
|
-
|
|
67507
|
-
|
|
67508
|
-
|
|
67509
|
-
|
|
67510
|
-
|
|
67511
|
-
|
|
67512
|
-
|
|
67513
|
-
|
|
67514
|
-
|
|
69480
|
+
if (useControlPlaneSidecarCreate(this.#access.sandboxId)) {
|
|
69481
|
+
const ephemeralSecrets = Object.keys(envDict).length > 0 ? StringMap.create({ contents: envDict }) : void 0;
|
|
69482
|
+
resp = await this.#access.client.cpClient.sandboxContainerCreateV2(
|
|
69483
|
+
SandboxContainerCreateV2Request.create({
|
|
69484
|
+
sandboxId: this.#access.sandboxId,
|
|
69485
|
+
containerName: name,
|
|
69486
|
+
definition: Sandbox.create({
|
|
69487
|
+
imageId: image.imageId,
|
|
69488
|
+
entrypointArgs: command,
|
|
69489
|
+
workdir: params?.workdir ?? void 0,
|
|
69490
|
+
secretIds,
|
|
69491
|
+
networkAccess,
|
|
69492
|
+
ptyInfo
|
|
69493
|
+
}),
|
|
69494
|
+
ephemeralSecrets
|
|
69495
|
+
})
|
|
69496
|
+
);
|
|
69497
|
+
} else {
|
|
69498
|
+
const [taskId, client] = await this.#access.commandRouter();
|
|
69499
|
+
resp = await client.containerCreate(
|
|
69500
|
+
TaskContainerCreateRequest.create({
|
|
69501
|
+
taskId,
|
|
69502
|
+
containerName: name,
|
|
69503
|
+
imageId: image.imageId,
|
|
69504
|
+
args: command,
|
|
69505
|
+
env: envDict,
|
|
69506
|
+
workdir: params?.workdir ?? "",
|
|
69507
|
+
secretIds,
|
|
69508
|
+
networkAccess,
|
|
69509
|
+
ptyInfo
|
|
69510
|
+
})
|
|
69511
|
+
);
|
|
69512
|
+
}
|
|
67515
69513
|
} catch (err) {
|
|
67516
69514
|
if (err instanceof ClientError9) {
|
|
67517
69515
|
if (err.code === Status9.ALREADY_EXISTS) {
|
|
@@ -69001,6 +70999,8 @@ var Sandbox2 = class _Sandbox {
|
|
|
69001
70999
|
if (!this.#sidecars) {
|
|
69002
71000
|
this.#sidecars = new SidecarService({
|
|
69003
71001
|
client: this.#client,
|
|
71002
|
+
sandboxId: this.sandboxId,
|
|
71003
|
+
ensureAttached: () => this.#ensureAttached(),
|
|
69004
71004
|
exec: (command, params, containerId) => this.#execInternal(command, params, containerId),
|
|
69005
71005
|
commandRouter: () => this.#getCommandRouter(),
|
|
69006
71006
|
reloadVolumes: (containerId, params) => this.#reloadVolumes(containerId, params),
|
|
@@ -70013,8 +72013,11 @@ var AUTH_TOKEN_GET_MAX_RETRIES = 3;
|
|
|
70013
72013
|
var FAILURE_BACKOFF_BASE_MS = 500;
|
|
70014
72014
|
var FAILURE_BACKOFF_MAX_MS = 60 * 1e3;
|
|
70015
72015
|
var DEFAULT_EXPIRY_OFFSET = 20 * 60;
|
|
72016
|
+
function authTokenGetFetcher(client) {
|
|
72017
|
+
return async (options) => (await client.authTokenGet({}, options)).token;
|
|
72018
|
+
}
|
|
70016
72019
|
var AuthTokenManager = class {
|
|
70017
|
-
|
|
72020
|
+
fetch;
|
|
70018
72021
|
logger;
|
|
70019
72022
|
currentToken = "";
|
|
70020
72023
|
tokenExpiry = 0;
|
|
@@ -70022,8 +72025,8 @@ var AuthTokenManager = class {
|
|
|
70022
72025
|
refreshPromise = null;
|
|
70023
72026
|
retryAfter = 0;
|
|
70024
72027
|
backoffMs = FAILURE_BACKOFF_BASE_MS;
|
|
70025
|
-
constructor(
|
|
70026
|
-
this.
|
|
72028
|
+
constructor(fetch2, logger2) {
|
|
72029
|
+
this.fetch = fetch2;
|
|
70027
72030
|
this.logger = logger2;
|
|
70028
72031
|
}
|
|
70029
72032
|
/**
|
|
@@ -70083,16 +72086,12 @@ var AuthTokenManager = class {
|
|
|
70083
72086
|
async fetchToken() {
|
|
70084
72087
|
try {
|
|
70085
72088
|
const hasCachedToken = !!this.currentToken;
|
|
70086
|
-
const
|
|
70087
|
-
|
|
70088
|
-
|
|
70089
|
-
|
|
70090
|
-
|
|
70091
|
-
|
|
70092
|
-
timeoutMs: AUTH_TOKEN_GET_TIMEOUT_MS
|
|
70093
|
-
}
|
|
70094
|
-
);
|
|
70095
|
-
const token = response.token;
|
|
72089
|
+
const token = await this.fetch({
|
|
72090
|
+
// No cached token to fall back on, so a failure is user-visible: retry transient errors.
|
|
72091
|
+
// Otherwise one attempt, and retryAfter handles the cooldown.
|
|
72092
|
+
retries: hasCachedToken ? 0 : AUTH_TOKEN_GET_MAX_RETRIES,
|
|
72093
|
+
timeoutMs: AUTH_TOKEN_GET_TIMEOUT_MS
|
|
72094
|
+
});
|
|
70096
72095
|
if (!token) {
|
|
70097
72096
|
throw new Error(
|
|
70098
72097
|
"Internal error: did not receive auth token from server, please contact Modal support"
|
|
@@ -70195,7 +72194,7 @@ var AuthTokenManager = class {
|
|
|
70195
72194
|
};
|
|
70196
72195
|
|
|
70197
72196
|
// src/version.ts
|
|
70198
|
-
var SDK_VERSION = "0.10.1";
|
|
72197
|
+
var SDK_VERSION = "0.10.2-dev.1";
|
|
70199
72198
|
function getSDKVersion() {
|
|
70200
72199
|
return SDK_VERSION;
|
|
70201
72200
|
}
|
|
@@ -70633,7 +72632,7 @@ var ModalClient = class {
|
|
|
70633
72632
|
const getOrCreateAuthTokenManager = () => {
|
|
70634
72633
|
if (!this.authTokenManager) {
|
|
70635
72634
|
this.authTokenManager = new AuthTokenManager(
|
|
70636
|
-
this.cpClient,
|
|
72635
|
+
authTokenGetFetcher(this.cpClient),
|
|
70637
72636
|
this.logger
|
|
70638
72637
|
);
|
|
70639
72638
|
}
|