modal 0.10.2-dev.1 → 0.10.2-dev.3
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 +1433 -210
- package/dist/index.d.cts +227 -18
- package/dist/index.d.ts +227 -18
- package/dist/index.js +1432 -210
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2257,6 +2257,76 @@ function fileDescriptorToJSON(object) {
|
|
|
2257
2257
|
return "UNRECOGNIZED";
|
|
2258
2258
|
}
|
|
2259
2259
|
}
|
|
2260
|
+
function functionCallInputStatusFromJSON(object) {
|
|
2261
|
+
switch (object) {
|
|
2262
|
+
case 0:
|
|
2263
|
+
case "FUNCTION_CALL_INPUT_STATUS_UNSPECIFIED":
|
|
2264
|
+
return 0 /* FUNCTION_CALL_INPUT_STATUS_UNSPECIFIED */;
|
|
2265
|
+
case 1:
|
|
2266
|
+
case "FUNCTION_CALL_INPUT_STATUS_PENDING":
|
|
2267
|
+
return 1 /* FUNCTION_CALL_INPUT_STATUS_PENDING */;
|
|
2268
|
+
case 2:
|
|
2269
|
+
case "FUNCTION_CALL_INPUT_STATUS_RUNNING":
|
|
2270
|
+
return 2 /* FUNCTION_CALL_INPUT_STATUS_RUNNING */;
|
|
2271
|
+
case 3:
|
|
2272
|
+
case "FUNCTION_CALL_INPUT_STATUS_SUCCESS":
|
|
2273
|
+
return 3 /* FUNCTION_CALL_INPUT_STATUS_SUCCESS */;
|
|
2274
|
+
case 4:
|
|
2275
|
+
case "FUNCTION_CALL_INPUT_STATUS_FAILURE":
|
|
2276
|
+
return 4 /* FUNCTION_CALL_INPUT_STATUS_FAILURE */;
|
|
2277
|
+
case 5:
|
|
2278
|
+
case "FUNCTION_CALL_INPUT_STATUS_TIMEOUT":
|
|
2279
|
+
return 5 /* FUNCTION_CALL_INPUT_STATUS_TIMEOUT */;
|
|
2280
|
+
case 6:
|
|
2281
|
+
case "FUNCTION_CALL_INPUT_STATUS_TERMINATED":
|
|
2282
|
+
return 6 /* FUNCTION_CALL_INPUT_STATUS_TERMINATED */;
|
|
2283
|
+
case 7:
|
|
2284
|
+
case "FUNCTION_CALL_INPUT_STATUS_INIT_FAILURE":
|
|
2285
|
+
return 7 /* FUNCTION_CALL_INPUT_STATUS_INIT_FAILURE */;
|
|
2286
|
+
case 8:
|
|
2287
|
+
case "FUNCTION_CALL_INPUT_STATUS_INTERNAL_FAILURE":
|
|
2288
|
+
return 8 /* FUNCTION_CALL_INPUT_STATUS_INTERNAL_FAILURE */;
|
|
2289
|
+
case 9:
|
|
2290
|
+
case "FUNCTION_CALL_INPUT_STATUS_IDLE_TIMEOUT":
|
|
2291
|
+
return 9 /* FUNCTION_CALL_INPUT_STATUS_IDLE_TIMEOUT */;
|
|
2292
|
+
case 10:
|
|
2293
|
+
case "FUNCTION_CALL_INPUT_STATUS_MEMORY_MANAGER_EVICTION":
|
|
2294
|
+
return 10 /* FUNCTION_CALL_INPUT_STATUS_MEMORY_MANAGER_EVICTION */;
|
|
2295
|
+
case -1:
|
|
2296
|
+
case "UNRECOGNIZED":
|
|
2297
|
+
default:
|
|
2298
|
+
return -1 /* UNRECOGNIZED */;
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
function functionCallInputStatusToJSON(object) {
|
|
2302
|
+
switch (object) {
|
|
2303
|
+
case 0 /* FUNCTION_CALL_INPUT_STATUS_UNSPECIFIED */:
|
|
2304
|
+
return "FUNCTION_CALL_INPUT_STATUS_UNSPECIFIED";
|
|
2305
|
+
case 1 /* FUNCTION_CALL_INPUT_STATUS_PENDING */:
|
|
2306
|
+
return "FUNCTION_CALL_INPUT_STATUS_PENDING";
|
|
2307
|
+
case 2 /* FUNCTION_CALL_INPUT_STATUS_RUNNING */:
|
|
2308
|
+
return "FUNCTION_CALL_INPUT_STATUS_RUNNING";
|
|
2309
|
+
case 3 /* FUNCTION_CALL_INPUT_STATUS_SUCCESS */:
|
|
2310
|
+
return "FUNCTION_CALL_INPUT_STATUS_SUCCESS";
|
|
2311
|
+
case 4 /* FUNCTION_CALL_INPUT_STATUS_FAILURE */:
|
|
2312
|
+
return "FUNCTION_CALL_INPUT_STATUS_FAILURE";
|
|
2313
|
+
case 5 /* FUNCTION_CALL_INPUT_STATUS_TIMEOUT */:
|
|
2314
|
+
return "FUNCTION_CALL_INPUT_STATUS_TIMEOUT";
|
|
2315
|
+
case 6 /* FUNCTION_CALL_INPUT_STATUS_TERMINATED */:
|
|
2316
|
+
return "FUNCTION_CALL_INPUT_STATUS_TERMINATED";
|
|
2317
|
+
case 7 /* FUNCTION_CALL_INPUT_STATUS_INIT_FAILURE */:
|
|
2318
|
+
return "FUNCTION_CALL_INPUT_STATUS_INIT_FAILURE";
|
|
2319
|
+
case 8 /* FUNCTION_CALL_INPUT_STATUS_INTERNAL_FAILURE */:
|
|
2320
|
+
return "FUNCTION_CALL_INPUT_STATUS_INTERNAL_FAILURE";
|
|
2321
|
+
case 9 /* FUNCTION_CALL_INPUT_STATUS_IDLE_TIMEOUT */:
|
|
2322
|
+
return "FUNCTION_CALL_INPUT_STATUS_IDLE_TIMEOUT";
|
|
2323
|
+
case 10 /* FUNCTION_CALL_INPUT_STATUS_MEMORY_MANAGER_EVICTION */:
|
|
2324
|
+
return "FUNCTION_CALL_INPUT_STATUS_MEMORY_MANAGER_EVICTION";
|
|
2325
|
+
case -1 /* UNRECOGNIZED */:
|
|
2326
|
+
default:
|
|
2327
|
+
return "UNRECOGNIZED";
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2260
2330
|
function functionCallInvocationTypeFromJSON(object) {
|
|
2261
2331
|
switch (object) {
|
|
2262
2332
|
case 0:
|
|
@@ -3518,6 +3588,9 @@ function sandboxGetExitSnapshotResponse_ErrorCodeFromJSON(object) {
|
|
|
3518
3588
|
case 2:
|
|
3519
3589
|
case "ERROR_CODE_INTERNAL":
|
|
3520
3590
|
return 2 /* ERROR_CODE_INTERNAL */;
|
|
3591
|
+
case 3:
|
|
3592
|
+
case "ERROR_CODE_FILESYSTEM_INCONSISTENT":
|
|
3593
|
+
return 3 /* ERROR_CODE_FILESYSTEM_INCONSISTENT */;
|
|
3521
3594
|
case -1:
|
|
3522
3595
|
case "UNRECOGNIZED":
|
|
3523
3596
|
default:
|
|
@@ -3532,6 +3605,8 @@ function sandboxGetExitSnapshotResponse_ErrorCodeToJSON(object) {
|
|
|
3532
3605
|
return "ERROR_CODE_TIMEOUT";
|
|
3533
3606
|
case 2 /* ERROR_CODE_INTERNAL */:
|
|
3534
3607
|
return "ERROR_CODE_INTERNAL";
|
|
3608
|
+
case 3 /* ERROR_CODE_FILESYSTEM_INCONSISTENT */:
|
|
3609
|
+
return "ERROR_CODE_FILESYSTEM_INCONSISTENT";
|
|
3535
3610
|
case -1 /* UNRECOGNIZED */:
|
|
3536
3611
|
default:
|
|
3537
3612
|
return "UNRECOGNIZED";
|
|
@@ -17639,7 +17714,8 @@ function createBaseEndpointCreateRequest() {
|
|
|
17639
17714
|
inputModalities: [],
|
|
17640
17715
|
environmentName: "",
|
|
17641
17716
|
unauthenticated: false,
|
|
17642
|
-
servingMode: 0
|
|
17717
|
+
servingMode: 0,
|
|
17718
|
+
sharedEndpointNoticeAcknowledged: false
|
|
17643
17719
|
};
|
|
17644
17720
|
}
|
|
17645
17721
|
var EndpointCreateRequest = {
|
|
@@ -17678,6 +17754,9 @@ var EndpointCreateRequest = {
|
|
|
17678
17754
|
if (message.servingMode !== 0) {
|
|
17679
17755
|
writer.uint32(80).int32(message.servingMode);
|
|
17680
17756
|
}
|
|
17757
|
+
if (message.sharedEndpointNoticeAcknowledged !== false) {
|
|
17758
|
+
writer.uint32(88).bool(message.sharedEndpointNoticeAcknowledged);
|
|
17759
|
+
}
|
|
17681
17760
|
return writer;
|
|
17682
17761
|
},
|
|
17683
17762
|
decode(input, length) {
|
|
@@ -17771,6 +17850,13 @@ var EndpointCreateRequest = {
|
|
|
17771
17850
|
message.servingMode = reader.int32();
|
|
17772
17851
|
continue;
|
|
17773
17852
|
}
|
|
17853
|
+
case 11: {
|
|
17854
|
+
if (tag !== 88) {
|
|
17855
|
+
break;
|
|
17856
|
+
}
|
|
17857
|
+
message.sharedEndpointNoticeAcknowledged = reader.bool();
|
|
17858
|
+
continue;
|
|
17859
|
+
}
|
|
17774
17860
|
}
|
|
17775
17861
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17776
17862
|
break;
|
|
@@ -17790,7 +17876,8 @@ var EndpointCreateRequest = {
|
|
|
17790
17876
|
inputModalities: globalThis.Array.isArray(object?.inputModalities) ? object.inputModalities.map((e) => endpointInputModalityFromJSON(e)) : [],
|
|
17791
17877
|
environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "",
|
|
17792
17878
|
unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false,
|
|
17793
|
-
servingMode: isSet5(object.servingMode) ? endpointServingModeFromJSON(object.servingMode) : 0
|
|
17879
|
+
servingMode: isSet5(object.servingMode) ? endpointServingModeFromJSON(object.servingMode) : 0,
|
|
17880
|
+
sharedEndpointNoticeAcknowledged: isSet5(object.sharedEndpointNoticeAcknowledged) ? globalThis.Boolean(object.sharedEndpointNoticeAcknowledged) : false
|
|
17794
17881
|
};
|
|
17795
17882
|
},
|
|
17796
17883
|
toJSON(message) {
|
|
@@ -17825,6 +17912,9 @@ var EndpointCreateRequest = {
|
|
|
17825
17912
|
if (message.servingMode !== 0) {
|
|
17826
17913
|
obj.servingMode = endpointServingModeToJSON(message.servingMode);
|
|
17827
17914
|
}
|
|
17915
|
+
if (message.sharedEndpointNoticeAcknowledged !== false) {
|
|
17916
|
+
obj.sharedEndpointNoticeAcknowledged = message.sharedEndpointNoticeAcknowledged;
|
|
17917
|
+
}
|
|
17828
17918
|
return obj;
|
|
17829
17919
|
},
|
|
17830
17920
|
create(base) {
|
|
@@ -17842,6 +17932,7 @@ var EndpointCreateRequest = {
|
|
|
17842
17932
|
message.environmentName = object.environmentName ?? "";
|
|
17843
17933
|
message.unauthenticated = object.unauthenticated ?? false;
|
|
17844
17934
|
message.servingMode = object.servingMode ?? 0;
|
|
17935
|
+
message.sharedEndpointNoticeAcknowledged = object.sharedEndpointNoticeAcknowledged ?? false;
|
|
17845
17936
|
return message;
|
|
17846
17937
|
}
|
|
17847
17938
|
};
|
|
@@ -22400,8 +22491,6 @@ function createBaseFunctionMessage() {
|
|
|
22400
22491
|
cloudBucketMounts: [],
|
|
22401
22492
|
schedulerPlacement: void 0,
|
|
22402
22493
|
isClass: false,
|
|
22403
|
-
useFunctionId: "",
|
|
22404
|
-
useMethodName: "",
|
|
22405
22494
|
classParameterInfo: void 0,
|
|
22406
22495
|
batchMaxSize: 0,
|
|
22407
22496
|
batchLingerMs: 0,
|
|
@@ -22572,12 +22661,6 @@ var FunctionMessage = {
|
|
|
22572
22661
|
if (message.isClass !== false) {
|
|
22573
22662
|
writer.uint32(424).bool(message.isClass);
|
|
22574
22663
|
}
|
|
22575
|
-
if (message.useFunctionId !== "") {
|
|
22576
|
-
writer.uint32(434).string(message.useFunctionId);
|
|
22577
|
-
}
|
|
22578
|
-
if (message.useMethodName !== "") {
|
|
22579
|
-
writer.uint32(442).string(message.useMethodName);
|
|
22580
|
-
}
|
|
22581
22664
|
if (message.classParameterInfo !== void 0) {
|
|
22582
22665
|
ClassParameterInfo.encode(message.classParameterInfo, writer.uint32(450).fork()).join();
|
|
22583
22666
|
}
|
|
@@ -23003,20 +23086,6 @@ var FunctionMessage = {
|
|
|
23003
23086
|
message.isClass = reader.bool();
|
|
23004
23087
|
continue;
|
|
23005
23088
|
}
|
|
23006
|
-
case 54: {
|
|
23007
|
-
if (tag !== 434) {
|
|
23008
|
-
break;
|
|
23009
|
-
}
|
|
23010
|
-
message.useFunctionId = reader.string();
|
|
23011
|
-
continue;
|
|
23012
|
-
}
|
|
23013
|
-
case 55: {
|
|
23014
|
-
if (tag !== 442) {
|
|
23015
|
-
break;
|
|
23016
|
-
}
|
|
23017
|
-
message.useMethodName = reader.string();
|
|
23018
|
-
continue;
|
|
23019
|
-
}
|
|
23020
23089
|
case 56: {
|
|
23021
23090
|
if (tag !== 450) {
|
|
23022
23091
|
break;
|
|
@@ -23349,8 +23418,6 @@ var FunctionMessage = {
|
|
|
23349
23418
|
cloudBucketMounts: globalThis.Array.isArray(object?.cloudBucketMounts) ? object.cloudBucketMounts.map((e) => CloudBucketMount.fromJSON(e)) : [],
|
|
23350
23419
|
schedulerPlacement: isSet5(object.schedulerPlacement) ? SchedulerPlacement.fromJSON(object.schedulerPlacement) : void 0,
|
|
23351
23420
|
isClass: isSet5(object.isClass) ? globalThis.Boolean(object.isClass) : false,
|
|
23352
|
-
useFunctionId: isSet5(object.useFunctionId) ? globalThis.String(object.useFunctionId) : "",
|
|
23353
|
-
useMethodName: isSet5(object.useMethodName) ? globalThis.String(object.useMethodName) : "",
|
|
23354
23421
|
classParameterInfo: isSet5(object.classParameterInfo) ? ClassParameterInfo.fromJSON(object.classParameterInfo) : void 0,
|
|
23355
23422
|
batchMaxSize: isSet5(object.batchMaxSize) ? globalThis.Number(object.batchMaxSize) : 0,
|
|
23356
23423
|
batchLingerMs: isSet5(object.batchLingerMs) ? globalThis.Number(object.batchLingerMs) : 0,
|
|
@@ -23527,12 +23594,6 @@ var FunctionMessage = {
|
|
|
23527
23594
|
if (message.isClass !== false) {
|
|
23528
23595
|
obj.isClass = message.isClass;
|
|
23529
23596
|
}
|
|
23530
|
-
if (message.useFunctionId !== "") {
|
|
23531
|
-
obj.useFunctionId = message.useFunctionId;
|
|
23532
|
-
}
|
|
23533
|
-
if (message.useMethodName !== "") {
|
|
23534
|
-
obj.useMethodName = message.useMethodName;
|
|
23535
|
-
}
|
|
23536
23597
|
if (message.classParameterInfo !== void 0) {
|
|
23537
23598
|
obj.classParameterInfo = ClassParameterInfo.toJSON(message.classParameterInfo);
|
|
23538
23599
|
}
|
|
@@ -23706,8 +23767,6 @@ var FunctionMessage = {
|
|
|
23706
23767
|
message.cloudBucketMounts = object.cloudBucketMounts?.map((e) => CloudBucketMount.fromPartial(e)) || [];
|
|
23707
23768
|
message.schedulerPlacement = object.schedulerPlacement !== void 0 && object.schedulerPlacement !== null ? SchedulerPlacement.fromPartial(object.schedulerPlacement) : void 0;
|
|
23708
23769
|
message.isClass = object.isClass ?? false;
|
|
23709
|
-
message.useFunctionId = object.useFunctionId ?? "";
|
|
23710
|
-
message.useMethodName = object.useMethodName ?? "";
|
|
23711
23770
|
message.classParameterInfo = object.classParameterInfo !== void 0 && object.classParameterInfo !== null ? ClassParameterInfo.fromPartial(object.classParameterInfo) : void 0;
|
|
23712
23771
|
message.batchMaxSize = object.batchMaxSize ?? 0;
|
|
23713
23772
|
message.batchLingerMs = object.batchLingerMs ?? 0;
|
|
@@ -24416,6 +24475,193 @@ var FunctionCallCancelRequest = {
|
|
|
24416
24475
|
return message;
|
|
24417
24476
|
}
|
|
24418
24477
|
};
|
|
24478
|
+
function createBaseFunctionCallFetchRequest() {
|
|
24479
|
+
return { functionId: "", tail: void 0, allVariants: false };
|
|
24480
|
+
}
|
|
24481
|
+
var FunctionCallFetchRequest = {
|
|
24482
|
+
encode(message, writer = new BinaryWriter()) {
|
|
24483
|
+
if (message.functionId !== "") {
|
|
24484
|
+
writer.uint32(10).string(message.functionId);
|
|
24485
|
+
}
|
|
24486
|
+
if (message.tail !== void 0) {
|
|
24487
|
+
FunctionCallFetchRequest_Tail.encode(message.tail, writer.uint32(26).fork()).join();
|
|
24488
|
+
}
|
|
24489
|
+
if (message.allVariants !== false) {
|
|
24490
|
+
writer.uint32(32).bool(message.allVariants);
|
|
24491
|
+
}
|
|
24492
|
+
return writer;
|
|
24493
|
+
},
|
|
24494
|
+
decode(input, length) {
|
|
24495
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24496
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
24497
|
+
const message = createBaseFunctionCallFetchRequest();
|
|
24498
|
+
while (reader.pos < end) {
|
|
24499
|
+
const tag = reader.uint32();
|
|
24500
|
+
switch (tag >>> 3) {
|
|
24501
|
+
case 1: {
|
|
24502
|
+
if (tag !== 10) {
|
|
24503
|
+
break;
|
|
24504
|
+
}
|
|
24505
|
+
message.functionId = reader.string();
|
|
24506
|
+
continue;
|
|
24507
|
+
}
|
|
24508
|
+
case 3: {
|
|
24509
|
+
if (tag !== 26) {
|
|
24510
|
+
break;
|
|
24511
|
+
}
|
|
24512
|
+
message.tail = FunctionCallFetchRequest_Tail.decode(reader, reader.uint32());
|
|
24513
|
+
continue;
|
|
24514
|
+
}
|
|
24515
|
+
case 4: {
|
|
24516
|
+
if (tag !== 32) {
|
|
24517
|
+
break;
|
|
24518
|
+
}
|
|
24519
|
+
message.allVariants = reader.bool();
|
|
24520
|
+
continue;
|
|
24521
|
+
}
|
|
24522
|
+
}
|
|
24523
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
24524
|
+
break;
|
|
24525
|
+
}
|
|
24526
|
+
reader.skip(tag & 7);
|
|
24527
|
+
}
|
|
24528
|
+
return message;
|
|
24529
|
+
},
|
|
24530
|
+
fromJSON(object) {
|
|
24531
|
+
return {
|
|
24532
|
+
functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
24533
|
+
tail: isSet5(object.tail) ? FunctionCallFetchRequest_Tail.fromJSON(object.tail) : void 0,
|
|
24534
|
+
allVariants: isSet5(object.allVariants) ? globalThis.Boolean(object.allVariants) : false
|
|
24535
|
+
};
|
|
24536
|
+
},
|
|
24537
|
+
toJSON(message) {
|
|
24538
|
+
const obj = {};
|
|
24539
|
+
if (message.functionId !== "") {
|
|
24540
|
+
obj.functionId = message.functionId;
|
|
24541
|
+
}
|
|
24542
|
+
if (message.tail !== void 0) {
|
|
24543
|
+
obj.tail = FunctionCallFetchRequest_Tail.toJSON(message.tail);
|
|
24544
|
+
}
|
|
24545
|
+
if (message.allVariants !== false) {
|
|
24546
|
+
obj.allVariants = message.allVariants;
|
|
24547
|
+
}
|
|
24548
|
+
return obj;
|
|
24549
|
+
},
|
|
24550
|
+
create(base) {
|
|
24551
|
+
return FunctionCallFetchRequest.fromPartial(base ?? {});
|
|
24552
|
+
},
|
|
24553
|
+
fromPartial(object) {
|
|
24554
|
+
const message = createBaseFunctionCallFetchRequest();
|
|
24555
|
+
message.functionId = object.functionId ?? "";
|
|
24556
|
+
message.tail = object.tail !== void 0 && object.tail !== null ? FunctionCallFetchRequest_Tail.fromPartial(object.tail) : void 0;
|
|
24557
|
+
message.allVariants = object.allVariants ?? false;
|
|
24558
|
+
return message;
|
|
24559
|
+
}
|
|
24560
|
+
};
|
|
24561
|
+
function createBaseFunctionCallFetchRequest_Tail() {
|
|
24562
|
+
return { count: 0 };
|
|
24563
|
+
}
|
|
24564
|
+
var FunctionCallFetchRequest_Tail = {
|
|
24565
|
+
encode(message, writer = new BinaryWriter()) {
|
|
24566
|
+
if (message.count !== 0) {
|
|
24567
|
+
writer.uint32(8).uint32(message.count);
|
|
24568
|
+
}
|
|
24569
|
+
return writer;
|
|
24570
|
+
},
|
|
24571
|
+
decode(input, length) {
|
|
24572
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24573
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
24574
|
+
const message = createBaseFunctionCallFetchRequest_Tail();
|
|
24575
|
+
while (reader.pos < end) {
|
|
24576
|
+
const tag = reader.uint32();
|
|
24577
|
+
switch (tag >>> 3) {
|
|
24578
|
+
case 1: {
|
|
24579
|
+
if (tag !== 8) {
|
|
24580
|
+
break;
|
|
24581
|
+
}
|
|
24582
|
+
message.count = reader.uint32();
|
|
24583
|
+
continue;
|
|
24584
|
+
}
|
|
24585
|
+
}
|
|
24586
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
24587
|
+
break;
|
|
24588
|
+
}
|
|
24589
|
+
reader.skip(tag & 7);
|
|
24590
|
+
}
|
|
24591
|
+
return message;
|
|
24592
|
+
},
|
|
24593
|
+
fromJSON(object) {
|
|
24594
|
+
return { count: isSet5(object.count) ? globalThis.Number(object.count) : 0 };
|
|
24595
|
+
},
|
|
24596
|
+
toJSON(message) {
|
|
24597
|
+
const obj = {};
|
|
24598
|
+
if (message.count !== 0) {
|
|
24599
|
+
obj.count = Math.round(message.count);
|
|
24600
|
+
}
|
|
24601
|
+
return obj;
|
|
24602
|
+
},
|
|
24603
|
+
create(base) {
|
|
24604
|
+
return FunctionCallFetchRequest_Tail.fromPartial(base ?? {});
|
|
24605
|
+
},
|
|
24606
|
+
fromPartial(object) {
|
|
24607
|
+
const message = createBaseFunctionCallFetchRequest_Tail();
|
|
24608
|
+
message.count = object.count ?? 0;
|
|
24609
|
+
return message;
|
|
24610
|
+
}
|
|
24611
|
+
};
|
|
24612
|
+
function createBaseFunctionCallFetchResponse() {
|
|
24613
|
+
return { functionCallInputs: [] };
|
|
24614
|
+
}
|
|
24615
|
+
var FunctionCallFetchResponse = {
|
|
24616
|
+
encode(message, writer = new BinaryWriter()) {
|
|
24617
|
+
for (const v of message.functionCallInputs) {
|
|
24618
|
+
FunctionCallInputInfo.encode(v, writer.uint32(10).fork()).join();
|
|
24619
|
+
}
|
|
24620
|
+
return writer;
|
|
24621
|
+
},
|
|
24622
|
+
decode(input, length) {
|
|
24623
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24624
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
24625
|
+
const message = createBaseFunctionCallFetchResponse();
|
|
24626
|
+
while (reader.pos < end) {
|
|
24627
|
+
const tag = reader.uint32();
|
|
24628
|
+
switch (tag >>> 3) {
|
|
24629
|
+
case 1: {
|
|
24630
|
+
if (tag !== 10) {
|
|
24631
|
+
break;
|
|
24632
|
+
}
|
|
24633
|
+
message.functionCallInputs.push(FunctionCallInputInfo.decode(reader, reader.uint32()));
|
|
24634
|
+
continue;
|
|
24635
|
+
}
|
|
24636
|
+
}
|
|
24637
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
24638
|
+
break;
|
|
24639
|
+
}
|
|
24640
|
+
reader.skip(tag & 7);
|
|
24641
|
+
}
|
|
24642
|
+
return message;
|
|
24643
|
+
},
|
|
24644
|
+
fromJSON(object) {
|
|
24645
|
+
return {
|
|
24646
|
+
functionCallInputs: globalThis.Array.isArray(object?.functionCallInputs) ? object.functionCallInputs.map((e) => FunctionCallInputInfo.fromJSON(e)) : []
|
|
24647
|
+
};
|
|
24648
|
+
},
|
|
24649
|
+
toJSON(message) {
|
|
24650
|
+
const obj = {};
|
|
24651
|
+
if (message.functionCallInputs?.length) {
|
|
24652
|
+
obj.functionCallInputs = message.functionCallInputs.map((e) => FunctionCallInputInfo.toJSON(e));
|
|
24653
|
+
}
|
|
24654
|
+
return obj;
|
|
24655
|
+
},
|
|
24656
|
+
create(base) {
|
|
24657
|
+
return FunctionCallFetchResponse.fromPartial(base ?? {});
|
|
24658
|
+
},
|
|
24659
|
+
fromPartial(object) {
|
|
24660
|
+
const message = createBaseFunctionCallFetchResponse();
|
|
24661
|
+
message.functionCallInputs = object.functionCallInputs?.map((e) => FunctionCallInputInfo.fromPartial(e)) || [];
|
|
24662
|
+
return message;
|
|
24663
|
+
}
|
|
24664
|
+
};
|
|
24419
24665
|
function createBaseFunctionCallFromIdRequest() {
|
|
24420
24666
|
return { functionCallId: "" };
|
|
24421
24667
|
}
|
|
@@ -25019,6 +25265,173 @@ var FunctionCallInfo = {
|
|
|
25019
25265
|
return message;
|
|
25020
25266
|
}
|
|
25021
25267
|
};
|
|
25268
|
+
function createBaseFunctionCallInputInfo() {
|
|
25269
|
+
return {
|
|
25270
|
+
enqueuedAt: void 0,
|
|
25271
|
+
startedAt: void 0,
|
|
25272
|
+
containerId: void 0,
|
|
25273
|
+
startupTimeSeconds: void 0,
|
|
25274
|
+
executionTimeSeconds: void 0,
|
|
25275
|
+
status: 0,
|
|
25276
|
+
functionCallId: "",
|
|
25277
|
+
serviceMethodName: void 0
|
|
25278
|
+
};
|
|
25279
|
+
}
|
|
25280
|
+
var FunctionCallInputInfo = {
|
|
25281
|
+
encode(message, writer = new BinaryWriter()) {
|
|
25282
|
+
if (message.enqueuedAt !== void 0) {
|
|
25283
|
+
Timestamp.encode(toTimestamp(message.enqueuedAt), writer.uint32(10).fork()).join();
|
|
25284
|
+
}
|
|
25285
|
+
if (message.startedAt !== void 0) {
|
|
25286
|
+
Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(18).fork()).join();
|
|
25287
|
+
}
|
|
25288
|
+
if (message.containerId !== void 0) {
|
|
25289
|
+
writer.uint32(26).string(message.containerId);
|
|
25290
|
+
}
|
|
25291
|
+
if (message.startupTimeSeconds !== void 0) {
|
|
25292
|
+
writer.uint32(33).double(message.startupTimeSeconds);
|
|
25293
|
+
}
|
|
25294
|
+
if (message.executionTimeSeconds !== void 0) {
|
|
25295
|
+
writer.uint32(41).double(message.executionTimeSeconds);
|
|
25296
|
+
}
|
|
25297
|
+
if (message.status !== 0) {
|
|
25298
|
+
writer.uint32(48).int32(message.status);
|
|
25299
|
+
}
|
|
25300
|
+
if (message.functionCallId !== "") {
|
|
25301
|
+
writer.uint32(58).string(message.functionCallId);
|
|
25302
|
+
}
|
|
25303
|
+
if (message.serviceMethodName !== void 0) {
|
|
25304
|
+
writer.uint32(66).string(message.serviceMethodName);
|
|
25305
|
+
}
|
|
25306
|
+
return writer;
|
|
25307
|
+
},
|
|
25308
|
+
decode(input, length) {
|
|
25309
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
25310
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
25311
|
+
const message = createBaseFunctionCallInputInfo();
|
|
25312
|
+
while (reader.pos < end) {
|
|
25313
|
+
const tag = reader.uint32();
|
|
25314
|
+
switch (tag >>> 3) {
|
|
25315
|
+
case 1: {
|
|
25316
|
+
if (tag !== 10) {
|
|
25317
|
+
break;
|
|
25318
|
+
}
|
|
25319
|
+
message.enqueuedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
25320
|
+
continue;
|
|
25321
|
+
}
|
|
25322
|
+
case 2: {
|
|
25323
|
+
if (tag !== 18) {
|
|
25324
|
+
break;
|
|
25325
|
+
}
|
|
25326
|
+
message.startedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
25327
|
+
continue;
|
|
25328
|
+
}
|
|
25329
|
+
case 3: {
|
|
25330
|
+
if (tag !== 26) {
|
|
25331
|
+
break;
|
|
25332
|
+
}
|
|
25333
|
+
message.containerId = reader.string();
|
|
25334
|
+
continue;
|
|
25335
|
+
}
|
|
25336
|
+
case 4: {
|
|
25337
|
+
if (tag !== 33) {
|
|
25338
|
+
break;
|
|
25339
|
+
}
|
|
25340
|
+
message.startupTimeSeconds = reader.double();
|
|
25341
|
+
continue;
|
|
25342
|
+
}
|
|
25343
|
+
case 5: {
|
|
25344
|
+
if (tag !== 41) {
|
|
25345
|
+
break;
|
|
25346
|
+
}
|
|
25347
|
+
message.executionTimeSeconds = reader.double();
|
|
25348
|
+
continue;
|
|
25349
|
+
}
|
|
25350
|
+
case 6: {
|
|
25351
|
+
if (tag !== 48) {
|
|
25352
|
+
break;
|
|
25353
|
+
}
|
|
25354
|
+
message.status = reader.int32();
|
|
25355
|
+
continue;
|
|
25356
|
+
}
|
|
25357
|
+
case 7: {
|
|
25358
|
+
if (tag !== 58) {
|
|
25359
|
+
break;
|
|
25360
|
+
}
|
|
25361
|
+
message.functionCallId = reader.string();
|
|
25362
|
+
continue;
|
|
25363
|
+
}
|
|
25364
|
+
case 8: {
|
|
25365
|
+
if (tag !== 66) {
|
|
25366
|
+
break;
|
|
25367
|
+
}
|
|
25368
|
+
message.serviceMethodName = reader.string();
|
|
25369
|
+
continue;
|
|
25370
|
+
}
|
|
25371
|
+
}
|
|
25372
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
25373
|
+
break;
|
|
25374
|
+
}
|
|
25375
|
+
reader.skip(tag & 7);
|
|
25376
|
+
}
|
|
25377
|
+
return message;
|
|
25378
|
+
},
|
|
25379
|
+
fromJSON(object) {
|
|
25380
|
+
return {
|
|
25381
|
+
enqueuedAt: isSet5(object.enqueuedAt) ? fromJsonTimestamp(object.enqueuedAt) : void 0,
|
|
25382
|
+
startedAt: isSet5(object.startedAt) ? fromJsonTimestamp(object.startedAt) : void 0,
|
|
25383
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : void 0,
|
|
25384
|
+
startupTimeSeconds: isSet5(object.startupTimeSeconds) ? globalThis.Number(object.startupTimeSeconds) : void 0,
|
|
25385
|
+
executionTimeSeconds: isSet5(object.executionTimeSeconds) ? globalThis.Number(object.executionTimeSeconds) : void 0,
|
|
25386
|
+
status: isSet5(object.status) ? functionCallInputStatusFromJSON(object.status) : 0,
|
|
25387
|
+
functionCallId: isSet5(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
|
|
25388
|
+
serviceMethodName: isSet5(object.serviceMethodName) ? globalThis.String(object.serviceMethodName) : void 0
|
|
25389
|
+
};
|
|
25390
|
+
},
|
|
25391
|
+
toJSON(message) {
|
|
25392
|
+
const obj = {};
|
|
25393
|
+
if (message.enqueuedAt !== void 0) {
|
|
25394
|
+
obj.enqueuedAt = message.enqueuedAt.toISOString();
|
|
25395
|
+
}
|
|
25396
|
+
if (message.startedAt !== void 0) {
|
|
25397
|
+
obj.startedAt = message.startedAt.toISOString();
|
|
25398
|
+
}
|
|
25399
|
+
if (message.containerId !== void 0) {
|
|
25400
|
+
obj.containerId = message.containerId;
|
|
25401
|
+
}
|
|
25402
|
+
if (message.startupTimeSeconds !== void 0) {
|
|
25403
|
+
obj.startupTimeSeconds = message.startupTimeSeconds;
|
|
25404
|
+
}
|
|
25405
|
+
if (message.executionTimeSeconds !== void 0) {
|
|
25406
|
+
obj.executionTimeSeconds = message.executionTimeSeconds;
|
|
25407
|
+
}
|
|
25408
|
+
if (message.status !== 0) {
|
|
25409
|
+
obj.status = functionCallInputStatusToJSON(message.status);
|
|
25410
|
+
}
|
|
25411
|
+
if (message.functionCallId !== "") {
|
|
25412
|
+
obj.functionCallId = message.functionCallId;
|
|
25413
|
+
}
|
|
25414
|
+
if (message.serviceMethodName !== void 0) {
|
|
25415
|
+
obj.serviceMethodName = message.serviceMethodName;
|
|
25416
|
+
}
|
|
25417
|
+
return obj;
|
|
25418
|
+
},
|
|
25419
|
+
create(base) {
|
|
25420
|
+
return FunctionCallInputInfo.fromPartial(base ?? {});
|
|
25421
|
+
},
|
|
25422
|
+
fromPartial(object) {
|
|
25423
|
+
const message = createBaseFunctionCallInputInfo();
|
|
25424
|
+
message.enqueuedAt = object.enqueuedAt ?? void 0;
|
|
25425
|
+
message.startedAt = object.startedAt ?? void 0;
|
|
25426
|
+
message.containerId = object.containerId ?? void 0;
|
|
25427
|
+
message.startupTimeSeconds = object.startupTimeSeconds ?? void 0;
|
|
25428
|
+
message.executionTimeSeconds = object.executionTimeSeconds ?? void 0;
|
|
25429
|
+
message.status = object.status ?? 0;
|
|
25430
|
+
message.functionCallId = object.functionCallId ?? "";
|
|
25431
|
+
message.serviceMethodName = object.serviceMethodName ?? void 0;
|
|
25432
|
+
return message;
|
|
25433
|
+
}
|
|
25434
|
+
};
|
|
25022
25435
|
function createBaseFunctionCallListRequest() {
|
|
25023
25436
|
return { functionId: "" };
|
|
25024
25437
|
}
|
|
@@ -25479,8 +25892,6 @@ function createBaseFunctionData() {
|
|
|
25479
25892
|
isClass: false,
|
|
25480
25893
|
classParameterInfo: void 0,
|
|
25481
25894
|
isMethod: false,
|
|
25482
|
-
useFunctionId: "",
|
|
25483
|
-
useMethodName: "",
|
|
25484
25895
|
rankedFunctions: [],
|
|
25485
25896
|
schedule: void 0,
|
|
25486
25897
|
untrusted: false,
|
|
@@ -25572,12 +25983,6 @@ var FunctionData = {
|
|
|
25572
25983
|
if (message.isMethod !== false) {
|
|
25573
25984
|
writer.uint32(120).bool(message.isMethod);
|
|
25574
25985
|
}
|
|
25575
|
-
if (message.useFunctionId !== "") {
|
|
25576
|
-
writer.uint32(130).string(message.useFunctionId);
|
|
25577
|
-
}
|
|
25578
|
-
if (message.useMethodName !== "") {
|
|
25579
|
-
writer.uint32(138).string(message.useMethodName);
|
|
25580
|
-
}
|
|
25581
25986
|
for (const v of message.rankedFunctions) {
|
|
25582
25987
|
FunctionData_RankedFunction.encode(v, writer.uint32(146).fork()).join();
|
|
25583
25988
|
}
|
|
@@ -25809,20 +26214,6 @@ var FunctionData = {
|
|
|
25809
26214
|
message.isMethod = reader.bool();
|
|
25810
26215
|
continue;
|
|
25811
26216
|
}
|
|
25812
|
-
case 16: {
|
|
25813
|
-
if (tag !== 130) {
|
|
25814
|
-
break;
|
|
25815
|
-
}
|
|
25816
|
-
message.useFunctionId = reader.string();
|
|
25817
|
-
continue;
|
|
25818
|
-
}
|
|
25819
|
-
case 17: {
|
|
25820
|
-
if (tag !== 138) {
|
|
25821
|
-
break;
|
|
25822
|
-
}
|
|
25823
|
-
message.useMethodName = reader.string();
|
|
25824
|
-
continue;
|
|
25825
|
-
}
|
|
25826
26217
|
case 18: {
|
|
25827
26218
|
if (tag !== 146) {
|
|
25828
26219
|
break;
|
|
@@ -26002,8 +26393,6 @@ var FunctionData = {
|
|
|
26002
26393
|
isClass: isSet5(object.isClass) ? globalThis.Boolean(object.isClass) : false,
|
|
26003
26394
|
classParameterInfo: isSet5(object.classParameterInfo) ? ClassParameterInfo.fromJSON(object.classParameterInfo) : void 0,
|
|
26004
26395
|
isMethod: isSet5(object.isMethod) ? globalThis.Boolean(object.isMethod) : false,
|
|
26005
|
-
useFunctionId: isSet5(object.useFunctionId) ? globalThis.String(object.useFunctionId) : "",
|
|
26006
|
-
useMethodName: isSet5(object.useMethodName) ? globalThis.String(object.useMethodName) : "",
|
|
26007
26396
|
rankedFunctions: globalThis.Array.isArray(object?.rankedFunctions) ? object.rankedFunctions.map((e) => FunctionData_RankedFunction.fromJSON(e)) : [],
|
|
26008
26397
|
schedule: isSet5(object.schedule) ? Schedule.fromJSON(object.schedule) : void 0,
|
|
26009
26398
|
untrusted: isSet5(object.untrusted) ? globalThis.Boolean(object.untrusted) : false,
|
|
@@ -26104,12 +26493,6 @@ var FunctionData = {
|
|
|
26104
26493
|
if (message.isMethod !== false) {
|
|
26105
26494
|
obj.isMethod = message.isMethod;
|
|
26106
26495
|
}
|
|
26107
|
-
if (message.useFunctionId !== "") {
|
|
26108
|
-
obj.useFunctionId = message.useFunctionId;
|
|
26109
|
-
}
|
|
26110
|
-
if (message.useMethodName !== "") {
|
|
26111
|
-
obj.useMethodName = message.useMethodName;
|
|
26112
|
-
}
|
|
26113
26496
|
if (message.rankedFunctions?.length) {
|
|
26114
26497
|
obj.rankedFunctions = message.rankedFunctions.map((e) => FunctionData_RankedFunction.toJSON(e));
|
|
26115
26498
|
}
|
|
@@ -26205,8 +26588,6 @@ var FunctionData = {
|
|
|
26205
26588
|
message.isClass = object.isClass ?? false;
|
|
26206
26589
|
message.classParameterInfo = object.classParameterInfo !== void 0 && object.classParameterInfo !== null ? ClassParameterInfo.fromPartial(object.classParameterInfo) : void 0;
|
|
26207
26590
|
message.isMethod = object.isMethod ?? false;
|
|
26208
|
-
message.useFunctionId = object.useFunctionId ?? "";
|
|
26209
|
-
message.useMethodName = object.useMethodName ?? "";
|
|
26210
26591
|
message.rankedFunctions = object.rankedFunctions?.map((e) => FunctionData_RankedFunction.fromPartial(e)) || [];
|
|
26211
26592
|
message.schedule = object.schedule !== void 0 && object.schedule !== null ? Schedule.fromPartial(object.schedule) : void 0;
|
|
26212
26593
|
message.untrusted = object.untrusted ?? false;
|
|
@@ -28839,7 +29220,6 @@ function createBaseFunctionHandleMetadata() {
|
|
|
28839
29220
|
functionType: 0,
|
|
28840
29221
|
webUrl: "",
|
|
28841
29222
|
isMethod: false,
|
|
28842
|
-
useFunctionId: "",
|
|
28843
29223
|
useMethodName: "",
|
|
28844
29224
|
definitionId: "",
|
|
28845
29225
|
classParameterInfo: void 0,
|
|
@@ -28870,9 +29250,6 @@ var FunctionHandleMetadata = {
|
|
|
28870
29250
|
if (message.isMethod !== false) {
|
|
28871
29251
|
writer.uint32(312).bool(message.isMethod);
|
|
28872
29252
|
}
|
|
28873
|
-
if (message.useFunctionId !== "") {
|
|
28874
|
-
writer.uint32(322).string(message.useFunctionId);
|
|
28875
|
-
}
|
|
28876
29253
|
if (message.useMethodName !== "") {
|
|
28877
29254
|
writer.uint32(330).string(message.useMethodName);
|
|
28878
29255
|
}
|
|
@@ -28956,13 +29333,6 @@ var FunctionHandleMetadata = {
|
|
|
28956
29333
|
message.isMethod = reader.bool();
|
|
28957
29334
|
continue;
|
|
28958
29335
|
}
|
|
28959
|
-
case 40: {
|
|
28960
|
-
if (tag !== 322) {
|
|
28961
|
-
break;
|
|
28962
|
-
}
|
|
28963
|
-
message.useFunctionId = reader.string();
|
|
28964
|
-
continue;
|
|
28965
|
-
}
|
|
28966
29336
|
case 41: {
|
|
28967
29337
|
if (tag !== 330) {
|
|
28968
29338
|
break;
|
|
@@ -29092,7 +29462,6 @@ var FunctionHandleMetadata = {
|
|
|
29092
29462
|
functionType: isSet5(object.functionType) ? function_FunctionTypeFromJSON(object.functionType) : 0,
|
|
29093
29463
|
webUrl: isSet5(object.webUrl) ? globalThis.String(object.webUrl) : "",
|
|
29094
29464
|
isMethod: isSet5(object.isMethod) ? globalThis.Boolean(object.isMethod) : false,
|
|
29095
|
-
useFunctionId: isSet5(object.useFunctionId) ? globalThis.String(object.useFunctionId) : "",
|
|
29096
29465
|
useMethodName: isSet5(object.useMethodName) ? globalThis.String(object.useMethodName) : "",
|
|
29097
29466
|
definitionId: isSet5(object.definitionId) ? globalThis.String(object.definitionId) : "",
|
|
29098
29467
|
classParameterInfo: isSet5(object.classParameterInfo) ? ClassParameterInfo.fromJSON(object.classParameterInfo) : void 0,
|
|
@@ -29129,9 +29498,6 @@ var FunctionHandleMetadata = {
|
|
|
29129
29498
|
if (message.isMethod !== false) {
|
|
29130
29499
|
obj.isMethod = message.isMethod;
|
|
29131
29500
|
}
|
|
29132
|
-
if (message.useFunctionId !== "") {
|
|
29133
|
-
obj.useFunctionId = message.useFunctionId;
|
|
29134
|
-
}
|
|
29135
29501
|
if (message.useMethodName !== "") {
|
|
29136
29502
|
obj.useMethodName = message.useMethodName;
|
|
29137
29503
|
}
|
|
@@ -29191,7 +29557,6 @@ var FunctionHandleMetadata = {
|
|
|
29191
29557
|
message.functionType = object.functionType ?? 0;
|
|
29192
29558
|
message.webUrl = object.webUrl ?? "";
|
|
29193
29559
|
message.isMethod = object.isMethod ?? false;
|
|
29194
|
-
message.useFunctionId = object.useFunctionId ?? "";
|
|
29195
29560
|
message.useMethodName = object.useMethodName ?? "";
|
|
29196
29561
|
message.definitionId = object.definitionId ?? "";
|
|
29197
29562
|
message.classParameterInfo = object.classParameterInfo !== void 0 && object.classParameterInfo !== null ? ClassParameterInfo.fromPartial(object.classParameterInfo) : void 0;
|
|
@@ -29395,6 +29760,172 @@ var FunctionInput = {
|
|
|
29395
29760
|
return message;
|
|
29396
29761
|
}
|
|
29397
29762
|
};
|
|
29763
|
+
function createBaseFunctionListVariantsRequest() {
|
|
29764
|
+
return { functionId: "", cursor: void 0, limit: 0 };
|
|
29765
|
+
}
|
|
29766
|
+
var FunctionListVariantsRequest = {
|
|
29767
|
+
encode(message, writer = new BinaryWriter()) {
|
|
29768
|
+
if (message.functionId !== "") {
|
|
29769
|
+
writer.uint32(10).string(message.functionId);
|
|
29770
|
+
}
|
|
29771
|
+
if (message.cursor !== void 0) {
|
|
29772
|
+
FunctionVariantCursor.encode(message.cursor, writer.uint32(18).fork()).join();
|
|
29773
|
+
}
|
|
29774
|
+
if (message.limit !== 0) {
|
|
29775
|
+
writer.uint32(24).uint32(message.limit);
|
|
29776
|
+
}
|
|
29777
|
+
return writer;
|
|
29778
|
+
},
|
|
29779
|
+
decode(input, length) {
|
|
29780
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
29781
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
29782
|
+
const message = createBaseFunctionListVariantsRequest();
|
|
29783
|
+
while (reader.pos < end) {
|
|
29784
|
+
const tag = reader.uint32();
|
|
29785
|
+
switch (tag >>> 3) {
|
|
29786
|
+
case 1: {
|
|
29787
|
+
if (tag !== 10) {
|
|
29788
|
+
break;
|
|
29789
|
+
}
|
|
29790
|
+
message.functionId = reader.string();
|
|
29791
|
+
continue;
|
|
29792
|
+
}
|
|
29793
|
+
case 2: {
|
|
29794
|
+
if (tag !== 18) {
|
|
29795
|
+
break;
|
|
29796
|
+
}
|
|
29797
|
+
message.cursor = FunctionVariantCursor.decode(reader, reader.uint32());
|
|
29798
|
+
continue;
|
|
29799
|
+
}
|
|
29800
|
+
case 3: {
|
|
29801
|
+
if (tag !== 24) {
|
|
29802
|
+
break;
|
|
29803
|
+
}
|
|
29804
|
+
message.limit = reader.uint32();
|
|
29805
|
+
continue;
|
|
29806
|
+
}
|
|
29807
|
+
}
|
|
29808
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
29809
|
+
break;
|
|
29810
|
+
}
|
|
29811
|
+
reader.skip(tag & 7);
|
|
29812
|
+
}
|
|
29813
|
+
return message;
|
|
29814
|
+
},
|
|
29815
|
+
fromJSON(object) {
|
|
29816
|
+
return {
|
|
29817
|
+
functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
29818
|
+
cursor: isSet5(object.cursor) ? FunctionVariantCursor.fromJSON(object.cursor) : void 0,
|
|
29819
|
+
limit: isSet5(object.limit) ? globalThis.Number(object.limit) : 0
|
|
29820
|
+
};
|
|
29821
|
+
},
|
|
29822
|
+
toJSON(message) {
|
|
29823
|
+
const obj = {};
|
|
29824
|
+
if (message.functionId !== "") {
|
|
29825
|
+
obj.functionId = message.functionId;
|
|
29826
|
+
}
|
|
29827
|
+
if (message.cursor !== void 0) {
|
|
29828
|
+
obj.cursor = FunctionVariantCursor.toJSON(message.cursor);
|
|
29829
|
+
}
|
|
29830
|
+
if (message.limit !== 0) {
|
|
29831
|
+
obj.limit = Math.round(message.limit);
|
|
29832
|
+
}
|
|
29833
|
+
return obj;
|
|
29834
|
+
},
|
|
29835
|
+
create(base) {
|
|
29836
|
+
return FunctionListVariantsRequest.fromPartial(base ?? {});
|
|
29837
|
+
},
|
|
29838
|
+
fromPartial(object) {
|
|
29839
|
+
const message = createBaseFunctionListVariantsRequest();
|
|
29840
|
+
message.functionId = object.functionId ?? "";
|
|
29841
|
+
message.cursor = object.cursor !== void 0 && object.cursor !== null ? FunctionVariantCursor.fromPartial(object.cursor) : void 0;
|
|
29842
|
+
message.limit = object.limit ?? 0;
|
|
29843
|
+
return message;
|
|
29844
|
+
}
|
|
29845
|
+
};
|
|
29846
|
+
function createBaseFunctionListVariantsResponse() {
|
|
29847
|
+
return { infos: [], nextCursor: void 0, orderedByTaskCount: false };
|
|
29848
|
+
}
|
|
29849
|
+
var FunctionListVariantsResponse = {
|
|
29850
|
+
encode(message, writer = new BinaryWriter()) {
|
|
29851
|
+
for (const v of message.infos) {
|
|
29852
|
+
FunctionVariantInfo.encode(v, writer.uint32(10).fork()).join();
|
|
29853
|
+
}
|
|
29854
|
+
if (message.nextCursor !== void 0) {
|
|
29855
|
+
FunctionVariantCursor.encode(message.nextCursor, writer.uint32(18).fork()).join();
|
|
29856
|
+
}
|
|
29857
|
+
if (message.orderedByTaskCount !== false) {
|
|
29858
|
+
writer.uint32(24).bool(message.orderedByTaskCount);
|
|
29859
|
+
}
|
|
29860
|
+
return writer;
|
|
29861
|
+
},
|
|
29862
|
+
decode(input, length) {
|
|
29863
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
29864
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
29865
|
+
const message = createBaseFunctionListVariantsResponse();
|
|
29866
|
+
while (reader.pos < end) {
|
|
29867
|
+
const tag = reader.uint32();
|
|
29868
|
+
switch (tag >>> 3) {
|
|
29869
|
+
case 1: {
|
|
29870
|
+
if (tag !== 10) {
|
|
29871
|
+
break;
|
|
29872
|
+
}
|
|
29873
|
+
message.infos.push(FunctionVariantInfo.decode(reader, reader.uint32()));
|
|
29874
|
+
continue;
|
|
29875
|
+
}
|
|
29876
|
+
case 2: {
|
|
29877
|
+
if (tag !== 18) {
|
|
29878
|
+
break;
|
|
29879
|
+
}
|
|
29880
|
+
message.nextCursor = FunctionVariantCursor.decode(reader, reader.uint32());
|
|
29881
|
+
continue;
|
|
29882
|
+
}
|
|
29883
|
+
case 3: {
|
|
29884
|
+
if (tag !== 24) {
|
|
29885
|
+
break;
|
|
29886
|
+
}
|
|
29887
|
+
message.orderedByTaskCount = reader.bool();
|
|
29888
|
+
continue;
|
|
29889
|
+
}
|
|
29890
|
+
}
|
|
29891
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
29892
|
+
break;
|
|
29893
|
+
}
|
|
29894
|
+
reader.skip(tag & 7);
|
|
29895
|
+
}
|
|
29896
|
+
return message;
|
|
29897
|
+
},
|
|
29898
|
+
fromJSON(object) {
|
|
29899
|
+
return {
|
|
29900
|
+
infos: globalThis.Array.isArray(object?.infos) ? object.infos.map((e) => FunctionVariantInfo.fromJSON(e)) : [],
|
|
29901
|
+
nextCursor: isSet5(object.nextCursor) ? FunctionVariantCursor.fromJSON(object.nextCursor) : void 0,
|
|
29902
|
+
orderedByTaskCount: isSet5(object.orderedByTaskCount) ? globalThis.Boolean(object.orderedByTaskCount) : false
|
|
29903
|
+
};
|
|
29904
|
+
},
|
|
29905
|
+
toJSON(message) {
|
|
29906
|
+
const obj = {};
|
|
29907
|
+
if (message.infos?.length) {
|
|
29908
|
+
obj.infos = message.infos.map((e) => FunctionVariantInfo.toJSON(e));
|
|
29909
|
+
}
|
|
29910
|
+
if (message.nextCursor !== void 0) {
|
|
29911
|
+
obj.nextCursor = FunctionVariantCursor.toJSON(message.nextCursor);
|
|
29912
|
+
}
|
|
29913
|
+
if (message.orderedByTaskCount !== false) {
|
|
29914
|
+
obj.orderedByTaskCount = message.orderedByTaskCount;
|
|
29915
|
+
}
|
|
29916
|
+
return obj;
|
|
29917
|
+
},
|
|
29918
|
+
create(base) {
|
|
29919
|
+
return FunctionListVariantsResponse.fromPartial(base ?? {});
|
|
29920
|
+
},
|
|
29921
|
+
fromPartial(object) {
|
|
29922
|
+
const message = createBaseFunctionListVariantsResponse();
|
|
29923
|
+
message.infos = object.infos?.map((e) => FunctionVariantInfo.fromPartial(e)) || [];
|
|
29924
|
+
message.nextCursor = object.nextCursor !== void 0 && object.nextCursor !== null ? FunctionVariantCursor.fromPartial(object.nextCursor) : void 0;
|
|
29925
|
+
message.orderedByTaskCount = object.orderedByTaskCount ?? false;
|
|
29926
|
+
return message;
|
|
29927
|
+
}
|
|
29928
|
+
};
|
|
29398
29929
|
function createBaseFunctionMapRequest() {
|
|
29399
29930
|
return {
|
|
29400
29931
|
functionId: "",
|
|
@@ -30079,8 +30610,6 @@ function createBaseFunctionPrecreateRequest() {
|
|
|
30079
30610
|
existingFunctionId: "",
|
|
30080
30611
|
functionType: 0,
|
|
30081
30612
|
webhookConfig: void 0,
|
|
30082
|
-
useFunctionId: "",
|
|
30083
|
-
useMethodName: "",
|
|
30084
30613
|
methodDefinitions: {},
|
|
30085
30614
|
functionSchema: void 0,
|
|
30086
30615
|
supportedInputFormats: [],
|
|
@@ -30104,12 +30633,6 @@ var FunctionPrecreateRequest = {
|
|
|
30104
30633
|
if (message.webhookConfig !== void 0) {
|
|
30105
30634
|
WebhookConfig.encode(message.webhookConfig, writer.uint32(42).fork()).join();
|
|
30106
30635
|
}
|
|
30107
|
-
if (message.useFunctionId !== "") {
|
|
30108
|
-
writer.uint32(50).string(message.useFunctionId);
|
|
30109
|
-
}
|
|
30110
|
-
if (message.useMethodName !== "") {
|
|
30111
|
-
writer.uint32(58).string(message.useMethodName);
|
|
30112
|
-
}
|
|
30113
30636
|
Object.entries(message.methodDefinitions).forEach(([key, value]) => {
|
|
30114
30637
|
FunctionPrecreateRequest_MethodDefinitionsEntry.encode({ key, value }, writer.uint32(66).fork()).join();
|
|
30115
30638
|
});
|
|
@@ -30170,20 +30693,6 @@ var FunctionPrecreateRequest = {
|
|
|
30170
30693
|
message.webhookConfig = WebhookConfig.decode(reader, reader.uint32());
|
|
30171
30694
|
continue;
|
|
30172
30695
|
}
|
|
30173
|
-
case 6: {
|
|
30174
|
-
if (tag !== 50) {
|
|
30175
|
-
break;
|
|
30176
|
-
}
|
|
30177
|
-
message.useFunctionId = reader.string();
|
|
30178
|
-
continue;
|
|
30179
|
-
}
|
|
30180
|
-
case 7: {
|
|
30181
|
-
if (tag !== 58) {
|
|
30182
|
-
break;
|
|
30183
|
-
}
|
|
30184
|
-
message.useMethodName = reader.string();
|
|
30185
|
-
continue;
|
|
30186
|
-
}
|
|
30187
30696
|
case 8: {
|
|
30188
30697
|
if (tag !== 66) {
|
|
30189
30698
|
break;
|
|
@@ -30244,8 +30753,6 @@ var FunctionPrecreateRequest = {
|
|
|
30244
30753
|
existingFunctionId: isSet5(object.existingFunctionId) ? globalThis.String(object.existingFunctionId) : "",
|
|
30245
30754
|
functionType: isSet5(object.functionType) ? function_FunctionTypeFromJSON(object.functionType) : 0,
|
|
30246
30755
|
webhookConfig: isSet5(object.webhookConfig) ? WebhookConfig.fromJSON(object.webhookConfig) : void 0,
|
|
30247
|
-
useFunctionId: isSet5(object.useFunctionId) ? globalThis.String(object.useFunctionId) : "",
|
|
30248
|
-
useMethodName: isSet5(object.useMethodName) ? globalThis.String(object.useMethodName) : "",
|
|
30249
30756
|
methodDefinitions: isObject2(object.methodDefinitions) ? Object.entries(object.methodDefinitions).reduce((acc, [key, value]) => {
|
|
30250
30757
|
acc[key] = MethodDefinition.fromJSON(value);
|
|
30251
30758
|
return acc;
|
|
@@ -30272,12 +30779,6 @@ var FunctionPrecreateRequest = {
|
|
|
30272
30779
|
if (message.webhookConfig !== void 0) {
|
|
30273
30780
|
obj.webhookConfig = WebhookConfig.toJSON(message.webhookConfig);
|
|
30274
30781
|
}
|
|
30275
|
-
if (message.useFunctionId !== "") {
|
|
30276
|
-
obj.useFunctionId = message.useFunctionId;
|
|
30277
|
-
}
|
|
30278
|
-
if (message.useMethodName !== "") {
|
|
30279
|
-
obj.useMethodName = message.useMethodName;
|
|
30280
|
-
}
|
|
30281
30782
|
if (message.methodDefinitions) {
|
|
30282
30783
|
const entries = Object.entries(message.methodDefinitions);
|
|
30283
30784
|
if (entries.length > 0) {
|
|
@@ -30308,8 +30809,6 @@ var FunctionPrecreateRequest = {
|
|
|
30308
30809
|
message.existingFunctionId = object.existingFunctionId ?? "";
|
|
30309
30810
|
message.functionType = object.functionType ?? 0;
|
|
30310
30811
|
message.webhookConfig = object.webhookConfig !== void 0 && object.webhookConfig !== null ? WebhookConfig.fromPartial(object.webhookConfig) : void 0;
|
|
30311
|
-
message.useFunctionId = object.useFunctionId ?? "";
|
|
30312
|
-
message.useMethodName = object.useMethodName ?? "";
|
|
30313
30812
|
message.methodDefinitions = Object.entries(object.methodDefinitions ?? {}).reduce((acc, [key, value]) => {
|
|
30314
30813
|
if (value !== void 0) {
|
|
30315
30814
|
acc[key] = MethodDefinition.fromPartial(value);
|
|
@@ -31660,6 +32159,157 @@ var FunctionUpdateSchedulingParamsResponse = {
|
|
|
31660
32159
|
return message;
|
|
31661
32160
|
}
|
|
31662
32161
|
};
|
|
32162
|
+
function createBaseFunctionVariantCursor() {
|
|
32163
|
+
return { createdBefore: 0, functionId: "" };
|
|
32164
|
+
}
|
|
32165
|
+
var FunctionVariantCursor = {
|
|
32166
|
+
encode(message, writer = new BinaryWriter()) {
|
|
32167
|
+
if (message.createdBefore !== 0) {
|
|
32168
|
+
writer.uint32(9).double(message.createdBefore);
|
|
32169
|
+
}
|
|
32170
|
+
if (message.functionId !== "") {
|
|
32171
|
+
writer.uint32(18).string(message.functionId);
|
|
32172
|
+
}
|
|
32173
|
+
return writer;
|
|
32174
|
+
},
|
|
32175
|
+
decode(input, length) {
|
|
32176
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
32177
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
32178
|
+
const message = createBaseFunctionVariantCursor();
|
|
32179
|
+
while (reader.pos < end) {
|
|
32180
|
+
const tag = reader.uint32();
|
|
32181
|
+
switch (tag >>> 3) {
|
|
32182
|
+
case 1: {
|
|
32183
|
+
if (tag !== 9) {
|
|
32184
|
+
break;
|
|
32185
|
+
}
|
|
32186
|
+
message.createdBefore = reader.double();
|
|
32187
|
+
continue;
|
|
32188
|
+
}
|
|
32189
|
+
case 2: {
|
|
32190
|
+
if (tag !== 18) {
|
|
32191
|
+
break;
|
|
32192
|
+
}
|
|
32193
|
+
message.functionId = reader.string();
|
|
32194
|
+
continue;
|
|
32195
|
+
}
|
|
32196
|
+
}
|
|
32197
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
32198
|
+
break;
|
|
32199
|
+
}
|
|
32200
|
+
reader.skip(tag & 7);
|
|
32201
|
+
}
|
|
32202
|
+
return message;
|
|
32203
|
+
},
|
|
32204
|
+
fromJSON(object) {
|
|
32205
|
+
return {
|
|
32206
|
+
createdBefore: isSet5(object.createdBefore) ? globalThis.Number(object.createdBefore) : 0,
|
|
32207
|
+
functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : ""
|
|
32208
|
+
};
|
|
32209
|
+
},
|
|
32210
|
+
toJSON(message) {
|
|
32211
|
+
const obj = {};
|
|
32212
|
+
if (message.createdBefore !== 0) {
|
|
32213
|
+
obj.createdBefore = message.createdBefore;
|
|
32214
|
+
}
|
|
32215
|
+
if (message.functionId !== "") {
|
|
32216
|
+
obj.functionId = message.functionId;
|
|
32217
|
+
}
|
|
32218
|
+
return obj;
|
|
32219
|
+
},
|
|
32220
|
+
create(base) {
|
|
32221
|
+
return FunctionVariantCursor.fromPartial(base ?? {});
|
|
32222
|
+
},
|
|
32223
|
+
fromPartial(object) {
|
|
32224
|
+
const message = createBaseFunctionVariantCursor();
|
|
32225
|
+
message.createdBefore = object.createdBefore ?? 0;
|
|
32226
|
+
message.functionId = object.functionId ?? "";
|
|
32227
|
+
return message;
|
|
32228
|
+
}
|
|
32229
|
+
};
|
|
32230
|
+
function createBaseFunctionVariantInfo() {
|
|
32231
|
+
return { functionId: "", serializedParams: new Uint8Array(0), functionOptions: void 0 };
|
|
32232
|
+
}
|
|
32233
|
+
var FunctionVariantInfo = {
|
|
32234
|
+
encode(message, writer = new BinaryWriter()) {
|
|
32235
|
+
if (message.functionId !== "") {
|
|
32236
|
+
writer.uint32(10).string(message.functionId);
|
|
32237
|
+
}
|
|
32238
|
+
if (message.serializedParams.length !== 0) {
|
|
32239
|
+
writer.uint32(18).bytes(message.serializedParams);
|
|
32240
|
+
}
|
|
32241
|
+
if (message.functionOptions !== void 0) {
|
|
32242
|
+
FunctionOptions.encode(message.functionOptions, writer.uint32(26).fork()).join();
|
|
32243
|
+
}
|
|
32244
|
+
return writer;
|
|
32245
|
+
},
|
|
32246
|
+
decode(input, length) {
|
|
32247
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
32248
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
32249
|
+
const message = createBaseFunctionVariantInfo();
|
|
32250
|
+
while (reader.pos < end) {
|
|
32251
|
+
const tag = reader.uint32();
|
|
32252
|
+
switch (tag >>> 3) {
|
|
32253
|
+
case 1: {
|
|
32254
|
+
if (tag !== 10) {
|
|
32255
|
+
break;
|
|
32256
|
+
}
|
|
32257
|
+
message.functionId = reader.string();
|
|
32258
|
+
continue;
|
|
32259
|
+
}
|
|
32260
|
+
case 2: {
|
|
32261
|
+
if (tag !== 18) {
|
|
32262
|
+
break;
|
|
32263
|
+
}
|
|
32264
|
+
message.serializedParams = reader.bytes();
|
|
32265
|
+
continue;
|
|
32266
|
+
}
|
|
32267
|
+
case 3: {
|
|
32268
|
+
if (tag !== 26) {
|
|
32269
|
+
break;
|
|
32270
|
+
}
|
|
32271
|
+
message.functionOptions = FunctionOptions.decode(reader, reader.uint32());
|
|
32272
|
+
continue;
|
|
32273
|
+
}
|
|
32274
|
+
}
|
|
32275
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
32276
|
+
break;
|
|
32277
|
+
}
|
|
32278
|
+
reader.skip(tag & 7);
|
|
32279
|
+
}
|
|
32280
|
+
return message;
|
|
32281
|
+
},
|
|
32282
|
+
fromJSON(object) {
|
|
32283
|
+
return {
|
|
32284
|
+
functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
32285
|
+
serializedParams: isSet5(object.serializedParams) ? bytesFromBase642(object.serializedParams) : new Uint8Array(0),
|
|
32286
|
+
functionOptions: isSet5(object.functionOptions) ? FunctionOptions.fromJSON(object.functionOptions) : void 0
|
|
32287
|
+
};
|
|
32288
|
+
},
|
|
32289
|
+
toJSON(message) {
|
|
32290
|
+
const obj = {};
|
|
32291
|
+
if (message.functionId !== "") {
|
|
32292
|
+
obj.functionId = message.functionId;
|
|
32293
|
+
}
|
|
32294
|
+
if (message.serializedParams.length !== 0) {
|
|
32295
|
+
obj.serializedParams = base64FromBytes2(message.serializedParams);
|
|
32296
|
+
}
|
|
32297
|
+
if (message.functionOptions !== void 0) {
|
|
32298
|
+
obj.functionOptions = FunctionOptions.toJSON(message.functionOptions);
|
|
32299
|
+
}
|
|
32300
|
+
return obj;
|
|
32301
|
+
},
|
|
32302
|
+
create(base) {
|
|
32303
|
+
return FunctionVariantInfo.fromPartial(base ?? {});
|
|
32304
|
+
},
|
|
32305
|
+
fromPartial(object) {
|
|
32306
|
+
const message = createBaseFunctionVariantInfo();
|
|
32307
|
+
message.functionId = object.functionId ?? "";
|
|
32308
|
+
message.serializedParams = object.serializedParams ?? new Uint8Array(0);
|
|
32309
|
+
message.functionOptions = object.functionOptions !== void 0 && object.functionOptions !== null ? FunctionOptions.fromPartial(object.functionOptions) : void 0;
|
|
32310
|
+
return message;
|
|
32311
|
+
}
|
|
32312
|
+
};
|
|
31663
32313
|
function createBaseGPUConfig() {
|
|
31664
32314
|
return { type: 0, count: 0, gpuType: "" };
|
|
31665
32315
|
}
|
|
@@ -32053,7 +32703,8 @@ function createBaseHTTPConfig() {
|
|
|
32053
32703
|
exitGracePeriod: 0,
|
|
32054
32704
|
h2Enabled: false,
|
|
32055
32705
|
targetConcurrency: 0,
|
|
32056
|
-
unauthenticated: false
|
|
32706
|
+
unauthenticated: false,
|
|
32707
|
+
liftAndShiftConfig: void 0
|
|
32057
32708
|
};
|
|
32058
32709
|
}
|
|
32059
32710
|
var HTTPConfig = {
|
|
@@ -32079,6 +32730,9 @@ var HTTPConfig = {
|
|
|
32079
32730
|
if (message.unauthenticated !== false) {
|
|
32080
32731
|
writer.uint32(56).bool(message.unauthenticated);
|
|
32081
32732
|
}
|
|
32733
|
+
if (message.liftAndShiftConfig !== void 0) {
|
|
32734
|
+
LiftAndShiftConfig.encode(message.liftAndShiftConfig, writer.uint32(66).fork()).join();
|
|
32735
|
+
}
|
|
32082
32736
|
return writer;
|
|
32083
32737
|
},
|
|
32084
32738
|
decode(input, length) {
|
|
@@ -32137,6 +32791,13 @@ var HTTPConfig = {
|
|
|
32137
32791
|
message.unauthenticated = reader.bool();
|
|
32138
32792
|
continue;
|
|
32139
32793
|
}
|
|
32794
|
+
case 8: {
|
|
32795
|
+
if (tag !== 66) {
|
|
32796
|
+
break;
|
|
32797
|
+
}
|
|
32798
|
+
message.liftAndShiftConfig = LiftAndShiftConfig.decode(reader, reader.uint32());
|
|
32799
|
+
continue;
|
|
32800
|
+
}
|
|
32140
32801
|
}
|
|
32141
32802
|
if ((tag & 7) === 4 || tag === 0) {
|
|
32142
32803
|
break;
|
|
@@ -32153,7 +32814,8 @@ var HTTPConfig = {
|
|
|
32153
32814
|
exitGracePeriod: isSet5(object.exitGracePeriod) ? globalThis.Number(object.exitGracePeriod) : 0,
|
|
32154
32815
|
h2Enabled: isSet5(object.h2Enabled) ? globalThis.Boolean(object.h2Enabled) : false,
|
|
32155
32816
|
targetConcurrency: isSet5(object.targetConcurrency) ? globalThis.Number(object.targetConcurrency) : 0,
|
|
32156
|
-
unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false
|
|
32817
|
+
unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false,
|
|
32818
|
+
liftAndShiftConfig: isSet5(object.liftAndShiftConfig) ? LiftAndShiftConfig.fromJSON(object.liftAndShiftConfig) : void 0
|
|
32157
32819
|
};
|
|
32158
32820
|
},
|
|
32159
32821
|
toJSON(message) {
|
|
@@ -32179,6 +32841,9 @@ var HTTPConfig = {
|
|
|
32179
32841
|
if (message.unauthenticated !== false) {
|
|
32180
32842
|
obj.unauthenticated = message.unauthenticated;
|
|
32181
32843
|
}
|
|
32844
|
+
if (message.liftAndShiftConfig !== void 0) {
|
|
32845
|
+
obj.liftAndShiftConfig = LiftAndShiftConfig.toJSON(message.liftAndShiftConfig);
|
|
32846
|
+
}
|
|
32182
32847
|
return obj;
|
|
32183
32848
|
},
|
|
32184
32849
|
create(base) {
|
|
@@ -32193,6 +32858,7 @@ var HTTPConfig = {
|
|
|
32193
32858
|
message.h2Enabled = object.h2Enabled ?? false;
|
|
32194
32859
|
message.targetConcurrency = object.targetConcurrency ?? 0;
|
|
32195
32860
|
message.unauthenticated = object.unauthenticated ?? false;
|
|
32861
|
+
message.liftAndShiftConfig = object.liftAndShiftConfig !== void 0 && object.liftAndShiftConfig !== null ? LiftAndShiftConfig.fromPartial(object.liftAndShiftConfig) : void 0;
|
|
32196
32862
|
return message;
|
|
32197
32863
|
}
|
|
32198
32864
|
};
|
|
@@ -34968,6 +35634,43 @@ var InputInfo = {
|
|
|
34968
35634
|
return message;
|
|
34969
35635
|
}
|
|
34970
35636
|
};
|
|
35637
|
+
function createBaseLiftAndShiftConfig() {
|
|
35638
|
+
return {};
|
|
35639
|
+
}
|
|
35640
|
+
var LiftAndShiftConfig = {
|
|
35641
|
+
encode(_, writer = new BinaryWriter()) {
|
|
35642
|
+
return writer;
|
|
35643
|
+
},
|
|
35644
|
+
decode(input, length) {
|
|
35645
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
35646
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
35647
|
+
const message = createBaseLiftAndShiftConfig();
|
|
35648
|
+
while (reader.pos < end) {
|
|
35649
|
+
const tag = reader.uint32();
|
|
35650
|
+
switch (tag >>> 3) {
|
|
35651
|
+
}
|
|
35652
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35653
|
+
break;
|
|
35654
|
+
}
|
|
35655
|
+
reader.skip(tag & 7);
|
|
35656
|
+
}
|
|
35657
|
+
return message;
|
|
35658
|
+
},
|
|
35659
|
+
fromJSON(_) {
|
|
35660
|
+
return {};
|
|
35661
|
+
},
|
|
35662
|
+
toJSON(_) {
|
|
35663
|
+
const obj = {};
|
|
35664
|
+
return obj;
|
|
35665
|
+
},
|
|
35666
|
+
create(base) {
|
|
35667
|
+
return LiftAndShiftConfig.fromPartial(base ?? {});
|
|
35668
|
+
},
|
|
35669
|
+
fromPartial(_) {
|
|
35670
|
+
const message = createBaseLiftAndShiftConfig();
|
|
35671
|
+
return message;
|
|
35672
|
+
}
|
|
35673
|
+
};
|
|
34971
35674
|
function createBaseListPagination() {
|
|
34972
35675
|
return { maxObjects: 0, createdBefore: 0 };
|
|
34973
35676
|
}
|
|
@@ -47817,7 +48520,7 @@ var SecretListResponse = {
|
|
|
47817
48520
|
}
|
|
47818
48521
|
};
|
|
47819
48522
|
function createBaseSecretMetadata() {
|
|
47820
|
-
return { name: "", creationInfo: void 0 };
|
|
48523
|
+
return { name: "", creationInfo: void 0, keys: [] };
|
|
47821
48524
|
}
|
|
47822
48525
|
var SecretMetadata = {
|
|
47823
48526
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -47827,6 +48530,9 @@ var SecretMetadata = {
|
|
|
47827
48530
|
if (message.creationInfo !== void 0) {
|
|
47828
48531
|
CreationInfo.encode(message.creationInfo, writer.uint32(18).fork()).join();
|
|
47829
48532
|
}
|
|
48533
|
+
for (const v of message.keys) {
|
|
48534
|
+
writer.uint32(26).string(v);
|
|
48535
|
+
}
|
|
47830
48536
|
return writer;
|
|
47831
48537
|
},
|
|
47832
48538
|
decode(input, length) {
|
|
@@ -47850,6 +48556,13 @@ var SecretMetadata = {
|
|
|
47850
48556
|
message.creationInfo = CreationInfo.decode(reader, reader.uint32());
|
|
47851
48557
|
continue;
|
|
47852
48558
|
}
|
|
48559
|
+
case 3: {
|
|
48560
|
+
if (tag !== 26) {
|
|
48561
|
+
break;
|
|
48562
|
+
}
|
|
48563
|
+
message.keys.push(reader.string());
|
|
48564
|
+
continue;
|
|
48565
|
+
}
|
|
47853
48566
|
}
|
|
47854
48567
|
if ((tag & 7) === 4 || tag === 0) {
|
|
47855
48568
|
break;
|
|
@@ -47861,7 +48574,8 @@ var SecretMetadata = {
|
|
|
47861
48574
|
fromJSON(object) {
|
|
47862
48575
|
return {
|
|
47863
48576
|
name: isSet5(object.name) ? globalThis.String(object.name) : "",
|
|
47864
|
-
creationInfo: isSet5(object.creationInfo) ? CreationInfo.fromJSON(object.creationInfo) : void 0
|
|
48577
|
+
creationInfo: isSet5(object.creationInfo) ? CreationInfo.fromJSON(object.creationInfo) : void 0,
|
|
48578
|
+
keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e) => globalThis.String(e)) : []
|
|
47865
48579
|
};
|
|
47866
48580
|
},
|
|
47867
48581
|
toJSON(message) {
|
|
@@ -47872,6 +48586,9 @@ var SecretMetadata = {
|
|
|
47872
48586
|
if (message.creationInfo !== void 0) {
|
|
47873
48587
|
obj.creationInfo = CreationInfo.toJSON(message.creationInfo);
|
|
47874
48588
|
}
|
|
48589
|
+
if (message.keys?.length) {
|
|
48590
|
+
obj.keys = message.keys;
|
|
48591
|
+
}
|
|
47875
48592
|
return obj;
|
|
47876
48593
|
},
|
|
47877
48594
|
create(base) {
|
|
@@ -47881,6 +48598,7 @@ var SecretMetadata = {
|
|
|
47881
48598
|
const message = createBaseSecretMetadata();
|
|
47882
48599
|
message.name = object.name ?? "";
|
|
47883
48600
|
message.creationInfo = object.creationInfo !== void 0 && object.creationInfo !== null ? CreationInfo.fromPartial(object.creationInfo) : void 0;
|
|
48601
|
+
message.keys = object.keys?.map((e) => e) || [];
|
|
47884
48602
|
return message;
|
|
47885
48603
|
}
|
|
47886
48604
|
};
|
|
@@ -48596,32 +49314,236 @@ var ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry =
|
|
|
48596
49314
|
return obj;
|
|
48597
49315
|
},
|
|
48598
49316
|
create(base) {
|
|
48599
|
-
return ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.fromPartial(base ?? {});
|
|
49317
|
+
return ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.fromPartial(base ?? {});
|
|
49318
|
+
},
|
|
49319
|
+
fromPartial(object) {
|
|
49320
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry();
|
|
49321
|
+
message.key = object.key ?? "";
|
|
49322
|
+
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
49323
|
+
return message;
|
|
49324
|
+
}
|
|
49325
|
+
};
|
|
49326
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry() {
|
|
49327
|
+
return { key: "", value: 0 };
|
|
49328
|
+
}
|
|
49329
|
+
var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
|
|
49330
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49331
|
+
if (message.key !== "") {
|
|
49332
|
+
writer.uint32(10).string(message.key);
|
|
49333
|
+
}
|
|
49334
|
+
if (message.value !== 0) {
|
|
49335
|
+
writer.uint32(17).double(message.value);
|
|
49336
|
+
}
|
|
49337
|
+
return writer;
|
|
49338
|
+
},
|
|
49339
|
+
decode(input, length) {
|
|
49340
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49341
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49342
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
|
|
49343
|
+
while (reader.pos < end) {
|
|
49344
|
+
const tag = reader.uint32();
|
|
49345
|
+
switch (tag >>> 3) {
|
|
49346
|
+
case 1: {
|
|
49347
|
+
if (tag !== 10) {
|
|
49348
|
+
break;
|
|
49349
|
+
}
|
|
49350
|
+
message.key = reader.string();
|
|
49351
|
+
continue;
|
|
49352
|
+
}
|
|
49353
|
+
case 2: {
|
|
49354
|
+
if (tag !== 17) {
|
|
49355
|
+
break;
|
|
49356
|
+
}
|
|
49357
|
+
message.value = reader.double();
|
|
49358
|
+
continue;
|
|
49359
|
+
}
|
|
49360
|
+
}
|
|
49361
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49362
|
+
break;
|
|
49363
|
+
}
|
|
49364
|
+
reader.skip(tag & 7);
|
|
49365
|
+
}
|
|
49366
|
+
return message;
|
|
49367
|
+
},
|
|
49368
|
+
fromJSON(object) {
|
|
49369
|
+
return {
|
|
49370
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
49371
|
+
value: isSet5(object.value) ? globalThis.Number(object.value) : 0
|
|
49372
|
+
};
|
|
49373
|
+
},
|
|
49374
|
+
toJSON(message) {
|
|
49375
|
+
const obj = {};
|
|
49376
|
+
if (message.key !== "") {
|
|
49377
|
+
obj.key = message.key;
|
|
49378
|
+
}
|
|
49379
|
+
if (message.value !== 0) {
|
|
49380
|
+
obj.value = message.value;
|
|
49381
|
+
}
|
|
49382
|
+
return obj;
|
|
49383
|
+
},
|
|
49384
|
+
create(base) {
|
|
49385
|
+
return ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry.fromPartial(base ?? {});
|
|
49386
|
+
},
|
|
49387
|
+
fromPartial(object) {
|
|
49388
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
|
|
49389
|
+
message.key = object.key ?? "";
|
|
49390
|
+
message.value = object.value ?? 0;
|
|
49391
|
+
return message;
|
|
49392
|
+
}
|
|
49393
|
+
};
|
|
49394
|
+
function createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount() {
|
|
49395
|
+
return { statusCode: 0, count: 0 };
|
|
49396
|
+
}
|
|
49397
|
+
var ServerGetTimeRangeStatsResponse_ServerStatusCodeCount = {
|
|
49398
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49399
|
+
if (message.statusCode !== 0) {
|
|
49400
|
+
writer.uint32(8).uint32(message.statusCode);
|
|
49401
|
+
}
|
|
49402
|
+
if (message.count !== 0) {
|
|
49403
|
+
writer.uint32(16).uint64(message.count);
|
|
49404
|
+
}
|
|
49405
|
+
return writer;
|
|
49406
|
+
},
|
|
49407
|
+
decode(input, length) {
|
|
49408
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49409
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49410
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
|
|
49411
|
+
while (reader.pos < end) {
|
|
49412
|
+
const tag = reader.uint32();
|
|
49413
|
+
switch (tag >>> 3) {
|
|
49414
|
+
case 1: {
|
|
49415
|
+
if (tag !== 8) {
|
|
49416
|
+
break;
|
|
49417
|
+
}
|
|
49418
|
+
message.statusCode = reader.uint32();
|
|
49419
|
+
continue;
|
|
49420
|
+
}
|
|
49421
|
+
case 2: {
|
|
49422
|
+
if (tag !== 16) {
|
|
49423
|
+
break;
|
|
49424
|
+
}
|
|
49425
|
+
message.count = longToNumber2(reader.uint64());
|
|
49426
|
+
continue;
|
|
49427
|
+
}
|
|
49428
|
+
}
|
|
49429
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49430
|
+
break;
|
|
49431
|
+
}
|
|
49432
|
+
reader.skip(tag & 7);
|
|
49433
|
+
}
|
|
49434
|
+
return message;
|
|
49435
|
+
},
|
|
49436
|
+
fromJSON(object) {
|
|
49437
|
+
return {
|
|
49438
|
+
statusCode: isSet5(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
|
|
49439
|
+
count: isSet5(object.count) ? globalThis.Number(object.count) : 0
|
|
49440
|
+
};
|
|
49441
|
+
},
|
|
49442
|
+
toJSON(message) {
|
|
49443
|
+
const obj = {};
|
|
49444
|
+
if (message.statusCode !== 0) {
|
|
49445
|
+
obj.statusCode = Math.round(message.statusCode);
|
|
49446
|
+
}
|
|
49447
|
+
if (message.count !== 0) {
|
|
49448
|
+
obj.count = Math.round(message.count);
|
|
49449
|
+
}
|
|
49450
|
+
return obj;
|
|
49451
|
+
},
|
|
49452
|
+
create(base) {
|
|
49453
|
+
return ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.fromPartial(base ?? {});
|
|
49454
|
+
},
|
|
49455
|
+
fromPartial(object) {
|
|
49456
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
|
|
49457
|
+
message.statusCode = object.statusCode ?? 0;
|
|
49458
|
+
message.count = object.count ?? 0;
|
|
49459
|
+
return message;
|
|
49460
|
+
}
|
|
49461
|
+
};
|
|
49462
|
+
function createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry() {
|
|
49463
|
+
return { key: "", value: void 0 };
|
|
49464
|
+
}
|
|
49465
|
+
var ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry = {
|
|
49466
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49467
|
+
if (message.key !== "") {
|
|
49468
|
+
writer.uint32(10).string(message.key);
|
|
49469
|
+
}
|
|
49470
|
+
if (message.value !== void 0) {
|
|
49471
|
+
StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
|
|
49472
|
+
}
|
|
49473
|
+
return writer;
|
|
49474
|
+
},
|
|
49475
|
+
decode(input, length) {
|
|
49476
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49477
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49478
|
+
const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
|
|
49479
|
+
while (reader.pos < end) {
|
|
49480
|
+
const tag = reader.uint32();
|
|
49481
|
+
switch (tag >>> 3) {
|
|
49482
|
+
case 1: {
|
|
49483
|
+
if (tag !== 10) {
|
|
49484
|
+
break;
|
|
49485
|
+
}
|
|
49486
|
+
message.key = reader.string();
|
|
49487
|
+
continue;
|
|
49488
|
+
}
|
|
49489
|
+
case 2: {
|
|
49490
|
+
if (tag !== 18) {
|
|
49491
|
+
break;
|
|
49492
|
+
}
|
|
49493
|
+
message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
|
|
49494
|
+
continue;
|
|
49495
|
+
}
|
|
49496
|
+
}
|
|
49497
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49498
|
+
break;
|
|
49499
|
+
}
|
|
49500
|
+
reader.skip(tag & 7);
|
|
49501
|
+
}
|
|
49502
|
+
return message;
|
|
49503
|
+
},
|
|
49504
|
+
fromJSON(object) {
|
|
49505
|
+
return {
|
|
49506
|
+
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
49507
|
+
value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
|
|
49508
|
+
};
|
|
49509
|
+
},
|
|
49510
|
+
toJSON(message) {
|
|
49511
|
+
const obj = {};
|
|
49512
|
+
if (message.key !== "") {
|
|
49513
|
+
obj.key = message.key;
|
|
49514
|
+
}
|
|
49515
|
+
if (message.value !== void 0) {
|
|
49516
|
+
obj.value = StatsPercentileDistribution.toJSON(message.value);
|
|
49517
|
+
}
|
|
49518
|
+
return obj;
|
|
49519
|
+
},
|
|
49520
|
+
create(base) {
|
|
49521
|
+
return ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry.fromPartial(base ?? {});
|
|
48600
49522
|
},
|
|
48601
49523
|
fromPartial(object) {
|
|
48602
|
-
const message =
|
|
49524
|
+
const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
|
|
48603
49525
|
message.key = object.key ?? "";
|
|
48604
49526
|
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
48605
49527
|
return message;
|
|
48606
49528
|
}
|
|
48607
49529
|
};
|
|
48608
|
-
function
|
|
48609
|
-
return { key: "", value: 0 };
|
|
49530
|
+
function createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry() {
|
|
49531
|
+
return { key: "", value: void 0 };
|
|
48610
49532
|
}
|
|
48611
|
-
var
|
|
49533
|
+
var ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry = {
|
|
48612
49534
|
encode(message, writer = new BinaryWriter()) {
|
|
48613
49535
|
if (message.key !== "") {
|
|
48614
49536
|
writer.uint32(10).string(message.key);
|
|
48615
49537
|
}
|
|
48616
|
-
if (message.value !== 0) {
|
|
48617
|
-
writer.uint32(
|
|
49538
|
+
if (message.value !== void 0) {
|
|
49539
|
+
StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
|
|
48618
49540
|
}
|
|
48619
49541
|
return writer;
|
|
48620
49542
|
},
|
|
48621
49543
|
decode(input, length) {
|
|
48622
49544
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48623
49545
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48624
|
-
const message =
|
|
49546
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
|
|
48625
49547
|
while (reader.pos < end) {
|
|
48626
49548
|
const tag = reader.uint32();
|
|
48627
49549
|
switch (tag >>> 3) {
|
|
@@ -48633,10 +49555,10 @@ var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
|
|
|
48633
49555
|
continue;
|
|
48634
49556
|
}
|
|
48635
49557
|
case 2: {
|
|
48636
|
-
if (tag !==
|
|
49558
|
+
if (tag !== 18) {
|
|
48637
49559
|
break;
|
|
48638
49560
|
}
|
|
48639
|
-
message.value = reader.
|
|
49561
|
+
message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
|
|
48640
49562
|
continue;
|
|
48641
49563
|
}
|
|
48642
49564
|
}
|
|
@@ -48650,7 +49572,7 @@ var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
|
|
|
48650
49572
|
fromJSON(object) {
|
|
48651
49573
|
return {
|
|
48652
49574
|
key: isSet5(object.key) ? globalThis.String(object.key) : "",
|
|
48653
|
-
value: isSet5(object.value) ?
|
|
49575
|
+
value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
|
|
48654
49576
|
};
|
|
48655
49577
|
},
|
|
48656
49578
|
toJSON(message) {
|
|
@@ -48658,53 +49580,53 @@ var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
|
|
|
48658
49580
|
if (message.key !== "") {
|
|
48659
49581
|
obj.key = message.key;
|
|
48660
49582
|
}
|
|
48661
|
-
if (message.value !== 0) {
|
|
48662
|
-
obj.value = message.value;
|
|
49583
|
+
if (message.value !== void 0) {
|
|
49584
|
+
obj.value = StatsPercentileDistribution.toJSON(message.value);
|
|
48663
49585
|
}
|
|
48664
49586
|
return obj;
|
|
48665
49587
|
},
|
|
48666
49588
|
create(base) {
|
|
48667
|
-
return
|
|
49589
|
+
return ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry.fromPartial(base ?? {});
|
|
48668
49590
|
},
|
|
48669
49591
|
fromPartial(object) {
|
|
48670
|
-
const message =
|
|
49592
|
+
const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
|
|
48671
49593
|
message.key = object.key ?? "";
|
|
48672
|
-
message.value = object.value
|
|
49594
|
+
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
48673
49595
|
return message;
|
|
48674
49596
|
}
|
|
48675
49597
|
};
|
|
48676
|
-
function
|
|
48677
|
-
return {
|
|
49598
|
+
function createBaseServerRequestFetchRequest() {
|
|
49599
|
+
return { functionId: "", tail: void 0 };
|
|
48678
49600
|
}
|
|
48679
|
-
var
|
|
49601
|
+
var ServerRequestFetchRequest = {
|
|
48680
49602
|
encode(message, writer = new BinaryWriter()) {
|
|
48681
|
-
if (message.
|
|
48682
|
-
writer.uint32(
|
|
49603
|
+
if (message.functionId !== "") {
|
|
49604
|
+
writer.uint32(10).string(message.functionId);
|
|
48683
49605
|
}
|
|
48684
|
-
if (message.
|
|
48685
|
-
writer.uint32(
|
|
49606
|
+
if (message.tail !== void 0) {
|
|
49607
|
+
ServerRequestFetchRequest_Tail.encode(message.tail, writer.uint32(26).fork()).join();
|
|
48686
49608
|
}
|
|
48687
49609
|
return writer;
|
|
48688
49610
|
},
|
|
48689
49611
|
decode(input, length) {
|
|
48690
49612
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48691
49613
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48692
|
-
const message =
|
|
49614
|
+
const message = createBaseServerRequestFetchRequest();
|
|
48693
49615
|
while (reader.pos < end) {
|
|
48694
49616
|
const tag = reader.uint32();
|
|
48695
49617
|
switch (tag >>> 3) {
|
|
48696
49618
|
case 1: {
|
|
48697
|
-
if (tag !==
|
|
49619
|
+
if (tag !== 10) {
|
|
48698
49620
|
break;
|
|
48699
49621
|
}
|
|
48700
|
-
message.
|
|
49622
|
+
message.functionId = reader.string();
|
|
48701
49623
|
continue;
|
|
48702
49624
|
}
|
|
48703
|
-
case
|
|
48704
|
-
if (tag !==
|
|
49625
|
+
case 3: {
|
|
49626
|
+
if (tag !== 26) {
|
|
48705
49627
|
break;
|
|
48706
49628
|
}
|
|
48707
|
-
message.
|
|
49629
|
+
message.tail = ServerRequestFetchRequest_Tail.decode(reader, reader.uint32());
|
|
48708
49630
|
continue;
|
|
48709
49631
|
}
|
|
48710
49632
|
}
|
|
@@ -48717,62 +49639,103 @@ var ServerGetTimeRangeStatsResponse_ServerStatusCodeCount = {
|
|
|
48717
49639
|
},
|
|
48718
49640
|
fromJSON(object) {
|
|
48719
49641
|
return {
|
|
48720
|
-
|
|
48721
|
-
|
|
49642
|
+
functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
|
|
49643
|
+
tail: isSet5(object.tail) ? ServerRequestFetchRequest_Tail.fromJSON(object.tail) : void 0
|
|
48722
49644
|
};
|
|
48723
49645
|
},
|
|
48724
49646
|
toJSON(message) {
|
|
48725
49647
|
const obj = {};
|
|
48726
|
-
if (message.
|
|
48727
|
-
obj.
|
|
49648
|
+
if (message.functionId !== "") {
|
|
49649
|
+
obj.functionId = message.functionId;
|
|
48728
49650
|
}
|
|
48729
|
-
if (message.
|
|
48730
|
-
obj.
|
|
49651
|
+
if (message.tail !== void 0) {
|
|
49652
|
+
obj.tail = ServerRequestFetchRequest_Tail.toJSON(message.tail);
|
|
48731
49653
|
}
|
|
48732
49654
|
return obj;
|
|
48733
49655
|
},
|
|
48734
49656
|
create(base) {
|
|
48735
|
-
return
|
|
49657
|
+
return ServerRequestFetchRequest.fromPartial(base ?? {});
|
|
48736
49658
|
},
|
|
48737
49659
|
fromPartial(object) {
|
|
48738
|
-
const message =
|
|
48739
|
-
message.
|
|
48740
|
-
message.
|
|
49660
|
+
const message = createBaseServerRequestFetchRequest();
|
|
49661
|
+
message.functionId = object.functionId ?? "";
|
|
49662
|
+
message.tail = object.tail !== void 0 && object.tail !== null ? ServerRequestFetchRequest_Tail.fromPartial(object.tail) : void 0;
|
|
48741
49663
|
return message;
|
|
48742
49664
|
}
|
|
48743
49665
|
};
|
|
48744
|
-
function
|
|
48745
|
-
return {
|
|
49666
|
+
function createBaseServerRequestFetchRequest_Tail() {
|
|
49667
|
+
return { count: 0 };
|
|
48746
49668
|
}
|
|
48747
|
-
var
|
|
49669
|
+
var ServerRequestFetchRequest_Tail = {
|
|
48748
49670
|
encode(message, writer = new BinaryWriter()) {
|
|
48749
|
-
if (message.
|
|
48750
|
-
writer.uint32(
|
|
48751
|
-
}
|
|
48752
|
-
if (message.value !== void 0) {
|
|
48753
|
-
StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
|
|
49671
|
+
if (message.count !== 0) {
|
|
49672
|
+
writer.uint32(8).uint32(message.count);
|
|
48754
49673
|
}
|
|
48755
49674
|
return writer;
|
|
48756
49675
|
},
|
|
48757
49676
|
decode(input, length) {
|
|
48758
49677
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48759
49678
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48760
|
-
const message =
|
|
49679
|
+
const message = createBaseServerRequestFetchRequest_Tail();
|
|
48761
49680
|
while (reader.pos < end) {
|
|
48762
49681
|
const tag = reader.uint32();
|
|
48763
49682
|
switch (tag >>> 3) {
|
|
48764
49683
|
case 1: {
|
|
48765
|
-
if (tag !==
|
|
49684
|
+
if (tag !== 8) {
|
|
48766
49685
|
break;
|
|
48767
49686
|
}
|
|
48768
|
-
message.
|
|
49687
|
+
message.count = reader.uint32();
|
|
48769
49688
|
continue;
|
|
48770
49689
|
}
|
|
48771
|
-
|
|
48772
|
-
|
|
49690
|
+
}
|
|
49691
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49692
|
+
break;
|
|
49693
|
+
}
|
|
49694
|
+
reader.skip(tag & 7);
|
|
49695
|
+
}
|
|
49696
|
+
return message;
|
|
49697
|
+
},
|
|
49698
|
+
fromJSON(object) {
|
|
49699
|
+
return { count: isSet5(object.count) ? globalThis.Number(object.count) : 0 };
|
|
49700
|
+
},
|
|
49701
|
+
toJSON(message) {
|
|
49702
|
+
const obj = {};
|
|
49703
|
+
if (message.count !== 0) {
|
|
49704
|
+
obj.count = Math.round(message.count);
|
|
49705
|
+
}
|
|
49706
|
+
return obj;
|
|
49707
|
+
},
|
|
49708
|
+
create(base) {
|
|
49709
|
+
return ServerRequestFetchRequest_Tail.fromPartial(base ?? {});
|
|
49710
|
+
},
|
|
49711
|
+
fromPartial(object) {
|
|
49712
|
+
const message = createBaseServerRequestFetchRequest_Tail();
|
|
49713
|
+
message.count = object.count ?? 0;
|
|
49714
|
+
return message;
|
|
49715
|
+
}
|
|
49716
|
+
};
|
|
49717
|
+
function createBaseServerRequestFetchResponse() {
|
|
49718
|
+
return { requests: [] };
|
|
49719
|
+
}
|
|
49720
|
+
var ServerRequestFetchResponse = {
|
|
49721
|
+
encode(message, writer = new BinaryWriter()) {
|
|
49722
|
+
for (const v of message.requests) {
|
|
49723
|
+
ServerRequestInfo.encode(v, writer.uint32(10).fork()).join();
|
|
49724
|
+
}
|
|
49725
|
+
return writer;
|
|
49726
|
+
},
|
|
49727
|
+
decode(input, length) {
|
|
49728
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
49729
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
49730
|
+
const message = createBaseServerRequestFetchResponse();
|
|
49731
|
+
while (reader.pos < end) {
|
|
49732
|
+
const tag = reader.uint32();
|
|
49733
|
+
switch (tag >>> 3) {
|
|
49734
|
+
case 1: {
|
|
49735
|
+
if (tag !== 10) {
|
|
48773
49736
|
break;
|
|
48774
49737
|
}
|
|
48775
|
-
message.
|
|
49738
|
+
message.requests.push(ServerRequestInfo.decode(reader, reader.uint32()));
|
|
48776
49739
|
continue;
|
|
48777
49740
|
}
|
|
48778
49741
|
}
|
|
@@ -48785,47 +49748,51 @@ var ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry = {
|
|
|
48785
49748
|
},
|
|
48786
49749
|
fromJSON(object) {
|
|
48787
49750
|
return {
|
|
48788
|
-
|
|
48789
|
-
value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
|
|
49751
|
+
requests: globalThis.Array.isArray(object?.requests) ? object.requests.map((e) => ServerRequestInfo.fromJSON(e)) : []
|
|
48790
49752
|
};
|
|
48791
49753
|
},
|
|
48792
49754
|
toJSON(message) {
|
|
48793
49755
|
const obj = {};
|
|
48794
|
-
if (message.
|
|
48795
|
-
obj.
|
|
48796
|
-
}
|
|
48797
|
-
if (message.value !== void 0) {
|
|
48798
|
-
obj.value = StatsPercentileDistribution.toJSON(message.value);
|
|
49756
|
+
if (message.requests?.length) {
|
|
49757
|
+
obj.requests = message.requests.map((e) => ServerRequestInfo.toJSON(e));
|
|
48799
49758
|
}
|
|
48800
49759
|
return obj;
|
|
48801
49760
|
},
|
|
48802
49761
|
create(base) {
|
|
48803
|
-
return
|
|
49762
|
+
return ServerRequestFetchResponse.fromPartial(base ?? {});
|
|
48804
49763
|
},
|
|
48805
49764
|
fromPartial(object) {
|
|
48806
|
-
const message =
|
|
48807
|
-
message.
|
|
48808
|
-
message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
|
|
49765
|
+
const message = createBaseServerRequestFetchResponse();
|
|
49766
|
+
message.requests = object.requests?.map((e) => ServerRequestInfo.fromPartial(e)) || [];
|
|
48809
49767
|
return message;
|
|
48810
49768
|
}
|
|
48811
49769
|
};
|
|
48812
|
-
function
|
|
48813
|
-
return {
|
|
49770
|
+
function createBaseServerRequestInfo() {
|
|
49771
|
+
return { route: "", timestamp: void 0, containerId: "", durationSeconds: 0, status: 0 };
|
|
48814
49772
|
}
|
|
48815
|
-
var
|
|
49773
|
+
var ServerRequestInfo = {
|
|
48816
49774
|
encode(message, writer = new BinaryWriter()) {
|
|
48817
|
-
if (message.
|
|
48818
|
-
writer.uint32(10).string(message.
|
|
49775
|
+
if (message.route !== "") {
|
|
49776
|
+
writer.uint32(10).string(message.route);
|
|
48819
49777
|
}
|
|
48820
|
-
if (message.
|
|
48821
|
-
|
|
49778
|
+
if (message.timestamp !== void 0) {
|
|
49779
|
+
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).join();
|
|
49780
|
+
}
|
|
49781
|
+
if (message.containerId !== "") {
|
|
49782
|
+
writer.uint32(26).string(message.containerId);
|
|
49783
|
+
}
|
|
49784
|
+
if (message.durationSeconds !== 0) {
|
|
49785
|
+
writer.uint32(33).double(message.durationSeconds);
|
|
49786
|
+
}
|
|
49787
|
+
if (message.status !== 0) {
|
|
49788
|
+
writer.uint32(40).int32(message.status);
|
|
48822
49789
|
}
|
|
48823
49790
|
return writer;
|
|
48824
49791
|
},
|
|
48825
49792
|
decode(input, length) {
|
|
48826
49793
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
48827
49794
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
48828
|
-
const message =
|
|
49795
|
+
const message = createBaseServerRequestInfo();
|
|
48829
49796
|
while (reader.pos < end) {
|
|
48830
49797
|
const tag = reader.uint32();
|
|
48831
49798
|
switch (tag >>> 3) {
|
|
@@ -48833,14 +49800,35 @@ var ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry = {
|
|
|
48833
49800
|
if (tag !== 10) {
|
|
48834
49801
|
break;
|
|
48835
49802
|
}
|
|
48836
|
-
message.
|
|
49803
|
+
message.route = reader.string();
|
|
48837
49804
|
continue;
|
|
48838
49805
|
}
|
|
48839
49806
|
case 2: {
|
|
48840
49807
|
if (tag !== 18) {
|
|
48841
49808
|
break;
|
|
48842
49809
|
}
|
|
48843
|
-
message.
|
|
49810
|
+
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
49811
|
+
continue;
|
|
49812
|
+
}
|
|
49813
|
+
case 3: {
|
|
49814
|
+
if (tag !== 26) {
|
|
49815
|
+
break;
|
|
49816
|
+
}
|
|
49817
|
+
message.containerId = reader.string();
|
|
49818
|
+
continue;
|
|
49819
|
+
}
|
|
49820
|
+
case 4: {
|
|
49821
|
+
if (tag !== 33) {
|
|
49822
|
+
break;
|
|
49823
|
+
}
|
|
49824
|
+
message.durationSeconds = reader.double();
|
|
49825
|
+
continue;
|
|
49826
|
+
}
|
|
49827
|
+
case 5: {
|
|
49828
|
+
if (tag !== 40) {
|
|
49829
|
+
break;
|
|
49830
|
+
}
|
|
49831
|
+
message.status = reader.int32();
|
|
48844
49832
|
continue;
|
|
48845
49833
|
}
|
|
48846
49834
|
}
|
|
@@ -48853,27 +49841,42 @@ var ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry = {
|
|
|
48853
49841
|
},
|
|
48854
49842
|
fromJSON(object) {
|
|
48855
49843
|
return {
|
|
48856
|
-
|
|
48857
|
-
|
|
49844
|
+
route: isSet5(object.route) ? globalThis.String(object.route) : "",
|
|
49845
|
+
timestamp: isSet5(object.timestamp) ? fromJsonTimestamp(object.timestamp) : void 0,
|
|
49846
|
+
containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
|
|
49847
|
+
durationSeconds: isSet5(object.durationSeconds) ? globalThis.Number(object.durationSeconds) : 0,
|
|
49848
|
+
status: isSet5(object.status) ? globalThis.Number(object.status) : 0
|
|
48858
49849
|
};
|
|
48859
49850
|
},
|
|
48860
49851
|
toJSON(message) {
|
|
48861
49852
|
const obj = {};
|
|
48862
|
-
if (message.
|
|
48863
|
-
obj.
|
|
49853
|
+
if (message.route !== "") {
|
|
49854
|
+
obj.route = message.route;
|
|
48864
49855
|
}
|
|
48865
|
-
if (message.
|
|
48866
|
-
obj.
|
|
49856
|
+
if (message.timestamp !== void 0) {
|
|
49857
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
49858
|
+
}
|
|
49859
|
+
if (message.containerId !== "") {
|
|
49860
|
+
obj.containerId = message.containerId;
|
|
49861
|
+
}
|
|
49862
|
+
if (message.durationSeconds !== 0) {
|
|
49863
|
+
obj.durationSeconds = message.durationSeconds;
|
|
49864
|
+
}
|
|
49865
|
+
if (message.status !== 0) {
|
|
49866
|
+
obj.status = Math.round(message.status);
|
|
48867
49867
|
}
|
|
48868
49868
|
return obj;
|
|
48869
49869
|
},
|
|
48870
49870
|
create(base) {
|
|
48871
|
-
return
|
|
49871
|
+
return ServerRequestInfo.fromPartial(base ?? {});
|
|
48872
49872
|
},
|
|
48873
49873
|
fromPartial(object) {
|
|
48874
|
-
const message =
|
|
48875
|
-
message.
|
|
48876
|
-
message.
|
|
49874
|
+
const message = createBaseServerRequestInfo();
|
|
49875
|
+
message.route = object.route ?? "";
|
|
49876
|
+
message.timestamp = object.timestamp ?? void 0;
|
|
49877
|
+
message.containerId = object.containerId ?? "";
|
|
49878
|
+
message.durationSeconds = object.durationSeconds ?? 0;
|
|
49879
|
+
message.status = object.status ?? 0;
|
|
48877
49880
|
return message;
|
|
48878
49881
|
}
|
|
48879
49882
|
};
|
|
@@ -51593,7 +52596,8 @@ function createBaseTaskLogsBatch() {
|
|
|
51593
52596
|
eof: false,
|
|
51594
52597
|
ptyExecId: "",
|
|
51595
52598
|
rootFunctionId: "",
|
|
51596
|
-
ttlDays: 0
|
|
52599
|
+
ttlDays: 0,
|
|
52600
|
+
sandboxId: ""
|
|
51597
52601
|
};
|
|
51598
52602
|
}
|
|
51599
52603
|
var TaskLogsBatch = {
|
|
@@ -51631,6 +52635,9 @@ var TaskLogsBatch = {
|
|
|
51631
52635
|
if (message.ttlDays !== 0) {
|
|
51632
52636
|
writer.uint32(136).uint32(message.ttlDays);
|
|
51633
52637
|
}
|
|
52638
|
+
if (message.sandboxId !== "") {
|
|
52639
|
+
writer.uint32(146).string(message.sandboxId);
|
|
52640
|
+
}
|
|
51634
52641
|
return writer;
|
|
51635
52642
|
},
|
|
51636
52643
|
decode(input, length) {
|
|
@@ -51717,6 +52724,13 @@ var TaskLogsBatch = {
|
|
|
51717
52724
|
message.ttlDays = reader.uint32();
|
|
51718
52725
|
continue;
|
|
51719
52726
|
}
|
|
52727
|
+
case 18: {
|
|
52728
|
+
if (tag !== 146) {
|
|
52729
|
+
break;
|
|
52730
|
+
}
|
|
52731
|
+
message.sandboxId = reader.string();
|
|
52732
|
+
continue;
|
|
52733
|
+
}
|
|
51720
52734
|
}
|
|
51721
52735
|
if ((tag & 7) === 4 || tag === 0) {
|
|
51722
52736
|
break;
|
|
@@ -51737,7 +52751,8 @@ var TaskLogsBatch = {
|
|
|
51737
52751
|
eof: isSet5(object.eof) ? globalThis.Boolean(object.eof) : false,
|
|
51738
52752
|
ptyExecId: isSet5(object.ptyExecId) ? globalThis.String(object.ptyExecId) : "",
|
|
51739
52753
|
rootFunctionId: isSet5(object.rootFunctionId) ? globalThis.String(object.rootFunctionId) : "",
|
|
51740
|
-
ttlDays: isSet5(object.ttlDays) ? globalThis.Number(object.ttlDays) : 0
|
|
52754
|
+
ttlDays: isSet5(object.ttlDays) ? globalThis.Number(object.ttlDays) : 0,
|
|
52755
|
+
sandboxId: isSet5(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
|
|
51741
52756
|
};
|
|
51742
52757
|
},
|
|
51743
52758
|
toJSON(message) {
|
|
@@ -51775,6 +52790,9 @@ var TaskLogsBatch = {
|
|
|
51775
52790
|
if (message.ttlDays !== 0) {
|
|
51776
52791
|
obj.ttlDays = Math.round(message.ttlDays);
|
|
51777
52792
|
}
|
|
52793
|
+
if (message.sandboxId !== "") {
|
|
52794
|
+
obj.sandboxId = message.sandboxId;
|
|
52795
|
+
}
|
|
51778
52796
|
return obj;
|
|
51779
52797
|
},
|
|
51780
52798
|
create(base) {
|
|
@@ -51793,6 +52811,7 @@ var TaskLogsBatch = {
|
|
|
51793
52811
|
message.ptyExecId = object.ptyExecId ?? "";
|
|
51794
52812
|
message.rootFunctionId = object.rootFunctionId ?? "";
|
|
51795
52813
|
message.ttlDays = object.ttlDays ?? 0;
|
|
52814
|
+
message.sandboxId = object.sandboxId ?? "";
|
|
51796
52815
|
return message;
|
|
51797
52816
|
}
|
|
51798
52817
|
};
|
|
@@ -52464,7 +53483,7 @@ var TokenDeleteRequest = {
|
|
|
52464
53483
|
}
|
|
52465
53484
|
};
|
|
52466
53485
|
function createBaseTokenFlowCreateRequest() {
|
|
52467
|
-
return { utmSource: "", localhostPort: 0, nextUrl: "" };
|
|
53486
|
+
return { utmSource: "", localhostPort: 0, nextUrl: "", expiresInSeconds: 0 };
|
|
52468
53487
|
}
|
|
52469
53488
|
var TokenFlowCreateRequest = {
|
|
52470
53489
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -52477,6 +53496,9 @@ var TokenFlowCreateRequest = {
|
|
|
52477
53496
|
if (message.nextUrl !== "") {
|
|
52478
53497
|
writer.uint32(42).string(message.nextUrl);
|
|
52479
53498
|
}
|
|
53499
|
+
if (message.expiresInSeconds !== 0) {
|
|
53500
|
+
writer.uint32(48).uint32(message.expiresInSeconds);
|
|
53501
|
+
}
|
|
52480
53502
|
return writer;
|
|
52481
53503
|
},
|
|
52482
53504
|
decode(input, length) {
|
|
@@ -52507,6 +53529,13 @@ var TokenFlowCreateRequest = {
|
|
|
52507
53529
|
message.nextUrl = reader.string();
|
|
52508
53530
|
continue;
|
|
52509
53531
|
}
|
|
53532
|
+
case 6: {
|
|
53533
|
+
if (tag !== 48) {
|
|
53534
|
+
break;
|
|
53535
|
+
}
|
|
53536
|
+
message.expiresInSeconds = reader.uint32();
|
|
53537
|
+
continue;
|
|
53538
|
+
}
|
|
52510
53539
|
}
|
|
52511
53540
|
if ((tag & 7) === 4 || tag === 0) {
|
|
52512
53541
|
break;
|
|
@@ -52519,7 +53548,8 @@ var TokenFlowCreateRequest = {
|
|
|
52519
53548
|
return {
|
|
52520
53549
|
utmSource: isSet5(object.utmSource) ? globalThis.String(object.utmSource) : "",
|
|
52521
53550
|
localhostPort: isSet5(object.localhostPort) ? globalThis.Number(object.localhostPort) : 0,
|
|
52522
|
-
nextUrl: isSet5(object.nextUrl) ? globalThis.String(object.nextUrl) : ""
|
|
53551
|
+
nextUrl: isSet5(object.nextUrl) ? globalThis.String(object.nextUrl) : "",
|
|
53552
|
+
expiresInSeconds: isSet5(object.expiresInSeconds) ? globalThis.Number(object.expiresInSeconds) : 0
|
|
52523
53553
|
};
|
|
52524
53554
|
},
|
|
52525
53555
|
toJSON(message) {
|
|
@@ -52533,6 +53563,9 @@ var TokenFlowCreateRequest = {
|
|
|
52533
53563
|
if (message.nextUrl !== "") {
|
|
52534
53564
|
obj.nextUrl = message.nextUrl;
|
|
52535
53565
|
}
|
|
53566
|
+
if (message.expiresInSeconds !== 0) {
|
|
53567
|
+
obj.expiresInSeconds = Math.round(message.expiresInSeconds);
|
|
53568
|
+
}
|
|
52536
53569
|
return obj;
|
|
52537
53570
|
},
|
|
52538
53571
|
create(base) {
|
|
@@ -52543,6 +53576,7 @@ var TokenFlowCreateRequest = {
|
|
|
52543
53576
|
message.utmSource = object.utmSource ?? "";
|
|
52544
53577
|
message.localhostPort = object.localhostPort ?? 0;
|
|
52545
53578
|
message.nextUrl = object.nextUrl ?? "";
|
|
53579
|
+
message.expiresInSeconds = object.expiresInSeconds ?? 0;
|
|
52546
53580
|
return message;
|
|
52547
53581
|
}
|
|
52548
53582
|
};
|
|
@@ -60144,6 +61178,14 @@ var ModalClientDefinition = {
|
|
|
60144
61178
|
responseStream: false,
|
|
60145
61179
|
options: {}
|
|
60146
61180
|
},
|
|
61181
|
+
functionCallFetch: {
|
|
61182
|
+
name: "FunctionCallFetch",
|
|
61183
|
+
requestType: FunctionCallFetchRequest,
|
|
61184
|
+
requestStream: false,
|
|
61185
|
+
responseType: FunctionCallFetchResponse,
|
|
61186
|
+
responseStream: false,
|
|
61187
|
+
options: {}
|
|
61188
|
+
},
|
|
60147
61189
|
functionCallFromId: {
|
|
60148
61190
|
name: "FunctionCallFromId",
|
|
60149
61191
|
requestType: FunctionCallFromIdRequest,
|
|
@@ -60299,6 +61341,14 @@ var ModalClientDefinition = {
|
|
|
60299
61341
|
responseStream: false,
|
|
60300
61342
|
options: {}
|
|
60301
61343
|
},
|
|
61344
|
+
functionListVariants: {
|
|
61345
|
+
name: "FunctionListVariants",
|
|
61346
|
+
requestType: FunctionListVariantsRequest,
|
|
61347
|
+
requestStream: false,
|
|
61348
|
+
responseType: FunctionListVariantsResponse,
|
|
61349
|
+
responseStream: false,
|
|
61350
|
+
options: {}
|
|
61351
|
+
},
|
|
60302
61352
|
functionMap: {
|
|
60303
61353
|
name: "FunctionMap",
|
|
60304
61354
|
requestType: FunctionMapRequest,
|
|
@@ -60966,6 +62016,14 @@ var ModalClientDefinition = {
|
|
|
60966
62016
|
responseStream: false,
|
|
60967
62017
|
options: {}
|
|
60968
62018
|
},
|
|
62019
|
+
serverRequestFetch: {
|
|
62020
|
+
name: "ServerRequestFetch",
|
|
62021
|
+
requestType: ServerRequestFetchRequest,
|
|
62022
|
+
requestStream: false,
|
|
62023
|
+
responseType: ServerRequestFetchResponse,
|
|
62024
|
+
responseStream: false,
|
|
62025
|
+
options: {}
|
|
62026
|
+
},
|
|
60969
62027
|
/** Service users */
|
|
60970
62028
|
serviceUserList: {
|
|
60971
62029
|
name: "ServiceUserList",
|
|
@@ -68232,6 +69290,9 @@ var TaskCommandRouterClientImpl = class _TaskCommandRouterClientImpl {
|
|
|
68232
69290
|
async setNetworkAccess(request) {
|
|
68233
69291
|
await this.callUnary(() => this.stub.taskSetNetworkAccess(request));
|
|
68234
69292
|
}
|
|
69293
|
+
async setOutboundPolicy(request) {
|
|
69294
|
+
await this.callUnary(() => this.stub.taskSetOutboundPolicy(request));
|
|
69295
|
+
}
|
|
68235
69296
|
/**
|
|
68236
69297
|
* Reload all Volumes mounted in the task to reflect their latest committed state.
|
|
68237
69298
|
*
|
|
@@ -70290,6 +71351,19 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
70290
71351
|
);
|
|
70291
71352
|
}
|
|
70292
71353
|
}
|
|
71354
|
+
if (params.outboundPolicy !== void 0) {
|
|
71355
|
+
params.outboundPolicy._validate();
|
|
71356
|
+
if (params.blockNetwork) {
|
|
71357
|
+
throw new InvalidError(
|
|
71358
|
+
"outboundPolicy cannot be used when blockNetwork is enabled"
|
|
71359
|
+
);
|
|
71360
|
+
}
|
|
71361
|
+
if (params.outboundDomainAllowlist && params.outboundDomainAllowlist.length > 0) {
|
|
71362
|
+
throw new InvalidError(
|
|
71363
|
+
"outboundPolicy cannot be used with outboundDomainAllowlist"
|
|
71364
|
+
);
|
|
71365
|
+
}
|
|
71366
|
+
}
|
|
70293
71367
|
const networkAccess = buildOutboundNetworkAccess(
|
|
70294
71368
|
params.blockNetwork,
|
|
70295
71369
|
params.outboundCidrAllowlist,
|
|
@@ -70370,6 +71444,7 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
|
|
|
70370
71444
|
idleTimeoutSecs: params.idleTimeoutMs != void 0 ? params.idleTimeoutMs / 1e3 : void 0,
|
|
70371
71445
|
workdir: params.workdir ?? void 0,
|
|
70372
71446
|
networkAccess,
|
|
71447
|
+
outboundPolicy: params.outboundPolicy?._toProto(),
|
|
70373
71448
|
resources: Resources.create({
|
|
70374
71449
|
milliCpu,
|
|
70375
71450
|
milliCpuMax,
|
|
@@ -70430,7 +71505,7 @@ var SandboxService = class {
|
|
|
70430
71505
|
);
|
|
70431
71506
|
await hydrateSandboxSecrets(
|
|
70432
71507
|
this.#client,
|
|
70433
|
-
mergedSecrets,
|
|
71508
|
+
[...mergedSecrets, ...params.outboundPolicy?._secrets() ?? []],
|
|
70434
71509
|
params.cloudBucketMounts
|
|
70435
71510
|
);
|
|
70436
71511
|
const mergedParams = {
|
|
@@ -70491,7 +71566,7 @@ var SandboxService = class {
|
|
|
70491
71566
|
Object.assign(envDict, params.env ?? {});
|
|
70492
71567
|
await hydrateSandboxSecrets(
|
|
70493
71568
|
this.#client,
|
|
70494
|
-
resolvableSecrets,
|
|
71569
|
+
[...resolvableSecrets, ...params.outboundPolicy?._secrets() ?? []],
|
|
70495
71570
|
params.cloudBucketMounts
|
|
70496
71571
|
);
|
|
70497
71572
|
const mergedParams = {
|
|
@@ -71523,7 +72598,7 @@ var Sandbox2 = class _Sandbox {
|
|
|
71523
72598
|
return new Image2(this.#client, resp.success.imageId, "");
|
|
71524
72599
|
}
|
|
71525
72600
|
if (resp.error) {
|
|
71526
|
-
if (resp.error.errorCode === 1 /* ERROR_CODE_TIMEOUT */) {
|
|
72601
|
+
if (resp.error.errorCode === 1 /* ERROR_CODE_TIMEOUT */ || resp.error.errorCode === 3 /* ERROR_CODE_FILESYSTEM_INCONSISTENT */) {
|
|
71527
72602
|
throw new SnapshotCreationError(
|
|
71528
72603
|
resp.error.message || "No exit snapshot image will be produced"
|
|
71529
72604
|
);
|
|
@@ -71637,6 +72712,29 @@ var Sandbox2 = class _Sandbox {
|
|
|
71637
72712
|
});
|
|
71638
72713
|
await commandRouterClient.setNetworkAccess(request);
|
|
71639
72714
|
}
|
|
72715
|
+
/**
|
|
72716
|
+
* Replace the outbound policy of a running Sandbox.
|
|
72717
|
+
*
|
|
72718
|
+
* The new policy replaces all existing policy configuration on the
|
|
72719
|
+
* Sandbox; build a policy including any existing rules you want to keep.
|
|
72720
|
+
*
|
|
72721
|
+
* Only Sandboxes created with an `outboundPolicy` can be updated this
|
|
72722
|
+
* way; for Sandboxes created without one this fails, since header
|
|
72723
|
+
* replacement is only set up at creation time.
|
|
72724
|
+
*/
|
|
72725
|
+
async updateOutboundPolicy(outboundPolicy) {
|
|
72726
|
+
this.#ensureAttached();
|
|
72727
|
+
outboundPolicy._validate();
|
|
72728
|
+
const [, [taskId, commandRouterClient]] = await Promise.all([
|
|
72729
|
+
hydrateSecrets(this.#client, outboundPolicy._secrets()),
|
|
72730
|
+
this.#getCommandRouter()
|
|
72731
|
+
]);
|
|
72732
|
+
const request = TaskSetOutboundPolicyRequest.create({
|
|
72733
|
+
taskId,
|
|
72734
|
+
outboundPolicy: outboundPolicy._toProto()
|
|
72735
|
+
});
|
|
72736
|
+
await commandRouterClient.setOutboundPolicy(request);
|
|
72737
|
+
}
|
|
71640
72738
|
/**
|
|
71641
72739
|
* Reload all Volumes mounted in the Sandbox.
|
|
71642
72740
|
*
|
|
@@ -72194,7 +73292,7 @@ var AuthTokenManager = class {
|
|
|
72194
73292
|
};
|
|
72195
73293
|
|
|
72196
73294
|
// src/version.ts
|
|
72197
|
-
var SDK_VERSION = "0.10.2-dev.
|
|
73295
|
+
var SDK_VERSION = "0.10.2-dev.3";
|
|
72198
73296
|
function getSDKVersion() {
|
|
72199
73297
|
return SDK_VERSION;
|
|
72200
73298
|
}
|
|
@@ -74525,6 +75623,129 @@ var ClsInstance = class {
|
|
|
74525
75623
|
return method;
|
|
74526
75624
|
}
|
|
74527
75625
|
};
|
|
75626
|
+
|
|
75627
|
+
// src/outbound_policy.ts
|
|
75628
|
+
var DOMAIN_RE = /^(\*\.)?([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;
|
|
75629
|
+
var HEADER_NAME_RE = /^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/;
|
|
75630
|
+
var MAX_HEADER_REPLACEMENTS = 25;
|
|
75631
|
+
function hasInvalidHeaderValueChar(value) {
|
|
75632
|
+
for (const c of value) {
|
|
75633
|
+
const code = c.codePointAt(0);
|
|
75634
|
+
if (code < 32 && c !== " " || code === 127) {
|
|
75635
|
+
return true;
|
|
75636
|
+
}
|
|
75637
|
+
}
|
|
75638
|
+
return false;
|
|
75639
|
+
}
|
|
75640
|
+
function templateReferencesKey(template) {
|
|
75641
|
+
const isKeyStart = (c) => /[a-zA-Z_]/.test(c);
|
|
75642
|
+
let i = template.indexOf("$");
|
|
75643
|
+
while (i !== -1 && i + 1 < template.length) {
|
|
75644
|
+
const c = template[i + 1];
|
|
75645
|
+
if (c === "$") {
|
|
75646
|
+
i = template.indexOf("$", i + 2);
|
|
75647
|
+
continue;
|
|
75648
|
+
}
|
|
75649
|
+
if (isKeyStart(c)) {
|
|
75650
|
+
return true;
|
|
75651
|
+
}
|
|
75652
|
+
i = template.indexOf("$", i + 1);
|
|
75653
|
+
}
|
|
75654
|
+
return false;
|
|
75655
|
+
}
|
|
75656
|
+
var OutboundPolicy2 = class _OutboundPolicy {
|
|
75657
|
+
/** @internal */
|
|
75658
|
+
_replacements;
|
|
75659
|
+
/** @internal */
|
|
75660
|
+
constructor(_replacements = []) {
|
|
75661
|
+
this._replacements = _replacements;
|
|
75662
|
+
}
|
|
75663
|
+
/**
|
|
75664
|
+
* Return a new {@link OutboundPolicy} with an added header replacement.
|
|
75665
|
+
*
|
|
75666
|
+
* @param params.domain Domain the replacements are scoped to. Supports `*.` wildcard
|
|
75667
|
+
* prefixes (matching the apex domain and subdomains) and a bare `"*"`.
|
|
75668
|
+
* @param params.headers Header name -> header value. Values support `$KEY` templates
|
|
75669
|
+
* referencing keys in the replacement's `secret`.
|
|
75670
|
+
* @param params.secret Named {@link Secret} (e.g. from `client.secrets.fromName`) whose
|
|
75671
|
+
* keys may be referenced in the header value templates. Static replacements pass no secret.
|
|
75672
|
+
*/
|
|
75673
|
+
withHeaderReplacement(params) {
|
|
75674
|
+
const { domain, headers, secret } = params;
|
|
75675
|
+
return new _OutboundPolicy([
|
|
75676
|
+
...this._replacements,
|
|
75677
|
+
{ domain, headers: { ...headers }, secret }
|
|
75678
|
+
]);
|
|
75679
|
+
}
|
|
75680
|
+
/** Check all replacements, throwing `InvalidError` on the first violation found.
|
|
75681
|
+
* @internal
|
|
75682
|
+
*/
|
|
75683
|
+
_validate() {
|
|
75684
|
+
let total = 0;
|
|
75685
|
+
for (const replacement of this._replacements) {
|
|
75686
|
+
const { domain, headers, secret } = replacement;
|
|
75687
|
+
if (domain !== "*" && !DOMAIN_RE.test(domain)) {
|
|
75688
|
+
throw new InvalidError(`Invalid domain: ${JSON.stringify(domain)}`);
|
|
75689
|
+
}
|
|
75690
|
+
const entries = Object.entries(headers);
|
|
75691
|
+
if (entries.length === 0) {
|
|
75692
|
+
throw new InvalidError("`headers` must contain at least one header");
|
|
75693
|
+
}
|
|
75694
|
+
for (const [name, value] of entries) {
|
|
75695
|
+
if (!HEADER_NAME_RE.test(name)) {
|
|
75696
|
+
throw new InvalidError(
|
|
75697
|
+
`Invalid header name: ${JSON.stringify(name)}`
|
|
75698
|
+
);
|
|
75699
|
+
}
|
|
75700
|
+
if (hasInvalidHeaderValueChar(value)) {
|
|
75701
|
+
throw new InvalidError(
|
|
75702
|
+
`Header value for ${JSON.stringify(name)} must not contain control characters (except tab)`
|
|
75703
|
+
);
|
|
75704
|
+
}
|
|
75705
|
+
if (secret === void 0 && templateReferencesKey(value)) {
|
|
75706
|
+
throw new InvalidError(
|
|
75707
|
+
`Header value for ${JSON.stringify(name)} references a secret key, but no \`secret\` was passed`
|
|
75708
|
+
);
|
|
75709
|
+
}
|
|
75710
|
+
}
|
|
75711
|
+
if (secret !== void 0 && secretEnvDictHydrator(secret) !== void 0) {
|
|
75712
|
+
throw new InvalidError(
|
|
75713
|
+
"Outbound policies only support named secrets (e.g. `client.secrets.fromName`); ephemeral secrets (e.g. `client.secrets.fromObject`) are not yet supported"
|
|
75714
|
+
);
|
|
75715
|
+
}
|
|
75716
|
+
total += entries.length;
|
|
75717
|
+
}
|
|
75718
|
+
if (total > MAX_HEADER_REPLACEMENTS) {
|
|
75719
|
+
throw new InvalidError(
|
|
75720
|
+
`Outbound policy cannot have more than ${MAX_HEADER_REPLACEMENTS} header replacements`
|
|
75721
|
+
);
|
|
75722
|
+
}
|
|
75723
|
+
}
|
|
75724
|
+
/** Deduplicated list of secrets referenced by the policy's replacements.
|
|
75725
|
+
* @internal
|
|
75726
|
+
*/
|
|
75727
|
+
_secrets() {
|
|
75728
|
+
return [
|
|
75729
|
+
...new Set(
|
|
75730
|
+
this._replacements.map((s) => s.secret).filter((s) => s !== void 0)
|
|
75731
|
+
)
|
|
75732
|
+
];
|
|
75733
|
+
}
|
|
75734
|
+
/** Convert to the wire format. Referenced secrets must be hydrated first.
|
|
75735
|
+
* @internal
|
|
75736
|
+
*/
|
|
75737
|
+
_toProto() {
|
|
75738
|
+
return OutboundPolicy.create({
|
|
75739
|
+
headerReplacements: this._replacements.map(
|
|
75740
|
+
(replacement) => OutboundPolicy_HeaderReplacement.create({
|
|
75741
|
+
domain: replacement.domain,
|
|
75742
|
+
secretId: replacement.secret?.secretId ?? "",
|
|
75743
|
+
headers: replacement.headers
|
|
75744
|
+
})
|
|
75745
|
+
)
|
|
75746
|
+
});
|
|
75747
|
+
}
|
|
75748
|
+
};
|
|
74528
75749
|
export {
|
|
74529
75750
|
AlreadyExistsError,
|
|
74530
75751
|
App,
|
|
@@ -74551,6 +75772,7 @@ export {
|
|
|
74551
75772
|
InvalidError,
|
|
74552
75773
|
ModalClient,
|
|
74553
75774
|
NotFoundError,
|
|
75775
|
+
OutboundPolicy2 as OutboundPolicy,
|
|
74554
75776
|
Probe2 as Probe,
|
|
74555
75777
|
Proxy2 as Proxy,
|
|
74556
75778
|
ProxyService,
|