modal 0.3.12 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -47,7 +47,9 @@ __export(index_exports, {
47
47
  RemoteError: () => RemoteError,
48
48
  Sandbox: () => Sandbox2,
49
49
  SandboxFile: () => SandboxFile,
50
+ SandboxTimeoutError: () => SandboxTimeoutError,
50
51
  Secret: () => Secret,
52
+ Volume: () => Volume,
51
53
  initializeClient: () => initializeClient
52
54
  });
53
55
  module.exports = __toCommonJS(index_exports);
@@ -3057,16 +3059,13 @@ var AppCreateResponse = {
3057
3059
  }
3058
3060
  };
3059
3061
  function createBaseAppDeployRequest() {
3060
- return { appId: "", namespace: 0, name: "", objectEntity: "", visibility: 0, tag: "" };
3062
+ return { appId: "", name: "", objectEntity: "", visibility: 0, tag: "" };
3061
3063
  }
3062
3064
  var AppDeployRequest = {
3063
3065
  encode(message, writer = new BinaryWriter()) {
3064
3066
  if (message.appId !== "") {
3065
3067
  writer.uint32(10).string(message.appId);
3066
3068
  }
3067
- if (message.namespace !== 0) {
3068
- writer.uint32(16).int32(message.namespace);
3069
- }
3070
3069
  if (message.name !== "") {
3071
3070
  writer.uint32(26).string(message.name);
3072
3071
  }
@@ -3095,13 +3094,6 @@ var AppDeployRequest = {
3095
3094
  message.appId = reader.string();
3096
3095
  continue;
3097
3096
  }
3098
- case 2: {
3099
- if (tag !== 16) {
3100
- break;
3101
- }
3102
- message.namespace = reader.int32();
3103
- continue;
3104
- }
3105
3097
  case 3: {
3106
3098
  if (tag !== 26) {
3107
3099
  break;
@@ -3141,7 +3133,6 @@ var AppDeployRequest = {
3141
3133
  fromJSON(object) {
3142
3134
  return {
3143
3135
  appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
3144
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
3145
3136
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
3146
3137
  objectEntity: isSet3(object.objectEntity) ? globalThis.String(object.objectEntity) : "",
3147
3138
  visibility: isSet3(object.visibility) ? appDeployVisibilityFromJSON(object.visibility) : 0,
@@ -3153,9 +3144,6 @@ var AppDeployRequest = {
3153
3144
  if (message.appId !== "") {
3154
3145
  obj.appId = message.appId;
3155
3146
  }
3156
- if (message.namespace !== 0) {
3157
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
3158
- }
3159
3147
  if (message.name !== "") {
3160
3148
  obj.name = message.name;
3161
3149
  }
@@ -3176,7 +3164,6 @@ var AppDeployRequest = {
3176
3164
  fromPartial(object) {
3177
3165
  const message = createBaseAppDeployRequest();
3178
3166
  message.appId = object.appId ?? "";
3179
- message.namespace = object.namespace ?? 0;
3180
3167
  message.name = object.name ?? "";
3181
3168
  message.objectEntity = object.objectEntity ?? "";
3182
3169
  message.visibility = object.visibility ?? 0;
@@ -3539,13 +3526,10 @@ var AppDeploymentHistoryResponse = {
3539
3526
  }
3540
3527
  };
3541
3528
  function createBaseAppGetByDeploymentNameRequest() {
3542
- return { namespace: 0, name: "", environmentName: "" };
3529
+ return { name: "", environmentName: "" };
3543
3530
  }
3544
3531
  var AppGetByDeploymentNameRequest = {
3545
3532
  encode(message, writer = new BinaryWriter()) {
3546
- if (message.namespace !== 0) {
3547
- writer.uint32(8).int32(message.namespace);
3548
- }
3549
3533
  if (message.name !== "") {
3550
3534
  writer.uint32(18).string(message.name);
3551
3535
  }
@@ -3561,13 +3545,6 @@ var AppGetByDeploymentNameRequest = {
3561
3545
  while (reader.pos < end) {
3562
3546
  const tag = reader.uint32();
3563
3547
  switch (tag >>> 3) {
3564
- case 1: {
3565
- if (tag !== 8) {
3566
- break;
3567
- }
3568
- message.namespace = reader.int32();
3569
- continue;
3570
- }
3571
3548
  case 2: {
3572
3549
  if (tag !== 18) {
3573
3550
  break;
@@ -3592,16 +3569,12 @@ var AppGetByDeploymentNameRequest = {
3592
3569
  },
3593
3570
  fromJSON(object) {
3594
3571
  return {
3595
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
3596
3572
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
3597
3573
  environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : ""
3598
3574
  };
3599
3575
  },
3600
3576
  toJSON(message) {
3601
3577
  const obj = {};
3602
- if (message.namespace !== 0) {
3603
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
3604
- }
3605
3578
  if (message.name !== "") {
3606
3579
  obj.name = message.name;
3607
3580
  }
@@ -3615,7 +3588,6 @@ var AppGetByDeploymentNameRequest = {
3615
3588
  },
3616
3589
  fromPartial(object) {
3617
3590
  const message = createBaseAppGetByDeploymentNameRequest();
3618
- message.namespace = object.namespace ?? 0;
3619
3591
  message.name = object.name ?? "";
3620
3592
  message.environmentName = object.environmentName ?? "";
3621
3593
  return message;
@@ -3783,7 +3755,8 @@ function createBaseAppGetLogsRequest() {
3783
3755
  inputId: "",
3784
3756
  taskId: "",
3785
3757
  functionCallId: "",
3786
- fileDescriptor: 0
3758
+ fileDescriptor: 0,
3759
+ sandboxId: ""
3787
3760
  };
3788
3761
  }
3789
3762
  var AppGetLogsRequest = {
@@ -3812,6 +3785,9 @@ var AppGetLogsRequest = {
3812
3785
  if (message.fileDescriptor !== 0) {
3813
3786
  writer.uint32(64).int32(message.fileDescriptor);
3814
3787
  }
3788
+ if (message.sandboxId !== "") {
3789
+ writer.uint32(82).string(message.sandboxId);
3790
+ }
3815
3791
  return writer;
3816
3792
  },
3817
3793
  decode(input, length) {
@@ -3877,6 +3853,13 @@ var AppGetLogsRequest = {
3877
3853
  message.fileDescriptor = reader.int32();
3878
3854
  continue;
3879
3855
  }
3856
+ case 10: {
3857
+ if (tag !== 82) {
3858
+ break;
3859
+ }
3860
+ message.sandboxId = reader.string();
3861
+ continue;
3862
+ }
3880
3863
  }
3881
3864
  if ((tag & 7) === 4 || tag === 0) {
3882
3865
  break;
@@ -3894,7 +3877,8 @@ var AppGetLogsRequest = {
3894
3877
  inputId: isSet3(object.inputId) ? globalThis.String(object.inputId) : "",
3895
3878
  taskId: isSet3(object.taskId) ? globalThis.String(object.taskId) : "",
3896
3879
  functionCallId: isSet3(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
3897
- fileDescriptor: isSet3(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0
3880
+ fileDescriptor: isSet3(object.fileDescriptor) ? fileDescriptorFromJSON(object.fileDescriptor) : 0,
3881
+ sandboxId: isSet3(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
3898
3882
  };
3899
3883
  },
3900
3884
  toJSON(message) {
@@ -3923,6 +3907,9 @@ var AppGetLogsRequest = {
3923
3907
  if (message.fileDescriptor !== 0) {
3924
3908
  obj.fileDescriptor = fileDescriptorToJSON(message.fileDescriptor);
3925
3909
  }
3910
+ if (message.sandboxId !== "") {
3911
+ obj.sandboxId = message.sandboxId;
3912
+ }
3926
3913
  return obj;
3927
3914
  },
3928
3915
  create(base) {
@@ -3938,6 +3925,7 @@ var AppGetLogsRequest = {
3938
3925
  message.taskId = object.taskId ?? "";
3939
3926
  message.functionCallId = object.functionCallId ?? "";
3940
3927
  message.fileDescriptor = object.fileDescriptor ?? 0;
3928
+ message.sandboxId = object.sandboxId ?? "";
3941
3929
  return message;
3942
3930
  }
3943
3931
  };
@@ -6522,7 +6510,14 @@ var BlobCreateRequest = {
6522
6510
  }
6523
6511
  };
6524
6512
  function createBaseBlobCreateResponse() {
6525
- return { blobId: "", uploadUrl: void 0, multipart: void 0 };
6513
+ return {
6514
+ blobId: "",
6515
+ uploadUrl: void 0,
6516
+ multipart: void 0,
6517
+ blobIds: [],
6518
+ uploadUrls: void 0,
6519
+ multiparts: void 0
6520
+ };
6526
6521
  }
6527
6522
  var BlobCreateResponse = {
6528
6523
  encode(message, writer = new BinaryWriter()) {
@@ -6535,6 +6530,15 @@ var BlobCreateResponse = {
6535
6530
  if (message.multipart !== void 0) {
6536
6531
  MultiPartUpload.encode(message.multipart, writer.uint32(26).fork()).join();
6537
6532
  }
6533
+ for (const v of message.blobIds) {
6534
+ writer.uint32(34).string(v);
6535
+ }
6536
+ if (message.uploadUrls !== void 0) {
6537
+ UploadUrlList.encode(message.uploadUrls, writer.uint32(42).fork()).join();
6538
+ }
6539
+ if (message.multiparts !== void 0) {
6540
+ MultiPartUploadList.encode(message.multiparts, writer.uint32(50).fork()).join();
6541
+ }
6538
6542
  return writer;
6539
6543
  },
6540
6544
  decode(input, length) {
@@ -6565,6 +6569,27 @@ var BlobCreateResponse = {
6565
6569
  message.multipart = MultiPartUpload.decode(reader, reader.uint32());
6566
6570
  continue;
6567
6571
  }
6572
+ case 4: {
6573
+ if (tag !== 34) {
6574
+ break;
6575
+ }
6576
+ message.blobIds.push(reader.string());
6577
+ continue;
6578
+ }
6579
+ case 5: {
6580
+ if (tag !== 42) {
6581
+ break;
6582
+ }
6583
+ message.uploadUrls = UploadUrlList.decode(reader, reader.uint32());
6584
+ continue;
6585
+ }
6586
+ case 6: {
6587
+ if (tag !== 50) {
6588
+ break;
6589
+ }
6590
+ message.multiparts = MultiPartUploadList.decode(reader, reader.uint32());
6591
+ continue;
6592
+ }
6568
6593
  }
6569
6594
  if ((tag & 7) === 4 || tag === 0) {
6570
6595
  break;
@@ -6577,7 +6602,10 @@ var BlobCreateResponse = {
6577
6602
  return {
6578
6603
  blobId: isSet3(object.blobId) ? globalThis.String(object.blobId) : "",
6579
6604
  uploadUrl: isSet3(object.uploadUrl) ? globalThis.String(object.uploadUrl) : void 0,
6580
- multipart: isSet3(object.multipart) ? MultiPartUpload.fromJSON(object.multipart) : void 0
6605
+ multipart: isSet3(object.multipart) ? MultiPartUpload.fromJSON(object.multipart) : void 0,
6606
+ blobIds: globalThis.Array.isArray(object?.blobIds) ? object.blobIds.map((e) => globalThis.String(e)) : [],
6607
+ uploadUrls: isSet3(object.uploadUrls) ? UploadUrlList.fromJSON(object.uploadUrls) : void 0,
6608
+ multiparts: isSet3(object.multiparts) ? MultiPartUploadList.fromJSON(object.multiparts) : void 0
6581
6609
  };
6582
6610
  },
6583
6611
  toJSON(message) {
@@ -6591,6 +6619,15 @@ var BlobCreateResponse = {
6591
6619
  if (message.multipart !== void 0) {
6592
6620
  obj.multipart = MultiPartUpload.toJSON(message.multipart);
6593
6621
  }
6622
+ if (message.blobIds?.length) {
6623
+ obj.blobIds = message.blobIds;
6624
+ }
6625
+ if (message.uploadUrls !== void 0) {
6626
+ obj.uploadUrls = UploadUrlList.toJSON(message.uploadUrls);
6627
+ }
6628
+ if (message.multiparts !== void 0) {
6629
+ obj.multiparts = MultiPartUploadList.toJSON(message.multiparts);
6630
+ }
6594
6631
  return obj;
6595
6632
  },
6596
6633
  create(base) {
@@ -6601,6 +6638,9 @@ var BlobCreateResponse = {
6601
6638
  message.blobId = object.blobId ?? "";
6602
6639
  message.uploadUrl = object.uploadUrl ?? void 0;
6603
6640
  message.multipart = object.multipart !== void 0 && object.multipart !== null ? MultiPartUpload.fromPartial(object.multipart) : void 0;
6641
+ message.blobIds = object.blobIds?.map((e) => e) || [];
6642
+ message.uploadUrls = object.uploadUrls !== void 0 && object.uploadUrls !== null ? UploadUrlList.fromPartial(object.uploadUrls) : void 0;
6643
+ message.multiparts = object.multiparts !== void 0 && object.multiparts !== null ? MultiPartUploadList.fromPartial(object.multiparts) : void 0;
6604
6644
  return message;
6605
6645
  }
6606
6646
  };
@@ -7191,7 +7231,7 @@ var ClassCreateResponse = {
7191
7231
  }
7192
7232
  };
7193
7233
  function createBaseClassGetRequest() {
7194
- return { appName: "", objectTag: "", namespace: 0, environmentName: "", onlyClassFunction: false };
7234
+ return { appName: "", objectTag: "", environmentName: "", onlyClassFunction: false };
7195
7235
  }
7196
7236
  var ClassGetRequest = {
7197
7237
  encode(message, writer = new BinaryWriter()) {
@@ -7201,9 +7241,6 @@ var ClassGetRequest = {
7201
7241
  if (message.objectTag !== "") {
7202
7242
  writer.uint32(18).string(message.objectTag);
7203
7243
  }
7204
- if (message.namespace !== 0) {
7205
- writer.uint32(24).int32(message.namespace);
7206
- }
7207
7244
  if (message.environmentName !== "") {
7208
7245
  writer.uint32(34).string(message.environmentName);
7209
7246
  }
@@ -7233,13 +7270,6 @@ var ClassGetRequest = {
7233
7270
  message.objectTag = reader.string();
7234
7271
  continue;
7235
7272
  }
7236
- case 3: {
7237
- if (tag !== 24) {
7238
- break;
7239
- }
7240
- message.namespace = reader.int32();
7241
- continue;
7242
- }
7243
7273
  case 4: {
7244
7274
  if (tag !== 34) {
7245
7275
  break;
@@ -7266,7 +7296,6 @@ var ClassGetRequest = {
7266
7296
  return {
7267
7297
  appName: isSet3(object.appName) ? globalThis.String(object.appName) : "",
7268
7298
  objectTag: isSet3(object.objectTag) ? globalThis.String(object.objectTag) : "",
7269
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
7270
7299
  environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
7271
7300
  onlyClassFunction: isSet3(object.onlyClassFunction) ? globalThis.Boolean(object.onlyClassFunction) : false
7272
7301
  };
@@ -7279,9 +7308,6 @@ var ClassGetRequest = {
7279
7308
  if (message.objectTag !== "") {
7280
7309
  obj.objectTag = message.objectTag;
7281
7310
  }
7282
- if (message.namespace !== 0) {
7283
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
7284
- }
7285
7311
  if (message.environmentName !== "") {
7286
7312
  obj.environmentName = message.environmentName;
7287
7313
  }
@@ -7297,7 +7323,6 @@ var ClassGetRequest = {
7297
7323
  const message = createBaseClassGetRequest();
7298
7324
  message.appName = object.appName ?? "";
7299
7325
  message.objectTag = object.objectTag ?? "";
7300
- message.namespace = object.namespace ?? 0;
7301
7326
  message.environmentName = object.environmentName ?? "";
7302
7327
  message.onlyClassFunction = object.onlyClassFunction ?? false;
7303
7328
  return message;
@@ -10841,6 +10866,94 @@ var ContainerLogRequest = {
10841
10866
  return message;
10842
10867
  }
10843
10868
  };
10869
+ function createBaseContainerReloadVolumesRequest() {
10870
+ return { taskId: "" };
10871
+ }
10872
+ var ContainerReloadVolumesRequest = {
10873
+ encode(message, writer = new BinaryWriter()) {
10874
+ if (message.taskId !== "") {
10875
+ writer.uint32(10).string(message.taskId);
10876
+ }
10877
+ return writer;
10878
+ },
10879
+ decode(input, length) {
10880
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
10881
+ let end = length === void 0 ? reader.len : reader.pos + length;
10882
+ const message = createBaseContainerReloadVolumesRequest();
10883
+ while (reader.pos < end) {
10884
+ const tag = reader.uint32();
10885
+ switch (tag >>> 3) {
10886
+ case 1: {
10887
+ if (tag !== 10) {
10888
+ break;
10889
+ }
10890
+ message.taskId = reader.string();
10891
+ continue;
10892
+ }
10893
+ }
10894
+ if ((tag & 7) === 4 || tag === 0) {
10895
+ break;
10896
+ }
10897
+ reader.skip(tag & 7);
10898
+ }
10899
+ return message;
10900
+ },
10901
+ fromJSON(object) {
10902
+ return { taskId: isSet3(object.taskId) ? globalThis.String(object.taskId) : "" };
10903
+ },
10904
+ toJSON(message) {
10905
+ const obj = {};
10906
+ if (message.taskId !== "") {
10907
+ obj.taskId = message.taskId;
10908
+ }
10909
+ return obj;
10910
+ },
10911
+ create(base) {
10912
+ return ContainerReloadVolumesRequest.fromPartial(base ?? {});
10913
+ },
10914
+ fromPartial(object) {
10915
+ const message = createBaseContainerReloadVolumesRequest();
10916
+ message.taskId = object.taskId ?? "";
10917
+ return message;
10918
+ }
10919
+ };
10920
+ function createBaseContainerReloadVolumesResponse() {
10921
+ return {};
10922
+ }
10923
+ var ContainerReloadVolumesResponse = {
10924
+ encode(_, writer = new BinaryWriter()) {
10925
+ return writer;
10926
+ },
10927
+ decode(input, length) {
10928
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
10929
+ let end = length === void 0 ? reader.len : reader.pos + length;
10930
+ const message = createBaseContainerReloadVolumesResponse();
10931
+ while (reader.pos < end) {
10932
+ const tag = reader.uint32();
10933
+ switch (tag >>> 3) {
10934
+ }
10935
+ if ((tag & 7) === 4 || tag === 0) {
10936
+ break;
10937
+ }
10938
+ reader.skip(tag & 7);
10939
+ }
10940
+ return message;
10941
+ },
10942
+ fromJSON(_) {
10943
+ return {};
10944
+ },
10945
+ toJSON(_) {
10946
+ const obj = {};
10947
+ return obj;
10948
+ },
10949
+ create(base) {
10950
+ return ContainerReloadVolumesResponse.fromPartial(base ?? {});
10951
+ },
10952
+ fromPartial(_) {
10953
+ const message = createBaseContainerReloadVolumesResponse();
10954
+ return message;
10955
+ }
10956
+ };
10844
10957
  function createBaseContainerStopRequest() {
10845
10958
  return { taskId: "" };
10846
10959
  }
@@ -11585,16 +11698,13 @@ var DictEntry = {
11585
11698
  }
11586
11699
  };
11587
11700
  function createBaseDictGetOrCreateRequest() {
11588
- return { deploymentName: "", namespace: 0, environmentName: "", objectCreationType: 0, data: [] };
11701
+ return { deploymentName: "", environmentName: "", objectCreationType: 0, data: [] };
11589
11702
  }
11590
11703
  var DictGetOrCreateRequest = {
11591
11704
  encode(message, writer = new BinaryWriter()) {
11592
11705
  if (message.deploymentName !== "") {
11593
11706
  writer.uint32(10).string(message.deploymentName);
11594
11707
  }
11595
- if (message.namespace !== 0) {
11596
- writer.uint32(16).int32(message.namespace);
11597
- }
11598
11708
  if (message.environmentName !== "") {
11599
11709
  writer.uint32(26).string(message.environmentName);
11600
11710
  }
@@ -11620,13 +11730,6 @@ var DictGetOrCreateRequest = {
11620
11730
  message.deploymentName = reader.string();
11621
11731
  continue;
11622
11732
  }
11623
- case 2: {
11624
- if (tag !== 16) {
11625
- break;
11626
- }
11627
- message.namespace = reader.int32();
11628
- continue;
11629
- }
11630
11733
  case 3: {
11631
11734
  if (tag !== 26) {
11632
11735
  break;
@@ -11659,7 +11762,6 @@ var DictGetOrCreateRequest = {
11659
11762
  fromJSON(object) {
11660
11763
  return {
11661
11764
  deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
11662
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
11663
11765
  environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
11664
11766
  objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
11665
11767
  data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => DictEntry.fromJSON(e)) : []
@@ -11670,9 +11772,6 @@ var DictGetOrCreateRequest = {
11670
11772
  if (message.deploymentName !== "") {
11671
11773
  obj.deploymentName = message.deploymentName;
11672
11774
  }
11673
- if (message.namespace !== 0) {
11674
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
11675
- }
11676
11775
  if (message.environmentName !== "") {
11677
11776
  obj.environmentName = message.environmentName;
11678
11777
  }
@@ -11690,7 +11789,6 @@ var DictGetOrCreateRequest = {
11690
11789
  fromPartial(object) {
11691
11790
  const message = createBaseDictGetOrCreateRequest();
11692
11791
  message.deploymentName = object.deploymentName ?? "";
11693
- message.namespace = object.namespace ?? 0;
11694
11792
  message.environmentName = object.environmentName ?? "";
11695
11793
  message.objectCreationType = object.objectCreationType ?? 0;
11696
11794
  message.data = object.data?.map((e) => DictEntry.fromPartial(e)) || [];
@@ -13707,6 +13805,408 @@ var FilesystemRuntimeOutputBatch = {
13707
13805
  return message;
13708
13806
  }
13709
13807
  };
13808
+ function createBaseFlashContainerDeregisterRequest() {
13809
+ return { serviceName: "" };
13810
+ }
13811
+ var FlashContainerDeregisterRequest = {
13812
+ encode(message, writer = new BinaryWriter()) {
13813
+ if (message.serviceName !== "") {
13814
+ writer.uint32(10).string(message.serviceName);
13815
+ }
13816
+ return writer;
13817
+ },
13818
+ decode(input, length) {
13819
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13820
+ let end = length === void 0 ? reader.len : reader.pos + length;
13821
+ const message = createBaseFlashContainerDeregisterRequest();
13822
+ while (reader.pos < end) {
13823
+ const tag = reader.uint32();
13824
+ switch (tag >>> 3) {
13825
+ case 1: {
13826
+ if (tag !== 10) {
13827
+ break;
13828
+ }
13829
+ message.serviceName = reader.string();
13830
+ continue;
13831
+ }
13832
+ }
13833
+ if ((tag & 7) === 4 || tag === 0) {
13834
+ break;
13835
+ }
13836
+ reader.skip(tag & 7);
13837
+ }
13838
+ return message;
13839
+ },
13840
+ fromJSON(object) {
13841
+ return { serviceName: isSet3(object.serviceName) ? globalThis.String(object.serviceName) : "" };
13842
+ },
13843
+ toJSON(message) {
13844
+ const obj = {};
13845
+ if (message.serviceName !== "") {
13846
+ obj.serviceName = message.serviceName;
13847
+ }
13848
+ return obj;
13849
+ },
13850
+ create(base) {
13851
+ return FlashContainerDeregisterRequest.fromPartial(base ?? {});
13852
+ },
13853
+ fromPartial(object) {
13854
+ const message = createBaseFlashContainerDeregisterRequest();
13855
+ message.serviceName = object.serviceName ?? "";
13856
+ return message;
13857
+ }
13858
+ };
13859
+ function createBaseFlashContainerListRequest() {
13860
+ return { functionId: "" };
13861
+ }
13862
+ var FlashContainerListRequest = {
13863
+ encode(message, writer = new BinaryWriter()) {
13864
+ if (message.functionId !== "") {
13865
+ writer.uint32(10).string(message.functionId);
13866
+ }
13867
+ return writer;
13868
+ },
13869
+ decode(input, length) {
13870
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13871
+ let end = length === void 0 ? reader.len : reader.pos + length;
13872
+ const message = createBaseFlashContainerListRequest();
13873
+ while (reader.pos < end) {
13874
+ const tag = reader.uint32();
13875
+ switch (tag >>> 3) {
13876
+ case 1: {
13877
+ if (tag !== 10) {
13878
+ break;
13879
+ }
13880
+ message.functionId = reader.string();
13881
+ continue;
13882
+ }
13883
+ }
13884
+ if ((tag & 7) === 4 || tag === 0) {
13885
+ break;
13886
+ }
13887
+ reader.skip(tag & 7);
13888
+ }
13889
+ return message;
13890
+ },
13891
+ fromJSON(object) {
13892
+ return { functionId: isSet3(object.functionId) ? globalThis.String(object.functionId) : "" };
13893
+ },
13894
+ toJSON(message) {
13895
+ const obj = {};
13896
+ if (message.functionId !== "") {
13897
+ obj.functionId = message.functionId;
13898
+ }
13899
+ return obj;
13900
+ },
13901
+ create(base) {
13902
+ return FlashContainerListRequest.fromPartial(base ?? {});
13903
+ },
13904
+ fromPartial(object) {
13905
+ const message = createBaseFlashContainerListRequest();
13906
+ message.functionId = object.functionId ?? "";
13907
+ return message;
13908
+ }
13909
+ };
13910
+ function createBaseFlashContainerListResponse() {
13911
+ return { containers: [] };
13912
+ }
13913
+ var FlashContainerListResponse = {
13914
+ encode(message, writer = new BinaryWriter()) {
13915
+ for (const v of message.containers) {
13916
+ FlashContainerListResponse_Container.encode(v, writer.uint32(10).fork()).join();
13917
+ }
13918
+ return writer;
13919
+ },
13920
+ decode(input, length) {
13921
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13922
+ let end = length === void 0 ? reader.len : reader.pos + length;
13923
+ const message = createBaseFlashContainerListResponse();
13924
+ while (reader.pos < end) {
13925
+ const tag = reader.uint32();
13926
+ switch (tag >>> 3) {
13927
+ case 1: {
13928
+ if (tag !== 10) {
13929
+ break;
13930
+ }
13931
+ message.containers.push(FlashContainerListResponse_Container.decode(reader, reader.uint32()));
13932
+ continue;
13933
+ }
13934
+ }
13935
+ if ((tag & 7) === 4 || tag === 0) {
13936
+ break;
13937
+ }
13938
+ reader.skip(tag & 7);
13939
+ }
13940
+ return message;
13941
+ },
13942
+ fromJSON(object) {
13943
+ return {
13944
+ containers: globalThis.Array.isArray(object?.containers) ? object.containers.map((e) => FlashContainerListResponse_Container.fromJSON(e)) : []
13945
+ };
13946
+ },
13947
+ toJSON(message) {
13948
+ const obj = {};
13949
+ if (message.containers?.length) {
13950
+ obj.containers = message.containers.map((e) => FlashContainerListResponse_Container.toJSON(e));
13951
+ }
13952
+ return obj;
13953
+ },
13954
+ create(base) {
13955
+ return FlashContainerListResponse.fromPartial(base ?? {});
13956
+ },
13957
+ fromPartial(object) {
13958
+ const message = createBaseFlashContainerListResponse();
13959
+ message.containers = object.containers?.map((e) => FlashContainerListResponse_Container.fromPartial(e)) || [];
13960
+ return message;
13961
+ }
13962
+ };
13963
+ function createBaseFlashContainerListResponse_Container() {
13964
+ return { taskId: "", host: "", port: 0 };
13965
+ }
13966
+ var FlashContainerListResponse_Container = {
13967
+ encode(message, writer = new BinaryWriter()) {
13968
+ if (message.taskId !== "") {
13969
+ writer.uint32(10).string(message.taskId);
13970
+ }
13971
+ if (message.host !== "") {
13972
+ writer.uint32(18).string(message.host);
13973
+ }
13974
+ if (message.port !== 0) {
13975
+ writer.uint32(24).uint32(message.port);
13976
+ }
13977
+ return writer;
13978
+ },
13979
+ decode(input, length) {
13980
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13981
+ let end = length === void 0 ? reader.len : reader.pos + length;
13982
+ const message = createBaseFlashContainerListResponse_Container();
13983
+ while (reader.pos < end) {
13984
+ const tag = reader.uint32();
13985
+ switch (tag >>> 3) {
13986
+ case 1: {
13987
+ if (tag !== 10) {
13988
+ break;
13989
+ }
13990
+ message.taskId = reader.string();
13991
+ continue;
13992
+ }
13993
+ case 2: {
13994
+ if (tag !== 18) {
13995
+ break;
13996
+ }
13997
+ message.host = reader.string();
13998
+ continue;
13999
+ }
14000
+ case 3: {
14001
+ if (tag !== 24) {
14002
+ break;
14003
+ }
14004
+ message.port = reader.uint32();
14005
+ continue;
14006
+ }
14007
+ }
14008
+ if ((tag & 7) === 4 || tag === 0) {
14009
+ break;
14010
+ }
14011
+ reader.skip(tag & 7);
14012
+ }
14013
+ return message;
14014
+ },
14015
+ fromJSON(object) {
14016
+ return {
14017
+ taskId: isSet3(object.taskId) ? globalThis.String(object.taskId) : "",
14018
+ host: isSet3(object.host) ? globalThis.String(object.host) : "",
14019
+ port: isSet3(object.port) ? globalThis.Number(object.port) : 0
14020
+ };
14021
+ },
14022
+ toJSON(message) {
14023
+ const obj = {};
14024
+ if (message.taskId !== "") {
14025
+ obj.taskId = message.taskId;
14026
+ }
14027
+ if (message.host !== "") {
14028
+ obj.host = message.host;
14029
+ }
14030
+ if (message.port !== 0) {
14031
+ obj.port = Math.round(message.port);
14032
+ }
14033
+ return obj;
14034
+ },
14035
+ create(base) {
14036
+ return FlashContainerListResponse_Container.fromPartial(base ?? {});
14037
+ },
14038
+ fromPartial(object) {
14039
+ const message = createBaseFlashContainerListResponse_Container();
14040
+ message.taskId = object.taskId ?? "";
14041
+ message.host = object.host ?? "";
14042
+ message.port = object.port ?? 0;
14043
+ return message;
14044
+ }
14045
+ };
14046
+ function createBaseFlashContainerRegisterRequest() {
14047
+ return { serviceName: "", priority: 0, weight: 0, host: "", port: 0 };
14048
+ }
14049
+ var FlashContainerRegisterRequest = {
14050
+ encode(message, writer = new BinaryWriter()) {
14051
+ if (message.serviceName !== "") {
14052
+ writer.uint32(10).string(message.serviceName);
14053
+ }
14054
+ if (message.priority !== 0) {
14055
+ writer.uint32(16).uint32(message.priority);
14056
+ }
14057
+ if (message.weight !== 0) {
14058
+ writer.uint32(24).uint32(message.weight);
14059
+ }
14060
+ if (message.host !== "") {
14061
+ writer.uint32(34).string(message.host);
14062
+ }
14063
+ if (message.port !== 0) {
14064
+ writer.uint32(40).uint32(message.port);
14065
+ }
14066
+ return writer;
14067
+ },
14068
+ decode(input, length) {
14069
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14070
+ let end = length === void 0 ? reader.len : reader.pos + length;
14071
+ const message = createBaseFlashContainerRegisterRequest();
14072
+ while (reader.pos < end) {
14073
+ const tag = reader.uint32();
14074
+ switch (tag >>> 3) {
14075
+ case 1: {
14076
+ if (tag !== 10) {
14077
+ break;
14078
+ }
14079
+ message.serviceName = reader.string();
14080
+ continue;
14081
+ }
14082
+ case 2: {
14083
+ if (tag !== 16) {
14084
+ break;
14085
+ }
14086
+ message.priority = reader.uint32();
14087
+ continue;
14088
+ }
14089
+ case 3: {
14090
+ if (tag !== 24) {
14091
+ break;
14092
+ }
14093
+ message.weight = reader.uint32();
14094
+ continue;
14095
+ }
14096
+ case 4: {
14097
+ if (tag !== 34) {
14098
+ break;
14099
+ }
14100
+ message.host = reader.string();
14101
+ continue;
14102
+ }
14103
+ case 5: {
14104
+ if (tag !== 40) {
14105
+ break;
14106
+ }
14107
+ message.port = reader.uint32();
14108
+ continue;
14109
+ }
14110
+ }
14111
+ if ((tag & 7) === 4 || tag === 0) {
14112
+ break;
14113
+ }
14114
+ reader.skip(tag & 7);
14115
+ }
14116
+ return message;
14117
+ },
14118
+ fromJSON(object) {
14119
+ return {
14120
+ serviceName: isSet3(object.serviceName) ? globalThis.String(object.serviceName) : "",
14121
+ priority: isSet3(object.priority) ? globalThis.Number(object.priority) : 0,
14122
+ weight: isSet3(object.weight) ? globalThis.Number(object.weight) : 0,
14123
+ host: isSet3(object.host) ? globalThis.String(object.host) : "",
14124
+ port: isSet3(object.port) ? globalThis.Number(object.port) : 0
14125
+ };
14126
+ },
14127
+ toJSON(message) {
14128
+ const obj = {};
14129
+ if (message.serviceName !== "") {
14130
+ obj.serviceName = message.serviceName;
14131
+ }
14132
+ if (message.priority !== 0) {
14133
+ obj.priority = Math.round(message.priority);
14134
+ }
14135
+ if (message.weight !== 0) {
14136
+ obj.weight = Math.round(message.weight);
14137
+ }
14138
+ if (message.host !== "") {
14139
+ obj.host = message.host;
14140
+ }
14141
+ if (message.port !== 0) {
14142
+ obj.port = Math.round(message.port);
14143
+ }
14144
+ return obj;
14145
+ },
14146
+ create(base) {
14147
+ return FlashContainerRegisterRequest.fromPartial(base ?? {});
14148
+ },
14149
+ fromPartial(object) {
14150
+ const message = createBaseFlashContainerRegisterRequest();
14151
+ message.serviceName = object.serviceName ?? "";
14152
+ message.priority = object.priority ?? 0;
14153
+ message.weight = object.weight ?? 0;
14154
+ message.host = object.host ?? "";
14155
+ message.port = object.port ?? 0;
14156
+ return message;
14157
+ }
14158
+ };
14159
+ function createBaseFlashContainerRegisterResponse() {
14160
+ return { url: "" };
14161
+ }
14162
+ var FlashContainerRegisterResponse = {
14163
+ encode(message, writer = new BinaryWriter()) {
14164
+ if (message.url !== "") {
14165
+ writer.uint32(10).string(message.url);
14166
+ }
14167
+ return writer;
14168
+ },
14169
+ decode(input, length) {
14170
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14171
+ let end = length === void 0 ? reader.len : reader.pos + length;
14172
+ const message = createBaseFlashContainerRegisterResponse();
14173
+ while (reader.pos < end) {
14174
+ const tag = reader.uint32();
14175
+ switch (tag >>> 3) {
14176
+ case 1: {
14177
+ if (tag !== 10) {
14178
+ break;
14179
+ }
14180
+ message.url = reader.string();
14181
+ continue;
14182
+ }
14183
+ }
14184
+ if ((tag & 7) === 4 || tag === 0) {
14185
+ break;
14186
+ }
14187
+ reader.skip(tag & 7);
14188
+ }
14189
+ return message;
14190
+ },
14191
+ fromJSON(object) {
14192
+ return { url: isSet3(object.url) ? globalThis.String(object.url) : "" };
14193
+ },
14194
+ toJSON(message) {
14195
+ const obj = {};
14196
+ if (message.url !== "") {
14197
+ obj.url = message.url;
14198
+ }
14199
+ return obj;
14200
+ },
14201
+ create(base) {
14202
+ return FlashContainerRegisterResponse.fromPartial(base ?? {});
14203
+ },
14204
+ fromPartial(object) {
14205
+ const message = createBaseFlashContainerRegisterResponse();
14206
+ message.url = object.url ?? "";
14207
+ return message;
14208
+ }
14209
+ };
13710
14210
  function createBaseFunctionMessage() {
13711
14211
  return {
13712
14212
  moduleName: "",
@@ -13777,7 +14277,8 @@ function createBaseFunctionMessage() {
13777
14277
  autoscalerSettings: void 0,
13778
14278
  functionSchema: void 0,
13779
14279
  experimentalOptions: {},
13780
- mountClientDependencies: false
14280
+ mountClientDependencies: false,
14281
+ flashServiceUrls: []
13781
14282
  };
13782
14283
  }
13783
14284
  var FunctionMessage = {
@@ -13989,6 +14490,9 @@ var FunctionMessage = {
13989
14490
  if (message.mountClientDependencies !== false) {
13990
14491
  writer.uint32(656).bool(message.mountClientDependencies);
13991
14492
  }
14493
+ for (const v of message.flashServiceUrls) {
14494
+ writer.uint32(666).string(v);
14495
+ }
13992
14496
  return writer;
13993
14497
  },
13994
14498
  decode(input, length) {
@@ -14487,6 +14991,13 @@ var FunctionMessage = {
14487
14991
  message.mountClientDependencies = reader.bool();
14488
14992
  continue;
14489
14993
  }
14994
+ case 83: {
14995
+ if (tag !== 666) {
14996
+ break;
14997
+ }
14998
+ message.flashServiceUrls.push(reader.string());
14999
+ continue;
15000
+ }
14490
15001
  }
14491
15002
  if ((tag & 7) === 4 || tag === 0) {
14492
15003
  break;
@@ -14571,7 +15082,8 @@ var FunctionMessage = {
14571
15082
  acc[key] = String(value);
14572
15083
  return acc;
14573
15084
  }, {}) : {},
14574
- mountClientDependencies: isSet3(object.mountClientDependencies) ? globalThis.Boolean(object.mountClientDependencies) : false
15085
+ mountClientDependencies: isSet3(object.mountClientDependencies) ? globalThis.Boolean(object.mountClientDependencies) : false,
15086
+ flashServiceUrls: globalThis.Array.isArray(object?.flashServiceUrls) ? object.flashServiceUrls.map((e) => globalThis.String(e)) : []
14575
15087
  };
14576
15088
  },
14577
15089
  toJSON(message) {
@@ -14795,6 +15307,9 @@ var FunctionMessage = {
14795
15307
  if (message.mountClientDependencies !== false) {
14796
15308
  obj.mountClientDependencies = message.mountClientDependencies;
14797
15309
  }
15310
+ if (message.flashServiceUrls?.length) {
15311
+ obj.flashServiceUrls = message.flashServiceUrls;
15312
+ }
14798
15313
  return obj;
14799
15314
  },
14800
15315
  create(base) {
@@ -14884,6 +15399,7 @@ var FunctionMessage = {
14884
15399
  {}
14885
15400
  );
14886
15401
  message.mountClientDependencies = object.mountClientDependencies ?? false;
15402
+ message.flashServiceUrls = object.flashServiceUrls?.map((e) => e) || [];
14887
15403
  return message;
14888
15404
  }
14889
15405
  };
@@ -16204,7 +16720,8 @@ function createBaseFunctionData() {
16204
16720
  runtimePerfRecord: false,
16205
16721
  autoscalerSettings: void 0,
16206
16722
  functionSchema: void 0,
16207
- experimentalOptions: {}
16723
+ experimentalOptions: {},
16724
+ flashServiceUrls: []
16208
16725
  };
16209
16726
  }
16210
16727
  var FunctionData = {
@@ -16305,6 +16822,9 @@ var FunctionData = {
16305
16822
  Object.entries(message.experimentalOptions).forEach(([key, value]) => {
16306
16823
  FunctionData_ExperimentalOptionsEntry.encode({ key, value }, writer.uint32(266).fork()).join();
16307
16824
  });
16825
+ for (const v of message.flashServiceUrls) {
16826
+ writer.uint32(274).string(v);
16827
+ }
16308
16828
  return writer;
16309
16829
  },
16310
16830
  decode(input, length) {
@@ -16544,6 +17064,13 @@ var FunctionData = {
16544
17064
  }
16545
17065
  continue;
16546
17066
  }
17067
+ case 34: {
17068
+ if (tag !== 274) {
17069
+ break;
17070
+ }
17071
+ message.flashServiceUrls.push(reader.string());
17072
+ continue;
17073
+ }
16547
17074
  }
16548
17075
  if ((tag & 7) === 4 || tag === 0) {
16549
17076
  break;
@@ -16591,7 +17118,8 @@ var FunctionData = {
16591
17118
  experimentalOptions: isObject2(object.experimentalOptions) ? Object.entries(object.experimentalOptions).reduce((acc, [key, value]) => {
16592
17119
  acc[key] = String(value);
16593
17120
  return acc;
16594
- }, {}) : {}
17121
+ }, {}) : {},
17122
+ flashServiceUrls: globalThis.Array.isArray(object?.flashServiceUrls) ? object.flashServiceUrls.map((e) => globalThis.String(e)) : []
16595
17123
  };
16596
17124
  },
16597
17125
  toJSON(message) {
@@ -16704,6 +17232,9 @@ var FunctionData = {
16704
17232
  });
16705
17233
  }
16706
17234
  }
17235
+ if (message.flashServiceUrls?.length) {
17236
+ obj.flashServiceUrls = message.flashServiceUrls;
17237
+ }
16707
17238
  return obj;
16708
17239
  },
16709
17240
  create(base) {
@@ -16756,6 +17287,7 @@ var FunctionData = {
16756
17287
  },
16757
17288
  {}
16758
17289
  );
17290
+ message.flashServiceUrls = object.flashServiceUrls?.map((e) => e) || [];
16759
17291
  return message;
16760
17292
  }
16761
17293
  };
@@ -18040,7 +18572,7 @@ var FunctionGetOutputsResponse = {
18040
18572
  }
18041
18573
  };
18042
18574
  function createBaseFunctionGetRequest() {
18043
- return { appName: "", objectTag: "", namespace: 0, environmentName: "" };
18575
+ return { appName: "", objectTag: "", environmentName: "" };
18044
18576
  }
18045
18577
  var FunctionGetRequest = {
18046
18578
  encode(message, writer = new BinaryWriter()) {
@@ -18050,9 +18582,6 @@ var FunctionGetRequest = {
18050
18582
  if (message.objectTag !== "") {
18051
18583
  writer.uint32(18).string(message.objectTag);
18052
18584
  }
18053
- if (message.namespace !== 0) {
18054
- writer.uint32(24).int32(message.namespace);
18055
- }
18056
18585
  if (message.environmentName !== "") {
18057
18586
  writer.uint32(34).string(message.environmentName);
18058
18587
  }
@@ -18079,13 +18608,6 @@ var FunctionGetRequest = {
18079
18608
  message.objectTag = reader.string();
18080
18609
  continue;
18081
18610
  }
18082
- case 3: {
18083
- if (tag !== 24) {
18084
- break;
18085
- }
18086
- message.namespace = reader.int32();
18087
- continue;
18088
- }
18089
18611
  case 4: {
18090
18612
  if (tag !== 34) {
18091
18613
  break;
@@ -18105,7 +18627,6 @@ var FunctionGetRequest = {
18105
18627
  return {
18106
18628
  appName: isSet3(object.appName) ? globalThis.String(object.appName) : "",
18107
18629
  objectTag: isSet3(object.objectTag) ? globalThis.String(object.objectTag) : "",
18108
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
18109
18630
  environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : ""
18110
18631
  };
18111
18632
  },
@@ -18117,9 +18638,6 @@ var FunctionGetRequest = {
18117
18638
  if (message.objectTag !== "") {
18118
18639
  obj.objectTag = message.objectTag;
18119
18640
  }
18120
- if (message.namespace !== 0) {
18121
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
18122
- }
18123
18641
  if (message.environmentName !== "") {
18124
18642
  obj.environmentName = message.environmentName;
18125
18643
  }
@@ -18132,7 +18650,6 @@ var FunctionGetRequest = {
18132
18650
  const message = createBaseFunctionGetRequest();
18133
18651
  message.appName = object.appName ?? "";
18134
18652
  message.objectTag = object.objectTag ?? "";
18135
- message.namespace = object.namespace ?? 0;
18136
18653
  message.environmentName = object.environmentName ?? "";
18137
18654
  return message;
18138
18655
  }
@@ -18351,7 +18868,8 @@ function createBaseFunctionHandleMetadata() {
18351
18868
  classParameterInfo: void 0,
18352
18869
  methodHandleMetadata: {},
18353
18870
  functionSchema: void 0,
18354
- inputPlaneUrl: void 0
18871
+ inputPlaneUrl: void 0,
18872
+ inputPlaneRegion: void 0
18355
18873
  };
18356
18874
  }
18357
18875
  var FunctionHandleMetadata = {
@@ -18389,6 +18907,9 @@ var FunctionHandleMetadata = {
18389
18907
  if (message.inputPlaneUrl !== void 0) {
18390
18908
  writer.uint32(370).string(message.inputPlaneUrl);
18391
18909
  }
18910
+ if (message.inputPlaneRegion !== void 0) {
18911
+ writer.uint32(378).string(message.inputPlaneRegion);
18912
+ }
18392
18913
  return writer;
18393
18914
  },
18394
18915
  decode(input, length) {
@@ -18478,6 +18999,13 @@ var FunctionHandleMetadata = {
18478
18999
  message.inputPlaneUrl = reader.string();
18479
19000
  continue;
18480
19001
  }
19002
+ case 47: {
19003
+ if (tag !== 378) {
19004
+ break;
19005
+ }
19006
+ message.inputPlaneRegion = reader.string();
19007
+ continue;
19008
+ }
18481
19009
  }
18482
19010
  if ((tag & 7) === 4 || tag === 0) {
18483
19011
  break;
@@ -18504,7 +19032,8 @@ var FunctionHandleMetadata = {
18504
19032
  {}
18505
19033
  ) : {},
18506
19034
  functionSchema: isSet3(object.functionSchema) ? FunctionSchema.fromJSON(object.functionSchema) : void 0,
18507
- inputPlaneUrl: isSet3(object.inputPlaneUrl) ? globalThis.String(object.inputPlaneUrl) : void 0
19035
+ inputPlaneUrl: isSet3(object.inputPlaneUrl) ? globalThis.String(object.inputPlaneUrl) : void 0,
19036
+ inputPlaneRegion: isSet3(object.inputPlaneRegion) ? globalThis.String(object.inputPlaneRegion) : void 0
18508
19037
  };
18509
19038
  },
18510
19039
  toJSON(message) {
@@ -18548,6 +19077,9 @@ var FunctionHandleMetadata = {
18548
19077
  if (message.inputPlaneUrl !== void 0) {
18549
19078
  obj.inputPlaneUrl = message.inputPlaneUrl;
18550
19079
  }
19080
+ if (message.inputPlaneRegion !== void 0) {
19081
+ obj.inputPlaneRegion = message.inputPlaneRegion;
19082
+ }
18551
19083
  return obj;
18552
19084
  },
18553
19085
  create(base) {
@@ -18571,6 +19103,7 @@ var FunctionHandleMetadata = {
18571
19103
  }, {});
18572
19104
  message.functionSchema = object.functionSchema !== void 0 && object.functionSchema !== null ? FunctionSchema.fromPartial(object.functionSchema) : void 0;
18573
19105
  message.inputPlaneUrl = object.inputPlaneUrl ?? void 0;
19106
+ message.inputPlaneRegion = object.inputPlaneRegion ?? void 0;
18574
19107
  return message;
18575
19108
  }
18576
19109
  };
@@ -19673,7 +20206,7 @@ var FunctionPrecreateResponse = {
19673
20206
  }
19674
20207
  };
19675
20208
  function createBaseFunctionPutInputsItem() {
19676
- return { idx: 0, input: void 0 };
20209
+ return { idx: 0, input: void 0, r2Failed: false, r2LatencyMs: 0 };
19677
20210
  }
19678
20211
  var FunctionPutInputsItem = {
19679
20212
  encode(message, writer = new BinaryWriter()) {
@@ -19683,6 +20216,12 @@ var FunctionPutInputsItem = {
19683
20216
  if (message.input !== void 0) {
19684
20217
  FunctionInput.encode(message.input, writer.uint32(18).fork()).join();
19685
20218
  }
20219
+ if (message.r2Failed !== false) {
20220
+ writer.uint32(24).bool(message.r2Failed);
20221
+ }
20222
+ if (message.r2LatencyMs !== 0) {
20223
+ writer.uint32(32).uint64(message.r2LatencyMs);
20224
+ }
19686
20225
  return writer;
19687
20226
  },
19688
20227
  decode(input, length) {
@@ -19706,6 +20245,20 @@ var FunctionPutInputsItem = {
19706
20245
  message.input = FunctionInput.decode(reader, reader.uint32());
19707
20246
  continue;
19708
20247
  }
20248
+ case 3: {
20249
+ if (tag !== 24) {
20250
+ break;
20251
+ }
20252
+ message.r2Failed = reader.bool();
20253
+ continue;
20254
+ }
20255
+ case 4: {
20256
+ if (tag !== 32) {
20257
+ break;
20258
+ }
20259
+ message.r2LatencyMs = longToNumber(reader.uint64());
20260
+ continue;
20261
+ }
19709
20262
  }
19710
20263
  if ((tag & 7) === 4 || tag === 0) {
19711
20264
  break;
@@ -19717,7 +20270,9 @@ var FunctionPutInputsItem = {
19717
20270
  fromJSON(object) {
19718
20271
  return {
19719
20272
  idx: isSet3(object.idx) ? globalThis.Number(object.idx) : 0,
19720
- input: isSet3(object.input) ? FunctionInput.fromJSON(object.input) : void 0
20273
+ input: isSet3(object.input) ? FunctionInput.fromJSON(object.input) : void 0,
20274
+ r2Failed: isSet3(object.r2Failed) ? globalThis.Boolean(object.r2Failed) : false,
20275
+ r2LatencyMs: isSet3(object.r2LatencyMs) ? globalThis.Number(object.r2LatencyMs) : 0
19721
20276
  };
19722
20277
  },
19723
20278
  toJSON(message) {
@@ -19728,6 +20283,12 @@ var FunctionPutInputsItem = {
19728
20283
  if (message.input !== void 0) {
19729
20284
  obj.input = FunctionInput.toJSON(message.input);
19730
20285
  }
20286
+ if (message.r2Failed !== false) {
20287
+ obj.r2Failed = message.r2Failed;
20288
+ }
20289
+ if (message.r2LatencyMs !== 0) {
20290
+ obj.r2LatencyMs = Math.round(message.r2LatencyMs);
20291
+ }
19731
20292
  return obj;
19732
20293
  },
19733
20294
  create(base) {
@@ -19737,6 +20298,8 @@ var FunctionPutInputsItem = {
19737
20298
  const message = createBaseFunctionPutInputsItem();
19738
20299
  message.idx = object.idx ?? 0;
19739
20300
  message.input = object.input !== void 0 && object.input !== null ? FunctionInput.fromPartial(object.input) : void 0;
20301
+ message.r2Failed = object.r2Failed ?? false;
20302
+ message.r2LatencyMs = object.r2LatencyMs ?? 0;
19740
20303
  return message;
19741
20304
  }
19742
20305
  };
@@ -21127,7 +21690,8 @@ function createBaseImage() {
21127
21690
  buildFunctionGlobals: new Uint8Array(0),
21128
21691
  runtime: "",
21129
21692
  runtimeDebug: false,
21130
- buildFunction: void 0
21693
+ buildFunction: void 0,
21694
+ buildArgs: {}
21131
21695
  };
21132
21696
  }
21133
21697
  var Image = {
@@ -21171,6 +21735,9 @@ var Image = {
21171
21735
  if (message.buildFunction !== void 0) {
21172
21736
  BuildFunction.encode(message.buildFunction, writer.uint32(170).fork()).join();
21173
21737
  }
21738
+ Object.entries(message.buildArgs).forEach(([key, value]) => {
21739
+ Image_BuildArgsEntry.encode({ key, value }, writer.uint32(178).fork()).join();
21740
+ });
21174
21741
  return writer;
21175
21742
  },
21176
21743
  decode(input, length) {
@@ -21271,6 +21838,16 @@ var Image = {
21271
21838
  message.buildFunction = BuildFunction.decode(reader, reader.uint32());
21272
21839
  continue;
21273
21840
  }
21841
+ case 22: {
21842
+ if (tag !== 178) {
21843
+ break;
21844
+ }
21845
+ const entry22 = Image_BuildArgsEntry.decode(reader, reader.uint32());
21846
+ if (entry22.value !== void 0) {
21847
+ message.buildArgs[entry22.key] = entry22.value;
21848
+ }
21849
+ continue;
21850
+ }
21274
21851
  }
21275
21852
  if ((tag & 7) === 4 || tag === 0) {
21276
21853
  break;
@@ -21293,7 +21870,11 @@ var Image = {
21293
21870
  buildFunctionGlobals: isSet3(object.buildFunctionGlobals) ? bytesFromBase64(object.buildFunctionGlobals) : new Uint8Array(0),
21294
21871
  runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : "",
21295
21872
  runtimeDebug: isSet3(object.runtimeDebug) ? globalThis.Boolean(object.runtimeDebug) : false,
21296
- buildFunction: isSet3(object.buildFunction) ? BuildFunction.fromJSON(object.buildFunction) : void 0
21873
+ buildFunction: isSet3(object.buildFunction) ? BuildFunction.fromJSON(object.buildFunction) : void 0,
21874
+ buildArgs: isObject2(object.buildArgs) ? Object.entries(object.buildArgs).reduce((acc, [key, value]) => {
21875
+ acc[key] = String(value);
21876
+ return acc;
21877
+ }, {}) : {}
21297
21878
  };
21298
21879
  },
21299
21880
  toJSON(message) {
@@ -21337,6 +21918,15 @@ var Image = {
21337
21918
  if (message.buildFunction !== void 0) {
21338
21919
  obj.buildFunction = BuildFunction.toJSON(message.buildFunction);
21339
21920
  }
21921
+ if (message.buildArgs) {
21922
+ const entries = Object.entries(message.buildArgs);
21923
+ if (entries.length > 0) {
21924
+ obj.buildArgs = {};
21925
+ entries.forEach(([k, v]) => {
21926
+ obj.buildArgs[k] = v;
21927
+ });
21928
+ }
21929
+ }
21340
21930
  return obj;
21341
21931
  },
21342
21932
  create(base) {
@@ -21357,6 +21947,83 @@ var Image = {
21357
21947
  message.runtime = object.runtime ?? "";
21358
21948
  message.runtimeDebug = object.runtimeDebug ?? false;
21359
21949
  message.buildFunction = object.buildFunction !== void 0 && object.buildFunction !== null ? BuildFunction.fromPartial(object.buildFunction) : void 0;
21950
+ message.buildArgs = Object.entries(object.buildArgs ?? {}).reduce(
21951
+ (acc, [key, value]) => {
21952
+ if (value !== void 0) {
21953
+ acc[key] = globalThis.String(value);
21954
+ }
21955
+ return acc;
21956
+ },
21957
+ {}
21958
+ );
21959
+ return message;
21960
+ }
21961
+ };
21962
+ function createBaseImage_BuildArgsEntry() {
21963
+ return { key: "", value: "" };
21964
+ }
21965
+ var Image_BuildArgsEntry = {
21966
+ encode(message, writer = new BinaryWriter()) {
21967
+ if (message.key !== "") {
21968
+ writer.uint32(10).string(message.key);
21969
+ }
21970
+ if (message.value !== "") {
21971
+ writer.uint32(18).string(message.value);
21972
+ }
21973
+ return writer;
21974
+ },
21975
+ decode(input, length) {
21976
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
21977
+ let end = length === void 0 ? reader.len : reader.pos + length;
21978
+ const message = createBaseImage_BuildArgsEntry();
21979
+ while (reader.pos < end) {
21980
+ const tag = reader.uint32();
21981
+ switch (tag >>> 3) {
21982
+ case 1: {
21983
+ if (tag !== 10) {
21984
+ break;
21985
+ }
21986
+ message.key = reader.string();
21987
+ continue;
21988
+ }
21989
+ case 2: {
21990
+ if (tag !== 18) {
21991
+ break;
21992
+ }
21993
+ message.value = reader.string();
21994
+ continue;
21995
+ }
21996
+ }
21997
+ if ((tag & 7) === 4 || tag === 0) {
21998
+ break;
21999
+ }
22000
+ reader.skip(tag & 7);
22001
+ }
22002
+ return message;
22003
+ },
22004
+ fromJSON(object) {
22005
+ return {
22006
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
22007
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
22008
+ };
22009
+ },
22010
+ toJSON(message) {
22011
+ const obj = {};
22012
+ if (message.key !== "") {
22013
+ obj.key = message.key;
22014
+ }
22015
+ if (message.value !== "") {
22016
+ obj.value = message.value;
22017
+ }
22018
+ return obj;
22019
+ },
22020
+ create(base) {
22021
+ return Image_BuildArgsEntry.fromPartial(base ?? {});
22022
+ },
22023
+ fromPartial(object) {
22024
+ const message = createBaseImage_BuildArgsEntry();
22025
+ message.key = object.key ?? "";
22026
+ message.value = object.value ?? "";
21360
22027
  return message;
21361
22028
  }
21362
22029
  };
@@ -23323,6 +23990,59 @@ var MultiPartUpload = {
23323
23990
  return message;
23324
23991
  }
23325
23992
  };
23993
+ function createBaseMultiPartUploadList() {
23994
+ return { items: [] };
23995
+ }
23996
+ var MultiPartUploadList = {
23997
+ encode(message, writer = new BinaryWriter()) {
23998
+ for (const v of message.items) {
23999
+ MultiPartUpload.encode(v, writer.uint32(10).fork()).join();
24000
+ }
24001
+ return writer;
24002
+ },
24003
+ decode(input, length) {
24004
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24005
+ let end = length === void 0 ? reader.len : reader.pos + length;
24006
+ const message = createBaseMultiPartUploadList();
24007
+ while (reader.pos < end) {
24008
+ const tag = reader.uint32();
24009
+ switch (tag >>> 3) {
24010
+ case 1: {
24011
+ if (tag !== 10) {
24012
+ break;
24013
+ }
24014
+ message.items.push(MultiPartUpload.decode(reader, reader.uint32()));
24015
+ continue;
24016
+ }
24017
+ }
24018
+ if ((tag & 7) === 4 || tag === 0) {
24019
+ break;
24020
+ }
24021
+ reader.skip(tag & 7);
24022
+ }
24023
+ return message;
24024
+ },
24025
+ fromJSON(object) {
24026
+ return {
24027
+ items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => MultiPartUpload.fromJSON(e)) : []
24028
+ };
24029
+ },
24030
+ toJSON(message) {
24031
+ const obj = {};
24032
+ if (message.items?.length) {
24033
+ obj.items = message.items.map((e) => MultiPartUpload.toJSON(e));
24034
+ }
24035
+ return obj;
24036
+ },
24037
+ create(base) {
24038
+ return MultiPartUploadList.fromPartial(base ?? {});
24039
+ },
24040
+ fromPartial(object) {
24041
+ const message = createBaseMultiPartUploadList();
24042
+ message.items = object.items?.map((e) => MultiPartUpload.fromPartial(e)) || [];
24043
+ return message;
24044
+ }
24045
+ };
23326
24046
  function createBaseNetworkAccess() {
23327
24047
  return { networkAccessType: 0, allowedCidrs: [] };
23328
24048
  }
@@ -24904,16 +25624,13 @@ var ProxyDeleteRequest = {
24904
25624
  }
24905
25625
  };
24906
25626
  function createBaseProxyGetOrCreateRequest() {
24907
- return { deploymentName: "", namespace: 0, environmentName: "", objectCreationType: 0 };
25627
+ return { deploymentName: "", environmentName: "", objectCreationType: 0 };
24908
25628
  }
24909
25629
  var ProxyGetOrCreateRequest = {
24910
25630
  encode(message, writer = new BinaryWriter()) {
24911
25631
  if (message.deploymentName !== "") {
24912
25632
  writer.uint32(10).string(message.deploymentName);
24913
25633
  }
24914
- if (message.namespace !== 0) {
24915
- writer.uint32(16).int32(message.namespace);
24916
- }
24917
25634
  if (message.environmentName !== "") {
24918
25635
  writer.uint32(26).string(message.environmentName);
24919
25636
  }
@@ -24936,13 +25653,6 @@ var ProxyGetOrCreateRequest = {
24936
25653
  message.deploymentName = reader.string();
24937
25654
  continue;
24938
25655
  }
24939
- case 2: {
24940
- if (tag !== 16) {
24941
- break;
24942
- }
24943
- message.namespace = reader.int32();
24944
- continue;
24945
- }
24946
25656
  case 3: {
24947
25657
  if (tag !== 26) {
24948
25658
  break;
@@ -24968,7 +25678,6 @@ var ProxyGetOrCreateRequest = {
24968
25678
  fromJSON(object) {
24969
25679
  return {
24970
25680
  deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
24971
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
24972
25681
  environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
24973
25682
  objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0
24974
25683
  };
@@ -24978,9 +25687,6 @@ var ProxyGetOrCreateRequest = {
24978
25687
  if (message.deploymentName !== "") {
24979
25688
  obj.deploymentName = message.deploymentName;
24980
25689
  }
24981
- if (message.namespace !== 0) {
24982
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
24983
- }
24984
25690
  if (message.environmentName !== "") {
24985
25691
  obj.environmentName = message.environmentName;
24986
25692
  }
@@ -24995,7 +25701,6 @@ var ProxyGetOrCreateRequest = {
24995
25701
  fromPartial(object) {
24996
25702
  const message = createBaseProxyGetOrCreateRequest();
24997
25703
  message.deploymentName = object.deploymentName ?? "";
24998
- message.namespace = object.namespace ?? 0;
24999
25704
  message.environmentName = object.environmentName ?? "";
25000
25705
  message.objectCreationType = object.objectCreationType ?? 0;
25001
25706
  return message;
@@ -25508,16 +26213,13 @@ var QueueDeleteRequest = {
25508
26213
  }
25509
26214
  };
25510
26215
  function createBaseQueueGetOrCreateRequest() {
25511
- return { deploymentName: "", namespace: 0, environmentName: "", objectCreationType: 0 };
26216
+ return { deploymentName: "", environmentName: "", objectCreationType: 0 };
25512
26217
  }
25513
26218
  var QueueGetOrCreateRequest = {
25514
26219
  encode(message, writer = new BinaryWriter()) {
25515
26220
  if (message.deploymentName !== "") {
25516
26221
  writer.uint32(10).string(message.deploymentName);
25517
26222
  }
25518
- if (message.namespace !== 0) {
25519
- writer.uint32(16).int32(message.namespace);
25520
- }
25521
26223
  if (message.environmentName !== "") {
25522
26224
  writer.uint32(26).string(message.environmentName);
25523
26225
  }
@@ -25540,13 +26242,6 @@ var QueueGetOrCreateRequest = {
25540
26242
  message.deploymentName = reader.string();
25541
26243
  continue;
25542
26244
  }
25543
- case 2: {
25544
- if (tag !== 16) {
25545
- break;
25546
- }
25547
- message.namespace = reader.int32();
25548
- continue;
25549
- }
25550
26245
  case 3: {
25551
26246
  if (tag !== 26) {
25552
26247
  break;
@@ -25572,7 +26267,6 @@ var QueueGetOrCreateRequest = {
25572
26267
  fromJSON(object) {
25573
26268
  return {
25574
26269
  deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
25575
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
25576
26270
  environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
25577
26271
  objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0
25578
26272
  };
@@ -25582,9 +26276,6 @@ var QueueGetOrCreateRequest = {
25582
26276
  if (message.deploymentName !== "") {
25583
26277
  obj.deploymentName = message.deploymentName;
25584
26278
  }
25585
- if (message.namespace !== 0) {
25586
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
25587
- }
25588
26279
  if (message.environmentName !== "") {
25589
26280
  obj.environmentName = message.environmentName;
25590
26281
  }
@@ -25599,7 +26290,6 @@ var QueueGetOrCreateRequest = {
25599
26290
  fromPartial(object) {
25600
26291
  const message = createBaseQueueGetOrCreateRequest();
25601
26292
  message.deploymentName = object.deploymentName ?? "";
25602
- message.namespace = object.namespace ?? 0;
25603
26293
  message.environmentName = object.environmentName ?? "";
25604
26294
  message.objectCreationType = object.objectCreationType ?? 0;
25605
26295
  return message;
@@ -27166,7 +27856,8 @@ function createBaseSandbox() {
27166
27856
  snapshotVersion: void 0,
27167
27857
  cloudProviderStr: "",
27168
27858
  runscRuntimeVersion: void 0,
27169
- runtime: void 0
27859
+ runtime: void 0,
27860
+ verbose: false
27170
27861
  };
27171
27862
  }
27172
27863
  var Sandbox = {
@@ -27249,6 +27940,9 @@ var Sandbox = {
27249
27940
  if (message.runtime !== void 0) {
27250
27941
  writer.uint32(226).string(message.runtime);
27251
27942
  }
27943
+ if (message.verbose !== false) {
27944
+ writer.uint32(232).bool(message.verbose);
27945
+ }
27252
27946
  return writer;
27253
27947
  },
27254
27948
  decode(input, length) {
@@ -27440,6 +28134,13 @@ var Sandbox = {
27440
28134
  message.runtime = reader.string();
27441
28135
  continue;
27442
28136
  }
28137
+ case 29: {
28138
+ if (tag !== 232) {
28139
+ break;
28140
+ }
28141
+ message.verbose = reader.bool();
28142
+ continue;
28143
+ }
27443
28144
  }
27444
28145
  if ((tag & 7) === 4 || tag === 0) {
27445
28146
  break;
@@ -27475,7 +28176,8 @@ var Sandbox = {
27475
28176
  snapshotVersion: isSet3(object.snapshotVersion) ? globalThis.Number(object.snapshotVersion) : void 0,
27476
28177
  cloudProviderStr: isSet3(object.cloudProviderStr) ? globalThis.String(object.cloudProviderStr) : "",
27477
28178
  runscRuntimeVersion: isSet3(object.runscRuntimeVersion) ? globalThis.String(object.runscRuntimeVersion) : void 0,
27478
- runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : void 0
28179
+ runtime: isSet3(object.runtime) ? globalThis.String(object.runtime) : void 0,
28180
+ verbose: isSet3(object.verbose) ? globalThis.Boolean(object.verbose) : false
27479
28181
  };
27480
28182
  },
27481
28183
  toJSON(message) {
@@ -27558,6 +28260,9 @@ var Sandbox = {
27558
28260
  if (message.runtime !== void 0) {
27559
28261
  obj.runtime = message.runtime;
27560
28262
  }
28263
+ if (message.verbose !== false) {
28264
+ obj.verbose = message.verbose;
28265
+ }
27561
28266
  return obj;
27562
28267
  },
27563
28268
  create(base) {
@@ -27591,6 +28296,7 @@ var Sandbox = {
27591
28296
  message.cloudProviderStr = object.cloudProviderStr ?? "";
27592
28297
  message.runscRuntimeVersion = object.runscRuntimeVersion ?? void 0;
27593
28298
  message.runtime = object.runtime ?? void 0;
28299
+ message.verbose = object.verbose ?? false;
27594
28300
  return message;
27595
28301
  }
27596
28302
  };
@@ -28314,7 +29020,7 @@ var SandboxHandleMetadata = {
28314
29020
  }
28315
29021
  };
28316
29022
  function createBaseSandboxInfo() {
28317
- return { id: "", createdAt: 0, taskInfo: void 0, appId: "" };
29023
+ return { id: "", createdAt: 0, taskInfo: void 0, appId: "", tags: [] };
28318
29024
  }
28319
29025
  var SandboxInfo = {
28320
29026
  encode(message, writer = new BinaryWriter()) {
@@ -28330,6 +29036,9 @@ var SandboxInfo = {
28330
29036
  if (message.appId !== "") {
28331
29037
  writer.uint32(42).string(message.appId);
28332
29038
  }
29039
+ for (const v of message.tags) {
29040
+ SandboxTag.encode(v, writer.uint32(50).fork()).join();
29041
+ }
28333
29042
  return writer;
28334
29043
  },
28335
29044
  decode(input, length) {
@@ -28367,6 +29076,13 @@ var SandboxInfo = {
28367
29076
  message.appId = reader.string();
28368
29077
  continue;
28369
29078
  }
29079
+ case 6: {
29080
+ if (tag !== 50) {
29081
+ break;
29082
+ }
29083
+ message.tags.push(SandboxTag.decode(reader, reader.uint32()));
29084
+ continue;
29085
+ }
28370
29086
  }
28371
29087
  if ((tag & 7) === 4 || tag === 0) {
28372
29088
  break;
@@ -28380,7 +29096,8 @@ var SandboxInfo = {
28380
29096
  id: isSet3(object.id) ? globalThis.String(object.id) : "",
28381
29097
  createdAt: isSet3(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
28382
29098
  taskInfo: isSet3(object.taskInfo) ? TaskInfo.fromJSON(object.taskInfo) : void 0,
28383
- appId: isSet3(object.appId) ? globalThis.String(object.appId) : ""
29099
+ appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
29100
+ tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => SandboxTag.fromJSON(e)) : []
28384
29101
  };
28385
29102
  },
28386
29103
  toJSON(message) {
@@ -28397,6 +29114,9 @@ var SandboxInfo = {
28397
29114
  if (message.appId !== "") {
28398
29115
  obj.appId = message.appId;
28399
29116
  }
29117
+ if (message.tags?.length) {
29118
+ obj.tags = message.tags.map((e) => SandboxTag.toJSON(e));
29119
+ }
28400
29120
  return obj;
28401
29121
  },
28402
29122
  create(base) {
@@ -28408,6 +29128,7 @@ var SandboxInfo = {
28408
29128
  message.createdAt = object.createdAt ?? 0;
28409
29129
  message.taskInfo = object.taskInfo !== void 0 && object.taskInfo !== null ? TaskInfo.fromPartial(object.taskInfo) : void 0;
28410
29130
  message.appId = object.appId ?? "";
29131
+ message.tags = object.tags?.map((e) => SandboxTag.fromPartial(e)) || [];
28411
29132
  return message;
28412
29133
  }
28413
29134
  };
@@ -30089,24 +30810,13 @@ var SecretDeleteRequest = {
30089
30810
  }
30090
30811
  };
30091
30812
  function createBaseSecretGetOrCreateRequest() {
30092
- return {
30093
- deploymentName: "",
30094
- namespace: 0,
30095
- environmentName: "",
30096
- objectCreationType: 0,
30097
- envDict: {},
30098
- appId: "",
30099
- requiredKeys: []
30100
- };
30813
+ return { deploymentName: "", environmentName: "", objectCreationType: 0, envDict: {}, appId: "", requiredKeys: [] };
30101
30814
  }
30102
30815
  var SecretGetOrCreateRequest = {
30103
30816
  encode(message, writer = new BinaryWriter()) {
30104
30817
  if (message.deploymentName !== "") {
30105
30818
  writer.uint32(10).string(message.deploymentName);
30106
30819
  }
30107
- if (message.namespace !== 0) {
30108
- writer.uint32(16).int32(message.namespace);
30109
- }
30110
30820
  if (message.environmentName !== "") {
30111
30821
  writer.uint32(26).string(message.environmentName);
30112
30822
  }
@@ -30138,13 +30848,6 @@ var SecretGetOrCreateRequest = {
30138
30848
  message.deploymentName = reader.string();
30139
30849
  continue;
30140
30850
  }
30141
- case 2: {
30142
- if (tag !== 16) {
30143
- break;
30144
- }
30145
- message.namespace = reader.int32();
30146
- continue;
30147
- }
30148
30851
  case 3: {
30149
30852
  if (tag !== 26) {
30150
30853
  break;
@@ -30194,7 +30897,6 @@ var SecretGetOrCreateRequest = {
30194
30897
  fromJSON(object) {
30195
30898
  return {
30196
30899
  deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
30197
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
30198
30900
  environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
30199
30901
  objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
30200
30902
  envDict: isObject2(object.envDict) ? Object.entries(object.envDict).reduce((acc, [key, value]) => {
@@ -30210,9 +30912,6 @@ var SecretGetOrCreateRequest = {
30210
30912
  if (message.deploymentName !== "") {
30211
30913
  obj.deploymentName = message.deploymentName;
30212
30914
  }
30213
- if (message.namespace !== 0) {
30214
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
30215
- }
30216
30915
  if (message.environmentName !== "") {
30217
30916
  obj.environmentName = message.environmentName;
30218
30917
  }
@@ -30242,7 +30941,6 @@ var SecretGetOrCreateRequest = {
30242
30941
  fromPartial(object) {
30243
30942
  const message = createBaseSecretGetOrCreateRequest();
30244
30943
  message.deploymentName = object.deploymentName ?? "";
30245
- message.namespace = object.namespace ?? 0;
30246
30944
  message.environmentName = object.environmentName ?? "";
30247
30945
  message.objectCreationType = object.objectCreationType ?? 0;
30248
30946
  message.envDict = Object.entries(object.envDict ?? {}).reduce((acc, [key, value]) => {
@@ -30795,16 +31493,13 @@ var SharedVolumeGetFileResponse = {
30795
31493
  }
30796
31494
  };
30797
31495
  function createBaseSharedVolumeGetOrCreateRequest() {
30798
- return { deploymentName: "", namespace: 0, environmentName: "", objectCreationType: 0, appId: "" };
31496
+ return { deploymentName: "", environmentName: "", objectCreationType: 0, appId: "" };
30799
31497
  }
30800
31498
  var SharedVolumeGetOrCreateRequest = {
30801
31499
  encode(message, writer = new BinaryWriter()) {
30802
31500
  if (message.deploymentName !== "") {
30803
31501
  writer.uint32(10).string(message.deploymentName);
30804
31502
  }
30805
- if (message.namespace !== 0) {
30806
- writer.uint32(16).int32(message.namespace);
30807
- }
30808
31503
  if (message.environmentName !== "") {
30809
31504
  writer.uint32(26).string(message.environmentName);
30810
31505
  }
@@ -30830,13 +31525,6 @@ var SharedVolumeGetOrCreateRequest = {
30830
31525
  message.deploymentName = reader.string();
30831
31526
  continue;
30832
31527
  }
30833
- case 2: {
30834
- if (tag !== 16) {
30835
- break;
30836
- }
30837
- message.namespace = reader.int32();
30838
- continue;
30839
- }
30840
31528
  case 3: {
30841
31529
  if (tag !== 26) {
30842
31530
  break;
@@ -30869,7 +31557,6 @@ var SharedVolumeGetOrCreateRequest = {
30869
31557
  fromJSON(object) {
30870
31558
  return {
30871
31559
  deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
30872
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
30873
31560
  environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
30874
31561
  objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
30875
31562
  appId: isSet3(object.appId) ? globalThis.String(object.appId) : ""
@@ -30880,9 +31567,6 @@ var SharedVolumeGetOrCreateRequest = {
30880
31567
  if (message.deploymentName !== "") {
30881
31568
  obj.deploymentName = message.deploymentName;
30882
31569
  }
30883
- if (message.namespace !== 0) {
30884
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
30885
- }
30886
31570
  if (message.environmentName !== "") {
30887
31571
  obj.environmentName = message.environmentName;
30888
31572
  }
@@ -30900,7 +31584,6 @@ var SharedVolumeGetOrCreateRequest = {
30900
31584
  fromPartial(object) {
30901
31585
  const message = createBaseSharedVolumeGetOrCreateRequest();
30902
31586
  message.deploymentName = object.deploymentName ?? "";
30903
- message.namespace = object.namespace ?? 0;
30904
31587
  message.environmentName = object.environmentName ?? "";
30905
31588
  message.objectCreationType = object.objectCreationType ?? 0;
30906
31589
  message.appId = object.appId ?? "";
@@ -31980,7 +32663,7 @@ var TaskCurrentInputsResponse = {
31980
32663
  }
31981
32664
  };
31982
32665
  function createBaseTaskInfo() {
31983
- return { id: "", startedAt: 0, finishedAt: 0, result: void 0, enqueuedAt: 0, gpuType: "" };
32666
+ return { id: "", startedAt: 0, finishedAt: 0, result: void 0, enqueuedAt: 0, gpuType: "", sandboxId: "" };
31984
32667
  }
31985
32668
  var TaskInfo = {
31986
32669
  encode(message, writer = new BinaryWriter()) {
@@ -32002,6 +32685,9 @@ var TaskInfo = {
32002
32685
  if (message.gpuType !== "") {
32003
32686
  writer.uint32(50).string(message.gpuType);
32004
32687
  }
32688
+ if (message.sandboxId !== "") {
32689
+ writer.uint32(58).string(message.sandboxId);
32690
+ }
32005
32691
  return writer;
32006
32692
  },
32007
32693
  decode(input, length) {
@@ -32053,6 +32739,13 @@ var TaskInfo = {
32053
32739
  message.gpuType = reader.string();
32054
32740
  continue;
32055
32741
  }
32742
+ case 7: {
32743
+ if (tag !== 58) {
32744
+ break;
32745
+ }
32746
+ message.sandboxId = reader.string();
32747
+ continue;
32748
+ }
32056
32749
  }
32057
32750
  if ((tag & 7) === 4 || tag === 0) {
32058
32751
  break;
@@ -32068,7 +32761,8 @@ var TaskInfo = {
32068
32761
  finishedAt: isSet3(object.finishedAt) ? globalThis.Number(object.finishedAt) : 0,
32069
32762
  result: isSet3(object.result) ? GenericResult.fromJSON(object.result) : void 0,
32070
32763
  enqueuedAt: isSet3(object.enqueuedAt) ? globalThis.Number(object.enqueuedAt) : 0,
32071
- gpuType: isSet3(object.gpuType) ? globalThis.String(object.gpuType) : ""
32764
+ gpuType: isSet3(object.gpuType) ? globalThis.String(object.gpuType) : "",
32765
+ sandboxId: isSet3(object.sandboxId) ? globalThis.String(object.sandboxId) : ""
32072
32766
  };
32073
32767
  },
32074
32768
  toJSON(message) {
@@ -32091,6 +32785,9 @@ var TaskInfo = {
32091
32785
  if (message.gpuType !== "") {
32092
32786
  obj.gpuType = message.gpuType;
32093
32787
  }
32788
+ if (message.sandboxId !== "") {
32789
+ obj.sandboxId = message.sandboxId;
32790
+ }
32094
32791
  return obj;
32095
32792
  },
32096
32793
  create(base) {
@@ -32104,6 +32801,7 @@ var TaskInfo = {
32104
32801
  message.result = object.result !== void 0 && object.result !== null ? GenericResult.fromPartial(object.result) : void 0;
32105
32802
  message.enqueuedAt = object.enqueuedAt ?? 0;
32106
32803
  message.gpuType = object.gpuType ?? "";
32804
+ message.sandboxId = object.sandboxId ?? "";
32107
32805
  return message;
32108
32806
  }
32109
32807
  };
@@ -33695,6 +34393,57 @@ var TunnelStopResponse = {
33695
34393
  return message;
33696
34394
  }
33697
34395
  };
34396
+ function createBaseUploadUrlList() {
34397
+ return { items: [] };
34398
+ }
34399
+ var UploadUrlList = {
34400
+ encode(message, writer = new BinaryWriter()) {
34401
+ for (const v of message.items) {
34402
+ writer.uint32(10).string(v);
34403
+ }
34404
+ return writer;
34405
+ },
34406
+ decode(input, length) {
34407
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
34408
+ let end = length === void 0 ? reader.len : reader.pos + length;
34409
+ const message = createBaseUploadUrlList();
34410
+ while (reader.pos < end) {
34411
+ const tag = reader.uint32();
34412
+ switch (tag >>> 3) {
34413
+ case 1: {
34414
+ if (tag !== 10) {
34415
+ break;
34416
+ }
34417
+ message.items.push(reader.string());
34418
+ continue;
34419
+ }
34420
+ }
34421
+ if ((tag & 7) === 4 || tag === 0) {
34422
+ break;
34423
+ }
34424
+ reader.skip(tag & 7);
34425
+ }
34426
+ return message;
34427
+ },
34428
+ fromJSON(object) {
34429
+ return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => globalThis.String(e)) : [] };
34430
+ },
34431
+ toJSON(message) {
34432
+ const obj = {};
34433
+ if (message.items?.length) {
34434
+ obj.items = message.items;
34435
+ }
34436
+ return obj;
34437
+ },
34438
+ create(base) {
34439
+ return UploadUrlList.fromPartial(base ?? {});
34440
+ },
34441
+ fromPartial(object) {
34442
+ const message = createBaseUploadUrlList();
34443
+ message.items = object.items?.map((e) => e) || [];
34444
+ return message;
34445
+ }
34446
+ };
33698
34447
  function createBaseVolumeCommitRequest() {
33699
34448
  return { volumeId: "" };
33700
34449
  }
@@ -34469,16 +35218,13 @@ var VolumeGetFileResponse = {
34469
35218
  }
34470
35219
  };
34471
35220
  function createBaseVolumeGetOrCreateRequest() {
34472
- return { deploymentName: "", namespace: 0, environmentName: "", objectCreationType: 0, appId: "", version: 0 };
35221
+ return { deploymentName: "", environmentName: "", objectCreationType: 0, appId: "", version: 0 };
34473
35222
  }
34474
35223
  var VolumeGetOrCreateRequest = {
34475
35224
  encode(message, writer = new BinaryWriter()) {
34476
35225
  if (message.deploymentName !== "") {
34477
35226
  writer.uint32(10).string(message.deploymentName);
34478
35227
  }
34479
- if (message.namespace !== 0) {
34480
- writer.uint32(16).int32(message.namespace);
34481
- }
34482
35228
  if (message.environmentName !== "") {
34483
35229
  writer.uint32(26).string(message.environmentName);
34484
35230
  }
@@ -34507,13 +35253,6 @@ var VolumeGetOrCreateRequest = {
34507
35253
  message.deploymentName = reader.string();
34508
35254
  continue;
34509
35255
  }
34510
- case 2: {
34511
- if (tag !== 16) {
34512
- break;
34513
- }
34514
- message.namespace = reader.int32();
34515
- continue;
34516
- }
34517
35256
  case 3: {
34518
35257
  if (tag !== 26) {
34519
35258
  break;
@@ -34553,7 +35292,6 @@ var VolumeGetOrCreateRequest = {
34553
35292
  fromJSON(object) {
34554
35293
  return {
34555
35294
  deploymentName: isSet3(object.deploymentName) ? globalThis.String(object.deploymentName) : "",
34556
- namespace: isSet3(object.namespace) ? deploymentNamespaceFromJSON(object.namespace) : 0,
34557
35295
  environmentName: isSet3(object.environmentName) ? globalThis.String(object.environmentName) : "",
34558
35296
  objectCreationType: isSet3(object.objectCreationType) ? objectCreationTypeFromJSON(object.objectCreationType) : 0,
34559
35297
  appId: isSet3(object.appId) ? globalThis.String(object.appId) : "",
@@ -34565,9 +35303,6 @@ var VolumeGetOrCreateRequest = {
34565
35303
  if (message.deploymentName !== "") {
34566
35304
  obj.deploymentName = message.deploymentName;
34567
35305
  }
34568
- if (message.namespace !== 0) {
34569
- obj.namespace = deploymentNamespaceToJSON(message.namespace);
34570
- }
34571
35306
  if (message.environmentName !== "") {
34572
35307
  obj.environmentName = message.environmentName;
34573
35308
  }
@@ -34588,7 +35323,6 @@ var VolumeGetOrCreateRequest = {
34588
35323
  fromPartial(object) {
34589
35324
  const message = createBaseVolumeGetOrCreateRequest();
34590
35325
  message.deploymentName = object.deploymentName ?? "";
34591
- message.namespace = object.namespace ?? 0;
34592
35326
  message.environmentName = object.environmentName ?? "";
34593
35327
  message.objectCreationType = object.objectCreationType ?? 0;
34594
35328
  message.appId = object.appId ?? "";
@@ -36841,6 +37575,14 @@ var ModalClientDefinition = {
36841
37575
  responseStream: false,
36842
37576
  options: {}
36843
37577
  },
37578
+ containerReloadVolumes: {
37579
+ name: "ContainerReloadVolumes",
37580
+ requestType: ContainerReloadVolumesRequest,
37581
+ requestStream: false,
37582
+ responseType: ContainerReloadVolumesResponse,
37583
+ responseStream: false,
37584
+ options: {}
37585
+ },
36844
37586
  containerStop: {
36845
37587
  name: "ContainerStop",
36846
37588
  requestType: ContainerStopRequest,
@@ -37004,6 +37746,31 @@ var ModalClientDefinition = {
37004
37746
  responseStream: false,
37005
37747
  options: {}
37006
37748
  },
37749
+ /** Modal Flash (experimental) */
37750
+ flashContainerDeregister: {
37751
+ name: "FlashContainerDeregister",
37752
+ requestType: FlashContainerDeregisterRequest,
37753
+ requestStream: false,
37754
+ responseType: Empty,
37755
+ responseStream: false,
37756
+ options: {}
37757
+ },
37758
+ flashContainerList: {
37759
+ name: "FlashContainerList",
37760
+ requestType: FlashContainerListRequest,
37761
+ requestStream: false,
37762
+ responseType: FlashContainerListResponse,
37763
+ responseStream: false,
37764
+ options: {}
37765
+ },
37766
+ flashContainerRegister: {
37767
+ name: "FlashContainerRegister",
37768
+ requestType: FlashContainerRegisterRequest,
37769
+ requestStream: false,
37770
+ responseType: FlashContainerRegisterResponse,
37771
+ responseStream: false,
37772
+ options: {}
37773
+ },
37007
37774
  /** Functions */
37008
37775
  functionAsyncInvoke: {
37009
37776
  name: "FunctionAsyncInvoke",
@@ -38079,7 +38846,6 @@ async function fromRegistryInternal(appId, tag, imageRegistryConfig) {
38079
38846
  dockerfileCommands: [`FROM ${tag}`],
38080
38847
  imageRegistryConfig
38081
38848
  },
38082
- namespace: 1 /* DEPLOYMENT_NAMESPACE_WORKSPACE */,
38083
38849
  builderVersion: imageBuilderVersion()
38084
38850
  });
38085
38851
  let result;
@@ -38177,6 +38943,12 @@ var SandboxFilesystemError = class extends Error {
38177
38943
  this.name = "SandboxFilesystemError";
38178
38944
  }
38179
38945
  };
38946
+ var SandboxTimeoutError = class extends Error {
38947
+ constructor(message = "Sandbox operation timed out") {
38948
+ super(message);
38949
+ this.name = "SandboxTimeoutError";
38950
+ }
38951
+ };
38180
38952
 
38181
38953
  // src/sandbox_filesystem.ts
38182
38954
  var SandboxFile = class {
@@ -38389,12 +39161,43 @@ async function consumeIterator(iter) {
38389
39161
  }
38390
39162
 
38391
39163
  // src/sandbox.ts
39164
+ var Tunnel = class {
39165
+ /** @ignore */
39166
+ constructor(host, port, unencryptedHost, unencryptedPort) {
39167
+ this.host = host;
39168
+ this.port = port;
39169
+ this.unencryptedHost = unencryptedHost;
39170
+ this.unencryptedPort = unencryptedPort;
39171
+ }
39172
+ /** Get the public HTTPS URL of the forwarded port. */
39173
+ get url() {
39174
+ let value = `https://${this.host}`;
39175
+ if (this.port !== 443) {
39176
+ value += `:${this.port}`;
39177
+ }
39178
+ return value;
39179
+ }
39180
+ /** Get the public TLS socket as a [host, port] tuple. */
39181
+ get tlsSocket() {
39182
+ return [this.host, this.port];
39183
+ }
39184
+ /** Get the public TCP socket as a [host, port] tuple. */
39185
+ get tcpSocket() {
39186
+ if (!this.unencryptedHost || this.unencryptedPort === void 0) {
39187
+ throw new InvalidError(
39188
+ "This tunnel is not configured for unencrypted TCP."
39189
+ );
39190
+ }
39191
+ return [this.unencryptedHost, this.unencryptedPort];
39192
+ }
39193
+ };
38392
39194
  var Sandbox2 = class {
38393
39195
  sandboxId;
38394
39196
  stdin;
38395
39197
  stdout;
38396
39198
  stderr;
38397
39199
  #taskId;
39200
+ #tunnels;
38398
39201
  /** @ignore */
38399
39202
  constructor(sandboxId) {
38400
39203
  this.sandboxId = sandboxId;
@@ -38472,6 +39275,35 @@ var Sandbox2 = class {
38472
39275
  }
38473
39276
  }
38474
39277
  }
39278
+ /** Get Tunnel metadata for the sandbox.
39279
+ *
39280
+ * Raises `SandboxTimeoutError` if the tunnels are not available after the timeout.
39281
+ *
39282
+ * @returns A dictionary of Tunnel objects which are keyed by the container port.
39283
+ */
39284
+ async tunnels(timeout = 5e4) {
39285
+ if (this.#tunnels) {
39286
+ return this.#tunnels;
39287
+ }
39288
+ const resp = await client.sandboxGetTunnels({
39289
+ sandboxId: this.sandboxId,
39290
+ timeout: timeout / 1e3
39291
+ // Convert to seconds
39292
+ });
39293
+ if (resp.result?.status === 4 /* GENERIC_STATUS_TIMEOUT */) {
39294
+ throw new SandboxTimeoutError();
39295
+ }
39296
+ this.#tunnels = {};
39297
+ for (const t of resp.tunnels) {
39298
+ this.#tunnels[t.containerPort] = new Tunnel(
39299
+ t.host,
39300
+ t.port,
39301
+ t.unencryptedHost,
39302
+ t.unencryptedPort
39303
+ );
39304
+ }
39305
+ return this.#tunnels;
39306
+ }
38475
39307
  };
38476
39308
  var ContainerProcess = class {
38477
39309
  stdin;
@@ -38638,7 +39470,6 @@ var Secret = class _Secret {
38638
39470
  try {
38639
39471
  const resp = await client.secretGetOrCreate({
38640
39472
  deploymentName: name,
38641
- namespace: 1 /* DEPLOYMENT_NAMESPACE_WORKSPACE */,
38642
39473
  environmentName: environmentName(options?.environment),
38643
39474
  requiredKeys: options?.requiredKeys ?? []
38644
39475
  });
@@ -38681,6 +39512,38 @@ var App = class _App {
38681
39512
  `Timeout must be a multiple of 1000ms, got ${options.timeout}`
38682
39513
  );
38683
39514
  }
39515
+ const volumeMounts = options.volumes ? Object.entries(options.volumes).map(([mountPath, volume]) => ({
39516
+ volumeId: volume.volumeId,
39517
+ mountPath,
39518
+ allowBackgroundCommits: true,
39519
+ readOnly: false
39520
+ })) : [];
39521
+ const openPorts = [];
39522
+ if (options.encryptedPorts) {
39523
+ openPorts.push(
39524
+ ...options.encryptedPorts.map((port) => ({
39525
+ port,
39526
+ unencrypted: false
39527
+ }))
39528
+ );
39529
+ }
39530
+ if (options.h2Ports) {
39531
+ openPorts.push(
39532
+ ...options.h2Ports.map((port) => ({
39533
+ port,
39534
+ unencrypted: false,
39535
+ tunnelType: 1 /* TUNNEL_TYPE_H2 */
39536
+ }))
39537
+ );
39538
+ }
39539
+ if (options.unencryptedPorts) {
39540
+ openPorts.push(
39541
+ ...options.unencryptedPorts.map((port) => ({
39542
+ port,
39543
+ unencrypted: true
39544
+ }))
39545
+ );
39546
+ }
38684
39547
  const createResp = await client.sandboxCreate({
38685
39548
  appId: this.appId,
38686
39549
  definition: {
@@ -38695,7 +39558,9 @@ var App = class _App {
38695
39558
  // https://modal.com/docs/guide/resources
38696
39559
  milliCpu: Math.round(1e3 * (options.cpu ?? 0.125)),
38697
39560
  memoryMb: options.memory ?? 128
38698
- }
39561
+ },
39562
+ volumeMounts,
39563
+ openPorts: openPorts.length > 0 ? { ports: openPorts } : void 0
38699
39564
  }
38700
39565
  });
38701
39566
  return new Sandbox2(createResp.sandboxId);
@@ -39176,7 +40041,9 @@ var InputPlaneInvocation = class _InputPlaneInvocation {
39176
40041
  static async create(inputPlaneUrl, functionId, input) {
39177
40042
  const functionPutInputsItem = {
39178
40043
  idx: 0,
39179
- input
40044
+ input,
40045
+ r2Failed: false,
40046
+ r2LatencyMs: 0
39180
40047
  };
39181
40048
  const client2 = getOrCreateInputPlaneClient(inputPlaneUrl);
39182
40049
  const attemptStartResponse = await client2.attemptStart({
@@ -39319,19 +40186,18 @@ var maxSystemRetries = 8;
39319
40186
  var Function_ = class _Function_ {
39320
40187
  functionId;
39321
40188
  methodName;
39322
- inputPlaneUrl;
40189
+ #inputPlaneUrl;
39323
40190
  /** @ignore */
39324
40191
  constructor(functionId, methodName, inputPlaneUrl) {
39325
40192
  this.functionId = functionId;
39326
40193
  this.methodName = methodName;
39327
- this.inputPlaneUrl = inputPlaneUrl;
40194
+ this.#inputPlaneUrl = inputPlaneUrl;
39328
40195
  }
39329
40196
  static async lookup(appName, name, options = {}) {
39330
40197
  try {
39331
40198
  const resp = await client.functionGet({
39332
40199
  appName,
39333
40200
  objectTag: name,
39334
- namespace: 1 /* DEPLOYMENT_NAMESPACE_WORKSPACE */,
39335
40201
  environmentName: environmentName(options.environment)
39336
40202
  });
39337
40203
  return new _Function_(
@@ -39364,9 +40230,9 @@ var Function_ = class _Function_ {
39364
40230
  }
39365
40231
  }
39366
40232
  async #createRemoteInvocation(input) {
39367
- if (this.inputPlaneUrl) {
40233
+ if (this.#inputPlaneUrl) {
39368
40234
  return await InputPlaneInvocation.create(
39369
- this.inputPlaneUrl,
40235
+ this.#inputPlaneUrl,
39370
40236
  this.functionId,
39371
40237
  input
39372
40238
  );
@@ -39438,11 +40304,13 @@ var Cls = class _Cls {
39438
40304
  #serviceFunctionId;
39439
40305
  #schema;
39440
40306
  #methodNames;
40307
+ #inputPlaneUrl;
39441
40308
  /** @ignore */
39442
- constructor(serviceFunctionId, schema, methodNames) {
40309
+ constructor(serviceFunctionId, schema, methodNames, inputPlaneUrl) {
39443
40310
  this.#serviceFunctionId = serviceFunctionId;
39444
40311
  this.#schema = schema;
39445
40312
  this.#methodNames = methodNames;
40313
+ this.#inputPlaneUrl = inputPlaneUrl;
39446
40314
  }
39447
40315
  static async lookup(appName, name, options = {}) {
39448
40316
  try {
@@ -39450,7 +40318,6 @@ var Cls = class _Cls {
39450
40318
  const serviceFunction = await client.functionGet({
39451
40319
  appName,
39452
40320
  objectTag: serviceFunctionName,
39453
- namespace: 1 /* DEPLOYMENT_NAMESPACE_WORKSPACE */,
39454
40321
  environmentName: environmentName(options.environment)
39455
40322
  });
39456
40323
  const parameterInfo = serviceFunction.handleMetadata?.classParameterInfo;
@@ -39470,7 +40337,12 @@ var Cls = class _Cls {
39470
40337
  "Cls requires Modal deployments using client v0.67 or later."
39471
40338
  );
39472
40339
  }
39473
- return new _Cls(serviceFunction.functionId, schema, methodNames);
40340
+ return new _Cls(
40341
+ serviceFunction.functionId,
40342
+ schema,
40343
+ methodNames,
40344
+ serviceFunction.handleMetadata?.inputPlaneUrl
40345
+ );
39474
40346
  } catch (err) {
39475
40347
  if (err instanceof import_nice_grpc5.ClientError && err.code === import_nice_grpc5.Status.NOT_FOUND)
39476
40348
  throw new NotFoundError(`Class '${appName}/${name}' not found`);
@@ -39487,7 +40359,7 @@ var Cls = class _Cls {
39487
40359
  }
39488
40360
  const methods = /* @__PURE__ */ new Map();
39489
40361
  for (const name of this.#methodNames) {
39490
- methods.set(name, new Function_(functionId, name));
40362
+ methods.set(name, new Function_(functionId, name, this.#inputPlaneUrl));
39491
40363
  }
39492
40364
  return new ClsInstance(methods);
39493
40365
  }
@@ -39638,7 +40510,6 @@ var Queue = class _Queue {
39638
40510
  const resp = await client.queueGetOrCreate({
39639
40511
  deploymentName: name,
39640
40512
  objectCreationType: options.createIfMissing ? 1 /* OBJECT_CREATION_TYPE_CREATE_IF_MISSING */ : void 0,
39641
- namespace: 1 /* DEPLOYMENT_NAMESPACE_WORKSPACE */,
39642
40513
  environmentName: environmentName(options.environment)
39643
40514
  });
39644
40515
  return new _Queue(resp.queueId);
@@ -39816,6 +40687,30 @@ var Queue = class _Queue {
39816
40687
  }
39817
40688
  }
39818
40689
  };
40690
+
40691
+ // src/volume.ts
40692
+ var import_nice_grpc7 = require("nice-grpc");
40693
+ var Volume = class _Volume {
40694
+ volumeId;
40695
+ /** @ignore */
40696
+ constructor(volumeId) {
40697
+ this.volumeId = volumeId;
40698
+ }
40699
+ static async fromName(name, options) {
40700
+ try {
40701
+ const resp = await client.volumeGetOrCreate({
40702
+ deploymentName: name,
40703
+ environmentName: environmentName(options?.environment),
40704
+ objectCreationType: options?.createIfMissing ? 1 /* OBJECT_CREATION_TYPE_CREATE_IF_MISSING */ : 0 /* OBJECT_CREATION_TYPE_UNSPECIFIED */
40705
+ });
40706
+ return new _Volume(resp.volumeId);
40707
+ } catch (err) {
40708
+ if (err instanceof import_nice_grpc7.ClientError && err.code === import_nice_grpc7.Status.NOT_FOUND)
40709
+ throw new NotFoundError(err.details);
40710
+ throw err;
40711
+ }
40712
+ }
40713
+ };
39819
40714
  // Annotate the CommonJS export names for ESM import in node:
39820
40715
  0 && (module.exports = {
39821
40716
  App,
@@ -39835,6 +40730,8 @@ var Queue = class _Queue {
39835
40730
  RemoteError,
39836
40731
  Sandbox,
39837
40732
  SandboxFile,
40733
+ SandboxTimeoutError,
39838
40734
  Secret,
40735
+ Volume,
39839
40736
  initializeClient
39840
40737
  });