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 CHANGED
@@ -55,6 +55,7 @@ __export(index_exports, {
55
55
  InvalidError: () => InvalidError,
56
56
  ModalClient: () => ModalClient,
57
57
  NotFoundError: () => NotFoundError,
58
+ OutboundPolicy: () => OutboundPolicy2,
58
59
  Probe: () => Probe2,
59
60
  Proxy: () => Proxy3,
60
61
  ProxyService: () => ProxyService,
@@ -2349,6 +2350,76 @@ function fileDescriptorToJSON(object) {
2349
2350
  return "UNRECOGNIZED";
2350
2351
  }
2351
2352
  }
2353
+ function functionCallInputStatusFromJSON(object) {
2354
+ switch (object) {
2355
+ case 0:
2356
+ case "FUNCTION_CALL_INPUT_STATUS_UNSPECIFIED":
2357
+ return 0 /* FUNCTION_CALL_INPUT_STATUS_UNSPECIFIED */;
2358
+ case 1:
2359
+ case "FUNCTION_CALL_INPUT_STATUS_PENDING":
2360
+ return 1 /* FUNCTION_CALL_INPUT_STATUS_PENDING */;
2361
+ case 2:
2362
+ case "FUNCTION_CALL_INPUT_STATUS_RUNNING":
2363
+ return 2 /* FUNCTION_CALL_INPUT_STATUS_RUNNING */;
2364
+ case 3:
2365
+ case "FUNCTION_CALL_INPUT_STATUS_SUCCESS":
2366
+ return 3 /* FUNCTION_CALL_INPUT_STATUS_SUCCESS */;
2367
+ case 4:
2368
+ case "FUNCTION_CALL_INPUT_STATUS_FAILURE":
2369
+ return 4 /* FUNCTION_CALL_INPUT_STATUS_FAILURE */;
2370
+ case 5:
2371
+ case "FUNCTION_CALL_INPUT_STATUS_TIMEOUT":
2372
+ return 5 /* FUNCTION_CALL_INPUT_STATUS_TIMEOUT */;
2373
+ case 6:
2374
+ case "FUNCTION_CALL_INPUT_STATUS_TERMINATED":
2375
+ return 6 /* FUNCTION_CALL_INPUT_STATUS_TERMINATED */;
2376
+ case 7:
2377
+ case "FUNCTION_CALL_INPUT_STATUS_INIT_FAILURE":
2378
+ return 7 /* FUNCTION_CALL_INPUT_STATUS_INIT_FAILURE */;
2379
+ case 8:
2380
+ case "FUNCTION_CALL_INPUT_STATUS_INTERNAL_FAILURE":
2381
+ return 8 /* FUNCTION_CALL_INPUT_STATUS_INTERNAL_FAILURE */;
2382
+ case 9:
2383
+ case "FUNCTION_CALL_INPUT_STATUS_IDLE_TIMEOUT":
2384
+ return 9 /* FUNCTION_CALL_INPUT_STATUS_IDLE_TIMEOUT */;
2385
+ case 10:
2386
+ case "FUNCTION_CALL_INPUT_STATUS_MEMORY_MANAGER_EVICTION":
2387
+ return 10 /* FUNCTION_CALL_INPUT_STATUS_MEMORY_MANAGER_EVICTION */;
2388
+ case -1:
2389
+ case "UNRECOGNIZED":
2390
+ default:
2391
+ return -1 /* UNRECOGNIZED */;
2392
+ }
2393
+ }
2394
+ function functionCallInputStatusToJSON(object) {
2395
+ switch (object) {
2396
+ case 0 /* FUNCTION_CALL_INPUT_STATUS_UNSPECIFIED */:
2397
+ return "FUNCTION_CALL_INPUT_STATUS_UNSPECIFIED";
2398
+ case 1 /* FUNCTION_CALL_INPUT_STATUS_PENDING */:
2399
+ return "FUNCTION_CALL_INPUT_STATUS_PENDING";
2400
+ case 2 /* FUNCTION_CALL_INPUT_STATUS_RUNNING */:
2401
+ return "FUNCTION_CALL_INPUT_STATUS_RUNNING";
2402
+ case 3 /* FUNCTION_CALL_INPUT_STATUS_SUCCESS */:
2403
+ return "FUNCTION_CALL_INPUT_STATUS_SUCCESS";
2404
+ case 4 /* FUNCTION_CALL_INPUT_STATUS_FAILURE */:
2405
+ return "FUNCTION_CALL_INPUT_STATUS_FAILURE";
2406
+ case 5 /* FUNCTION_CALL_INPUT_STATUS_TIMEOUT */:
2407
+ return "FUNCTION_CALL_INPUT_STATUS_TIMEOUT";
2408
+ case 6 /* FUNCTION_CALL_INPUT_STATUS_TERMINATED */:
2409
+ return "FUNCTION_CALL_INPUT_STATUS_TERMINATED";
2410
+ case 7 /* FUNCTION_CALL_INPUT_STATUS_INIT_FAILURE */:
2411
+ return "FUNCTION_CALL_INPUT_STATUS_INIT_FAILURE";
2412
+ case 8 /* FUNCTION_CALL_INPUT_STATUS_INTERNAL_FAILURE */:
2413
+ return "FUNCTION_CALL_INPUT_STATUS_INTERNAL_FAILURE";
2414
+ case 9 /* FUNCTION_CALL_INPUT_STATUS_IDLE_TIMEOUT */:
2415
+ return "FUNCTION_CALL_INPUT_STATUS_IDLE_TIMEOUT";
2416
+ case 10 /* FUNCTION_CALL_INPUT_STATUS_MEMORY_MANAGER_EVICTION */:
2417
+ return "FUNCTION_CALL_INPUT_STATUS_MEMORY_MANAGER_EVICTION";
2418
+ case -1 /* UNRECOGNIZED */:
2419
+ default:
2420
+ return "UNRECOGNIZED";
2421
+ }
2422
+ }
2352
2423
  function functionCallInvocationTypeFromJSON(object) {
2353
2424
  switch (object) {
2354
2425
  case 0:
@@ -3610,6 +3681,9 @@ function sandboxGetExitSnapshotResponse_ErrorCodeFromJSON(object) {
3610
3681
  case 2:
3611
3682
  case "ERROR_CODE_INTERNAL":
3612
3683
  return 2 /* ERROR_CODE_INTERNAL */;
3684
+ case 3:
3685
+ case "ERROR_CODE_FILESYSTEM_INCONSISTENT":
3686
+ return 3 /* ERROR_CODE_FILESYSTEM_INCONSISTENT */;
3613
3687
  case -1:
3614
3688
  case "UNRECOGNIZED":
3615
3689
  default:
@@ -3624,6 +3698,8 @@ function sandboxGetExitSnapshotResponse_ErrorCodeToJSON(object) {
3624
3698
  return "ERROR_CODE_TIMEOUT";
3625
3699
  case 2 /* ERROR_CODE_INTERNAL */:
3626
3700
  return "ERROR_CODE_INTERNAL";
3701
+ case 3 /* ERROR_CODE_FILESYSTEM_INCONSISTENT */:
3702
+ return "ERROR_CODE_FILESYSTEM_INCONSISTENT";
3627
3703
  case -1 /* UNRECOGNIZED */:
3628
3704
  default:
3629
3705
  return "UNRECOGNIZED";
@@ -17731,7 +17807,8 @@ function createBaseEndpointCreateRequest() {
17731
17807
  inputModalities: [],
17732
17808
  environmentName: "",
17733
17809
  unauthenticated: false,
17734
- servingMode: 0
17810
+ servingMode: 0,
17811
+ sharedEndpointNoticeAcknowledged: false
17735
17812
  };
17736
17813
  }
17737
17814
  var EndpointCreateRequest = {
@@ -17770,6 +17847,9 @@ var EndpointCreateRequest = {
17770
17847
  if (message.servingMode !== 0) {
17771
17848
  writer.uint32(80).int32(message.servingMode);
17772
17849
  }
17850
+ if (message.sharedEndpointNoticeAcknowledged !== false) {
17851
+ writer.uint32(88).bool(message.sharedEndpointNoticeAcknowledged);
17852
+ }
17773
17853
  return writer;
17774
17854
  },
17775
17855
  decode(input, length) {
@@ -17863,6 +17943,13 @@ var EndpointCreateRequest = {
17863
17943
  message.servingMode = reader.int32();
17864
17944
  continue;
17865
17945
  }
17946
+ case 11: {
17947
+ if (tag !== 88) {
17948
+ break;
17949
+ }
17950
+ message.sharedEndpointNoticeAcknowledged = reader.bool();
17951
+ continue;
17952
+ }
17866
17953
  }
17867
17954
  if ((tag & 7) === 4 || tag === 0) {
17868
17955
  break;
@@ -17882,7 +17969,8 @@ var EndpointCreateRequest = {
17882
17969
  inputModalities: globalThis.Array.isArray(object?.inputModalities) ? object.inputModalities.map((e) => endpointInputModalityFromJSON(e)) : [],
17883
17970
  environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "",
17884
17971
  unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false,
17885
- servingMode: isSet5(object.servingMode) ? endpointServingModeFromJSON(object.servingMode) : 0
17972
+ servingMode: isSet5(object.servingMode) ? endpointServingModeFromJSON(object.servingMode) : 0,
17973
+ sharedEndpointNoticeAcknowledged: isSet5(object.sharedEndpointNoticeAcknowledged) ? globalThis.Boolean(object.sharedEndpointNoticeAcknowledged) : false
17886
17974
  };
17887
17975
  },
17888
17976
  toJSON(message) {
@@ -17917,6 +18005,9 @@ var EndpointCreateRequest = {
17917
18005
  if (message.servingMode !== 0) {
17918
18006
  obj.servingMode = endpointServingModeToJSON(message.servingMode);
17919
18007
  }
18008
+ if (message.sharedEndpointNoticeAcknowledged !== false) {
18009
+ obj.sharedEndpointNoticeAcknowledged = message.sharedEndpointNoticeAcknowledged;
18010
+ }
17920
18011
  return obj;
17921
18012
  },
17922
18013
  create(base) {
@@ -17934,6 +18025,7 @@ var EndpointCreateRequest = {
17934
18025
  message.environmentName = object.environmentName ?? "";
17935
18026
  message.unauthenticated = object.unauthenticated ?? false;
17936
18027
  message.servingMode = object.servingMode ?? 0;
18028
+ message.sharedEndpointNoticeAcknowledged = object.sharedEndpointNoticeAcknowledged ?? false;
17937
18029
  return message;
17938
18030
  }
17939
18031
  };
@@ -22492,8 +22584,6 @@ function createBaseFunctionMessage() {
22492
22584
  cloudBucketMounts: [],
22493
22585
  schedulerPlacement: void 0,
22494
22586
  isClass: false,
22495
- useFunctionId: "",
22496
- useMethodName: "",
22497
22587
  classParameterInfo: void 0,
22498
22588
  batchMaxSize: 0,
22499
22589
  batchLingerMs: 0,
@@ -22664,12 +22754,6 @@ var FunctionMessage = {
22664
22754
  if (message.isClass !== false) {
22665
22755
  writer.uint32(424).bool(message.isClass);
22666
22756
  }
22667
- if (message.useFunctionId !== "") {
22668
- writer.uint32(434).string(message.useFunctionId);
22669
- }
22670
- if (message.useMethodName !== "") {
22671
- writer.uint32(442).string(message.useMethodName);
22672
- }
22673
22757
  if (message.classParameterInfo !== void 0) {
22674
22758
  ClassParameterInfo.encode(message.classParameterInfo, writer.uint32(450).fork()).join();
22675
22759
  }
@@ -23095,20 +23179,6 @@ var FunctionMessage = {
23095
23179
  message.isClass = reader.bool();
23096
23180
  continue;
23097
23181
  }
23098
- case 54: {
23099
- if (tag !== 434) {
23100
- break;
23101
- }
23102
- message.useFunctionId = reader.string();
23103
- continue;
23104
- }
23105
- case 55: {
23106
- if (tag !== 442) {
23107
- break;
23108
- }
23109
- message.useMethodName = reader.string();
23110
- continue;
23111
- }
23112
23182
  case 56: {
23113
23183
  if (tag !== 450) {
23114
23184
  break;
@@ -23441,8 +23511,6 @@ var FunctionMessage = {
23441
23511
  cloudBucketMounts: globalThis.Array.isArray(object?.cloudBucketMounts) ? object.cloudBucketMounts.map((e) => CloudBucketMount.fromJSON(e)) : [],
23442
23512
  schedulerPlacement: isSet5(object.schedulerPlacement) ? SchedulerPlacement.fromJSON(object.schedulerPlacement) : void 0,
23443
23513
  isClass: isSet5(object.isClass) ? globalThis.Boolean(object.isClass) : false,
23444
- useFunctionId: isSet5(object.useFunctionId) ? globalThis.String(object.useFunctionId) : "",
23445
- useMethodName: isSet5(object.useMethodName) ? globalThis.String(object.useMethodName) : "",
23446
23514
  classParameterInfo: isSet5(object.classParameterInfo) ? ClassParameterInfo.fromJSON(object.classParameterInfo) : void 0,
23447
23515
  batchMaxSize: isSet5(object.batchMaxSize) ? globalThis.Number(object.batchMaxSize) : 0,
23448
23516
  batchLingerMs: isSet5(object.batchLingerMs) ? globalThis.Number(object.batchLingerMs) : 0,
@@ -23619,12 +23687,6 @@ var FunctionMessage = {
23619
23687
  if (message.isClass !== false) {
23620
23688
  obj.isClass = message.isClass;
23621
23689
  }
23622
- if (message.useFunctionId !== "") {
23623
- obj.useFunctionId = message.useFunctionId;
23624
- }
23625
- if (message.useMethodName !== "") {
23626
- obj.useMethodName = message.useMethodName;
23627
- }
23628
23690
  if (message.classParameterInfo !== void 0) {
23629
23691
  obj.classParameterInfo = ClassParameterInfo.toJSON(message.classParameterInfo);
23630
23692
  }
@@ -23798,8 +23860,6 @@ var FunctionMessage = {
23798
23860
  message.cloudBucketMounts = object.cloudBucketMounts?.map((e) => CloudBucketMount.fromPartial(e)) || [];
23799
23861
  message.schedulerPlacement = object.schedulerPlacement !== void 0 && object.schedulerPlacement !== null ? SchedulerPlacement.fromPartial(object.schedulerPlacement) : void 0;
23800
23862
  message.isClass = object.isClass ?? false;
23801
- message.useFunctionId = object.useFunctionId ?? "";
23802
- message.useMethodName = object.useMethodName ?? "";
23803
23863
  message.classParameterInfo = object.classParameterInfo !== void 0 && object.classParameterInfo !== null ? ClassParameterInfo.fromPartial(object.classParameterInfo) : void 0;
23804
23864
  message.batchMaxSize = object.batchMaxSize ?? 0;
23805
23865
  message.batchLingerMs = object.batchLingerMs ?? 0;
@@ -24508,6 +24568,193 @@ var FunctionCallCancelRequest = {
24508
24568
  return message;
24509
24569
  }
24510
24570
  };
24571
+ function createBaseFunctionCallFetchRequest() {
24572
+ return { functionId: "", tail: void 0, allVariants: false };
24573
+ }
24574
+ var FunctionCallFetchRequest = {
24575
+ encode(message, writer = new BinaryWriter()) {
24576
+ if (message.functionId !== "") {
24577
+ writer.uint32(10).string(message.functionId);
24578
+ }
24579
+ if (message.tail !== void 0) {
24580
+ FunctionCallFetchRequest_Tail.encode(message.tail, writer.uint32(26).fork()).join();
24581
+ }
24582
+ if (message.allVariants !== false) {
24583
+ writer.uint32(32).bool(message.allVariants);
24584
+ }
24585
+ return writer;
24586
+ },
24587
+ decode(input, length) {
24588
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24589
+ let end = length === void 0 ? reader.len : reader.pos + length;
24590
+ const message = createBaseFunctionCallFetchRequest();
24591
+ while (reader.pos < end) {
24592
+ const tag = reader.uint32();
24593
+ switch (tag >>> 3) {
24594
+ case 1: {
24595
+ if (tag !== 10) {
24596
+ break;
24597
+ }
24598
+ message.functionId = reader.string();
24599
+ continue;
24600
+ }
24601
+ case 3: {
24602
+ if (tag !== 26) {
24603
+ break;
24604
+ }
24605
+ message.tail = FunctionCallFetchRequest_Tail.decode(reader, reader.uint32());
24606
+ continue;
24607
+ }
24608
+ case 4: {
24609
+ if (tag !== 32) {
24610
+ break;
24611
+ }
24612
+ message.allVariants = reader.bool();
24613
+ continue;
24614
+ }
24615
+ }
24616
+ if ((tag & 7) === 4 || tag === 0) {
24617
+ break;
24618
+ }
24619
+ reader.skip(tag & 7);
24620
+ }
24621
+ return message;
24622
+ },
24623
+ fromJSON(object) {
24624
+ return {
24625
+ functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
24626
+ tail: isSet5(object.tail) ? FunctionCallFetchRequest_Tail.fromJSON(object.tail) : void 0,
24627
+ allVariants: isSet5(object.allVariants) ? globalThis.Boolean(object.allVariants) : false
24628
+ };
24629
+ },
24630
+ toJSON(message) {
24631
+ const obj = {};
24632
+ if (message.functionId !== "") {
24633
+ obj.functionId = message.functionId;
24634
+ }
24635
+ if (message.tail !== void 0) {
24636
+ obj.tail = FunctionCallFetchRequest_Tail.toJSON(message.tail);
24637
+ }
24638
+ if (message.allVariants !== false) {
24639
+ obj.allVariants = message.allVariants;
24640
+ }
24641
+ return obj;
24642
+ },
24643
+ create(base) {
24644
+ return FunctionCallFetchRequest.fromPartial(base ?? {});
24645
+ },
24646
+ fromPartial(object) {
24647
+ const message = createBaseFunctionCallFetchRequest();
24648
+ message.functionId = object.functionId ?? "";
24649
+ message.tail = object.tail !== void 0 && object.tail !== null ? FunctionCallFetchRequest_Tail.fromPartial(object.tail) : void 0;
24650
+ message.allVariants = object.allVariants ?? false;
24651
+ return message;
24652
+ }
24653
+ };
24654
+ function createBaseFunctionCallFetchRequest_Tail() {
24655
+ return { count: 0 };
24656
+ }
24657
+ var FunctionCallFetchRequest_Tail = {
24658
+ encode(message, writer = new BinaryWriter()) {
24659
+ if (message.count !== 0) {
24660
+ writer.uint32(8).uint32(message.count);
24661
+ }
24662
+ return writer;
24663
+ },
24664
+ decode(input, length) {
24665
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24666
+ let end = length === void 0 ? reader.len : reader.pos + length;
24667
+ const message = createBaseFunctionCallFetchRequest_Tail();
24668
+ while (reader.pos < end) {
24669
+ const tag = reader.uint32();
24670
+ switch (tag >>> 3) {
24671
+ case 1: {
24672
+ if (tag !== 8) {
24673
+ break;
24674
+ }
24675
+ message.count = reader.uint32();
24676
+ continue;
24677
+ }
24678
+ }
24679
+ if ((tag & 7) === 4 || tag === 0) {
24680
+ break;
24681
+ }
24682
+ reader.skip(tag & 7);
24683
+ }
24684
+ return message;
24685
+ },
24686
+ fromJSON(object) {
24687
+ return { count: isSet5(object.count) ? globalThis.Number(object.count) : 0 };
24688
+ },
24689
+ toJSON(message) {
24690
+ const obj = {};
24691
+ if (message.count !== 0) {
24692
+ obj.count = Math.round(message.count);
24693
+ }
24694
+ return obj;
24695
+ },
24696
+ create(base) {
24697
+ return FunctionCallFetchRequest_Tail.fromPartial(base ?? {});
24698
+ },
24699
+ fromPartial(object) {
24700
+ const message = createBaseFunctionCallFetchRequest_Tail();
24701
+ message.count = object.count ?? 0;
24702
+ return message;
24703
+ }
24704
+ };
24705
+ function createBaseFunctionCallFetchResponse() {
24706
+ return { functionCallInputs: [] };
24707
+ }
24708
+ var FunctionCallFetchResponse = {
24709
+ encode(message, writer = new BinaryWriter()) {
24710
+ for (const v of message.functionCallInputs) {
24711
+ FunctionCallInputInfo.encode(v, writer.uint32(10).fork()).join();
24712
+ }
24713
+ return writer;
24714
+ },
24715
+ decode(input, length) {
24716
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24717
+ let end = length === void 0 ? reader.len : reader.pos + length;
24718
+ const message = createBaseFunctionCallFetchResponse();
24719
+ while (reader.pos < end) {
24720
+ const tag = reader.uint32();
24721
+ switch (tag >>> 3) {
24722
+ case 1: {
24723
+ if (tag !== 10) {
24724
+ break;
24725
+ }
24726
+ message.functionCallInputs.push(FunctionCallInputInfo.decode(reader, reader.uint32()));
24727
+ continue;
24728
+ }
24729
+ }
24730
+ if ((tag & 7) === 4 || tag === 0) {
24731
+ break;
24732
+ }
24733
+ reader.skip(tag & 7);
24734
+ }
24735
+ return message;
24736
+ },
24737
+ fromJSON(object) {
24738
+ return {
24739
+ functionCallInputs: globalThis.Array.isArray(object?.functionCallInputs) ? object.functionCallInputs.map((e) => FunctionCallInputInfo.fromJSON(e)) : []
24740
+ };
24741
+ },
24742
+ toJSON(message) {
24743
+ const obj = {};
24744
+ if (message.functionCallInputs?.length) {
24745
+ obj.functionCallInputs = message.functionCallInputs.map((e) => FunctionCallInputInfo.toJSON(e));
24746
+ }
24747
+ return obj;
24748
+ },
24749
+ create(base) {
24750
+ return FunctionCallFetchResponse.fromPartial(base ?? {});
24751
+ },
24752
+ fromPartial(object) {
24753
+ const message = createBaseFunctionCallFetchResponse();
24754
+ message.functionCallInputs = object.functionCallInputs?.map((e) => FunctionCallInputInfo.fromPartial(e)) || [];
24755
+ return message;
24756
+ }
24757
+ };
24511
24758
  function createBaseFunctionCallFromIdRequest() {
24512
24759
  return { functionCallId: "" };
24513
24760
  }
@@ -25111,6 +25358,173 @@ var FunctionCallInfo = {
25111
25358
  return message;
25112
25359
  }
25113
25360
  };
25361
+ function createBaseFunctionCallInputInfo() {
25362
+ return {
25363
+ enqueuedAt: void 0,
25364
+ startedAt: void 0,
25365
+ containerId: void 0,
25366
+ startupTimeSeconds: void 0,
25367
+ executionTimeSeconds: void 0,
25368
+ status: 0,
25369
+ functionCallId: "",
25370
+ serviceMethodName: void 0
25371
+ };
25372
+ }
25373
+ var FunctionCallInputInfo = {
25374
+ encode(message, writer = new BinaryWriter()) {
25375
+ if (message.enqueuedAt !== void 0) {
25376
+ Timestamp.encode(toTimestamp(message.enqueuedAt), writer.uint32(10).fork()).join();
25377
+ }
25378
+ if (message.startedAt !== void 0) {
25379
+ Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(18).fork()).join();
25380
+ }
25381
+ if (message.containerId !== void 0) {
25382
+ writer.uint32(26).string(message.containerId);
25383
+ }
25384
+ if (message.startupTimeSeconds !== void 0) {
25385
+ writer.uint32(33).double(message.startupTimeSeconds);
25386
+ }
25387
+ if (message.executionTimeSeconds !== void 0) {
25388
+ writer.uint32(41).double(message.executionTimeSeconds);
25389
+ }
25390
+ if (message.status !== 0) {
25391
+ writer.uint32(48).int32(message.status);
25392
+ }
25393
+ if (message.functionCallId !== "") {
25394
+ writer.uint32(58).string(message.functionCallId);
25395
+ }
25396
+ if (message.serviceMethodName !== void 0) {
25397
+ writer.uint32(66).string(message.serviceMethodName);
25398
+ }
25399
+ return writer;
25400
+ },
25401
+ decode(input, length) {
25402
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
25403
+ let end = length === void 0 ? reader.len : reader.pos + length;
25404
+ const message = createBaseFunctionCallInputInfo();
25405
+ while (reader.pos < end) {
25406
+ const tag = reader.uint32();
25407
+ switch (tag >>> 3) {
25408
+ case 1: {
25409
+ if (tag !== 10) {
25410
+ break;
25411
+ }
25412
+ message.enqueuedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
25413
+ continue;
25414
+ }
25415
+ case 2: {
25416
+ if (tag !== 18) {
25417
+ break;
25418
+ }
25419
+ message.startedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
25420
+ continue;
25421
+ }
25422
+ case 3: {
25423
+ if (tag !== 26) {
25424
+ break;
25425
+ }
25426
+ message.containerId = reader.string();
25427
+ continue;
25428
+ }
25429
+ case 4: {
25430
+ if (tag !== 33) {
25431
+ break;
25432
+ }
25433
+ message.startupTimeSeconds = reader.double();
25434
+ continue;
25435
+ }
25436
+ case 5: {
25437
+ if (tag !== 41) {
25438
+ break;
25439
+ }
25440
+ message.executionTimeSeconds = reader.double();
25441
+ continue;
25442
+ }
25443
+ case 6: {
25444
+ if (tag !== 48) {
25445
+ break;
25446
+ }
25447
+ message.status = reader.int32();
25448
+ continue;
25449
+ }
25450
+ case 7: {
25451
+ if (tag !== 58) {
25452
+ break;
25453
+ }
25454
+ message.functionCallId = reader.string();
25455
+ continue;
25456
+ }
25457
+ case 8: {
25458
+ if (tag !== 66) {
25459
+ break;
25460
+ }
25461
+ message.serviceMethodName = reader.string();
25462
+ continue;
25463
+ }
25464
+ }
25465
+ if ((tag & 7) === 4 || tag === 0) {
25466
+ break;
25467
+ }
25468
+ reader.skip(tag & 7);
25469
+ }
25470
+ return message;
25471
+ },
25472
+ fromJSON(object) {
25473
+ return {
25474
+ enqueuedAt: isSet5(object.enqueuedAt) ? fromJsonTimestamp(object.enqueuedAt) : void 0,
25475
+ startedAt: isSet5(object.startedAt) ? fromJsonTimestamp(object.startedAt) : void 0,
25476
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : void 0,
25477
+ startupTimeSeconds: isSet5(object.startupTimeSeconds) ? globalThis.Number(object.startupTimeSeconds) : void 0,
25478
+ executionTimeSeconds: isSet5(object.executionTimeSeconds) ? globalThis.Number(object.executionTimeSeconds) : void 0,
25479
+ status: isSet5(object.status) ? functionCallInputStatusFromJSON(object.status) : 0,
25480
+ functionCallId: isSet5(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
25481
+ serviceMethodName: isSet5(object.serviceMethodName) ? globalThis.String(object.serviceMethodName) : void 0
25482
+ };
25483
+ },
25484
+ toJSON(message) {
25485
+ const obj = {};
25486
+ if (message.enqueuedAt !== void 0) {
25487
+ obj.enqueuedAt = message.enqueuedAt.toISOString();
25488
+ }
25489
+ if (message.startedAt !== void 0) {
25490
+ obj.startedAt = message.startedAt.toISOString();
25491
+ }
25492
+ if (message.containerId !== void 0) {
25493
+ obj.containerId = message.containerId;
25494
+ }
25495
+ if (message.startupTimeSeconds !== void 0) {
25496
+ obj.startupTimeSeconds = message.startupTimeSeconds;
25497
+ }
25498
+ if (message.executionTimeSeconds !== void 0) {
25499
+ obj.executionTimeSeconds = message.executionTimeSeconds;
25500
+ }
25501
+ if (message.status !== 0) {
25502
+ obj.status = functionCallInputStatusToJSON(message.status);
25503
+ }
25504
+ if (message.functionCallId !== "") {
25505
+ obj.functionCallId = message.functionCallId;
25506
+ }
25507
+ if (message.serviceMethodName !== void 0) {
25508
+ obj.serviceMethodName = message.serviceMethodName;
25509
+ }
25510
+ return obj;
25511
+ },
25512
+ create(base) {
25513
+ return FunctionCallInputInfo.fromPartial(base ?? {});
25514
+ },
25515
+ fromPartial(object) {
25516
+ const message = createBaseFunctionCallInputInfo();
25517
+ message.enqueuedAt = object.enqueuedAt ?? void 0;
25518
+ message.startedAt = object.startedAt ?? void 0;
25519
+ message.containerId = object.containerId ?? void 0;
25520
+ message.startupTimeSeconds = object.startupTimeSeconds ?? void 0;
25521
+ message.executionTimeSeconds = object.executionTimeSeconds ?? void 0;
25522
+ message.status = object.status ?? 0;
25523
+ message.functionCallId = object.functionCallId ?? "";
25524
+ message.serviceMethodName = object.serviceMethodName ?? void 0;
25525
+ return message;
25526
+ }
25527
+ };
25114
25528
  function createBaseFunctionCallListRequest() {
25115
25529
  return { functionId: "" };
25116
25530
  }
@@ -25571,8 +25985,6 @@ function createBaseFunctionData() {
25571
25985
  isClass: false,
25572
25986
  classParameterInfo: void 0,
25573
25987
  isMethod: false,
25574
- useFunctionId: "",
25575
- useMethodName: "",
25576
25988
  rankedFunctions: [],
25577
25989
  schedule: void 0,
25578
25990
  untrusted: false,
@@ -25664,12 +26076,6 @@ var FunctionData = {
25664
26076
  if (message.isMethod !== false) {
25665
26077
  writer.uint32(120).bool(message.isMethod);
25666
26078
  }
25667
- if (message.useFunctionId !== "") {
25668
- writer.uint32(130).string(message.useFunctionId);
25669
- }
25670
- if (message.useMethodName !== "") {
25671
- writer.uint32(138).string(message.useMethodName);
25672
- }
25673
26079
  for (const v of message.rankedFunctions) {
25674
26080
  FunctionData_RankedFunction.encode(v, writer.uint32(146).fork()).join();
25675
26081
  }
@@ -25901,20 +26307,6 @@ var FunctionData = {
25901
26307
  message.isMethod = reader.bool();
25902
26308
  continue;
25903
26309
  }
25904
- case 16: {
25905
- if (tag !== 130) {
25906
- break;
25907
- }
25908
- message.useFunctionId = reader.string();
25909
- continue;
25910
- }
25911
- case 17: {
25912
- if (tag !== 138) {
25913
- break;
25914
- }
25915
- message.useMethodName = reader.string();
25916
- continue;
25917
- }
25918
26310
  case 18: {
25919
26311
  if (tag !== 146) {
25920
26312
  break;
@@ -26094,8 +26486,6 @@ var FunctionData = {
26094
26486
  isClass: isSet5(object.isClass) ? globalThis.Boolean(object.isClass) : false,
26095
26487
  classParameterInfo: isSet5(object.classParameterInfo) ? ClassParameterInfo.fromJSON(object.classParameterInfo) : void 0,
26096
26488
  isMethod: isSet5(object.isMethod) ? globalThis.Boolean(object.isMethod) : false,
26097
- useFunctionId: isSet5(object.useFunctionId) ? globalThis.String(object.useFunctionId) : "",
26098
- useMethodName: isSet5(object.useMethodName) ? globalThis.String(object.useMethodName) : "",
26099
26489
  rankedFunctions: globalThis.Array.isArray(object?.rankedFunctions) ? object.rankedFunctions.map((e) => FunctionData_RankedFunction.fromJSON(e)) : [],
26100
26490
  schedule: isSet5(object.schedule) ? Schedule.fromJSON(object.schedule) : void 0,
26101
26491
  untrusted: isSet5(object.untrusted) ? globalThis.Boolean(object.untrusted) : false,
@@ -26196,12 +26586,6 @@ var FunctionData = {
26196
26586
  if (message.isMethod !== false) {
26197
26587
  obj.isMethod = message.isMethod;
26198
26588
  }
26199
- if (message.useFunctionId !== "") {
26200
- obj.useFunctionId = message.useFunctionId;
26201
- }
26202
- if (message.useMethodName !== "") {
26203
- obj.useMethodName = message.useMethodName;
26204
- }
26205
26589
  if (message.rankedFunctions?.length) {
26206
26590
  obj.rankedFunctions = message.rankedFunctions.map((e) => FunctionData_RankedFunction.toJSON(e));
26207
26591
  }
@@ -26297,8 +26681,6 @@ var FunctionData = {
26297
26681
  message.isClass = object.isClass ?? false;
26298
26682
  message.classParameterInfo = object.classParameterInfo !== void 0 && object.classParameterInfo !== null ? ClassParameterInfo.fromPartial(object.classParameterInfo) : void 0;
26299
26683
  message.isMethod = object.isMethod ?? false;
26300
- message.useFunctionId = object.useFunctionId ?? "";
26301
- message.useMethodName = object.useMethodName ?? "";
26302
26684
  message.rankedFunctions = object.rankedFunctions?.map((e) => FunctionData_RankedFunction.fromPartial(e)) || [];
26303
26685
  message.schedule = object.schedule !== void 0 && object.schedule !== null ? Schedule.fromPartial(object.schedule) : void 0;
26304
26686
  message.untrusted = object.untrusted ?? false;
@@ -28931,7 +29313,6 @@ function createBaseFunctionHandleMetadata() {
28931
29313
  functionType: 0,
28932
29314
  webUrl: "",
28933
29315
  isMethod: false,
28934
- useFunctionId: "",
28935
29316
  useMethodName: "",
28936
29317
  definitionId: "",
28937
29318
  classParameterInfo: void 0,
@@ -28962,9 +29343,6 @@ var FunctionHandleMetadata = {
28962
29343
  if (message.isMethod !== false) {
28963
29344
  writer.uint32(312).bool(message.isMethod);
28964
29345
  }
28965
- if (message.useFunctionId !== "") {
28966
- writer.uint32(322).string(message.useFunctionId);
28967
- }
28968
29346
  if (message.useMethodName !== "") {
28969
29347
  writer.uint32(330).string(message.useMethodName);
28970
29348
  }
@@ -29048,13 +29426,6 @@ var FunctionHandleMetadata = {
29048
29426
  message.isMethod = reader.bool();
29049
29427
  continue;
29050
29428
  }
29051
- case 40: {
29052
- if (tag !== 322) {
29053
- break;
29054
- }
29055
- message.useFunctionId = reader.string();
29056
- continue;
29057
- }
29058
29429
  case 41: {
29059
29430
  if (tag !== 330) {
29060
29431
  break;
@@ -29184,7 +29555,6 @@ var FunctionHandleMetadata = {
29184
29555
  functionType: isSet5(object.functionType) ? function_FunctionTypeFromJSON(object.functionType) : 0,
29185
29556
  webUrl: isSet5(object.webUrl) ? globalThis.String(object.webUrl) : "",
29186
29557
  isMethod: isSet5(object.isMethod) ? globalThis.Boolean(object.isMethod) : false,
29187
- useFunctionId: isSet5(object.useFunctionId) ? globalThis.String(object.useFunctionId) : "",
29188
29558
  useMethodName: isSet5(object.useMethodName) ? globalThis.String(object.useMethodName) : "",
29189
29559
  definitionId: isSet5(object.definitionId) ? globalThis.String(object.definitionId) : "",
29190
29560
  classParameterInfo: isSet5(object.classParameterInfo) ? ClassParameterInfo.fromJSON(object.classParameterInfo) : void 0,
@@ -29221,9 +29591,6 @@ var FunctionHandleMetadata = {
29221
29591
  if (message.isMethod !== false) {
29222
29592
  obj.isMethod = message.isMethod;
29223
29593
  }
29224
- if (message.useFunctionId !== "") {
29225
- obj.useFunctionId = message.useFunctionId;
29226
- }
29227
29594
  if (message.useMethodName !== "") {
29228
29595
  obj.useMethodName = message.useMethodName;
29229
29596
  }
@@ -29283,7 +29650,6 @@ var FunctionHandleMetadata = {
29283
29650
  message.functionType = object.functionType ?? 0;
29284
29651
  message.webUrl = object.webUrl ?? "";
29285
29652
  message.isMethod = object.isMethod ?? false;
29286
- message.useFunctionId = object.useFunctionId ?? "";
29287
29653
  message.useMethodName = object.useMethodName ?? "";
29288
29654
  message.definitionId = object.definitionId ?? "";
29289
29655
  message.classParameterInfo = object.classParameterInfo !== void 0 && object.classParameterInfo !== null ? ClassParameterInfo.fromPartial(object.classParameterInfo) : void 0;
@@ -29487,6 +29853,172 @@ var FunctionInput = {
29487
29853
  return message;
29488
29854
  }
29489
29855
  };
29856
+ function createBaseFunctionListVariantsRequest() {
29857
+ return { functionId: "", cursor: void 0, limit: 0 };
29858
+ }
29859
+ var FunctionListVariantsRequest = {
29860
+ encode(message, writer = new BinaryWriter()) {
29861
+ if (message.functionId !== "") {
29862
+ writer.uint32(10).string(message.functionId);
29863
+ }
29864
+ if (message.cursor !== void 0) {
29865
+ FunctionVariantCursor.encode(message.cursor, writer.uint32(18).fork()).join();
29866
+ }
29867
+ if (message.limit !== 0) {
29868
+ writer.uint32(24).uint32(message.limit);
29869
+ }
29870
+ return writer;
29871
+ },
29872
+ decode(input, length) {
29873
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
29874
+ let end = length === void 0 ? reader.len : reader.pos + length;
29875
+ const message = createBaseFunctionListVariantsRequest();
29876
+ while (reader.pos < end) {
29877
+ const tag = reader.uint32();
29878
+ switch (tag >>> 3) {
29879
+ case 1: {
29880
+ if (tag !== 10) {
29881
+ break;
29882
+ }
29883
+ message.functionId = reader.string();
29884
+ continue;
29885
+ }
29886
+ case 2: {
29887
+ if (tag !== 18) {
29888
+ break;
29889
+ }
29890
+ message.cursor = FunctionVariantCursor.decode(reader, reader.uint32());
29891
+ continue;
29892
+ }
29893
+ case 3: {
29894
+ if (tag !== 24) {
29895
+ break;
29896
+ }
29897
+ message.limit = reader.uint32();
29898
+ continue;
29899
+ }
29900
+ }
29901
+ if ((tag & 7) === 4 || tag === 0) {
29902
+ break;
29903
+ }
29904
+ reader.skip(tag & 7);
29905
+ }
29906
+ return message;
29907
+ },
29908
+ fromJSON(object) {
29909
+ return {
29910
+ functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
29911
+ cursor: isSet5(object.cursor) ? FunctionVariantCursor.fromJSON(object.cursor) : void 0,
29912
+ limit: isSet5(object.limit) ? globalThis.Number(object.limit) : 0
29913
+ };
29914
+ },
29915
+ toJSON(message) {
29916
+ const obj = {};
29917
+ if (message.functionId !== "") {
29918
+ obj.functionId = message.functionId;
29919
+ }
29920
+ if (message.cursor !== void 0) {
29921
+ obj.cursor = FunctionVariantCursor.toJSON(message.cursor);
29922
+ }
29923
+ if (message.limit !== 0) {
29924
+ obj.limit = Math.round(message.limit);
29925
+ }
29926
+ return obj;
29927
+ },
29928
+ create(base) {
29929
+ return FunctionListVariantsRequest.fromPartial(base ?? {});
29930
+ },
29931
+ fromPartial(object) {
29932
+ const message = createBaseFunctionListVariantsRequest();
29933
+ message.functionId = object.functionId ?? "";
29934
+ message.cursor = object.cursor !== void 0 && object.cursor !== null ? FunctionVariantCursor.fromPartial(object.cursor) : void 0;
29935
+ message.limit = object.limit ?? 0;
29936
+ return message;
29937
+ }
29938
+ };
29939
+ function createBaseFunctionListVariantsResponse() {
29940
+ return { infos: [], nextCursor: void 0, orderedByTaskCount: false };
29941
+ }
29942
+ var FunctionListVariantsResponse = {
29943
+ encode(message, writer = new BinaryWriter()) {
29944
+ for (const v of message.infos) {
29945
+ FunctionVariantInfo.encode(v, writer.uint32(10).fork()).join();
29946
+ }
29947
+ if (message.nextCursor !== void 0) {
29948
+ FunctionVariantCursor.encode(message.nextCursor, writer.uint32(18).fork()).join();
29949
+ }
29950
+ if (message.orderedByTaskCount !== false) {
29951
+ writer.uint32(24).bool(message.orderedByTaskCount);
29952
+ }
29953
+ return writer;
29954
+ },
29955
+ decode(input, length) {
29956
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
29957
+ let end = length === void 0 ? reader.len : reader.pos + length;
29958
+ const message = createBaseFunctionListVariantsResponse();
29959
+ while (reader.pos < end) {
29960
+ const tag = reader.uint32();
29961
+ switch (tag >>> 3) {
29962
+ case 1: {
29963
+ if (tag !== 10) {
29964
+ break;
29965
+ }
29966
+ message.infos.push(FunctionVariantInfo.decode(reader, reader.uint32()));
29967
+ continue;
29968
+ }
29969
+ case 2: {
29970
+ if (tag !== 18) {
29971
+ break;
29972
+ }
29973
+ message.nextCursor = FunctionVariantCursor.decode(reader, reader.uint32());
29974
+ continue;
29975
+ }
29976
+ case 3: {
29977
+ if (tag !== 24) {
29978
+ break;
29979
+ }
29980
+ message.orderedByTaskCount = reader.bool();
29981
+ continue;
29982
+ }
29983
+ }
29984
+ if ((tag & 7) === 4 || tag === 0) {
29985
+ break;
29986
+ }
29987
+ reader.skip(tag & 7);
29988
+ }
29989
+ return message;
29990
+ },
29991
+ fromJSON(object) {
29992
+ return {
29993
+ infos: globalThis.Array.isArray(object?.infos) ? object.infos.map((e) => FunctionVariantInfo.fromJSON(e)) : [],
29994
+ nextCursor: isSet5(object.nextCursor) ? FunctionVariantCursor.fromJSON(object.nextCursor) : void 0,
29995
+ orderedByTaskCount: isSet5(object.orderedByTaskCount) ? globalThis.Boolean(object.orderedByTaskCount) : false
29996
+ };
29997
+ },
29998
+ toJSON(message) {
29999
+ const obj = {};
30000
+ if (message.infos?.length) {
30001
+ obj.infos = message.infos.map((e) => FunctionVariantInfo.toJSON(e));
30002
+ }
30003
+ if (message.nextCursor !== void 0) {
30004
+ obj.nextCursor = FunctionVariantCursor.toJSON(message.nextCursor);
30005
+ }
30006
+ if (message.orderedByTaskCount !== false) {
30007
+ obj.orderedByTaskCount = message.orderedByTaskCount;
30008
+ }
30009
+ return obj;
30010
+ },
30011
+ create(base) {
30012
+ return FunctionListVariantsResponse.fromPartial(base ?? {});
30013
+ },
30014
+ fromPartial(object) {
30015
+ const message = createBaseFunctionListVariantsResponse();
30016
+ message.infos = object.infos?.map((e) => FunctionVariantInfo.fromPartial(e)) || [];
30017
+ message.nextCursor = object.nextCursor !== void 0 && object.nextCursor !== null ? FunctionVariantCursor.fromPartial(object.nextCursor) : void 0;
30018
+ message.orderedByTaskCount = object.orderedByTaskCount ?? false;
30019
+ return message;
30020
+ }
30021
+ };
29490
30022
  function createBaseFunctionMapRequest() {
29491
30023
  return {
29492
30024
  functionId: "",
@@ -30171,8 +30703,6 @@ function createBaseFunctionPrecreateRequest() {
30171
30703
  existingFunctionId: "",
30172
30704
  functionType: 0,
30173
30705
  webhookConfig: void 0,
30174
- useFunctionId: "",
30175
- useMethodName: "",
30176
30706
  methodDefinitions: {},
30177
30707
  functionSchema: void 0,
30178
30708
  supportedInputFormats: [],
@@ -30196,12 +30726,6 @@ var FunctionPrecreateRequest = {
30196
30726
  if (message.webhookConfig !== void 0) {
30197
30727
  WebhookConfig.encode(message.webhookConfig, writer.uint32(42).fork()).join();
30198
30728
  }
30199
- if (message.useFunctionId !== "") {
30200
- writer.uint32(50).string(message.useFunctionId);
30201
- }
30202
- if (message.useMethodName !== "") {
30203
- writer.uint32(58).string(message.useMethodName);
30204
- }
30205
30729
  Object.entries(message.methodDefinitions).forEach(([key, value]) => {
30206
30730
  FunctionPrecreateRequest_MethodDefinitionsEntry.encode({ key, value }, writer.uint32(66).fork()).join();
30207
30731
  });
@@ -30262,20 +30786,6 @@ var FunctionPrecreateRequest = {
30262
30786
  message.webhookConfig = WebhookConfig.decode(reader, reader.uint32());
30263
30787
  continue;
30264
30788
  }
30265
- case 6: {
30266
- if (tag !== 50) {
30267
- break;
30268
- }
30269
- message.useFunctionId = reader.string();
30270
- continue;
30271
- }
30272
- case 7: {
30273
- if (tag !== 58) {
30274
- break;
30275
- }
30276
- message.useMethodName = reader.string();
30277
- continue;
30278
- }
30279
30789
  case 8: {
30280
30790
  if (tag !== 66) {
30281
30791
  break;
@@ -30336,8 +30846,6 @@ var FunctionPrecreateRequest = {
30336
30846
  existingFunctionId: isSet5(object.existingFunctionId) ? globalThis.String(object.existingFunctionId) : "",
30337
30847
  functionType: isSet5(object.functionType) ? function_FunctionTypeFromJSON(object.functionType) : 0,
30338
30848
  webhookConfig: isSet5(object.webhookConfig) ? WebhookConfig.fromJSON(object.webhookConfig) : void 0,
30339
- useFunctionId: isSet5(object.useFunctionId) ? globalThis.String(object.useFunctionId) : "",
30340
- useMethodName: isSet5(object.useMethodName) ? globalThis.String(object.useMethodName) : "",
30341
30849
  methodDefinitions: isObject2(object.methodDefinitions) ? Object.entries(object.methodDefinitions).reduce((acc, [key, value]) => {
30342
30850
  acc[key] = MethodDefinition.fromJSON(value);
30343
30851
  return acc;
@@ -30364,12 +30872,6 @@ var FunctionPrecreateRequest = {
30364
30872
  if (message.webhookConfig !== void 0) {
30365
30873
  obj.webhookConfig = WebhookConfig.toJSON(message.webhookConfig);
30366
30874
  }
30367
- if (message.useFunctionId !== "") {
30368
- obj.useFunctionId = message.useFunctionId;
30369
- }
30370
- if (message.useMethodName !== "") {
30371
- obj.useMethodName = message.useMethodName;
30372
- }
30373
30875
  if (message.methodDefinitions) {
30374
30876
  const entries = Object.entries(message.methodDefinitions);
30375
30877
  if (entries.length > 0) {
@@ -30400,8 +30902,6 @@ var FunctionPrecreateRequest = {
30400
30902
  message.existingFunctionId = object.existingFunctionId ?? "";
30401
30903
  message.functionType = object.functionType ?? 0;
30402
30904
  message.webhookConfig = object.webhookConfig !== void 0 && object.webhookConfig !== null ? WebhookConfig.fromPartial(object.webhookConfig) : void 0;
30403
- message.useFunctionId = object.useFunctionId ?? "";
30404
- message.useMethodName = object.useMethodName ?? "";
30405
30905
  message.methodDefinitions = Object.entries(object.methodDefinitions ?? {}).reduce((acc, [key, value]) => {
30406
30906
  if (value !== void 0) {
30407
30907
  acc[key] = MethodDefinition.fromPartial(value);
@@ -31752,6 +32252,157 @@ var FunctionUpdateSchedulingParamsResponse = {
31752
32252
  return message;
31753
32253
  }
31754
32254
  };
32255
+ function createBaseFunctionVariantCursor() {
32256
+ return { createdBefore: 0, functionId: "" };
32257
+ }
32258
+ var FunctionVariantCursor = {
32259
+ encode(message, writer = new BinaryWriter()) {
32260
+ if (message.createdBefore !== 0) {
32261
+ writer.uint32(9).double(message.createdBefore);
32262
+ }
32263
+ if (message.functionId !== "") {
32264
+ writer.uint32(18).string(message.functionId);
32265
+ }
32266
+ return writer;
32267
+ },
32268
+ decode(input, length) {
32269
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
32270
+ let end = length === void 0 ? reader.len : reader.pos + length;
32271
+ const message = createBaseFunctionVariantCursor();
32272
+ while (reader.pos < end) {
32273
+ const tag = reader.uint32();
32274
+ switch (tag >>> 3) {
32275
+ case 1: {
32276
+ if (tag !== 9) {
32277
+ break;
32278
+ }
32279
+ message.createdBefore = reader.double();
32280
+ continue;
32281
+ }
32282
+ case 2: {
32283
+ if (tag !== 18) {
32284
+ break;
32285
+ }
32286
+ message.functionId = reader.string();
32287
+ continue;
32288
+ }
32289
+ }
32290
+ if ((tag & 7) === 4 || tag === 0) {
32291
+ break;
32292
+ }
32293
+ reader.skip(tag & 7);
32294
+ }
32295
+ return message;
32296
+ },
32297
+ fromJSON(object) {
32298
+ return {
32299
+ createdBefore: isSet5(object.createdBefore) ? globalThis.Number(object.createdBefore) : 0,
32300
+ functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : ""
32301
+ };
32302
+ },
32303
+ toJSON(message) {
32304
+ const obj = {};
32305
+ if (message.createdBefore !== 0) {
32306
+ obj.createdBefore = message.createdBefore;
32307
+ }
32308
+ if (message.functionId !== "") {
32309
+ obj.functionId = message.functionId;
32310
+ }
32311
+ return obj;
32312
+ },
32313
+ create(base) {
32314
+ return FunctionVariantCursor.fromPartial(base ?? {});
32315
+ },
32316
+ fromPartial(object) {
32317
+ const message = createBaseFunctionVariantCursor();
32318
+ message.createdBefore = object.createdBefore ?? 0;
32319
+ message.functionId = object.functionId ?? "";
32320
+ return message;
32321
+ }
32322
+ };
32323
+ function createBaseFunctionVariantInfo() {
32324
+ return { functionId: "", serializedParams: new Uint8Array(0), functionOptions: void 0 };
32325
+ }
32326
+ var FunctionVariantInfo = {
32327
+ encode(message, writer = new BinaryWriter()) {
32328
+ if (message.functionId !== "") {
32329
+ writer.uint32(10).string(message.functionId);
32330
+ }
32331
+ if (message.serializedParams.length !== 0) {
32332
+ writer.uint32(18).bytes(message.serializedParams);
32333
+ }
32334
+ if (message.functionOptions !== void 0) {
32335
+ FunctionOptions.encode(message.functionOptions, writer.uint32(26).fork()).join();
32336
+ }
32337
+ return writer;
32338
+ },
32339
+ decode(input, length) {
32340
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
32341
+ let end = length === void 0 ? reader.len : reader.pos + length;
32342
+ const message = createBaseFunctionVariantInfo();
32343
+ while (reader.pos < end) {
32344
+ const tag = reader.uint32();
32345
+ switch (tag >>> 3) {
32346
+ case 1: {
32347
+ if (tag !== 10) {
32348
+ break;
32349
+ }
32350
+ message.functionId = reader.string();
32351
+ continue;
32352
+ }
32353
+ case 2: {
32354
+ if (tag !== 18) {
32355
+ break;
32356
+ }
32357
+ message.serializedParams = reader.bytes();
32358
+ continue;
32359
+ }
32360
+ case 3: {
32361
+ if (tag !== 26) {
32362
+ break;
32363
+ }
32364
+ message.functionOptions = FunctionOptions.decode(reader, reader.uint32());
32365
+ continue;
32366
+ }
32367
+ }
32368
+ if ((tag & 7) === 4 || tag === 0) {
32369
+ break;
32370
+ }
32371
+ reader.skip(tag & 7);
32372
+ }
32373
+ return message;
32374
+ },
32375
+ fromJSON(object) {
32376
+ return {
32377
+ functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
32378
+ serializedParams: isSet5(object.serializedParams) ? bytesFromBase642(object.serializedParams) : new Uint8Array(0),
32379
+ functionOptions: isSet5(object.functionOptions) ? FunctionOptions.fromJSON(object.functionOptions) : void 0
32380
+ };
32381
+ },
32382
+ toJSON(message) {
32383
+ const obj = {};
32384
+ if (message.functionId !== "") {
32385
+ obj.functionId = message.functionId;
32386
+ }
32387
+ if (message.serializedParams.length !== 0) {
32388
+ obj.serializedParams = base64FromBytes2(message.serializedParams);
32389
+ }
32390
+ if (message.functionOptions !== void 0) {
32391
+ obj.functionOptions = FunctionOptions.toJSON(message.functionOptions);
32392
+ }
32393
+ return obj;
32394
+ },
32395
+ create(base) {
32396
+ return FunctionVariantInfo.fromPartial(base ?? {});
32397
+ },
32398
+ fromPartial(object) {
32399
+ const message = createBaseFunctionVariantInfo();
32400
+ message.functionId = object.functionId ?? "";
32401
+ message.serializedParams = object.serializedParams ?? new Uint8Array(0);
32402
+ message.functionOptions = object.functionOptions !== void 0 && object.functionOptions !== null ? FunctionOptions.fromPartial(object.functionOptions) : void 0;
32403
+ return message;
32404
+ }
32405
+ };
31755
32406
  function createBaseGPUConfig() {
31756
32407
  return { type: 0, count: 0, gpuType: "" };
31757
32408
  }
@@ -32145,7 +32796,8 @@ function createBaseHTTPConfig() {
32145
32796
  exitGracePeriod: 0,
32146
32797
  h2Enabled: false,
32147
32798
  targetConcurrency: 0,
32148
- unauthenticated: false
32799
+ unauthenticated: false,
32800
+ liftAndShiftConfig: void 0
32149
32801
  };
32150
32802
  }
32151
32803
  var HTTPConfig = {
@@ -32171,6 +32823,9 @@ var HTTPConfig = {
32171
32823
  if (message.unauthenticated !== false) {
32172
32824
  writer.uint32(56).bool(message.unauthenticated);
32173
32825
  }
32826
+ if (message.liftAndShiftConfig !== void 0) {
32827
+ LiftAndShiftConfig.encode(message.liftAndShiftConfig, writer.uint32(66).fork()).join();
32828
+ }
32174
32829
  return writer;
32175
32830
  },
32176
32831
  decode(input, length) {
@@ -32229,6 +32884,13 @@ var HTTPConfig = {
32229
32884
  message.unauthenticated = reader.bool();
32230
32885
  continue;
32231
32886
  }
32887
+ case 8: {
32888
+ if (tag !== 66) {
32889
+ break;
32890
+ }
32891
+ message.liftAndShiftConfig = LiftAndShiftConfig.decode(reader, reader.uint32());
32892
+ continue;
32893
+ }
32232
32894
  }
32233
32895
  if ((tag & 7) === 4 || tag === 0) {
32234
32896
  break;
@@ -32245,7 +32907,8 @@ var HTTPConfig = {
32245
32907
  exitGracePeriod: isSet5(object.exitGracePeriod) ? globalThis.Number(object.exitGracePeriod) : 0,
32246
32908
  h2Enabled: isSet5(object.h2Enabled) ? globalThis.Boolean(object.h2Enabled) : false,
32247
32909
  targetConcurrency: isSet5(object.targetConcurrency) ? globalThis.Number(object.targetConcurrency) : 0,
32248
- unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false
32910
+ unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false,
32911
+ liftAndShiftConfig: isSet5(object.liftAndShiftConfig) ? LiftAndShiftConfig.fromJSON(object.liftAndShiftConfig) : void 0
32249
32912
  };
32250
32913
  },
32251
32914
  toJSON(message) {
@@ -32271,6 +32934,9 @@ var HTTPConfig = {
32271
32934
  if (message.unauthenticated !== false) {
32272
32935
  obj.unauthenticated = message.unauthenticated;
32273
32936
  }
32937
+ if (message.liftAndShiftConfig !== void 0) {
32938
+ obj.liftAndShiftConfig = LiftAndShiftConfig.toJSON(message.liftAndShiftConfig);
32939
+ }
32274
32940
  return obj;
32275
32941
  },
32276
32942
  create(base) {
@@ -32285,6 +32951,7 @@ var HTTPConfig = {
32285
32951
  message.h2Enabled = object.h2Enabled ?? false;
32286
32952
  message.targetConcurrency = object.targetConcurrency ?? 0;
32287
32953
  message.unauthenticated = object.unauthenticated ?? false;
32954
+ message.liftAndShiftConfig = object.liftAndShiftConfig !== void 0 && object.liftAndShiftConfig !== null ? LiftAndShiftConfig.fromPartial(object.liftAndShiftConfig) : void 0;
32288
32955
  return message;
32289
32956
  }
32290
32957
  };
@@ -35060,6 +35727,43 @@ var InputInfo = {
35060
35727
  return message;
35061
35728
  }
35062
35729
  };
35730
+ function createBaseLiftAndShiftConfig() {
35731
+ return {};
35732
+ }
35733
+ var LiftAndShiftConfig = {
35734
+ encode(_, writer = new BinaryWriter()) {
35735
+ return writer;
35736
+ },
35737
+ decode(input, length) {
35738
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35739
+ let end = length === void 0 ? reader.len : reader.pos + length;
35740
+ const message = createBaseLiftAndShiftConfig();
35741
+ while (reader.pos < end) {
35742
+ const tag = reader.uint32();
35743
+ switch (tag >>> 3) {
35744
+ }
35745
+ if ((tag & 7) === 4 || tag === 0) {
35746
+ break;
35747
+ }
35748
+ reader.skip(tag & 7);
35749
+ }
35750
+ return message;
35751
+ },
35752
+ fromJSON(_) {
35753
+ return {};
35754
+ },
35755
+ toJSON(_) {
35756
+ const obj = {};
35757
+ return obj;
35758
+ },
35759
+ create(base) {
35760
+ return LiftAndShiftConfig.fromPartial(base ?? {});
35761
+ },
35762
+ fromPartial(_) {
35763
+ const message = createBaseLiftAndShiftConfig();
35764
+ return message;
35765
+ }
35766
+ };
35063
35767
  function createBaseListPagination() {
35064
35768
  return { maxObjects: 0, createdBefore: 0 };
35065
35769
  }
@@ -47909,7 +48613,7 @@ var SecretListResponse = {
47909
48613
  }
47910
48614
  };
47911
48615
  function createBaseSecretMetadata() {
47912
- return { name: "", creationInfo: void 0 };
48616
+ return { name: "", creationInfo: void 0, keys: [] };
47913
48617
  }
47914
48618
  var SecretMetadata = {
47915
48619
  encode(message, writer = new BinaryWriter()) {
@@ -47919,6 +48623,9 @@ var SecretMetadata = {
47919
48623
  if (message.creationInfo !== void 0) {
47920
48624
  CreationInfo.encode(message.creationInfo, writer.uint32(18).fork()).join();
47921
48625
  }
48626
+ for (const v of message.keys) {
48627
+ writer.uint32(26).string(v);
48628
+ }
47922
48629
  return writer;
47923
48630
  },
47924
48631
  decode(input, length) {
@@ -47942,6 +48649,13 @@ var SecretMetadata = {
47942
48649
  message.creationInfo = CreationInfo.decode(reader, reader.uint32());
47943
48650
  continue;
47944
48651
  }
48652
+ case 3: {
48653
+ if (tag !== 26) {
48654
+ break;
48655
+ }
48656
+ message.keys.push(reader.string());
48657
+ continue;
48658
+ }
47945
48659
  }
47946
48660
  if ((tag & 7) === 4 || tag === 0) {
47947
48661
  break;
@@ -47953,7 +48667,8 @@ var SecretMetadata = {
47953
48667
  fromJSON(object) {
47954
48668
  return {
47955
48669
  name: isSet5(object.name) ? globalThis.String(object.name) : "",
47956
- creationInfo: isSet5(object.creationInfo) ? CreationInfo.fromJSON(object.creationInfo) : void 0
48670
+ creationInfo: isSet5(object.creationInfo) ? CreationInfo.fromJSON(object.creationInfo) : void 0,
48671
+ keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e) => globalThis.String(e)) : []
47957
48672
  };
47958
48673
  },
47959
48674
  toJSON(message) {
@@ -47964,6 +48679,9 @@ var SecretMetadata = {
47964
48679
  if (message.creationInfo !== void 0) {
47965
48680
  obj.creationInfo = CreationInfo.toJSON(message.creationInfo);
47966
48681
  }
48682
+ if (message.keys?.length) {
48683
+ obj.keys = message.keys;
48684
+ }
47967
48685
  return obj;
47968
48686
  },
47969
48687
  create(base) {
@@ -47973,6 +48691,7 @@ var SecretMetadata = {
47973
48691
  const message = createBaseSecretMetadata();
47974
48692
  message.name = object.name ?? "";
47975
48693
  message.creationInfo = object.creationInfo !== void 0 && object.creationInfo !== null ? CreationInfo.fromPartial(object.creationInfo) : void 0;
48694
+ message.keys = object.keys?.map((e) => e) || [];
47976
48695
  return message;
47977
48696
  }
47978
48697
  };
@@ -48688,32 +49407,236 @@ var ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry =
48688
49407
  return obj;
48689
49408
  },
48690
49409
  create(base) {
48691
- return ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.fromPartial(base ?? {});
49410
+ return ServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry.fromPartial(base ?? {});
49411
+ },
49412
+ fromPartial(object) {
49413
+ const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry();
49414
+ message.key = object.key ?? "";
49415
+ message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
49416
+ return message;
49417
+ }
49418
+ };
49419
+ function createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry() {
49420
+ return { key: "", value: 0 };
49421
+ }
49422
+ var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
49423
+ encode(message, writer = new BinaryWriter()) {
49424
+ if (message.key !== "") {
49425
+ writer.uint32(10).string(message.key);
49426
+ }
49427
+ if (message.value !== 0) {
49428
+ writer.uint32(17).double(message.value);
49429
+ }
49430
+ return writer;
49431
+ },
49432
+ decode(input, length) {
49433
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49434
+ let end = length === void 0 ? reader.len : reader.pos + length;
49435
+ const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
49436
+ while (reader.pos < end) {
49437
+ const tag = reader.uint32();
49438
+ switch (tag >>> 3) {
49439
+ case 1: {
49440
+ if (tag !== 10) {
49441
+ break;
49442
+ }
49443
+ message.key = reader.string();
49444
+ continue;
49445
+ }
49446
+ case 2: {
49447
+ if (tag !== 17) {
49448
+ break;
49449
+ }
49450
+ message.value = reader.double();
49451
+ continue;
49452
+ }
49453
+ }
49454
+ if ((tag & 7) === 4 || tag === 0) {
49455
+ break;
49456
+ }
49457
+ reader.skip(tag & 7);
49458
+ }
49459
+ return message;
49460
+ },
49461
+ fromJSON(object) {
49462
+ return {
49463
+ key: isSet5(object.key) ? globalThis.String(object.key) : "",
49464
+ value: isSet5(object.value) ? globalThis.Number(object.value) : 0
49465
+ };
49466
+ },
49467
+ toJSON(message) {
49468
+ const obj = {};
49469
+ if (message.key !== "") {
49470
+ obj.key = message.key;
49471
+ }
49472
+ if (message.value !== 0) {
49473
+ obj.value = message.value;
49474
+ }
49475
+ return obj;
49476
+ },
49477
+ create(base) {
49478
+ return ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry.fromPartial(base ?? {});
49479
+ },
49480
+ fromPartial(object) {
49481
+ const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
49482
+ message.key = object.key ?? "";
49483
+ message.value = object.value ?? 0;
49484
+ return message;
49485
+ }
49486
+ };
49487
+ function createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount() {
49488
+ return { statusCode: 0, count: 0 };
49489
+ }
49490
+ var ServerGetTimeRangeStatsResponse_ServerStatusCodeCount = {
49491
+ encode(message, writer = new BinaryWriter()) {
49492
+ if (message.statusCode !== 0) {
49493
+ writer.uint32(8).uint32(message.statusCode);
49494
+ }
49495
+ if (message.count !== 0) {
49496
+ writer.uint32(16).uint64(message.count);
49497
+ }
49498
+ return writer;
49499
+ },
49500
+ decode(input, length) {
49501
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49502
+ let end = length === void 0 ? reader.len : reader.pos + length;
49503
+ const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
49504
+ while (reader.pos < end) {
49505
+ const tag = reader.uint32();
49506
+ switch (tag >>> 3) {
49507
+ case 1: {
49508
+ if (tag !== 8) {
49509
+ break;
49510
+ }
49511
+ message.statusCode = reader.uint32();
49512
+ continue;
49513
+ }
49514
+ case 2: {
49515
+ if (tag !== 16) {
49516
+ break;
49517
+ }
49518
+ message.count = longToNumber2(reader.uint64());
49519
+ continue;
49520
+ }
49521
+ }
49522
+ if ((tag & 7) === 4 || tag === 0) {
49523
+ break;
49524
+ }
49525
+ reader.skip(tag & 7);
49526
+ }
49527
+ return message;
49528
+ },
49529
+ fromJSON(object) {
49530
+ return {
49531
+ statusCode: isSet5(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
49532
+ count: isSet5(object.count) ? globalThis.Number(object.count) : 0
49533
+ };
49534
+ },
49535
+ toJSON(message) {
49536
+ const obj = {};
49537
+ if (message.statusCode !== 0) {
49538
+ obj.statusCode = Math.round(message.statusCode);
49539
+ }
49540
+ if (message.count !== 0) {
49541
+ obj.count = Math.round(message.count);
49542
+ }
49543
+ return obj;
49544
+ },
49545
+ create(base) {
49546
+ return ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.fromPartial(base ?? {});
49547
+ },
49548
+ fromPartial(object) {
49549
+ const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
49550
+ message.statusCode = object.statusCode ?? 0;
49551
+ message.count = object.count ?? 0;
49552
+ return message;
49553
+ }
49554
+ };
49555
+ function createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry() {
49556
+ return { key: "", value: void 0 };
49557
+ }
49558
+ var ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry = {
49559
+ encode(message, writer = new BinaryWriter()) {
49560
+ if (message.key !== "") {
49561
+ writer.uint32(10).string(message.key);
49562
+ }
49563
+ if (message.value !== void 0) {
49564
+ StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
49565
+ }
49566
+ return writer;
49567
+ },
49568
+ decode(input, length) {
49569
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49570
+ let end = length === void 0 ? reader.len : reader.pos + length;
49571
+ const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
49572
+ while (reader.pos < end) {
49573
+ const tag = reader.uint32();
49574
+ switch (tag >>> 3) {
49575
+ case 1: {
49576
+ if (tag !== 10) {
49577
+ break;
49578
+ }
49579
+ message.key = reader.string();
49580
+ continue;
49581
+ }
49582
+ case 2: {
49583
+ if (tag !== 18) {
49584
+ break;
49585
+ }
49586
+ message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
49587
+ continue;
49588
+ }
49589
+ }
49590
+ if ((tag & 7) === 4 || tag === 0) {
49591
+ break;
49592
+ }
49593
+ reader.skip(tag & 7);
49594
+ }
49595
+ return message;
49596
+ },
49597
+ fromJSON(object) {
49598
+ return {
49599
+ key: isSet5(object.key) ? globalThis.String(object.key) : "",
49600
+ value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
49601
+ };
49602
+ },
49603
+ toJSON(message) {
49604
+ const obj = {};
49605
+ if (message.key !== "") {
49606
+ obj.key = message.key;
49607
+ }
49608
+ if (message.value !== void 0) {
49609
+ obj.value = StatsPercentileDistribution.toJSON(message.value);
49610
+ }
49611
+ return obj;
49612
+ },
49613
+ create(base) {
49614
+ return ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry.fromPartial(base ?? {});
48692
49615
  },
48693
49616
  fromPartial(object) {
48694
- const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_PercentileStatsEntry();
49617
+ const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
48695
49618
  message.key = object.key ?? "";
48696
49619
  message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
48697
49620
  return message;
48698
49621
  }
48699
49622
  };
48700
- function createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry() {
48701
- return { key: "", value: 0 };
49623
+ function createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry() {
49624
+ return { key: "", value: void 0 };
48702
49625
  }
48703
- var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
49626
+ var ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry = {
48704
49627
  encode(message, writer = new BinaryWriter()) {
48705
49628
  if (message.key !== "") {
48706
49629
  writer.uint32(10).string(message.key);
48707
49630
  }
48708
- if (message.value !== 0) {
48709
- writer.uint32(17).double(message.value);
49631
+ if (message.value !== void 0) {
49632
+ StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
48710
49633
  }
48711
49634
  return writer;
48712
49635
  },
48713
49636
  decode(input, length) {
48714
49637
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
48715
49638
  let end = length === void 0 ? reader.len : reader.pos + length;
48716
- const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
49639
+ const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
48717
49640
  while (reader.pos < end) {
48718
49641
  const tag = reader.uint32();
48719
49642
  switch (tag >>> 3) {
@@ -48725,10 +49648,10 @@ var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
48725
49648
  continue;
48726
49649
  }
48727
49650
  case 2: {
48728
- if (tag !== 17) {
49651
+ if (tag !== 18) {
48729
49652
  break;
48730
49653
  }
48731
- message.value = reader.double();
49654
+ message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
48732
49655
  continue;
48733
49656
  }
48734
49657
  }
@@ -48742,7 +49665,7 @@ var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
48742
49665
  fromJSON(object) {
48743
49666
  return {
48744
49667
  key: isSet5(object.key) ? globalThis.String(object.key) : "",
48745
- value: isSet5(object.value) ? globalThis.Number(object.value) : 0
49668
+ value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
48746
49669
  };
48747
49670
  },
48748
49671
  toJSON(message) {
@@ -48750,53 +49673,53 @@ var ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry = {
48750
49673
  if (message.key !== "") {
48751
49674
  obj.key = message.key;
48752
49675
  }
48753
- if (message.value !== 0) {
48754
- obj.value = message.value;
49676
+ if (message.value !== void 0) {
49677
+ obj.value = StatsPercentileDistribution.toJSON(message.value);
48755
49678
  }
48756
49679
  return obj;
48757
49680
  },
48758
49681
  create(base) {
48759
- return ServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry.fromPartial(base ?? {});
49682
+ return ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry.fromPartial(base ?? {});
48760
49683
  },
48761
49684
  fromPartial(object) {
48762
- const message = createBaseServerGetTimeRangeStatsResponse_ServerInferenceStats_ScalarStatsEntry();
49685
+ const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
48763
49686
  message.key = object.key ?? "";
48764
- message.value = object.value ?? 0;
49687
+ message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
48765
49688
  return message;
48766
49689
  }
48767
49690
  };
48768
- function createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount() {
48769
- return { statusCode: 0, count: 0 };
49691
+ function createBaseServerRequestFetchRequest() {
49692
+ return { functionId: "", tail: void 0 };
48770
49693
  }
48771
- var ServerGetTimeRangeStatsResponse_ServerStatusCodeCount = {
49694
+ var ServerRequestFetchRequest = {
48772
49695
  encode(message, writer = new BinaryWriter()) {
48773
- if (message.statusCode !== 0) {
48774
- writer.uint32(8).uint32(message.statusCode);
49696
+ if (message.functionId !== "") {
49697
+ writer.uint32(10).string(message.functionId);
48775
49698
  }
48776
- if (message.count !== 0) {
48777
- writer.uint32(16).uint64(message.count);
49699
+ if (message.tail !== void 0) {
49700
+ ServerRequestFetchRequest_Tail.encode(message.tail, writer.uint32(26).fork()).join();
48778
49701
  }
48779
49702
  return writer;
48780
49703
  },
48781
49704
  decode(input, length) {
48782
49705
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
48783
49706
  let end = length === void 0 ? reader.len : reader.pos + length;
48784
- const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
49707
+ const message = createBaseServerRequestFetchRequest();
48785
49708
  while (reader.pos < end) {
48786
49709
  const tag = reader.uint32();
48787
49710
  switch (tag >>> 3) {
48788
49711
  case 1: {
48789
- if (tag !== 8) {
49712
+ if (tag !== 10) {
48790
49713
  break;
48791
49714
  }
48792
- message.statusCode = reader.uint32();
49715
+ message.functionId = reader.string();
48793
49716
  continue;
48794
49717
  }
48795
- case 2: {
48796
- if (tag !== 16) {
49718
+ case 3: {
49719
+ if (tag !== 26) {
48797
49720
  break;
48798
49721
  }
48799
- message.count = longToNumber2(reader.uint64());
49722
+ message.tail = ServerRequestFetchRequest_Tail.decode(reader, reader.uint32());
48800
49723
  continue;
48801
49724
  }
48802
49725
  }
@@ -48809,62 +49732,103 @@ var ServerGetTimeRangeStatsResponse_ServerStatusCodeCount = {
48809
49732
  },
48810
49733
  fromJSON(object) {
48811
49734
  return {
48812
- statusCode: isSet5(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
48813
- count: isSet5(object.count) ? globalThis.Number(object.count) : 0
49735
+ functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
49736
+ tail: isSet5(object.tail) ? ServerRequestFetchRequest_Tail.fromJSON(object.tail) : void 0
48814
49737
  };
48815
49738
  },
48816
49739
  toJSON(message) {
48817
49740
  const obj = {};
48818
- if (message.statusCode !== 0) {
48819
- obj.statusCode = Math.round(message.statusCode);
49741
+ if (message.functionId !== "") {
49742
+ obj.functionId = message.functionId;
48820
49743
  }
48821
- if (message.count !== 0) {
48822
- obj.count = Math.round(message.count);
49744
+ if (message.tail !== void 0) {
49745
+ obj.tail = ServerRequestFetchRequest_Tail.toJSON(message.tail);
48823
49746
  }
48824
49747
  return obj;
48825
49748
  },
48826
49749
  create(base) {
48827
- return ServerGetTimeRangeStatsResponse_ServerStatusCodeCount.fromPartial(base ?? {});
49750
+ return ServerRequestFetchRequest.fromPartial(base ?? {});
48828
49751
  },
48829
49752
  fromPartial(object) {
48830
- const message = createBaseServerGetTimeRangeStatsResponse_ServerStatusCodeCount();
48831
- message.statusCode = object.statusCode ?? 0;
48832
- message.count = object.count ?? 0;
49753
+ const message = createBaseServerRequestFetchRequest();
49754
+ message.functionId = object.functionId ?? "";
49755
+ message.tail = object.tail !== void 0 && object.tail !== null ? ServerRequestFetchRequest_Tail.fromPartial(object.tail) : void 0;
48833
49756
  return message;
48834
49757
  }
48835
49758
  };
48836
- function createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry() {
48837
- return { key: "", value: void 0 };
49759
+ function createBaseServerRequestFetchRequest_Tail() {
49760
+ return { count: 0 };
48838
49761
  }
48839
- var ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry = {
49762
+ var ServerRequestFetchRequest_Tail = {
48840
49763
  encode(message, writer = new BinaryWriter()) {
48841
- if (message.key !== "") {
48842
- writer.uint32(10).string(message.key);
48843
- }
48844
- if (message.value !== void 0) {
48845
- StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
49764
+ if (message.count !== 0) {
49765
+ writer.uint32(8).uint32(message.count);
48846
49766
  }
48847
49767
  return writer;
48848
49768
  },
48849
49769
  decode(input, length) {
48850
49770
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
48851
49771
  let end = length === void 0 ? reader.len : reader.pos + length;
48852
- const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
49772
+ const message = createBaseServerRequestFetchRequest_Tail();
48853
49773
  while (reader.pos < end) {
48854
49774
  const tag = reader.uint32();
48855
49775
  switch (tag >>> 3) {
48856
49776
  case 1: {
48857
- if (tag !== 10) {
49777
+ if (tag !== 8) {
48858
49778
  break;
48859
49779
  }
48860
- message.key = reader.string();
49780
+ message.count = reader.uint32();
48861
49781
  continue;
48862
49782
  }
48863
- case 2: {
48864
- if (tag !== 18) {
49783
+ }
49784
+ if ((tag & 7) === 4 || tag === 0) {
49785
+ break;
49786
+ }
49787
+ reader.skip(tag & 7);
49788
+ }
49789
+ return message;
49790
+ },
49791
+ fromJSON(object) {
49792
+ return { count: isSet5(object.count) ? globalThis.Number(object.count) : 0 };
49793
+ },
49794
+ toJSON(message) {
49795
+ const obj = {};
49796
+ if (message.count !== 0) {
49797
+ obj.count = Math.round(message.count);
49798
+ }
49799
+ return obj;
49800
+ },
49801
+ create(base) {
49802
+ return ServerRequestFetchRequest_Tail.fromPartial(base ?? {});
49803
+ },
49804
+ fromPartial(object) {
49805
+ const message = createBaseServerRequestFetchRequest_Tail();
49806
+ message.count = object.count ?? 0;
49807
+ return message;
49808
+ }
49809
+ };
49810
+ function createBaseServerRequestFetchResponse() {
49811
+ return { requests: [] };
49812
+ }
49813
+ var ServerRequestFetchResponse = {
49814
+ encode(message, writer = new BinaryWriter()) {
49815
+ for (const v of message.requests) {
49816
+ ServerRequestInfo.encode(v, writer.uint32(10).fork()).join();
49817
+ }
49818
+ return writer;
49819
+ },
49820
+ decode(input, length) {
49821
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49822
+ let end = length === void 0 ? reader.len : reader.pos + length;
49823
+ const message = createBaseServerRequestFetchResponse();
49824
+ while (reader.pos < end) {
49825
+ const tag = reader.uint32();
49826
+ switch (tag >>> 3) {
49827
+ case 1: {
49828
+ if (tag !== 10) {
48865
49829
  break;
48866
49830
  }
48867
- message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
49831
+ message.requests.push(ServerRequestInfo.decode(reader, reader.uint32()));
48868
49832
  continue;
48869
49833
  }
48870
49834
  }
@@ -48877,47 +49841,51 @@ var ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry = {
48877
49841
  },
48878
49842
  fromJSON(object) {
48879
49843
  return {
48880
- key: isSet5(object.key) ? globalThis.String(object.key) : "",
48881
- value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
49844
+ requests: globalThis.Array.isArray(object?.requests) ? object.requests.map((e) => ServerRequestInfo.fromJSON(e)) : []
48882
49845
  };
48883
49846
  },
48884
49847
  toJSON(message) {
48885
49848
  const obj = {};
48886
- if (message.key !== "") {
48887
- obj.key = message.key;
48888
- }
48889
- if (message.value !== void 0) {
48890
- obj.value = StatsPercentileDistribution.toJSON(message.value);
49849
+ if (message.requests?.length) {
49850
+ obj.requests = message.requests.map((e) => ServerRequestInfo.toJSON(e));
48891
49851
  }
48892
49852
  return obj;
48893
49853
  },
48894
49854
  create(base) {
48895
- return ServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry.fromPartial(base ?? {});
49855
+ return ServerRequestFetchResponse.fromPartial(base ?? {});
48896
49856
  },
48897
49857
  fromPartial(object) {
48898
- const message = createBaseServerGetTimeRangeStatsResponse_RequestPercentileStatsEntry();
48899
- message.key = object.key ?? "";
48900
- message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
49858
+ const message = createBaseServerRequestFetchResponse();
49859
+ message.requests = object.requests?.map((e) => ServerRequestInfo.fromPartial(e)) || [];
48901
49860
  return message;
48902
49861
  }
48903
49862
  };
48904
- function createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry() {
48905
- return { key: "", value: void 0 };
49863
+ function createBaseServerRequestInfo() {
49864
+ return { route: "", timestamp: void 0, containerId: "", durationSeconds: 0, status: 0 };
48906
49865
  }
48907
- var ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry = {
49866
+ var ServerRequestInfo = {
48908
49867
  encode(message, writer = new BinaryWriter()) {
48909
- if (message.key !== "") {
48910
- writer.uint32(10).string(message.key);
49868
+ if (message.route !== "") {
49869
+ writer.uint32(10).string(message.route);
48911
49870
  }
48912
- if (message.value !== void 0) {
48913
- StatsPercentileDistribution.encode(message.value, writer.uint32(18).fork()).join();
49871
+ if (message.timestamp !== void 0) {
49872
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).join();
49873
+ }
49874
+ if (message.containerId !== "") {
49875
+ writer.uint32(26).string(message.containerId);
49876
+ }
49877
+ if (message.durationSeconds !== 0) {
49878
+ writer.uint32(33).double(message.durationSeconds);
49879
+ }
49880
+ if (message.status !== 0) {
49881
+ writer.uint32(40).int32(message.status);
48914
49882
  }
48915
49883
  return writer;
48916
49884
  },
48917
49885
  decode(input, length) {
48918
49886
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
48919
49887
  let end = length === void 0 ? reader.len : reader.pos + length;
48920
- const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
49888
+ const message = createBaseServerRequestInfo();
48921
49889
  while (reader.pos < end) {
48922
49890
  const tag = reader.uint32();
48923
49891
  switch (tag >>> 3) {
@@ -48925,14 +49893,35 @@ var ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry = {
48925
49893
  if (tag !== 10) {
48926
49894
  break;
48927
49895
  }
48928
- message.key = reader.string();
49896
+ message.route = reader.string();
48929
49897
  continue;
48930
49898
  }
48931
49899
  case 2: {
48932
49900
  if (tag !== 18) {
48933
49901
  break;
48934
49902
  }
48935
- message.value = StatsPercentileDistribution.decode(reader, reader.uint32());
49903
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
49904
+ continue;
49905
+ }
49906
+ case 3: {
49907
+ if (tag !== 26) {
49908
+ break;
49909
+ }
49910
+ message.containerId = reader.string();
49911
+ continue;
49912
+ }
49913
+ case 4: {
49914
+ if (tag !== 33) {
49915
+ break;
49916
+ }
49917
+ message.durationSeconds = reader.double();
49918
+ continue;
49919
+ }
49920
+ case 5: {
49921
+ if (tag !== 40) {
49922
+ break;
49923
+ }
49924
+ message.status = reader.int32();
48936
49925
  continue;
48937
49926
  }
48938
49927
  }
@@ -48945,27 +49934,42 @@ var ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry = {
48945
49934
  },
48946
49935
  fromJSON(object) {
48947
49936
  return {
48948
- key: isSet5(object.key) ? globalThis.String(object.key) : "",
48949
- value: isSet5(object.value) ? StatsPercentileDistribution.fromJSON(object.value) : void 0
49937
+ route: isSet5(object.route) ? globalThis.String(object.route) : "",
49938
+ timestamp: isSet5(object.timestamp) ? fromJsonTimestamp(object.timestamp) : void 0,
49939
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : "",
49940
+ durationSeconds: isSet5(object.durationSeconds) ? globalThis.Number(object.durationSeconds) : 0,
49941
+ status: isSet5(object.status) ? globalThis.Number(object.status) : 0
48950
49942
  };
48951
49943
  },
48952
49944
  toJSON(message) {
48953
49945
  const obj = {};
48954
- if (message.key !== "") {
48955
- obj.key = message.key;
49946
+ if (message.route !== "") {
49947
+ obj.route = message.route;
48956
49948
  }
48957
- if (message.value !== void 0) {
48958
- obj.value = StatsPercentileDistribution.toJSON(message.value);
49949
+ if (message.timestamp !== void 0) {
49950
+ obj.timestamp = message.timestamp.toISOString();
49951
+ }
49952
+ if (message.containerId !== "") {
49953
+ obj.containerId = message.containerId;
49954
+ }
49955
+ if (message.durationSeconds !== 0) {
49956
+ obj.durationSeconds = message.durationSeconds;
49957
+ }
49958
+ if (message.status !== 0) {
49959
+ obj.status = Math.round(message.status);
48959
49960
  }
48960
49961
  return obj;
48961
49962
  },
48962
49963
  create(base) {
48963
- return ServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry.fromPartial(base ?? {});
49964
+ return ServerRequestInfo.fromPartial(base ?? {});
48964
49965
  },
48965
49966
  fromPartial(object) {
48966
- const message = createBaseServerGetTimeRangeStatsResponse_ContainerPercentileStatsEntry();
48967
- message.key = object.key ?? "";
48968
- message.value = object.value !== void 0 && object.value !== null ? StatsPercentileDistribution.fromPartial(object.value) : void 0;
49967
+ const message = createBaseServerRequestInfo();
49968
+ message.route = object.route ?? "";
49969
+ message.timestamp = object.timestamp ?? void 0;
49970
+ message.containerId = object.containerId ?? "";
49971
+ message.durationSeconds = object.durationSeconds ?? 0;
49972
+ message.status = object.status ?? 0;
48969
49973
  return message;
48970
49974
  }
48971
49975
  };
@@ -51685,7 +52689,8 @@ function createBaseTaskLogsBatch() {
51685
52689
  eof: false,
51686
52690
  ptyExecId: "",
51687
52691
  rootFunctionId: "",
51688
- ttlDays: 0
52692
+ ttlDays: 0,
52693
+ sandboxId: ""
51689
52694
  };
51690
52695
  }
51691
52696
  var TaskLogsBatch = {
@@ -51723,6 +52728,9 @@ var TaskLogsBatch = {
51723
52728
  if (message.ttlDays !== 0) {
51724
52729
  writer.uint32(136).uint32(message.ttlDays);
51725
52730
  }
52731
+ if (message.sandboxId !== "") {
52732
+ writer.uint32(146).string(message.sandboxId);
52733
+ }
51726
52734
  return writer;
51727
52735
  },
51728
52736
  decode(input, length) {
@@ -51809,6 +52817,13 @@ var TaskLogsBatch = {
51809
52817
  message.ttlDays = reader.uint32();
51810
52818
  continue;
51811
52819
  }
52820
+ case 18: {
52821
+ if (tag !== 146) {
52822
+ break;
52823
+ }
52824
+ message.sandboxId = reader.string();
52825
+ continue;
52826
+ }
51812
52827
  }
51813
52828
  if ((tag & 7) === 4 || tag === 0) {
51814
52829
  break;
@@ -51829,7 +52844,8 @@ var TaskLogsBatch = {
51829
52844
  eof: isSet5(object.eof) ? globalThis.Boolean(object.eof) : false,
51830
52845
  ptyExecId: isSet5(object.ptyExecId) ? globalThis.String(object.ptyExecId) : "",
51831
52846
  rootFunctionId: isSet5(object.rootFunctionId) ? globalThis.String(object.rootFunctionId) : "",
51832
- ttlDays: isSet5(object.ttlDays) ? globalThis.Number(object.ttlDays) : 0
52847
+ ttlDays: isSet5(object.ttlDays) ? globalThis.Number(object.ttlDays) : 0,
52848
+ sandboxId: isSet5(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
51833
52849
  };
51834
52850
  },
51835
52851
  toJSON(message) {
@@ -51867,6 +52883,9 @@ var TaskLogsBatch = {
51867
52883
  if (message.ttlDays !== 0) {
51868
52884
  obj.ttlDays = Math.round(message.ttlDays);
51869
52885
  }
52886
+ if (message.sandboxId !== "") {
52887
+ obj.sandboxId = message.sandboxId;
52888
+ }
51870
52889
  return obj;
51871
52890
  },
51872
52891
  create(base) {
@@ -51885,6 +52904,7 @@ var TaskLogsBatch = {
51885
52904
  message.ptyExecId = object.ptyExecId ?? "";
51886
52905
  message.rootFunctionId = object.rootFunctionId ?? "";
51887
52906
  message.ttlDays = object.ttlDays ?? 0;
52907
+ message.sandboxId = object.sandboxId ?? "";
51888
52908
  return message;
51889
52909
  }
51890
52910
  };
@@ -52556,7 +53576,7 @@ var TokenDeleteRequest = {
52556
53576
  }
52557
53577
  };
52558
53578
  function createBaseTokenFlowCreateRequest() {
52559
- return { utmSource: "", localhostPort: 0, nextUrl: "" };
53579
+ return { utmSource: "", localhostPort: 0, nextUrl: "", expiresInSeconds: 0 };
52560
53580
  }
52561
53581
  var TokenFlowCreateRequest = {
52562
53582
  encode(message, writer = new BinaryWriter()) {
@@ -52569,6 +53589,9 @@ var TokenFlowCreateRequest = {
52569
53589
  if (message.nextUrl !== "") {
52570
53590
  writer.uint32(42).string(message.nextUrl);
52571
53591
  }
53592
+ if (message.expiresInSeconds !== 0) {
53593
+ writer.uint32(48).uint32(message.expiresInSeconds);
53594
+ }
52572
53595
  return writer;
52573
53596
  },
52574
53597
  decode(input, length) {
@@ -52599,6 +53622,13 @@ var TokenFlowCreateRequest = {
52599
53622
  message.nextUrl = reader.string();
52600
53623
  continue;
52601
53624
  }
53625
+ case 6: {
53626
+ if (tag !== 48) {
53627
+ break;
53628
+ }
53629
+ message.expiresInSeconds = reader.uint32();
53630
+ continue;
53631
+ }
52602
53632
  }
52603
53633
  if ((tag & 7) === 4 || tag === 0) {
52604
53634
  break;
@@ -52611,7 +53641,8 @@ var TokenFlowCreateRequest = {
52611
53641
  return {
52612
53642
  utmSource: isSet5(object.utmSource) ? globalThis.String(object.utmSource) : "",
52613
53643
  localhostPort: isSet5(object.localhostPort) ? globalThis.Number(object.localhostPort) : 0,
52614
- nextUrl: isSet5(object.nextUrl) ? globalThis.String(object.nextUrl) : ""
53644
+ nextUrl: isSet5(object.nextUrl) ? globalThis.String(object.nextUrl) : "",
53645
+ expiresInSeconds: isSet5(object.expiresInSeconds) ? globalThis.Number(object.expiresInSeconds) : 0
52615
53646
  };
52616
53647
  },
52617
53648
  toJSON(message) {
@@ -52625,6 +53656,9 @@ var TokenFlowCreateRequest = {
52625
53656
  if (message.nextUrl !== "") {
52626
53657
  obj.nextUrl = message.nextUrl;
52627
53658
  }
53659
+ if (message.expiresInSeconds !== 0) {
53660
+ obj.expiresInSeconds = Math.round(message.expiresInSeconds);
53661
+ }
52628
53662
  return obj;
52629
53663
  },
52630
53664
  create(base) {
@@ -52635,6 +53669,7 @@ var TokenFlowCreateRequest = {
52635
53669
  message.utmSource = object.utmSource ?? "";
52636
53670
  message.localhostPort = object.localhostPort ?? 0;
52637
53671
  message.nextUrl = object.nextUrl ?? "";
53672
+ message.expiresInSeconds = object.expiresInSeconds ?? 0;
52638
53673
  return message;
52639
53674
  }
52640
53675
  };
@@ -60236,6 +61271,14 @@ var ModalClientDefinition = {
60236
61271
  responseStream: false,
60237
61272
  options: {}
60238
61273
  },
61274
+ functionCallFetch: {
61275
+ name: "FunctionCallFetch",
61276
+ requestType: FunctionCallFetchRequest,
61277
+ requestStream: false,
61278
+ responseType: FunctionCallFetchResponse,
61279
+ responseStream: false,
61280
+ options: {}
61281
+ },
60239
61282
  functionCallFromId: {
60240
61283
  name: "FunctionCallFromId",
60241
61284
  requestType: FunctionCallFromIdRequest,
@@ -60391,6 +61434,14 @@ var ModalClientDefinition = {
60391
61434
  responseStream: false,
60392
61435
  options: {}
60393
61436
  },
61437
+ functionListVariants: {
61438
+ name: "FunctionListVariants",
61439
+ requestType: FunctionListVariantsRequest,
61440
+ requestStream: false,
61441
+ responseType: FunctionListVariantsResponse,
61442
+ responseStream: false,
61443
+ options: {}
61444
+ },
60394
61445
  functionMap: {
60395
61446
  name: "FunctionMap",
60396
61447
  requestType: FunctionMapRequest,
@@ -61058,6 +62109,14 @@ var ModalClientDefinition = {
61058
62109
  responseStream: false,
61059
62110
  options: {}
61060
62111
  },
62112
+ serverRequestFetch: {
62113
+ name: "ServerRequestFetch",
62114
+ requestType: ServerRequestFetchRequest,
62115
+ requestStream: false,
62116
+ responseType: ServerRequestFetchResponse,
62117
+ responseStream: false,
62118
+ options: {}
62119
+ },
61061
62120
  /** Service users */
61062
62121
  serviceUserList: {
61063
62122
  name: "ServiceUserList",
@@ -68311,6 +69370,9 @@ var TaskCommandRouterClientImpl = class _TaskCommandRouterClientImpl {
68311
69370
  async setNetworkAccess(request) {
68312
69371
  await this.callUnary(() => this.stub.taskSetNetworkAccess(request));
68313
69372
  }
69373
+ async setOutboundPolicy(request) {
69374
+ await this.callUnary(() => this.stub.taskSetOutboundPolicy(request));
69375
+ }
68314
69376
  /**
68315
69377
  * Reload all Volumes mounted in the task to reflect their latest committed state.
68316
69378
  *
@@ -70369,6 +71431,19 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
70369
71431
  );
70370
71432
  }
70371
71433
  }
71434
+ if (params.outboundPolicy !== void 0) {
71435
+ params.outboundPolicy._validate();
71436
+ if (params.blockNetwork) {
71437
+ throw new InvalidError(
71438
+ "outboundPolicy cannot be used when blockNetwork is enabled"
71439
+ );
71440
+ }
71441
+ if (params.outboundDomainAllowlist && params.outboundDomainAllowlist.length > 0) {
71442
+ throw new InvalidError(
71443
+ "outboundPolicy cannot be used with outboundDomainAllowlist"
71444
+ );
71445
+ }
71446
+ }
70372
71447
  const networkAccess = buildOutboundNetworkAccess(
70373
71448
  params.blockNetwork,
70374
71449
  params.outboundCidrAllowlist,
@@ -70449,6 +71524,7 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
70449
71524
  idleTimeoutSecs: params.idleTimeoutMs != void 0 ? params.idleTimeoutMs / 1e3 : void 0,
70450
71525
  workdir: params.workdir ?? void 0,
70451
71526
  networkAccess,
71527
+ outboundPolicy: params.outboundPolicy?._toProto(),
70452
71528
  resources: Resources.create({
70453
71529
  milliCpu,
70454
71530
  milliCpuMax,
@@ -70509,7 +71585,7 @@ var SandboxService = class {
70509
71585
  );
70510
71586
  await hydrateSandboxSecrets(
70511
71587
  this.#client,
70512
- mergedSecrets,
71588
+ [...mergedSecrets, ...params.outboundPolicy?._secrets() ?? []],
70513
71589
  params.cloudBucketMounts
70514
71590
  );
70515
71591
  const mergedParams = {
@@ -70570,7 +71646,7 @@ var SandboxService = class {
70570
71646
  Object.assign(envDict, params.env ?? {});
70571
71647
  await hydrateSandboxSecrets(
70572
71648
  this.#client,
70573
- resolvableSecrets,
71649
+ [...resolvableSecrets, ...params.outboundPolicy?._secrets() ?? []],
70574
71650
  params.cloudBucketMounts
70575
71651
  );
70576
71652
  const mergedParams = {
@@ -71602,7 +72678,7 @@ var Sandbox2 = class _Sandbox {
71602
72678
  return new Image2(this.#client, resp.success.imageId, "");
71603
72679
  }
71604
72680
  if (resp.error) {
71605
- if (resp.error.errorCode === 1 /* ERROR_CODE_TIMEOUT */) {
72681
+ if (resp.error.errorCode === 1 /* ERROR_CODE_TIMEOUT */ || resp.error.errorCode === 3 /* ERROR_CODE_FILESYSTEM_INCONSISTENT */) {
71606
72682
  throw new SnapshotCreationError(
71607
72683
  resp.error.message || "No exit snapshot image will be produced"
71608
72684
  );
@@ -71716,6 +72792,29 @@ var Sandbox2 = class _Sandbox {
71716
72792
  });
71717
72793
  await commandRouterClient.setNetworkAccess(request);
71718
72794
  }
72795
+ /**
72796
+ * Replace the outbound policy of a running Sandbox.
72797
+ *
72798
+ * The new policy replaces all existing policy configuration on the
72799
+ * Sandbox; build a policy including any existing rules you want to keep.
72800
+ *
72801
+ * Only Sandboxes created with an `outboundPolicy` can be updated this
72802
+ * way; for Sandboxes created without one this fails, since header
72803
+ * replacement is only set up at creation time.
72804
+ */
72805
+ async updateOutboundPolicy(outboundPolicy) {
72806
+ this.#ensureAttached();
72807
+ outboundPolicy._validate();
72808
+ const [, [taskId, commandRouterClient]] = await Promise.all([
72809
+ hydrateSecrets(this.#client, outboundPolicy._secrets()),
72810
+ this.#getCommandRouter()
72811
+ ]);
72812
+ const request = TaskSetOutboundPolicyRequest.create({
72813
+ taskId,
72814
+ outboundPolicy: outboundPolicy._toProto()
72815
+ });
72816
+ await commandRouterClient.setOutboundPolicy(request);
72817
+ }
71719
72818
  /**
71720
72819
  * Reload all Volumes mounted in the Sandbox.
71721
72820
  *
@@ -72273,7 +73372,7 @@ var AuthTokenManager = class {
72273
73372
  };
72274
73373
 
72275
73374
  // src/version.ts
72276
- var SDK_VERSION = "0.10.2-dev.1";
73375
+ var SDK_VERSION = "0.10.2-dev.3";
72277
73376
  function getSDKVersion() {
72278
73377
  return SDK_VERSION;
72279
73378
  }
@@ -74599,6 +75698,129 @@ var ClsInstance = class {
74599
75698
  return method;
74600
75699
  }
74601
75700
  };
75701
+
75702
+ // src/outbound_policy.ts
75703
+ 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])?$/;
75704
+ var HEADER_NAME_RE = /^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/;
75705
+ var MAX_HEADER_REPLACEMENTS = 25;
75706
+ function hasInvalidHeaderValueChar(value) {
75707
+ for (const c of value) {
75708
+ const code = c.codePointAt(0);
75709
+ if (code < 32 && c !== " " || code === 127) {
75710
+ return true;
75711
+ }
75712
+ }
75713
+ return false;
75714
+ }
75715
+ function templateReferencesKey(template) {
75716
+ const isKeyStart = (c) => /[a-zA-Z_]/.test(c);
75717
+ let i = template.indexOf("$");
75718
+ while (i !== -1 && i + 1 < template.length) {
75719
+ const c = template[i + 1];
75720
+ if (c === "$") {
75721
+ i = template.indexOf("$", i + 2);
75722
+ continue;
75723
+ }
75724
+ if (isKeyStart(c)) {
75725
+ return true;
75726
+ }
75727
+ i = template.indexOf("$", i + 1);
75728
+ }
75729
+ return false;
75730
+ }
75731
+ var OutboundPolicy2 = class _OutboundPolicy {
75732
+ /** @internal */
75733
+ _replacements;
75734
+ /** @internal */
75735
+ constructor(_replacements = []) {
75736
+ this._replacements = _replacements;
75737
+ }
75738
+ /**
75739
+ * Return a new {@link OutboundPolicy} with an added header replacement.
75740
+ *
75741
+ * @param params.domain Domain the replacements are scoped to. Supports `*.` wildcard
75742
+ * prefixes (matching the apex domain and subdomains) and a bare `"*"`.
75743
+ * @param params.headers Header name -> header value. Values support `$KEY` templates
75744
+ * referencing keys in the replacement's `secret`.
75745
+ * @param params.secret Named {@link Secret} (e.g. from `client.secrets.fromName`) whose
75746
+ * keys may be referenced in the header value templates. Static replacements pass no secret.
75747
+ */
75748
+ withHeaderReplacement(params) {
75749
+ const { domain, headers, secret } = params;
75750
+ return new _OutboundPolicy([
75751
+ ...this._replacements,
75752
+ { domain, headers: { ...headers }, secret }
75753
+ ]);
75754
+ }
75755
+ /** Check all replacements, throwing `InvalidError` on the first violation found.
75756
+ * @internal
75757
+ */
75758
+ _validate() {
75759
+ let total = 0;
75760
+ for (const replacement of this._replacements) {
75761
+ const { domain, headers, secret } = replacement;
75762
+ if (domain !== "*" && !DOMAIN_RE.test(domain)) {
75763
+ throw new InvalidError(`Invalid domain: ${JSON.stringify(domain)}`);
75764
+ }
75765
+ const entries = Object.entries(headers);
75766
+ if (entries.length === 0) {
75767
+ throw new InvalidError("`headers` must contain at least one header");
75768
+ }
75769
+ for (const [name, value] of entries) {
75770
+ if (!HEADER_NAME_RE.test(name)) {
75771
+ throw new InvalidError(
75772
+ `Invalid header name: ${JSON.stringify(name)}`
75773
+ );
75774
+ }
75775
+ if (hasInvalidHeaderValueChar(value)) {
75776
+ throw new InvalidError(
75777
+ `Header value for ${JSON.stringify(name)} must not contain control characters (except tab)`
75778
+ );
75779
+ }
75780
+ if (secret === void 0 && templateReferencesKey(value)) {
75781
+ throw new InvalidError(
75782
+ `Header value for ${JSON.stringify(name)} references a secret key, but no \`secret\` was passed`
75783
+ );
75784
+ }
75785
+ }
75786
+ if (secret !== void 0 && secretEnvDictHydrator(secret) !== void 0) {
75787
+ throw new InvalidError(
75788
+ "Outbound policies only support named secrets (e.g. `client.secrets.fromName`); ephemeral secrets (e.g. `client.secrets.fromObject`) are not yet supported"
75789
+ );
75790
+ }
75791
+ total += entries.length;
75792
+ }
75793
+ if (total > MAX_HEADER_REPLACEMENTS) {
75794
+ throw new InvalidError(
75795
+ `Outbound policy cannot have more than ${MAX_HEADER_REPLACEMENTS} header replacements`
75796
+ );
75797
+ }
75798
+ }
75799
+ /** Deduplicated list of secrets referenced by the policy's replacements.
75800
+ * @internal
75801
+ */
75802
+ _secrets() {
75803
+ return [
75804
+ ...new Set(
75805
+ this._replacements.map((s) => s.secret).filter((s) => s !== void 0)
75806
+ )
75807
+ ];
75808
+ }
75809
+ /** Convert to the wire format. Referenced secrets must be hydrated first.
75810
+ * @internal
75811
+ */
75812
+ _toProto() {
75813
+ return OutboundPolicy.create({
75814
+ headerReplacements: this._replacements.map(
75815
+ (replacement) => OutboundPolicy_HeaderReplacement.create({
75816
+ domain: replacement.domain,
75817
+ secretId: replacement.secret?.secretId ?? "",
75818
+ headers: replacement.headers
75819
+ })
75820
+ )
75821
+ });
75822
+ }
75823
+ };
74602
75824
  // Annotate the CommonJS export names for ESM import in node:
74603
75825
  0 && (module.exports = {
74604
75826
  AlreadyExistsError,
@@ -74626,6 +75848,7 @@ var ClsInstance = class {
74626
75848
  InvalidError,
74627
75849
  ModalClient,
74628
75850
  NotFoundError,
75851
+ OutboundPolicy,
74629
75852
  Probe,
74630
75853
  Proxy,
74631
75854
  ProxyService,