modal 0.8.0 → 0.8.2

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
@@ -1962,6 +1962,36 @@ function endpointInputModalityToJSON(object) {
1962
1962
  return "UNRECOGNIZED";
1963
1963
  }
1964
1964
  }
1965
+ function endpointLifecycleStatusFromJSON(object) {
1966
+ switch (object) {
1967
+ case 0:
1968
+ case "ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED":
1969
+ return 0 /* ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED */;
1970
+ case 1:
1971
+ case "ENDPOINT_LIFECYCLE_STATUS_ACTIVE":
1972
+ return 1 /* ENDPOINT_LIFECYCLE_STATUS_ACTIVE */;
1973
+ case 2:
1974
+ case "ENDPOINT_LIFECYCLE_STATUS_STOPPED":
1975
+ return 2 /* ENDPOINT_LIFECYCLE_STATUS_STOPPED */;
1976
+ case -1:
1977
+ case "UNRECOGNIZED":
1978
+ default:
1979
+ return -1 /* UNRECOGNIZED */;
1980
+ }
1981
+ }
1982
+ function endpointLifecycleStatusToJSON(object) {
1983
+ switch (object) {
1984
+ case 0 /* ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED */:
1985
+ return "ENDPOINT_LIFECYCLE_STATUS_UNSPECIFIED";
1986
+ case 1 /* ENDPOINT_LIFECYCLE_STATUS_ACTIVE */:
1987
+ return "ENDPOINT_LIFECYCLE_STATUS_ACTIVE";
1988
+ case 2 /* ENDPOINT_LIFECYCLE_STATUS_STOPPED */:
1989
+ return "ENDPOINT_LIFECYCLE_STATUS_STOPPED";
1990
+ case -1 /* UNRECOGNIZED */:
1991
+ default:
1992
+ return "UNRECOGNIZED";
1993
+ }
1994
+ }
1965
1995
  function endpointProvisioningStatusFromJSON(object) {
1966
1996
  switch (object) {
1967
1997
  case 0:
@@ -1979,6 +2009,12 @@ function endpointProvisioningStatusFromJSON(object) {
1979
2009
  case 4:
1980
2010
  case "ENDPOINT_PROVISIONING_STATUS_FAILED":
1981
2011
  return 4 /* ENDPOINT_PROVISIONING_STATUS_FAILED */;
2012
+ case 5:
2013
+ case "ENDPOINT_PROVISIONING_STATUS_CANCELLING":
2014
+ return 5 /* ENDPOINT_PROVISIONING_STATUS_CANCELLING */;
2015
+ case 6:
2016
+ case "ENDPOINT_PROVISIONING_STATUS_CANCELLED":
2017
+ return 6 /* ENDPOINT_PROVISIONING_STATUS_CANCELLED */;
1982
2018
  case -1:
1983
2019
  case "UNRECOGNIZED":
1984
2020
  default:
@@ -1997,6 +2033,10 @@ function endpointProvisioningStatusToJSON(object) {
1997
2033
  return "ENDPOINT_PROVISIONING_STATUS_SUCCEEDED";
1998
2034
  case 4 /* ENDPOINT_PROVISIONING_STATUS_FAILED */:
1999
2035
  return "ENDPOINT_PROVISIONING_STATUS_FAILED";
2036
+ case 5 /* ENDPOINT_PROVISIONING_STATUS_CANCELLING */:
2037
+ return "ENDPOINT_PROVISIONING_STATUS_CANCELLING";
2038
+ case 6 /* ENDPOINT_PROVISIONING_STATUS_CANCELLED */:
2039
+ return "ENDPOINT_PROVISIONING_STATUS_CANCELLED";
2000
2040
  case -1 /* UNRECOGNIZED */:
2001
2041
  default:
2002
2042
  return "UNRECOGNIZED";
@@ -7459,6 +7499,89 @@ var AppRollbackRequest = {
7459
7499
  return message;
7460
7500
  }
7461
7501
  };
7502
+ function createBaseAppRollbackResponse() {
7503
+ return { url: "", serverWarnings: [], deployedAt: 0 };
7504
+ }
7505
+ var AppRollbackResponse = {
7506
+ encode(message, writer = new BinaryWriter()) {
7507
+ if (message.url !== "") {
7508
+ writer.uint32(10).string(message.url);
7509
+ }
7510
+ for (const v of message.serverWarnings) {
7511
+ Warning.encode(v, writer.uint32(26).fork()).join();
7512
+ }
7513
+ if (message.deployedAt !== 0) {
7514
+ writer.uint32(33).double(message.deployedAt);
7515
+ }
7516
+ return writer;
7517
+ },
7518
+ decode(input, length) {
7519
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7520
+ let end = length === void 0 ? reader.len : reader.pos + length;
7521
+ const message = createBaseAppRollbackResponse();
7522
+ while (reader.pos < end) {
7523
+ const tag = reader.uint32();
7524
+ switch (tag >>> 3) {
7525
+ case 1: {
7526
+ if (tag !== 10) {
7527
+ break;
7528
+ }
7529
+ message.url = reader.string();
7530
+ continue;
7531
+ }
7532
+ case 3: {
7533
+ if (tag !== 26) {
7534
+ break;
7535
+ }
7536
+ message.serverWarnings.push(Warning.decode(reader, reader.uint32()));
7537
+ continue;
7538
+ }
7539
+ case 4: {
7540
+ if (tag !== 33) {
7541
+ break;
7542
+ }
7543
+ message.deployedAt = reader.double();
7544
+ continue;
7545
+ }
7546
+ }
7547
+ if ((tag & 7) === 4 || tag === 0) {
7548
+ break;
7549
+ }
7550
+ reader.skip(tag & 7);
7551
+ }
7552
+ return message;
7553
+ },
7554
+ fromJSON(object) {
7555
+ return {
7556
+ url: isSet5(object.url) ? globalThis.String(object.url) : "",
7557
+ serverWarnings: globalThis.Array.isArray(object?.serverWarnings) ? object.serverWarnings.map((e) => Warning.fromJSON(e)) : [],
7558
+ deployedAt: isSet5(object.deployedAt) ? globalThis.Number(object.deployedAt) : 0
7559
+ };
7560
+ },
7561
+ toJSON(message) {
7562
+ const obj = {};
7563
+ if (message.url !== "") {
7564
+ obj.url = message.url;
7565
+ }
7566
+ if (message.serverWarnings?.length) {
7567
+ obj.serverWarnings = message.serverWarnings.map((e) => Warning.toJSON(e));
7568
+ }
7569
+ if (message.deployedAt !== 0) {
7570
+ obj.deployedAt = message.deployedAt;
7571
+ }
7572
+ return obj;
7573
+ },
7574
+ create(base) {
7575
+ return AppRollbackResponse.fromPartial(base ?? {});
7576
+ },
7577
+ fromPartial(object) {
7578
+ const message = createBaseAppRollbackResponse();
7579
+ message.url = object.url ?? "";
7580
+ message.serverWarnings = object.serverWarnings?.map((e) => Warning.fromPartial(e)) || [];
7581
+ message.deployedAt = object.deployedAt ?? 0;
7582
+ return message;
7583
+ }
7584
+ };
7462
7585
  function createBaseAppRolloverRequest() {
7463
7586
  return { appId: "" };
7464
7587
  }
@@ -13363,13 +13486,16 @@ var ContainerReloadVolumesResponse = {
13363
13486
  }
13364
13487
  };
13365
13488
  function createBaseContainerStopRequest() {
13366
- return { taskId: "" };
13489
+ return { taskId: "", graceful: false };
13367
13490
  }
13368
13491
  var ContainerStopRequest = {
13369
13492
  encode(message, writer = new BinaryWriter()) {
13370
13493
  if (message.taskId !== "") {
13371
13494
  writer.uint32(10).string(message.taskId);
13372
13495
  }
13496
+ if (message.graceful !== false) {
13497
+ writer.uint32(16).bool(message.graceful);
13498
+ }
13373
13499
  return writer;
13374
13500
  },
13375
13501
  decode(input, length) {
@@ -13386,6 +13512,13 @@ var ContainerStopRequest = {
13386
13512
  message.taskId = reader.string();
13387
13513
  continue;
13388
13514
  }
13515
+ case 2: {
13516
+ if (tag !== 16) {
13517
+ break;
13518
+ }
13519
+ message.graceful = reader.bool();
13520
+ continue;
13521
+ }
13389
13522
  }
13390
13523
  if ((tag & 7) === 4 || tag === 0) {
13391
13524
  break;
@@ -13395,13 +13528,19 @@ var ContainerStopRequest = {
13395
13528
  return message;
13396
13529
  },
13397
13530
  fromJSON(object) {
13398
- return { taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "" };
13531
+ return {
13532
+ taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
13533
+ graceful: isSet5(object.graceful) ? globalThis.Boolean(object.graceful) : false
13534
+ };
13399
13535
  },
13400
13536
  toJSON(message) {
13401
13537
  const obj = {};
13402
13538
  if (message.taskId !== "") {
13403
13539
  obj.taskId = message.taskId;
13404
13540
  }
13541
+ if (message.graceful !== false) {
13542
+ obj.graceful = message.graceful;
13543
+ }
13405
13544
  return obj;
13406
13545
  },
13407
13546
  create(base) {
@@ -13410,6 +13549,7 @@ var ContainerStopRequest = {
13410
13549
  fromPartial(object) {
13411
13550
  const message = createBaseContainerStopRequest();
13412
13551
  message.taskId = object.taskId ?? "";
13552
+ message.graceful = object.graceful ?? false;
13413
13553
  return message;
13414
13554
  }
13415
13555
  };
@@ -13518,6 +13658,108 @@ var CreationInfo = {
13518
13658
  return message;
13519
13659
  }
13520
13660
  };
13661
+ function createBaseCurlAuthTokenRequest() {
13662
+ return { url: "" };
13663
+ }
13664
+ var CurlAuthTokenRequest = {
13665
+ encode(message, writer = new BinaryWriter()) {
13666
+ if (message.url !== "") {
13667
+ writer.uint32(10).string(message.url);
13668
+ }
13669
+ return writer;
13670
+ },
13671
+ decode(input, length) {
13672
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13673
+ let end = length === void 0 ? reader.len : reader.pos + length;
13674
+ const message = createBaseCurlAuthTokenRequest();
13675
+ while (reader.pos < end) {
13676
+ const tag = reader.uint32();
13677
+ switch (tag >>> 3) {
13678
+ case 1: {
13679
+ if (tag !== 10) {
13680
+ break;
13681
+ }
13682
+ message.url = reader.string();
13683
+ continue;
13684
+ }
13685
+ }
13686
+ if ((tag & 7) === 4 || tag === 0) {
13687
+ break;
13688
+ }
13689
+ reader.skip(tag & 7);
13690
+ }
13691
+ return message;
13692
+ },
13693
+ fromJSON(object) {
13694
+ return { url: isSet5(object.url) ? globalThis.String(object.url) : "" };
13695
+ },
13696
+ toJSON(message) {
13697
+ const obj = {};
13698
+ if (message.url !== "") {
13699
+ obj.url = message.url;
13700
+ }
13701
+ return obj;
13702
+ },
13703
+ create(base) {
13704
+ return CurlAuthTokenRequest.fromPartial(base ?? {});
13705
+ },
13706
+ fromPartial(object) {
13707
+ const message = createBaseCurlAuthTokenRequest();
13708
+ message.url = object.url ?? "";
13709
+ return message;
13710
+ }
13711
+ };
13712
+ function createBaseCurlAuthTokenResponse() {
13713
+ return { token: "" };
13714
+ }
13715
+ var CurlAuthTokenResponse = {
13716
+ encode(message, writer = new BinaryWriter()) {
13717
+ if (message.token !== "") {
13718
+ writer.uint32(10).string(message.token);
13719
+ }
13720
+ return writer;
13721
+ },
13722
+ decode(input, length) {
13723
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13724
+ let end = length === void 0 ? reader.len : reader.pos + length;
13725
+ const message = createBaseCurlAuthTokenResponse();
13726
+ while (reader.pos < end) {
13727
+ const tag = reader.uint32();
13728
+ switch (tag >>> 3) {
13729
+ case 1: {
13730
+ if (tag !== 10) {
13731
+ break;
13732
+ }
13733
+ message.token = reader.string();
13734
+ continue;
13735
+ }
13736
+ }
13737
+ if ((tag & 7) === 4 || tag === 0) {
13738
+ break;
13739
+ }
13740
+ reader.skip(tag & 7);
13741
+ }
13742
+ return message;
13743
+ },
13744
+ fromJSON(object) {
13745
+ return { token: isSet5(object.token) ? globalThis.String(object.token) : "" };
13746
+ },
13747
+ toJSON(message) {
13748
+ const obj = {};
13749
+ if (message.token !== "") {
13750
+ obj.token = message.token;
13751
+ }
13752
+ return obj;
13753
+ },
13754
+ create(base) {
13755
+ return CurlAuthTokenResponse.fromPartial(base ?? {});
13756
+ },
13757
+ fromPartial(object) {
13758
+ const message = createBaseCurlAuthTokenResponse();
13759
+ message.token = object.token ?? "";
13760
+ return message;
13761
+ }
13762
+ };
13521
13763
  function createBaseCustomDomainConfig() {
13522
13764
  return { name: "" };
13523
13765
  }
@@ -15888,7 +16130,8 @@ function createBaseEndpointCreateRequest() {
15888
16130
  model: void 0,
15889
16131
  apiSurfaces: [],
15890
16132
  inputModalities: [],
15891
- environmentName: ""
16133
+ environmentName: "",
16134
+ unauthenticated: false
15892
16135
  };
15893
16136
  }
15894
16137
  var EndpointCreateRequest = {
@@ -15921,6 +16164,9 @@ var EndpointCreateRequest = {
15921
16164
  if (message.environmentName !== "") {
15922
16165
  writer.uint32(66).string(message.environmentName);
15923
16166
  }
16167
+ if (message.unauthenticated !== false) {
16168
+ writer.uint32(72).bool(message.unauthenticated);
16169
+ }
15924
16170
  return writer;
15925
16171
  },
15926
16172
  decode(input, length) {
@@ -16000,6 +16246,13 @@ var EndpointCreateRequest = {
16000
16246
  message.environmentName = reader.string();
16001
16247
  continue;
16002
16248
  }
16249
+ case 9: {
16250
+ if (tag !== 72) {
16251
+ break;
16252
+ }
16253
+ message.unauthenticated = reader.bool();
16254
+ continue;
16255
+ }
16003
16256
  }
16004
16257
  if ((tag & 7) === 4 || tag === 0) {
16005
16258
  break;
@@ -16017,7 +16270,8 @@ var EndpointCreateRequest = {
16017
16270
  model: isSet5(object.model) ? EndpointModelSource.fromJSON(object.model) : void 0,
16018
16271
  apiSurfaces: globalThis.Array.isArray(object?.apiSurfaces) ? object.apiSurfaces.map((e) => endpointApiSurfaceFromJSON(e)) : [],
16019
16272
  inputModalities: globalThis.Array.isArray(object?.inputModalities) ? object.inputModalities.map((e) => endpointInputModalityFromJSON(e)) : [],
16020
- environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
16273
+ environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "",
16274
+ unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false
16021
16275
  };
16022
16276
  },
16023
16277
  toJSON(message) {
@@ -16046,6 +16300,9 @@ var EndpointCreateRequest = {
16046
16300
  if (message.environmentName !== "") {
16047
16301
  obj.environmentName = message.environmentName;
16048
16302
  }
16303
+ if (message.unauthenticated !== false) {
16304
+ obj.unauthenticated = message.unauthenticated;
16305
+ }
16049
16306
  return obj;
16050
16307
  },
16051
16308
  create(base) {
@@ -16061,11 +16318,12 @@ var EndpointCreateRequest = {
16061
16318
  message.apiSurfaces = object.apiSurfaces?.map((e) => e) || [];
16062
16319
  message.inputModalities = object.inputModalities?.map((e) => e) || [];
16063
16320
  message.environmentName = object.environmentName ?? "";
16321
+ message.unauthenticated = object.unauthenticated ?? false;
16064
16322
  return message;
16065
16323
  }
16066
16324
  };
16067
16325
  function createBaseEndpointCreateResponse() {
16068
- return { endpointId: "", endpointPageUrl: "" };
16326
+ return { endpointId: "", endpointPageUrl: "", name: "" };
16069
16327
  }
16070
16328
  var EndpointCreateResponse = {
16071
16329
  encode(message, writer = new BinaryWriter()) {
@@ -16075,6 +16333,9 @@ var EndpointCreateResponse = {
16075
16333
  if (message.endpointPageUrl !== "") {
16076
16334
  writer.uint32(18).string(message.endpointPageUrl);
16077
16335
  }
16336
+ if (message.name !== "") {
16337
+ writer.uint32(26).string(message.name);
16338
+ }
16078
16339
  return writer;
16079
16340
  },
16080
16341
  decode(input, length) {
@@ -16098,6 +16359,13 @@ var EndpointCreateResponse = {
16098
16359
  message.endpointPageUrl = reader.string();
16099
16360
  continue;
16100
16361
  }
16362
+ case 3: {
16363
+ if (tag !== 26) {
16364
+ break;
16365
+ }
16366
+ message.name = reader.string();
16367
+ continue;
16368
+ }
16101
16369
  }
16102
16370
  if ((tag & 7) === 4 || tag === 0) {
16103
16371
  break;
@@ -16109,7 +16377,8 @@ var EndpointCreateResponse = {
16109
16377
  fromJSON(object) {
16110
16378
  return {
16111
16379
  endpointId: isSet5(object.endpointId) ? globalThis.String(object.endpointId) : "",
16112
- endpointPageUrl: isSet5(object.endpointPageUrl) ? globalThis.String(object.endpointPageUrl) : ""
16380
+ endpointPageUrl: isSet5(object.endpointPageUrl) ? globalThis.String(object.endpointPageUrl) : "",
16381
+ name: isSet5(object.name) ? globalThis.String(object.name) : ""
16113
16382
  };
16114
16383
  },
16115
16384
  toJSON(message) {
@@ -16120,6 +16389,9 @@ var EndpointCreateResponse = {
16120
16389
  if (message.endpointPageUrl !== "") {
16121
16390
  obj.endpointPageUrl = message.endpointPageUrl;
16122
16391
  }
16392
+ if (message.name !== "") {
16393
+ obj.name = message.name;
16394
+ }
16123
16395
  return obj;
16124
16396
  },
16125
16397
  create(base) {
@@ -16129,6 +16401,7 @@ var EndpointCreateResponse = {
16129
16401
  const message = createBaseEndpointCreateResponse();
16130
16402
  message.endpointId = object.endpointId ?? "";
16131
16403
  message.endpointPageUrl = object.endpointPageUrl ?? "";
16404
+ message.name = object.name ?? "";
16132
16405
  return message;
16133
16406
  }
16134
16407
  };
@@ -16215,6 +16488,244 @@ var EndpointCustomModelSource = {
16215
16488
  return message;
16216
16489
  }
16217
16490
  };
16491
+ function createBaseEndpointGetByNameRequest() {
16492
+ return { name: "", environmentName: "" };
16493
+ }
16494
+ var EndpointGetByNameRequest = {
16495
+ encode(message, writer = new BinaryWriter()) {
16496
+ if (message.name !== "") {
16497
+ writer.uint32(10).string(message.name);
16498
+ }
16499
+ if (message.environmentName !== "") {
16500
+ writer.uint32(18).string(message.environmentName);
16501
+ }
16502
+ return writer;
16503
+ },
16504
+ decode(input, length) {
16505
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
16506
+ let end = length === void 0 ? reader.len : reader.pos + length;
16507
+ const message = createBaseEndpointGetByNameRequest();
16508
+ while (reader.pos < end) {
16509
+ const tag = reader.uint32();
16510
+ switch (tag >>> 3) {
16511
+ case 1: {
16512
+ if (tag !== 10) {
16513
+ break;
16514
+ }
16515
+ message.name = reader.string();
16516
+ continue;
16517
+ }
16518
+ case 2: {
16519
+ if (tag !== 18) {
16520
+ break;
16521
+ }
16522
+ message.environmentName = reader.string();
16523
+ continue;
16524
+ }
16525
+ }
16526
+ if ((tag & 7) === 4 || tag === 0) {
16527
+ break;
16528
+ }
16529
+ reader.skip(tag & 7);
16530
+ }
16531
+ return message;
16532
+ },
16533
+ fromJSON(object) {
16534
+ return {
16535
+ name: isSet5(object.name) ? globalThis.String(object.name) : "",
16536
+ environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
16537
+ };
16538
+ },
16539
+ toJSON(message) {
16540
+ const obj = {};
16541
+ if (message.name !== "") {
16542
+ obj.name = message.name;
16543
+ }
16544
+ if (message.environmentName !== "") {
16545
+ obj.environmentName = message.environmentName;
16546
+ }
16547
+ return obj;
16548
+ },
16549
+ create(base) {
16550
+ return EndpointGetByNameRequest.fromPartial(base ?? {});
16551
+ },
16552
+ fromPartial(object) {
16553
+ const message = createBaseEndpointGetByNameRequest();
16554
+ message.name = object.name ?? "";
16555
+ message.environmentName = object.environmentName ?? "";
16556
+ return message;
16557
+ }
16558
+ };
16559
+ function createBaseEndpointGetByNameResponse() {
16560
+ return { endpointId: "", environmentName: "" };
16561
+ }
16562
+ var EndpointGetByNameResponse = {
16563
+ encode(message, writer = new BinaryWriter()) {
16564
+ if (message.endpointId !== "") {
16565
+ writer.uint32(10).string(message.endpointId);
16566
+ }
16567
+ if (message.environmentName !== "") {
16568
+ writer.uint32(18).string(message.environmentName);
16569
+ }
16570
+ return writer;
16571
+ },
16572
+ decode(input, length) {
16573
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
16574
+ let end = length === void 0 ? reader.len : reader.pos + length;
16575
+ const message = createBaseEndpointGetByNameResponse();
16576
+ while (reader.pos < end) {
16577
+ const tag = reader.uint32();
16578
+ switch (tag >>> 3) {
16579
+ case 1: {
16580
+ if (tag !== 10) {
16581
+ break;
16582
+ }
16583
+ message.endpointId = reader.string();
16584
+ continue;
16585
+ }
16586
+ case 2: {
16587
+ if (tag !== 18) {
16588
+ break;
16589
+ }
16590
+ message.environmentName = reader.string();
16591
+ continue;
16592
+ }
16593
+ }
16594
+ if ((tag & 7) === 4 || tag === 0) {
16595
+ break;
16596
+ }
16597
+ reader.skip(tag & 7);
16598
+ }
16599
+ return message;
16600
+ },
16601
+ fromJSON(object) {
16602
+ return {
16603
+ endpointId: isSet5(object.endpointId) ? globalThis.String(object.endpointId) : "",
16604
+ environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
16605
+ };
16606
+ },
16607
+ toJSON(message) {
16608
+ const obj = {};
16609
+ if (message.endpointId !== "") {
16610
+ obj.endpointId = message.endpointId;
16611
+ }
16612
+ if (message.environmentName !== "") {
16613
+ obj.environmentName = message.environmentName;
16614
+ }
16615
+ return obj;
16616
+ },
16617
+ create(base) {
16618
+ return EndpointGetByNameResponse.fromPartial(base ?? {});
16619
+ },
16620
+ fromPartial(object) {
16621
+ const message = createBaseEndpointGetByNameResponse();
16622
+ message.endpointId = object.endpointId ?? "";
16623
+ message.environmentName = object.environmentName ?? "";
16624
+ return message;
16625
+ }
16626
+ };
16627
+ function createBaseEndpointGetLifecycleRequest() {
16628
+ return { endpointId: "" };
16629
+ }
16630
+ var EndpointGetLifecycleRequest = {
16631
+ encode(message, writer = new BinaryWriter()) {
16632
+ if (message.endpointId !== "") {
16633
+ writer.uint32(10).string(message.endpointId);
16634
+ }
16635
+ return writer;
16636
+ },
16637
+ decode(input, length) {
16638
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
16639
+ let end = length === void 0 ? reader.len : reader.pos + length;
16640
+ const message = createBaseEndpointGetLifecycleRequest();
16641
+ while (reader.pos < end) {
16642
+ const tag = reader.uint32();
16643
+ switch (tag >>> 3) {
16644
+ case 1: {
16645
+ if (tag !== 10) {
16646
+ break;
16647
+ }
16648
+ message.endpointId = reader.string();
16649
+ continue;
16650
+ }
16651
+ }
16652
+ if ((tag & 7) === 4 || tag === 0) {
16653
+ break;
16654
+ }
16655
+ reader.skip(tag & 7);
16656
+ }
16657
+ return message;
16658
+ },
16659
+ fromJSON(object) {
16660
+ return { endpointId: isSet5(object.endpointId) ? globalThis.String(object.endpointId) : "" };
16661
+ },
16662
+ toJSON(message) {
16663
+ const obj = {};
16664
+ if (message.endpointId !== "") {
16665
+ obj.endpointId = message.endpointId;
16666
+ }
16667
+ return obj;
16668
+ },
16669
+ create(base) {
16670
+ return EndpointGetLifecycleRequest.fromPartial(base ?? {});
16671
+ },
16672
+ fromPartial(object) {
16673
+ const message = createBaseEndpointGetLifecycleRequest();
16674
+ message.endpointId = object.endpointId ?? "";
16675
+ return message;
16676
+ }
16677
+ };
16678
+ function createBaseEndpointGetLifecycleResponse() {
16679
+ return { lifecycle: void 0 };
16680
+ }
16681
+ var EndpointGetLifecycleResponse = {
16682
+ encode(message, writer = new BinaryWriter()) {
16683
+ if (message.lifecycle !== void 0) {
16684
+ EndpointLifecycle.encode(message.lifecycle, writer.uint32(10).fork()).join();
16685
+ }
16686
+ return writer;
16687
+ },
16688
+ decode(input, length) {
16689
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
16690
+ let end = length === void 0 ? reader.len : reader.pos + length;
16691
+ const message = createBaseEndpointGetLifecycleResponse();
16692
+ while (reader.pos < end) {
16693
+ const tag = reader.uint32();
16694
+ switch (tag >>> 3) {
16695
+ case 1: {
16696
+ if (tag !== 10) {
16697
+ break;
16698
+ }
16699
+ message.lifecycle = EndpointLifecycle.decode(reader, reader.uint32());
16700
+ continue;
16701
+ }
16702
+ }
16703
+ if ((tag & 7) === 4 || tag === 0) {
16704
+ break;
16705
+ }
16706
+ reader.skip(tag & 7);
16707
+ }
16708
+ return message;
16709
+ },
16710
+ fromJSON(object) {
16711
+ return { lifecycle: isSet5(object.lifecycle) ? EndpointLifecycle.fromJSON(object.lifecycle) : void 0 };
16712
+ },
16713
+ toJSON(message) {
16714
+ const obj = {};
16715
+ if (message.lifecycle !== void 0) {
16716
+ obj.lifecycle = EndpointLifecycle.toJSON(message.lifecycle);
16717
+ }
16718
+ return obj;
16719
+ },
16720
+ create(base) {
16721
+ return EndpointGetLifecycleResponse.fromPartial(base ?? {});
16722
+ },
16723
+ fromPartial(object) {
16724
+ const message = createBaseEndpointGetLifecycleResponse();
16725
+ message.lifecycle = object.lifecycle !== void 0 && object.lifecycle !== null ? EndpointLifecycle.fromPartial(object.lifecycle) : void 0;
16726
+ return message;
16727
+ }
16728
+ };
16218
16729
  function createBaseEndpointHuggingFaceModelSource() {
16219
16730
  return { repoId: "", revision: "", huggingfaceToken: "" };
16220
16731
  }
@@ -16298,6 +16809,134 @@ var EndpointHuggingFaceModelSource = {
16298
16809
  return message;
16299
16810
  }
16300
16811
  };
16812
+ function createBaseEndpointLifecycle() {
16813
+ return { status: 0, createdAt: 0, createdBy: "", stoppedAt: 0, stoppedBy: "", environmentName: "" };
16814
+ }
16815
+ var EndpointLifecycle = {
16816
+ encode(message, writer = new BinaryWriter()) {
16817
+ if (message.status !== 0) {
16818
+ writer.uint32(8).int32(message.status);
16819
+ }
16820
+ if (message.createdAt !== 0) {
16821
+ writer.uint32(17).double(message.createdAt);
16822
+ }
16823
+ if (message.createdBy !== "") {
16824
+ writer.uint32(26).string(message.createdBy);
16825
+ }
16826
+ if (message.stoppedAt !== 0) {
16827
+ writer.uint32(33).double(message.stoppedAt);
16828
+ }
16829
+ if (message.stoppedBy !== "") {
16830
+ writer.uint32(42).string(message.stoppedBy);
16831
+ }
16832
+ if (message.environmentName !== "") {
16833
+ writer.uint32(50).string(message.environmentName);
16834
+ }
16835
+ return writer;
16836
+ },
16837
+ decode(input, length) {
16838
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
16839
+ let end = length === void 0 ? reader.len : reader.pos + length;
16840
+ const message = createBaseEndpointLifecycle();
16841
+ while (reader.pos < end) {
16842
+ const tag = reader.uint32();
16843
+ switch (tag >>> 3) {
16844
+ case 1: {
16845
+ if (tag !== 8) {
16846
+ break;
16847
+ }
16848
+ message.status = reader.int32();
16849
+ continue;
16850
+ }
16851
+ case 2: {
16852
+ if (tag !== 17) {
16853
+ break;
16854
+ }
16855
+ message.createdAt = reader.double();
16856
+ continue;
16857
+ }
16858
+ case 3: {
16859
+ if (tag !== 26) {
16860
+ break;
16861
+ }
16862
+ message.createdBy = reader.string();
16863
+ continue;
16864
+ }
16865
+ case 4: {
16866
+ if (tag !== 33) {
16867
+ break;
16868
+ }
16869
+ message.stoppedAt = reader.double();
16870
+ continue;
16871
+ }
16872
+ case 5: {
16873
+ if (tag !== 42) {
16874
+ break;
16875
+ }
16876
+ message.stoppedBy = reader.string();
16877
+ continue;
16878
+ }
16879
+ case 6: {
16880
+ if (tag !== 50) {
16881
+ break;
16882
+ }
16883
+ message.environmentName = reader.string();
16884
+ continue;
16885
+ }
16886
+ }
16887
+ if ((tag & 7) === 4 || tag === 0) {
16888
+ break;
16889
+ }
16890
+ reader.skip(tag & 7);
16891
+ }
16892
+ return message;
16893
+ },
16894
+ fromJSON(object) {
16895
+ return {
16896
+ status: isSet5(object.status) ? endpointLifecycleStatusFromJSON(object.status) : 0,
16897
+ createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
16898
+ createdBy: isSet5(object.createdBy) ? globalThis.String(object.createdBy) : "",
16899
+ stoppedAt: isSet5(object.stoppedAt) ? globalThis.Number(object.stoppedAt) : 0,
16900
+ stoppedBy: isSet5(object.stoppedBy) ? globalThis.String(object.stoppedBy) : "",
16901
+ environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : ""
16902
+ };
16903
+ },
16904
+ toJSON(message) {
16905
+ const obj = {};
16906
+ if (message.status !== 0) {
16907
+ obj.status = endpointLifecycleStatusToJSON(message.status);
16908
+ }
16909
+ if (message.createdAt !== 0) {
16910
+ obj.createdAt = message.createdAt;
16911
+ }
16912
+ if (message.createdBy !== "") {
16913
+ obj.createdBy = message.createdBy;
16914
+ }
16915
+ if (message.stoppedAt !== 0) {
16916
+ obj.stoppedAt = message.stoppedAt;
16917
+ }
16918
+ if (message.stoppedBy !== "") {
16919
+ obj.stoppedBy = message.stoppedBy;
16920
+ }
16921
+ if (message.environmentName !== "") {
16922
+ obj.environmentName = message.environmentName;
16923
+ }
16924
+ return obj;
16925
+ },
16926
+ create(base) {
16927
+ return EndpointLifecycle.fromPartial(base ?? {});
16928
+ },
16929
+ fromPartial(object) {
16930
+ const message = createBaseEndpointLifecycle();
16931
+ message.status = object.status ?? 0;
16932
+ message.createdAt = object.createdAt ?? 0;
16933
+ message.createdBy = object.createdBy ?? "";
16934
+ message.stoppedAt = object.stoppedAt ?? 0;
16935
+ message.stoppedBy = object.stoppedBy ?? "";
16936
+ message.environmentName = object.environmentName ?? "";
16937
+ return message;
16938
+ }
16939
+ };
16301
16940
  function createBaseEndpointListItem() {
16302
16941
  return {
16303
16942
  endpointId: "",
@@ -16309,7 +16948,8 @@ function createBaseEndpointListItem() {
16309
16948
  appState: 0,
16310
16949
  functionId: "",
16311
16950
  createdByAvatarUrl: "",
16312
- provisioningStatus: 0
16951
+ provisioningStatus: 0,
16952
+ status: ""
16313
16953
  };
16314
16954
  }
16315
16955
  var EndpointListItem = {
@@ -16344,6 +16984,9 @@ var EndpointListItem = {
16344
16984
  if (message.provisioningStatus !== 0) {
16345
16985
  writer.uint32(80).int32(message.provisioningStatus);
16346
16986
  }
16987
+ if (message.status !== "") {
16988
+ writer.uint32(90).string(message.status);
16989
+ }
16347
16990
  return writer;
16348
16991
  },
16349
16992
  decode(input, length) {
@@ -16423,6 +17066,13 @@ var EndpointListItem = {
16423
17066
  message.provisioningStatus = reader.int32();
16424
17067
  continue;
16425
17068
  }
17069
+ case 11: {
17070
+ if (tag !== 90) {
17071
+ break;
17072
+ }
17073
+ message.status = reader.string();
17074
+ continue;
17075
+ }
16426
17076
  }
16427
17077
  if ((tag & 7) === 4 || tag === 0) {
16428
17078
  break;
@@ -16442,7 +17092,8 @@ var EndpointListItem = {
16442
17092
  appState: isSet5(object.appState) ? appStateFromJSON(object.appState) : 0,
16443
17093
  functionId: isSet5(object.functionId) ? globalThis.String(object.functionId) : "",
16444
17094
  createdByAvatarUrl: isSet5(object.createdByAvatarUrl) ? globalThis.String(object.createdByAvatarUrl) : "",
16445
- provisioningStatus: isSet5(object.provisioningStatus) ? endpointProvisioningStatusFromJSON(object.provisioningStatus) : 0
17095
+ provisioningStatus: isSet5(object.provisioningStatus) ? endpointProvisioningStatusFromJSON(object.provisioningStatus) : 0,
17096
+ status: isSet5(object.status) ? globalThis.String(object.status) : ""
16446
17097
  };
16447
17098
  },
16448
17099
  toJSON(message) {
@@ -16477,6 +17128,9 @@ var EndpointListItem = {
16477
17128
  if (message.provisioningStatus !== 0) {
16478
17129
  obj.provisioningStatus = endpointProvisioningStatusToJSON(message.provisioningStatus);
16479
17130
  }
17131
+ if (message.status !== "") {
17132
+ obj.status = message.status;
17133
+ }
16480
17134
  return obj;
16481
17135
  },
16482
17136
  create(base) {
@@ -16494,6 +17148,7 @@ var EndpointListItem = {
16494
17148
  message.functionId = object.functionId ?? "";
16495
17149
  message.createdByAvatarUrl = object.createdByAvatarUrl ?? "";
16496
17150
  message.provisioningStatus = object.provisioningStatus ?? 0;
17151
+ message.status = object.status ?? "";
16497
17152
  return message;
16498
17153
  }
16499
17154
  };
@@ -17076,6 +17731,155 @@ var EnvironmentDeleteRequest = {
17076
17731
  return message;
17077
17732
  }
17078
17733
  };
17734
+ function createBaseEnvironmentGetBudgetRequest() {
17735
+ return { environmentId: "" };
17736
+ }
17737
+ var EnvironmentGetBudgetRequest = {
17738
+ encode(message, writer = new BinaryWriter()) {
17739
+ if (message.environmentId !== "") {
17740
+ writer.uint32(10).string(message.environmentId);
17741
+ }
17742
+ return writer;
17743
+ },
17744
+ decode(input, length) {
17745
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
17746
+ let end = length === void 0 ? reader.len : reader.pos + length;
17747
+ const message = createBaseEnvironmentGetBudgetRequest();
17748
+ while (reader.pos < end) {
17749
+ const tag = reader.uint32();
17750
+ switch (tag >>> 3) {
17751
+ case 1: {
17752
+ if (tag !== 10) {
17753
+ break;
17754
+ }
17755
+ message.environmentId = reader.string();
17756
+ continue;
17757
+ }
17758
+ }
17759
+ if ((tag & 7) === 4 || tag === 0) {
17760
+ break;
17761
+ }
17762
+ reader.skip(tag & 7);
17763
+ }
17764
+ return message;
17765
+ },
17766
+ fromJSON(object) {
17767
+ return { environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : "" };
17768
+ },
17769
+ toJSON(message) {
17770
+ const obj = {};
17771
+ if (message.environmentId !== "") {
17772
+ obj.environmentId = message.environmentId;
17773
+ }
17774
+ return obj;
17775
+ },
17776
+ create(base) {
17777
+ return EnvironmentGetBudgetRequest.fromPartial(base ?? {});
17778
+ },
17779
+ fromPartial(object) {
17780
+ const message = createBaseEnvironmentGetBudgetRequest();
17781
+ message.environmentId = object.environmentId ?? "";
17782
+ return message;
17783
+ }
17784
+ };
17785
+ function createBaseEnvironmentGetBudgetResponse() {
17786
+ return { cycleBudgetDollars: void 0, effectiveCycleSpendLimit: 0, currentCycleUsage: 0, spendLimitReached: false };
17787
+ }
17788
+ var EnvironmentGetBudgetResponse = {
17789
+ encode(message, writer = new BinaryWriter()) {
17790
+ if (message.cycleBudgetDollars !== void 0) {
17791
+ writer.uint32(9).double(message.cycleBudgetDollars);
17792
+ }
17793
+ if (message.effectiveCycleSpendLimit !== 0) {
17794
+ writer.uint32(17).double(message.effectiveCycleSpendLimit);
17795
+ }
17796
+ if (message.currentCycleUsage !== 0) {
17797
+ writer.uint32(25).double(message.currentCycleUsage);
17798
+ }
17799
+ if (message.spendLimitReached !== false) {
17800
+ writer.uint32(32).bool(message.spendLimitReached);
17801
+ }
17802
+ return writer;
17803
+ },
17804
+ decode(input, length) {
17805
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
17806
+ let end = length === void 0 ? reader.len : reader.pos + length;
17807
+ const message = createBaseEnvironmentGetBudgetResponse();
17808
+ while (reader.pos < end) {
17809
+ const tag = reader.uint32();
17810
+ switch (tag >>> 3) {
17811
+ case 1: {
17812
+ if (tag !== 9) {
17813
+ break;
17814
+ }
17815
+ message.cycleBudgetDollars = reader.double();
17816
+ continue;
17817
+ }
17818
+ case 2: {
17819
+ if (tag !== 17) {
17820
+ break;
17821
+ }
17822
+ message.effectiveCycleSpendLimit = reader.double();
17823
+ continue;
17824
+ }
17825
+ case 3: {
17826
+ if (tag !== 25) {
17827
+ break;
17828
+ }
17829
+ message.currentCycleUsage = reader.double();
17830
+ continue;
17831
+ }
17832
+ case 4: {
17833
+ if (tag !== 32) {
17834
+ break;
17835
+ }
17836
+ message.spendLimitReached = reader.bool();
17837
+ continue;
17838
+ }
17839
+ }
17840
+ if ((tag & 7) === 4 || tag === 0) {
17841
+ break;
17842
+ }
17843
+ reader.skip(tag & 7);
17844
+ }
17845
+ return message;
17846
+ },
17847
+ fromJSON(object) {
17848
+ return {
17849
+ cycleBudgetDollars: isSet5(object.cycleBudgetDollars) ? globalThis.Number(object.cycleBudgetDollars) : void 0,
17850
+ effectiveCycleSpendLimit: isSet5(object.effectiveCycleSpendLimit) ? globalThis.Number(object.effectiveCycleSpendLimit) : 0,
17851
+ currentCycleUsage: isSet5(object.currentCycleUsage) ? globalThis.Number(object.currentCycleUsage) : 0,
17852
+ spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false
17853
+ };
17854
+ },
17855
+ toJSON(message) {
17856
+ const obj = {};
17857
+ if (message.cycleBudgetDollars !== void 0) {
17858
+ obj.cycleBudgetDollars = message.cycleBudgetDollars;
17859
+ }
17860
+ if (message.effectiveCycleSpendLimit !== 0) {
17861
+ obj.effectiveCycleSpendLimit = message.effectiveCycleSpendLimit;
17862
+ }
17863
+ if (message.currentCycleUsage !== 0) {
17864
+ obj.currentCycleUsage = message.currentCycleUsage;
17865
+ }
17866
+ if (message.spendLimitReached !== false) {
17867
+ obj.spendLimitReached = message.spendLimitReached;
17868
+ }
17869
+ return obj;
17870
+ },
17871
+ create(base) {
17872
+ return EnvironmentGetBudgetResponse.fromPartial(base ?? {});
17873
+ },
17874
+ fromPartial(object) {
17875
+ const message = createBaseEnvironmentGetBudgetResponse();
17876
+ message.cycleBudgetDollars = object.cycleBudgetDollars ?? void 0;
17877
+ message.effectiveCycleSpendLimit = object.effectiveCycleSpendLimit ?? 0;
17878
+ message.currentCycleUsage = object.currentCycleUsage ?? 0;
17879
+ message.spendLimitReached = object.spendLimitReached ?? false;
17880
+ return message;
17881
+ }
17882
+ };
17079
17883
  function createBaseEnvironmentGetManagedRequest() {
17080
17884
  return { environmentId: "" };
17081
17885
  }
@@ -17556,7 +18360,11 @@ function createBaseEnvironmentListItem() {
17556
18360
  maxConcurrentTasks: void 0,
17557
18361
  maxConcurrentGpus: void 0,
17558
18362
  currentConcurrentTasks: 0,
17559
- currentConcurrentGpus: 0
18363
+ currentConcurrentGpus: 0,
18364
+ cycleBudgetDollars: void 0,
18365
+ effectiveCycleSpendLimit: 0,
18366
+ currentCycleUsage: 0,
18367
+ spendLimitReached: false
17560
18368
  };
17561
18369
  }
17562
18370
  var EnvironmentListItem = {
@@ -17591,6 +18399,18 @@ var EnvironmentListItem = {
17591
18399
  if (message.currentConcurrentGpus !== 0) {
17592
18400
  writer.uint32(80).int32(message.currentConcurrentGpus);
17593
18401
  }
18402
+ if (message.cycleBudgetDollars !== void 0) {
18403
+ writer.uint32(89).double(message.cycleBudgetDollars);
18404
+ }
18405
+ if (message.effectiveCycleSpendLimit !== 0) {
18406
+ writer.uint32(97).double(message.effectiveCycleSpendLimit);
18407
+ }
18408
+ if (message.currentCycleUsage !== 0) {
18409
+ writer.uint32(105).double(message.currentCycleUsage);
18410
+ }
18411
+ if (message.spendLimitReached !== false) {
18412
+ writer.uint32(112).bool(message.spendLimitReached);
18413
+ }
17594
18414
  return writer;
17595
18415
  },
17596
18416
  decode(input, length) {
@@ -17670,6 +18490,34 @@ var EnvironmentListItem = {
17670
18490
  message.currentConcurrentGpus = reader.int32();
17671
18491
  continue;
17672
18492
  }
18493
+ case 11: {
18494
+ if (tag !== 89) {
18495
+ break;
18496
+ }
18497
+ message.cycleBudgetDollars = reader.double();
18498
+ continue;
18499
+ }
18500
+ case 12: {
18501
+ if (tag !== 97) {
18502
+ break;
18503
+ }
18504
+ message.effectiveCycleSpendLimit = reader.double();
18505
+ continue;
18506
+ }
18507
+ case 13: {
18508
+ if (tag !== 105) {
18509
+ break;
18510
+ }
18511
+ message.currentCycleUsage = reader.double();
18512
+ continue;
18513
+ }
18514
+ case 14: {
18515
+ if (tag !== 112) {
18516
+ break;
18517
+ }
18518
+ message.spendLimitReached = reader.bool();
18519
+ continue;
18520
+ }
17673
18521
  }
17674
18522
  if ((tag & 7) === 4 || tag === 0) {
17675
18523
  break;
@@ -17689,7 +18537,11 @@ var EnvironmentListItem = {
17689
18537
  maxConcurrentTasks: isSet5(object.maxConcurrentTasks) ? globalThis.Number(object.maxConcurrentTasks) : void 0,
17690
18538
  maxConcurrentGpus: isSet5(object.maxConcurrentGpus) ? globalThis.Number(object.maxConcurrentGpus) : void 0,
17691
18539
  currentConcurrentTasks: isSet5(object.currentConcurrentTasks) ? globalThis.Number(object.currentConcurrentTasks) : 0,
17692
- currentConcurrentGpus: isSet5(object.currentConcurrentGpus) ? globalThis.Number(object.currentConcurrentGpus) : 0
18540
+ currentConcurrentGpus: isSet5(object.currentConcurrentGpus) ? globalThis.Number(object.currentConcurrentGpus) : 0,
18541
+ cycleBudgetDollars: isSet5(object.cycleBudgetDollars) ? globalThis.Number(object.cycleBudgetDollars) : void 0,
18542
+ effectiveCycleSpendLimit: isSet5(object.effectiveCycleSpendLimit) ? globalThis.Number(object.effectiveCycleSpendLimit) : 0,
18543
+ currentCycleUsage: isSet5(object.currentCycleUsage) ? globalThis.Number(object.currentCycleUsage) : 0,
18544
+ spendLimitReached: isSet5(object.spendLimitReached) ? globalThis.Boolean(object.spendLimitReached) : false
17693
18545
  };
17694
18546
  },
17695
18547
  toJSON(message) {
@@ -17724,6 +18576,18 @@ var EnvironmentListItem = {
17724
18576
  if (message.currentConcurrentGpus !== 0) {
17725
18577
  obj.currentConcurrentGpus = Math.round(message.currentConcurrentGpus);
17726
18578
  }
18579
+ if (message.cycleBudgetDollars !== void 0) {
18580
+ obj.cycleBudgetDollars = message.cycleBudgetDollars;
18581
+ }
18582
+ if (message.effectiveCycleSpendLimit !== 0) {
18583
+ obj.effectiveCycleSpendLimit = message.effectiveCycleSpendLimit;
18584
+ }
18585
+ if (message.currentCycleUsage !== 0) {
18586
+ obj.currentCycleUsage = message.currentCycleUsage;
18587
+ }
18588
+ if (message.spendLimitReached !== false) {
18589
+ obj.spendLimitReached = message.spendLimitReached;
18590
+ }
17727
18591
  return obj;
17728
18592
  },
17729
18593
  create(base) {
@@ -17741,6 +18605,10 @@ var EnvironmentListItem = {
17741
18605
  message.maxConcurrentGpus = object.maxConcurrentGpus ?? void 0;
17742
18606
  message.currentConcurrentTasks = object.currentConcurrentTasks ?? 0;
17743
18607
  message.currentConcurrentGpus = object.currentConcurrentGpus ?? 0;
18608
+ message.cycleBudgetDollars = object.cycleBudgetDollars ?? void 0;
18609
+ message.effectiveCycleSpendLimit = object.effectiveCycleSpendLimit ?? 0;
18610
+ message.currentCycleUsage = object.currentCycleUsage ?? 0;
18611
+ message.spendLimitReached = object.spendLimitReached ?? false;
17744
18612
  return message;
17745
18613
  }
17746
18614
  };
@@ -17963,6 +18831,89 @@ var EnvironmentRoleSetRequest = {
17963
18831
  return message;
17964
18832
  }
17965
18833
  };
18834
+ function createBaseEnvironmentSetBudgetRequest() {
18835
+ return { environmentId: "", cycleBudgetDollars: void 0, clearBudget: false };
18836
+ }
18837
+ var EnvironmentSetBudgetRequest = {
18838
+ encode(message, writer = new BinaryWriter()) {
18839
+ if (message.environmentId !== "") {
18840
+ writer.uint32(10).string(message.environmentId);
18841
+ }
18842
+ if (message.cycleBudgetDollars !== void 0) {
18843
+ writer.uint32(17).double(message.cycleBudgetDollars);
18844
+ }
18845
+ if (message.clearBudget !== false) {
18846
+ writer.uint32(24).bool(message.clearBudget);
18847
+ }
18848
+ return writer;
18849
+ },
18850
+ decode(input, length) {
18851
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
18852
+ let end = length === void 0 ? reader.len : reader.pos + length;
18853
+ const message = createBaseEnvironmentSetBudgetRequest();
18854
+ while (reader.pos < end) {
18855
+ const tag = reader.uint32();
18856
+ switch (tag >>> 3) {
18857
+ case 1: {
18858
+ if (tag !== 10) {
18859
+ break;
18860
+ }
18861
+ message.environmentId = reader.string();
18862
+ continue;
18863
+ }
18864
+ case 2: {
18865
+ if (tag !== 17) {
18866
+ break;
18867
+ }
18868
+ message.cycleBudgetDollars = reader.double();
18869
+ continue;
18870
+ }
18871
+ case 3: {
18872
+ if (tag !== 24) {
18873
+ break;
18874
+ }
18875
+ message.clearBudget = reader.bool();
18876
+ continue;
18877
+ }
18878
+ }
18879
+ if ((tag & 7) === 4 || tag === 0) {
18880
+ break;
18881
+ }
18882
+ reader.skip(tag & 7);
18883
+ }
18884
+ return message;
18885
+ },
18886
+ fromJSON(object) {
18887
+ return {
18888
+ environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : "",
18889
+ cycleBudgetDollars: isSet5(object.cycleBudgetDollars) ? globalThis.Number(object.cycleBudgetDollars) : void 0,
18890
+ clearBudget: isSet5(object.clearBudget) ? globalThis.Boolean(object.clearBudget) : false
18891
+ };
18892
+ },
18893
+ toJSON(message) {
18894
+ const obj = {};
18895
+ if (message.environmentId !== "") {
18896
+ obj.environmentId = message.environmentId;
18897
+ }
18898
+ if (message.cycleBudgetDollars !== void 0) {
18899
+ obj.cycleBudgetDollars = message.cycleBudgetDollars;
18900
+ }
18901
+ if (message.clearBudget !== false) {
18902
+ obj.clearBudget = message.clearBudget;
18903
+ }
18904
+ return obj;
18905
+ },
18906
+ create(base) {
18907
+ return EnvironmentSetBudgetRequest.fromPartial(base ?? {});
18908
+ },
18909
+ fromPartial(object) {
18910
+ const message = createBaseEnvironmentSetBudgetRequest();
18911
+ message.environmentId = object.environmentId ?? "";
18912
+ message.cycleBudgetDollars = object.cycleBudgetDollars ?? void 0;
18913
+ message.clearBudget = object.clearBudget ?? false;
18914
+ return message;
18915
+ }
18916
+ };
17966
18917
  function createBaseEnvironmentSetManagedRequest() {
17967
18918
  return { environmentId: "", managed: false };
17968
18919
  }
@@ -25109,7 +26060,8 @@ function createBaseFunctionOptions() {
25109
26060
  cloudProviderStr: void 0,
25110
26061
  replaceCloudBucketMounts: false,
25111
26062
  cloudBucketMounts: [],
25112
- pinnedAppVersion: void 0
26063
+ pinnedAppVersion: void 0,
26064
+ routingRegion: void 0
25113
26065
  };
25114
26066
  }
25115
26067
  var FunctionOptions = {
@@ -25177,6 +26129,9 @@ var FunctionOptions = {
25177
26129
  if (message.pinnedAppVersion !== void 0) {
25178
26130
  writer.uint32(168).int32(message.pinnedAppVersion);
25179
26131
  }
26132
+ if (message.routingRegion !== void 0) {
26133
+ writer.uint32(178).string(message.routingRegion);
26134
+ }
25180
26135
  return writer;
25181
26136
  },
25182
26137
  decode(input, length) {
@@ -25333,6 +26288,13 @@ var FunctionOptions = {
25333
26288
  message.pinnedAppVersion = reader.int32();
25334
26289
  continue;
25335
26290
  }
26291
+ case 22: {
26292
+ if (tag !== 178) {
26293
+ break;
26294
+ }
26295
+ message.routingRegion = reader.string();
26296
+ continue;
26297
+ }
25336
26298
  }
25337
26299
  if ((tag & 7) === 4 || tag === 0) {
25338
26300
  break;
@@ -25363,7 +26325,8 @@ var FunctionOptions = {
25363
26325
  cloudProviderStr: isSet5(object.cloudProviderStr) ? globalThis.String(object.cloudProviderStr) : void 0,
25364
26326
  replaceCloudBucketMounts: isSet5(object.replaceCloudBucketMounts) ? globalThis.Boolean(object.replaceCloudBucketMounts) : false,
25365
26327
  cloudBucketMounts: globalThis.Array.isArray(object?.cloudBucketMounts) ? object.cloudBucketMounts.map((e) => CloudBucketMount.fromJSON(e)) : [],
25366
- pinnedAppVersion: isSet5(object.pinnedAppVersion) ? globalThis.Number(object.pinnedAppVersion) : void 0
26328
+ pinnedAppVersion: isSet5(object.pinnedAppVersion) ? globalThis.Number(object.pinnedAppVersion) : void 0,
26329
+ routingRegion: isSet5(object.routingRegion) ? globalThis.String(object.routingRegion) : void 0
25367
26330
  };
25368
26331
  },
25369
26332
  toJSON(message) {
@@ -25431,6 +26394,9 @@ var FunctionOptions = {
25431
26394
  if (message.pinnedAppVersion !== void 0) {
25432
26395
  obj.pinnedAppVersion = Math.round(message.pinnedAppVersion);
25433
26396
  }
26397
+ if (message.routingRegion !== void 0) {
26398
+ obj.routingRegion = message.routingRegion;
26399
+ }
25434
26400
  return obj;
25435
26401
  },
25436
26402
  create(base) {
@@ -25459,6 +26425,7 @@ var FunctionOptions = {
25459
26425
  message.replaceCloudBucketMounts = object.replaceCloudBucketMounts ?? false;
25460
26426
  message.cloudBucketMounts = object.cloudBucketMounts?.map((e) => CloudBucketMount.fromPartial(e)) || [];
25461
26427
  message.pinnedAppVersion = object.pinnedAppVersion ?? void 0;
26428
+ message.routingRegion = object.routingRegion ?? void 0;
25462
26429
  return message;
25463
26430
  }
25464
26431
  };
@@ -27405,7 +28372,15 @@ var GenericResult = {
27405
28372
  }
27406
28373
  };
27407
28374
  function createBaseHTTPConfig() {
27408
- return { port: 0, proxyRegions: [], startupTimeout: 0, exitGracePeriod: 0, h2Enabled: false, targetConcurrency: 0 };
28375
+ return {
28376
+ port: 0,
28377
+ proxyRegions: [],
28378
+ startupTimeout: 0,
28379
+ exitGracePeriod: 0,
28380
+ h2Enabled: false,
28381
+ targetConcurrency: 0,
28382
+ unauthenticated: false
28383
+ };
27409
28384
  }
27410
28385
  var HTTPConfig = {
27411
28386
  encode(message, writer = new BinaryWriter()) {
@@ -27427,6 +28402,9 @@ var HTTPConfig = {
27427
28402
  if (message.targetConcurrency !== 0) {
27428
28403
  writer.uint32(48).uint32(message.targetConcurrency);
27429
28404
  }
28405
+ if (message.unauthenticated !== false) {
28406
+ writer.uint32(56).bool(message.unauthenticated);
28407
+ }
27430
28408
  return writer;
27431
28409
  },
27432
28410
  decode(input, length) {
@@ -27478,6 +28456,13 @@ var HTTPConfig = {
27478
28456
  message.targetConcurrency = reader.uint32();
27479
28457
  continue;
27480
28458
  }
28459
+ case 7: {
28460
+ if (tag !== 56) {
28461
+ break;
28462
+ }
28463
+ message.unauthenticated = reader.bool();
28464
+ continue;
28465
+ }
27481
28466
  }
27482
28467
  if ((tag & 7) === 4 || tag === 0) {
27483
28468
  break;
@@ -27493,7 +28478,8 @@ var HTTPConfig = {
27493
28478
  startupTimeout: isSet5(object.startupTimeout) ? globalThis.Number(object.startupTimeout) : 0,
27494
28479
  exitGracePeriod: isSet5(object.exitGracePeriod) ? globalThis.Number(object.exitGracePeriod) : 0,
27495
28480
  h2Enabled: isSet5(object.h2Enabled) ? globalThis.Boolean(object.h2Enabled) : false,
27496
- targetConcurrency: isSet5(object.targetConcurrency) ? globalThis.Number(object.targetConcurrency) : 0
28481
+ targetConcurrency: isSet5(object.targetConcurrency) ? globalThis.Number(object.targetConcurrency) : 0,
28482
+ unauthenticated: isSet5(object.unauthenticated) ? globalThis.Boolean(object.unauthenticated) : false
27497
28483
  };
27498
28484
  },
27499
28485
  toJSON(message) {
@@ -27516,6 +28502,9 @@ var HTTPConfig = {
27516
28502
  if (message.targetConcurrency !== 0) {
27517
28503
  obj.targetConcurrency = Math.round(message.targetConcurrency);
27518
28504
  }
28505
+ if (message.unauthenticated !== false) {
28506
+ obj.unauthenticated = message.unauthenticated;
28507
+ }
27519
28508
  return obj;
27520
28509
  },
27521
28510
  create(base) {
@@ -27529,6 +28518,7 @@ var HTTPConfig = {
27529
28518
  message.exitGracePeriod = object.exitGracePeriod ?? 0;
27530
28519
  message.h2Enabled = object.h2Enabled ?? false;
27531
28520
  message.targetConcurrency = object.targetConcurrency ?? 0;
28521
+ message.unauthenticated = object.unauthenticated ?? false;
27532
28522
  return message;
27533
28523
  }
27534
28524
  };
@@ -29469,7 +30459,7 @@ var ImageRegistryConfig = {
29469
30459
  }
29470
30460
  };
29471
30461
  function createBaseImageTagRevisionsItem() {
29472
- return { imageId: "", revisionId: "", createdAt: 0 };
30462
+ return { imageId: "", revisionId: "", createdAt: 0, publishedBy: "" };
29473
30463
  }
29474
30464
  var ImageTagRevisionsItem = {
29475
30465
  encode(message, writer = new BinaryWriter()) {
@@ -29482,6 +30472,9 @@ var ImageTagRevisionsItem = {
29482
30472
  if (message.createdAt !== 0) {
29483
30473
  writer.uint32(25).double(message.createdAt);
29484
30474
  }
30475
+ if (message.publishedBy !== "") {
30476
+ writer.uint32(34).string(message.publishedBy);
30477
+ }
29485
30478
  return writer;
29486
30479
  },
29487
30480
  decode(input, length) {
@@ -29512,6 +30505,13 @@ var ImageTagRevisionsItem = {
29512
30505
  message.createdAt = reader.double();
29513
30506
  continue;
29514
30507
  }
30508
+ case 4: {
30509
+ if (tag !== 34) {
30510
+ break;
30511
+ }
30512
+ message.publishedBy = reader.string();
30513
+ continue;
30514
+ }
29515
30515
  }
29516
30516
  if ((tag & 7) === 4 || tag === 0) {
29517
30517
  break;
@@ -29524,7 +30524,8 @@ var ImageTagRevisionsItem = {
29524
30524
  return {
29525
30525
  imageId: isSet5(object.imageId) ? globalThis.String(object.imageId) : "",
29526
30526
  revisionId: isSet5(object.revisionId) ? globalThis.String(object.revisionId) : "",
29527
- createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0
30527
+ createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
30528
+ publishedBy: isSet5(object.publishedBy) ? globalThis.String(object.publishedBy) : ""
29528
30529
  };
29529
30530
  },
29530
30531
  toJSON(message) {
@@ -29538,6 +30539,9 @@ var ImageTagRevisionsItem = {
29538
30539
  if (message.createdAt !== 0) {
29539
30540
  obj.createdAt = message.createdAt;
29540
30541
  }
30542
+ if (message.publishedBy !== "") {
30543
+ obj.publishedBy = message.publishedBy;
30544
+ }
29541
30545
  return obj;
29542
30546
  },
29543
30547
  create(base) {
@@ -29548,6 +30552,7 @@ var ImageTagRevisionsItem = {
29548
30552
  message.imageId = object.imageId ?? "";
29549
30553
  message.revisionId = object.revisionId ?? "";
29550
30554
  message.createdAt = object.createdAt ?? 0;
30555
+ message.publishedBy = object.publishedBy ?? "";
29551
30556
  return message;
29552
30557
  }
29553
30558
  };
@@ -37302,7 +38307,7 @@ var SandboxCreateResponse = {
37302
38307
  }
37303
38308
  };
37304
38309
  function createBaseSandboxCreateV2Request() {
37305
- return { appId: "", definition: void 0 };
38310
+ return { appId: "", definition: void 0, ephemeralSecrets: void 0 };
37306
38311
  }
37307
38312
  var SandboxCreateV2Request = {
37308
38313
  encode(message, writer = new BinaryWriter()) {
@@ -37312,6 +38317,9 @@ var SandboxCreateV2Request = {
37312
38317
  if (message.definition !== void 0) {
37313
38318
  Sandbox.encode(message.definition, writer.uint32(18).fork()).join();
37314
38319
  }
38320
+ if (message.ephemeralSecrets !== void 0) {
38321
+ StringMap.encode(message.ephemeralSecrets, writer.uint32(26).fork()).join();
38322
+ }
37315
38323
  return writer;
37316
38324
  },
37317
38325
  decode(input, length) {
@@ -37335,6 +38343,13 @@ var SandboxCreateV2Request = {
37335
38343
  message.definition = Sandbox.decode(reader, reader.uint32());
37336
38344
  continue;
37337
38345
  }
38346
+ case 3: {
38347
+ if (tag !== 26) {
38348
+ break;
38349
+ }
38350
+ message.ephemeralSecrets = StringMap.decode(reader, reader.uint32());
38351
+ continue;
38352
+ }
37338
38353
  }
37339
38354
  if ((tag & 7) === 4 || tag === 0) {
37340
38355
  break;
@@ -37346,7 +38361,8 @@ var SandboxCreateV2Request = {
37346
38361
  fromJSON(object) {
37347
38362
  return {
37348
38363
  appId: isSet5(object.appId) ? globalThis.String(object.appId) : "",
37349
- definition: isSet5(object.definition) ? Sandbox.fromJSON(object.definition) : void 0
38364
+ definition: isSet5(object.definition) ? Sandbox.fromJSON(object.definition) : void 0,
38365
+ ephemeralSecrets: isSet5(object.ephemeralSecrets) ? StringMap.fromJSON(object.ephemeralSecrets) : void 0
37350
38366
  };
37351
38367
  },
37352
38368
  toJSON(message) {
@@ -37357,6 +38373,9 @@ var SandboxCreateV2Request = {
37357
38373
  if (message.definition !== void 0) {
37358
38374
  obj.definition = Sandbox.toJSON(message.definition);
37359
38375
  }
38376
+ if (message.ephemeralSecrets !== void 0) {
38377
+ obj.ephemeralSecrets = StringMap.toJSON(message.ephemeralSecrets);
38378
+ }
37360
38379
  return obj;
37361
38380
  },
37362
38381
  create(base) {
@@ -37366,6 +38385,7 @@ var SandboxCreateV2Request = {
37366
38385
  const message = createBaseSandboxCreateV2Request();
37367
38386
  message.appId = object.appId ?? "";
37368
38387
  message.definition = object.definition !== void 0 && object.definition !== null ? Sandbox.fromPartial(object.definition) : void 0;
38388
+ message.ephemeralSecrets = object.ephemeralSecrets !== void 0 && object.ephemeralSecrets !== null ? StringMap.fromPartial(object.ephemeralSecrets) : void 0;
37369
38389
  return message;
37370
38390
  }
37371
38391
  };
@@ -38735,7 +39755,14 @@ var SandboxListResponse = {
38735
39755
  }
38736
39756
  };
38737
39757
  function createBaseSandboxRestoreRequest() {
38738
- return { snapshotId: "", sandboxNameOverride: "", sandboxNameOverrideType: 0, workerId: "" };
39758
+ return {
39759
+ snapshotId: "",
39760
+ sandboxNameOverride: "",
39761
+ sandboxNameOverrideType: 0,
39762
+ workerId: "",
39763
+ replaceVolumeMounts: false,
39764
+ volumeMounts: []
39765
+ };
38739
39766
  }
38740
39767
  var SandboxRestoreRequest = {
38741
39768
  encode(message, writer = new BinaryWriter()) {
@@ -38751,6 +39778,12 @@ var SandboxRestoreRequest = {
38751
39778
  if (message.workerId !== "") {
38752
39779
  writer.uint32(34).string(message.workerId);
38753
39780
  }
39781
+ if (message.replaceVolumeMounts !== false) {
39782
+ writer.uint32(40).bool(message.replaceVolumeMounts);
39783
+ }
39784
+ for (const v of message.volumeMounts) {
39785
+ VolumeMount.encode(v, writer.uint32(50).fork()).join();
39786
+ }
38754
39787
  return writer;
38755
39788
  },
38756
39789
  decode(input, length) {
@@ -38788,6 +39821,20 @@ var SandboxRestoreRequest = {
38788
39821
  message.workerId = reader.string();
38789
39822
  continue;
38790
39823
  }
39824
+ case 5: {
39825
+ if (tag !== 40) {
39826
+ break;
39827
+ }
39828
+ message.replaceVolumeMounts = reader.bool();
39829
+ continue;
39830
+ }
39831
+ case 6: {
39832
+ if (tag !== 50) {
39833
+ break;
39834
+ }
39835
+ message.volumeMounts.push(VolumeMount.decode(reader, reader.uint32()));
39836
+ continue;
39837
+ }
38791
39838
  }
38792
39839
  if ((tag & 7) === 4 || tag === 0) {
38793
39840
  break;
@@ -38801,7 +39848,9 @@ var SandboxRestoreRequest = {
38801
39848
  snapshotId: isSet5(object.snapshotId) ? globalThis.String(object.snapshotId) : "",
38802
39849
  sandboxNameOverride: isSet5(object.sandboxNameOverride) ? globalThis.String(object.sandboxNameOverride) : "",
38803
39850
  sandboxNameOverrideType: isSet5(object.sandboxNameOverrideType) ? sandboxRestoreRequest_SandboxNameOverrideTypeFromJSON(object.sandboxNameOverrideType) : 0,
38804
- workerId: isSet5(object.workerId) ? globalThis.String(object.workerId) : ""
39851
+ workerId: isSet5(object.workerId) ? globalThis.String(object.workerId) : "",
39852
+ replaceVolumeMounts: isSet5(object.replaceVolumeMounts) ? globalThis.Boolean(object.replaceVolumeMounts) : false,
39853
+ volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : []
38805
39854
  };
38806
39855
  },
38807
39856
  toJSON(message) {
@@ -38820,6 +39869,12 @@ var SandboxRestoreRequest = {
38820
39869
  if (message.workerId !== "") {
38821
39870
  obj.workerId = message.workerId;
38822
39871
  }
39872
+ if (message.replaceVolumeMounts !== false) {
39873
+ obj.replaceVolumeMounts = message.replaceVolumeMounts;
39874
+ }
39875
+ if (message.volumeMounts?.length) {
39876
+ obj.volumeMounts = message.volumeMounts.map((e) => VolumeMount.toJSON(e));
39877
+ }
38823
39878
  return obj;
38824
39879
  },
38825
39880
  create(base) {
@@ -38831,6 +39886,8 @@ var SandboxRestoreRequest = {
38831
39886
  message.sandboxNameOverride = object.sandboxNameOverride ?? "";
38832
39887
  message.sandboxNameOverrideType = object.sandboxNameOverrideType ?? 0;
38833
39888
  message.workerId = object.workerId ?? "";
39889
+ message.replaceVolumeMounts = object.replaceVolumeMounts ?? false;
39890
+ message.volumeMounts = object.volumeMounts?.map((e) => VolumeMount.fromPartial(e)) || [];
38834
39891
  return message;
38835
39892
  }
38836
39893
  };
@@ -43013,7 +44070,7 @@ var SystemErrorMessage = {
43013
44070
  }
43014
44071
  };
43015
44072
  function createBaseTaskClusterHelloRequest() {
43016
- return { taskId: "", containerIp: "" };
44073
+ return { taskId: "", containerIp: "", imexHostIp: "" };
43017
44074
  }
43018
44075
  var TaskClusterHelloRequest = {
43019
44076
  encode(message, writer = new BinaryWriter()) {
@@ -43023,6 +44080,9 @@ var TaskClusterHelloRequest = {
43023
44080
  if (message.containerIp !== "") {
43024
44081
  writer.uint32(18).string(message.containerIp);
43025
44082
  }
44083
+ if (message.imexHostIp !== "") {
44084
+ writer.uint32(26).string(message.imexHostIp);
44085
+ }
43026
44086
  return writer;
43027
44087
  },
43028
44088
  decode(input, length) {
@@ -43046,6 +44106,13 @@ var TaskClusterHelloRequest = {
43046
44106
  message.containerIp = reader.string();
43047
44107
  continue;
43048
44108
  }
44109
+ case 3: {
44110
+ if (tag !== 26) {
44111
+ break;
44112
+ }
44113
+ message.imexHostIp = reader.string();
44114
+ continue;
44115
+ }
43049
44116
  }
43050
44117
  if ((tag & 7) === 4 || tag === 0) {
43051
44118
  break;
@@ -43057,7 +44124,8 @@ var TaskClusterHelloRequest = {
43057
44124
  fromJSON(object) {
43058
44125
  return {
43059
44126
  taskId: isSet5(object.taskId) ? globalThis.String(object.taskId) : "",
43060
- containerIp: isSet5(object.containerIp) ? globalThis.String(object.containerIp) : ""
44127
+ containerIp: isSet5(object.containerIp) ? globalThis.String(object.containerIp) : "",
44128
+ imexHostIp: isSet5(object.imexHostIp) ? globalThis.String(object.imexHostIp) : ""
43061
44129
  };
43062
44130
  },
43063
44131
  toJSON(message) {
@@ -43068,6 +44136,9 @@ var TaskClusterHelloRequest = {
43068
44136
  if (message.containerIp !== "") {
43069
44137
  obj.containerIp = message.containerIp;
43070
44138
  }
44139
+ if (message.imexHostIp !== "") {
44140
+ obj.imexHostIp = message.imexHostIp;
44141
+ }
43071
44142
  return obj;
43072
44143
  },
43073
44144
  create(base) {
@@ -43077,11 +44148,12 @@ var TaskClusterHelloRequest = {
43077
44148
  const message = createBaseTaskClusterHelloRequest();
43078
44149
  message.taskId = object.taskId ?? "";
43079
44150
  message.containerIp = object.containerIp ?? "";
44151
+ message.imexHostIp = object.imexHostIp ?? "";
43080
44152
  return message;
43081
44153
  }
43082
44154
  };
43083
44155
  function createBaseTaskClusterHelloResponse() {
43084
- return { clusterId: "", clusterRank: 0, containerIps: [], containerIpv4Ips: [] };
44156
+ return { clusterId: "", clusterRank: 0, containerIps: [], containerIpv4Ips: [], imexPeerIps: [] };
43085
44157
  }
43086
44158
  var TaskClusterHelloResponse = {
43087
44159
  encode(message, writer = new BinaryWriter()) {
@@ -43097,6 +44169,9 @@ var TaskClusterHelloResponse = {
43097
44169
  for (const v of message.containerIpv4Ips) {
43098
44170
  writer.uint32(34).string(v);
43099
44171
  }
44172
+ for (const v of message.imexPeerIps) {
44173
+ writer.uint32(42).string(v);
44174
+ }
43100
44175
  return writer;
43101
44176
  },
43102
44177
  decode(input, length) {
@@ -43134,6 +44209,13 @@ var TaskClusterHelloResponse = {
43134
44209
  message.containerIpv4Ips.push(reader.string());
43135
44210
  continue;
43136
44211
  }
44212
+ case 5: {
44213
+ if (tag !== 42) {
44214
+ break;
44215
+ }
44216
+ message.imexPeerIps.push(reader.string());
44217
+ continue;
44218
+ }
43137
44219
  }
43138
44220
  if ((tag & 7) === 4 || tag === 0) {
43139
44221
  break;
@@ -43147,7 +44229,8 @@ var TaskClusterHelloResponse = {
43147
44229
  clusterId: isSet5(object.clusterId) ? globalThis.String(object.clusterId) : "",
43148
44230
  clusterRank: isSet5(object.clusterRank) ? globalThis.Number(object.clusterRank) : 0,
43149
44231
  containerIps: globalThis.Array.isArray(object?.containerIps) ? object.containerIps.map((e) => globalThis.String(e)) : [],
43150
- containerIpv4Ips: globalThis.Array.isArray(object?.containerIpv4Ips) ? object.containerIpv4Ips.map((e) => globalThis.String(e)) : []
44232
+ containerIpv4Ips: globalThis.Array.isArray(object?.containerIpv4Ips) ? object.containerIpv4Ips.map((e) => globalThis.String(e)) : [],
44233
+ imexPeerIps: globalThis.Array.isArray(object?.imexPeerIps) ? object.imexPeerIps.map((e) => globalThis.String(e)) : []
43151
44234
  };
43152
44235
  },
43153
44236
  toJSON(message) {
@@ -43164,6 +44247,9 @@ var TaskClusterHelloResponse = {
43164
44247
  if (message.containerIpv4Ips?.length) {
43165
44248
  obj.containerIpv4Ips = message.containerIpv4Ips;
43166
44249
  }
44250
+ if (message.imexPeerIps?.length) {
44251
+ obj.imexPeerIps = message.imexPeerIps;
44252
+ }
43167
44253
  return obj;
43168
44254
  },
43169
44255
  create(base) {
@@ -43175,6 +44261,7 @@ var TaskClusterHelloResponse = {
43175
44261
  message.clusterRank = object.clusterRank ?? 0;
43176
44262
  message.containerIps = object.containerIps?.map((e) => e) || [];
43177
44263
  message.containerIpv4Ips = object.containerIpv4Ips?.map((e) => e) || [];
44264
+ message.imexPeerIps = object.imexPeerIps?.map((e) => e) || [];
43178
44265
  return message;
43179
44266
  }
43180
44267
  };
@@ -44735,6 +45822,125 @@ var TemplateListResponse_TemplateListItem = {
44735
45822
  return message;
44736
45823
  }
44737
45824
  };
45825
+ function createBaseTokenCreateResponse() {
45826
+ return { tokenId: "", tokenSecret: "" };
45827
+ }
45828
+ var TokenCreateResponse = {
45829
+ encode(message, writer = new BinaryWriter()) {
45830
+ if (message.tokenId !== "") {
45831
+ writer.uint32(10).string(message.tokenId);
45832
+ }
45833
+ if (message.tokenSecret !== "") {
45834
+ writer.uint32(18).string(message.tokenSecret);
45835
+ }
45836
+ return writer;
45837
+ },
45838
+ decode(input, length) {
45839
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
45840
+ let end = length === void 0 ? reader.len : reader.pos + length;
45841
+ const message = createBaseTokenCreateResponse();
45842
+ while (reader.pos < end) {
45843
+ const tag = reader.uint32();
45844
+ switch (tag >>> 3) {
45845
+ case 1: {
45846
+ if (tag !== 10) {
45847
+ break;
45848
+ }
45849
+ message.tokenId = reader.string();
45850
+ continue;
45851
+ }
45852
+ case 2: {
45853
+ if (tag !== 18) {
45854
+ break;
45855
+ }
45856
+ message.tokenSecret = reader.string();
45857
+ continue;
45858
+ }
45859
+ }
45860
+ if ((tag & 7) === 4 || tag === 0) {
45861
+ break;
45862
+ }
45863
+ reader.skip(tag & 7);
45864
+ }
45865
+ return message;
45866
+ },
45867
+ fromJSON(object) {
45868
+ return {
45869
+ tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
45870
+ tokenSecret: isSet5(object.tokenSecret) ? globalThis.String(object.tokenSecret) : ""
45871
+ };
45872
+ },
45873
+ toJSON(message) {
45874
+ const obj = {};
45875
+ if (message.tokenId !== "") {
45876
+ obj.tokenId = message.tokenId;
45877
+ }
45878
+ if (message.tokenSecret !== "") {
45879
+ obj.tokenSecret = message.tokenSecret;
45880
+ }
45881
+ return obj;
45882
+ },
45883
+ create(base) {
45884
+ return TokenCreateResponse.fromPartial(base ?? {});
45885
+ },
45886
+ fromPartial(object) {
45887
+ const message = createBaseTokenCreateResponse();
45888
+ message.tokenId = object.tokenId ?? "";
45889
+ message.tokenSecret = object.tokenSecret ?? "";
45890
+ return message;
45891
+ }
45892
+ };
45893
+ function createBaseTokenDeleteRequest() {
45894
+ return { tokenId: "" };
45895
+ }
45896
+ var TokenDeleteRequest = {
45897
+ encode(message, writer = new BinaryWriter()) {
45898
+ if (message.tokenId !== "") {
45899
+ writer.uint32(18).string(message.tokenId);
45900
+ }
45901
+ return writer;
45902
+ },
45903
+ decode(input, length) {
45904
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
45905
+ let end = length === void 0 ? reader.len : reader.pos + length;
45906
+ const message = createBaseTokenDeleteRequest();
45907
+ while (reader.pos < end) {
45908
+ const tag = reader.uint32();
45909
+ switch (tag >>> 3) {
45910
+ case 2: {
45911
+ if (tag !== 18) {
45912
+ break;
45913
+ }
45914
+ message.tokenId = reader.string();
45915
+ continue;
45916
+ }
45917
+ }
45918
+ if ((tag & 7) === 4 || tag === 0) {
45919
+ break;
45920
+ }
45921
+ reader.skip(tag & 7);
45922
+ }
45923
+ return message;
45924
+ },
45925
+ fromJSON(object) {
45926
+ return { tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "" };
45927
+ },
45928
+ toJSON(message) {
45929
+ const obj = {};
45930
+ if (message.tokenId !== "") {
45931
+ obj.tokenId = message.tokenId;
45932
+ }
45933
+ return obj;
45934
+ },
45935
+ create(base) {
45936
+ return TokenDeleteRequest.fromPartial(base ?? {});
45937
+ },
45938
+ fromPartial(object) {
45939
+ const message = createBaseTokenDeleteRequest();
45940
+ message.tokenId = object.tokenId ?? "";
45941
+ return message;
45942
+ }
45943
+ };
44738
45944
  function createBaseTokenFlowCreateRequest() {
44739
45945
  return { utmSource: "", localhostPort: 0, nextUrl: "" };
44740
45946
  }
@@ -45817,13 +47023,16 @@ var UserIdentity = {
45817
47023
  }
45818
47024
  };
45819
47025
  function createBaseVolumeCommitRequest() {
45820
- return { volumeId: "" };
47026
+ return { volumeId: "", containerId: void 0 };
45821
47027
  }
45822
47028
  var VolumeCommitRequest = {
45823
47029
  encode(message, writer = new BinaryWriter()) {
45824
47030
  if (message.volumeId !== "") {
45825
47031
  writer.uint32(10).string(message.volumeId);
45826
47032
  }
47033
+ if (message.containerId !== void 0) {
47034
+ writer.uint32(18).string(message.containerId);
47035
+ }
45827
47036
  return writer;
45828
47037
  },
45829
47038
  decode(input, length) {
@@ -45840,6 +47049,13 @@ var VolumeCommitRequest = {
45840
47049
  message.volumeId = reader.string();
45841
47050
  continue;
45842
47051
  }
47052
+ case 2: {
47053
+ if (tag !== 18) {
47054
+ break;
47055
+ }
47056
+ message.containerId = reader.string();
47057
+ continue;
47058
+ }
45843
47059
  }
45844
47060
  if ((tag & 7) === 4 || tag === 0) {
45845
47061
  break;
@@ -45849,13 +47065,19 @@ var VolumeCommitRequest = {
45849
47065
  return message;
45850
47066
  },
45851
47067
  fromJSON(object) {
45852
- return { volumeId: isSet5(object.volumeId) ? globalThis.String(object.volumeId) : "" };
47068
+ return {
47069
+ volumeId: isSet5(object.volumeId) ? globalThis.String(object.volumeId) : "",
47070
+ containerId: isSet5(object.containerId) ? globalThis.String(object.containerId) : void 0
47071
+ };
45853
47072
  },
45854
47073
  toJSON(message) {
45855
47074
  const obj = {};
45856
47075
  if (message.volumeId !== "") {
45857
47076
  obj.volumeId = message.volumeId;
45858
47077
  }
47078
+ if (message.containerId !== void 0) {
47079
+ obj.containerId = message.containerId;
47080
+ }
45859
47081
  return obj;
45860
47082
  },
45861
47083
  create(base) {
@@ -45864,6 +47086,7 @@ var VolumeCommitRequest = {
45864
47086
  fromPartial(object) {
45865
47087
  const message = createBaseVolumeCommitRequest();
45866
47088
  message.volumeId = object.volumeId ?? "";
47089
+ message.containerId = object.containerId ?? void 0;
45867
47090
  return message;
45868
47091
  }
45869
47092
  };
@@ -48790,8 +50013,495 @@ var WebhookConfig = {
48790
50013
  return message;
48791
50014
  }
48792
50015
  };
50016
+ function createBaseWebhookToken() {
50017
+ return { tokenId: "", createdAt: 0, scoped: false };
50018
+ }
50019
+ var WebhookToken = {
50020
+ encode(message, writer = new BinaryWriter()) {
50021
+ if (message.tokenId !== "") {
50022
+ writer.uint32(10).string(message.tokenId);
50023
+ }
50024
+ if (message.createdAt !== 0) {
50025
+ writer.uint32(17).double(message.createdAt);
50026
+ }
50027
+ if (message.scoped !== false) {
50028
+ writer.uint32(24).bool(message.scoped);
50029
+ }
50030
+ return writer;
50031
+ },
50032
+ decode(input, length) {
50033
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50034
+ let end = length === void 0 ? reader.len : reader.pos + length;
50035
+ const message = createBaseWebhookToken();
50036
+ while (reader.pos < end) {
50037
+ const tag = reader.uint32();
50038
+ switch (tag >>> 3) {
50039
+ case 1: {
50040
+ if (tag !== 10) {
50041
+ break;
50042
+ }
50043
+ message.tokenId = reader.string();
50044
+ continue;
50045
+ }
50046
+ case 2: {
50047
+ if (tag !== 17) {
50048
+ break;
50049
+ }
50050
+ message.createdAt = reader.double();
50051
+ continue;
50052
+ }
50053
+ case 3: {
50054
+ if (tag !== 24) {
50055
+ break;
50056
+ }
50057
+ message.scoped = reader.bool();
50058
+ continue;
50059
+ }
50060
+ }
50061
+ if ((tag & 7) === 4 || tag === 0) {
50062
+ break;
50063
+ }
50064
+ reader.skip(tag & 7);
50065
+ }
50066
+ return message;
50067
+ },
50068
+ fromJSON(object) {
50069
+ return {
50070
+ tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
50071
+ createdAt: isSet5(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
50072
+ scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false
50073
+ };
50074
+ },
50075
+ toJSON(message) {
50076
+ const obj = {};
50077
+ if (message.tokenId !== "") {
50078
+ obj.tokenId = message.tokenId;
50079
+ }
50080
+ if (message.createdAt !== 0) {
50081
+ obj.createdAt = message.createdAt;
50082
+ }
50083
+ if (message.scoped !== false) {
50084
+ obj.scoped = message.scoped;
50085
+ }
50086
+ return obj;
50087
+ },
50088
+ create(base) {
50089
+ return WebhookToken.fromPartial(base ?? {});
50090
+ },
50091
+ fromPartial(object) {
50092
+ const message = createBaseWebhookToken();
50093
+ message.tokenId = object.tokenId ?? "";
50094
+ message.createdAt = object.createdAt ?? 0;
50095
+ message.scoped = object.scoped ?? false;
50096
+ return message;
50097
+ }
50098
+ };
50099
+ function createBaseWebhookTokenCreateRequest() {
50100
+ return { scoped: false };
50101
+ }
50102
+ var WebhookTokenCreateRequest = {
50103
+ encode(message, writer = new BinaryWriter()) {
50104
+ if (message.scoped !== false) {
50105
+ writer.uint32(8).bool(message.scoped);
50106
+ }
50107
+ return writer;
50108
+ },
50109
+ decode(input, length) {
50110
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50111
+ let end = length === void 0 ? reader.len : reader.pos + length;
50112
+ const message = createBaseWebhookTokenCreateRequest();
50113
+ while (reader.pos < end) {
50114
+ const tag = reader.uint32();
50115
+ switch (tag >>> 3) {
50116
+ case 1: {
50117
+ if (tag !== 8) {
50118
+ break;
50119
+ }
50120
+ message.scoped = reader.bool();
50121
+ continue;
50122
+ }
50123
+ }
50124
+ if ((tag & 7) === 4 || tag === 0) {
50125
+ break;
50126
+ }
50127
+ reader.skip(tag & 7);
50128
+ }
50129
+ return message;
50130
+ },
50131
+ fromJSON(object) {
50132
+ return { scoped: isSet5(object.scoped) ? globalThis.Boolean(object.scoped) : false };
50133
+ },
50134
+ toJSON(message) {
50135
+ const obj = {};
50136
+ if (message.scoped !== false) {
50137
+ obj.scoped = message.scoped;
50138
+ }
50139
+ return obj;
50140
+ },
50141
+ create(base) {
50142
+ return WebhookTokenCreateRequest.fromPartial(base ?? {});
50143
+ },
50144
+ fromPartial(object) {
50145
+ const message = createBaseWebhookTokenCreateRequest();
50146
+ message.scoped = object.scoped ?? false;
50147
+ return message;
50148
+ }
50149
+ };
50150
+ function createBaseWebhookTokenEnvironmentAddRequest() {
50151
+ return { tokenId: "", environmentId: "" };
50152
+ }
50153
+ var WebhookTokenEnvironmentAddRequest = {
50154
+ encode(message, writer = new BinaryWriter()) {
50155
+ if (message.tokenId !== "") {
50156
+ writer.uint32(10).string(message.tokenId);
50157
+ }
50158
+ if (message.environmentId !== "") {
50159
+ writer.uint32(18).string(message.environmentId);
50160
+ }
50161
+ return writer;
50162
+ },
50163
+ decode(input, length) {
50164
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50165
+ let end = length === void 0 ? reader.len : reader.pos + length;
50166
+ const message = createBaseWebhookTokenEnvironmentAddRequest();
50167
+ while (reader.pos < end) {
50168
+ const tag = reader.uint32();
50169
+ switch (tag >>> 3) {
50170
+ case 1: {
50171
+ if (tag !== 10) {
50172
+ break;
50173
+ }
50174
+ message.tokenId = reader.string();
50175
+ continue;
50176
+ }
50177
+ case 2: {
50178
+ if (tag !== 18) {
50179
+ break;
50180
+ }
50181
+ message.environmentId = reader.string();
50182
+ continue;
50183
+ }
50184
+ }
50185
+ if ((tag & 7) === 4 || tag === 0) {
50186
+ break;
50187
+ }
50188
+ reader.skip(tag & 7);
50189
+ }
50190
+ return message;
50191
+ },
50192
+ fromJSON(object) {
50193
+ return {
50194
+ tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
50195
+ environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : ""
50196
+ };
50197
+ },
50198
+ toJSON(message) {
50199
+ const obj = {};
50200
+ if (message.tokenId !== "") {
50201
+ obj.tokenId = message.tokenId;
50202
+ }
50203
+ if (message.environmentId !== "") {
50204
+ obj.environmentId = message.environmentId;
50205
+ }
50206
+ return obj;
50207
+ },
50208
+ create(base) {
50209
+ return WebhookTokenEnvironmentAddRequest.fromPartial(base ?? {});
50210
+ },
50211
+ fromPartial(object) {
50212
+ const message = createBaseWebhookTokenEnvironmentAddRequest();
50213
+ message.tokenId = object.tokenId ?? "";
50214
+ message.environmentId = object.environmentId ?? "";
50215
+ return message;
50216
+ }
50217
+ };
50218
+ function createBaseWebhookTokenEnvironmentListRequest() {
50219
+ return { tokenId: "" };
50220
+ }
50221
+ var WebhookTokenEnvironmentListRequest = {
50222
+ encode(message, writer = new BinaryWriter()) {
50223
+ if (message.tokenId !== "") {
50224
+ writer.uint32(10).string(message.tokenId);
50225
+ }
50226
+ return writer;
50227
+ },
50228
+ decode(input, length) {
50229
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50230
+ let end = length === void 0 ? reader.len : reader.pos + length;
50231
+ const message = createBaseWebhookTokenEnvironmentListRequest();
50232
+ while (reader.pos < end) {
50233
+ const tag = reader.uint32();
50234
+ switch (tag >>> 3) {
50235
+ case 1: {
50236
+ if (tag !== 10) {
50237
+ break;
50238
+ }
50239
+ message.tokenId = reader.string();
50240
+ continue;
50241
+ }
50242
+ }
50243
+ if ((tag & 7) === 4 || tag === 0) {
50244
+ break;
50245
+ }
50246
+ reader.skip(tag & 7);
50247
+ }
50248
+ return message;
50249
+ },
50250
+ fromJSON(object) {
50251
+ return { tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "" };
50252
+ },
50253
+ toJSON(message) {
50254
+ const obj = {};
50255
+ if (message.tokenId !== "") {
50256
+ obj.tokenId = message.tokenId;
50257
+ }
50258
+ return obj;
50259
+ },
50260
+ create(base) {
50261
+ return WebhookTokenEnvironmentListRequest.fromPartial(base ?? {});
50262
+ },
50263
+ fromPartial(object) {
50264
+ const message = createBaseWebhookTokenEnvironmentListRequest();
50265
+ message.tokenId = object.tokenId ?? "";
50266
+ return message;
50267
+ }
50268
+ };
50269
+ function createBaseWebhookTokenEnvironmentListResponse() {
50270
+ return { environmentIds: [] };
50271
+ }
50272
+ var WebhookTokenEnvironmentListResponse = {
50273
+ encode(message, writer = new BinaryWriter()) {
50274
+ for (const v of message.environmentIds) {
50275
+ writer.uint32(10).string(v);
50276
+ }
50277
+ return writer;
50278
+ },
50279
+ decode(input, length) {
50280
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50281
+ let end = length === void 0 ? reader.len : reader.pos + length;
50282
+ const message = createBaseWebhookTokenEnvironmentListResponse();
50283
+ while (reader.pos < end) {
50284
+ const tag = reader.uint32();
50285
+ switch (tag >>> 3) {
50286
+ case 1: {
50287
+ if (tag !== 10) {
50288
+ break;
50289
+ }
50290
+ message.environmentIds.push(reader.string());
50291
+ continue;
50292
+ }
50293
+ }
50294
+ if ((tag & 7) === 4 || tag === 0) {
50295
+ break;
50296
+ }
50297
+ reader.skip(tag & 7);
50298
+ }
50299
+ return message;
50300
+ },
50301
+ fromJSON(object) {
50302
+ return {
50303
+ environmentIds: globalThis.Array.isArray(object?.environmentIds) ? object.environmentIds.map((e) => globalThis.String(e)) : []
50304
+ };
50305
+ },
50306
+ toJSON(message) {
50307
+ const obj = {};
50308
+ if (message.environmentIds?.length) {
50309
+ obj.environmentIds = message.environmentIds;
50310
+ }
50311
+ return obj;
50312
+ },
50313
+ create(base) {
50314
+ return WebhookTokenEnvironmentListResponse.fromPartial(base ?? {});
50315
+ },
50316
+ fromPartial(object) {
50317
+ const message = createBaseWebhookTokenEnvironmentListResponse();
50318
+ message.environmentIds = object.environmentIds?.map((e) => e) || [];
50319
+ return message;
50320
+ }
50321
+ };
50322
+ function createBaseWebhookTokenEnvironmentRemoveRequest() {
50323
+ return { tokenId: "", environmentId: "" };
50324
+ }
50325
+ var WebhookTokenEnvironmentRemoveRequest = {
50326
+ encode(message, writer = new BinaryWriter()) {
50327
+ if (message.tokenId !== "") {
50328
+ writer.uint32(10).string(message.tokenId);
50329
+ }
50330
+ if (message.environmentId !== "") {
50331
+ writer.uint32(18).string(message.environmentId);
50332
+ }
50333
+ return writer;
50334
+ },
50335
+ decode(input, length) {
50336
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50337
+ let end = length === void 0 ? reader.len : reader.pos + length;
50338
+ const message = createBaseWebhookTokenEnvironmentRemoveRequest();
50339
+ while (reader.pos < end) {
50340
+ const tag = reader.uint32();
50341
+ switch (tag >>> 3) {
50342
+ case 1: {
50343
+ if (tag !== 10) {
50344
+ break;
50345
+ }
50346
+ message.tokenId = reader.string();
50347
+ continue;
50348
+ }
50349
+ case 2: {
50350
+ if (tag !== 18) {
50351
+ break;
50352
+ }
50353
+ message.environmentId = reader.string();
50354
+ continue;
50355
+ }
50356
+ }
50357
+ if ((tag & 7) === 4 || tag === 0) {
50358
+ break;
50359
+ }
50360
+ reader.skip(tag & 7);
50361
+ }
50362
+ return message;
50363
+ },
50364
+ fromJSON(object) {
50365
+ return {
50366
+ tokenId: isSet5(object.tokenId) ? globalThis.String(object.tokenId) : "",
50367
+ environmentId: isSet5(object.environmentId) ? globalThis.String(object.environmentId) : ""
50368
+ };
50369
+ },
50370
+ toJSON(message) {
50371
+ const obj = {};
50372
+ if (message.tokenId !== "") {
50373
+ obj.tokenId = message.tokenId;
50374
+ }
50375
+ if (message.environmentId !== "") {
50376
+ obj.environmentId = message.environmentId;
50377
+ }
50378
+ return obj;
50379
+ },
50380
+ create(base) {
50381
+ return WebhookTokenEnvironmentRemoveRequest.fromPartial(base ?? {});
50382
+ },
50383
+ fromPartial(object) {
50384
+ const message = createBaseWebhookTokenEnvironmentRemoveRequest();
50385
+ message.tokenId = object.tokenId ?? "";
50386
+ message.environmentId = object.environmentId ?? "";
50387
+ return message;
50388
+ }
50389
+ };
50390
+ function createBaseWebhookTokenListForEnvironmentRequest() {
50391
+ return { environmentName: "" };
50392
+ }
50393
+ var WebhookTokenListForEnvironmentRequest = {
50394
+ encode(message, writer = new BinaryWriter()) {
50395
+ if (message.environmentName !== "") {
50396
+ writer.uint32(10).string(message.environmentName);
50397
+ }
50398
+ return writer;
50399
+ },
50400
+ decode(input, length) {
50401
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50402
+ let end = length === void 0 ? reader.len : reader.pos + length;
50403
+ const message = createBaseWebhookTokenListForEnvironmentRequest();
50404
+ while (reader.pos < end) {
50405
+ const tag = reader.uint32();
50406
+ switch (tag >>> 3) {
50407
+ case 1: {
50408
+ if (tag !== 10) {
50409
+ break;
50410
+ }
50411
+ message.environmentName = reader.string();
50412
+ continue;
50413
+ }
50414
+ }
50415
+ if ((tag & 7) === 4 || tag === 0) {
50416
+ break;
50417
+ }
50418
+ reader.skip(tag & 7);
50419
+ }
50420
+ return message;
50421
+ },
50422
+ fromJSON(object) {
50423
+ return { environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "" };
50424
+ },
50425
+ toJSON(message) {
50426
+ const obj = {};
50427
+ if (message.environmentName !== "") {
50428
+ obj.environmentName = message.environmentName;
50429
+ }
50430
+ return obj;
50431
+ },
50432
+ create(base) {
50433
+ return WebhookTokenListForEnvironmentRequest.fromPartial(base ?? {});
50434
+ },
50435
+ fromPartial(object) {
50436
+ const message = createBaseWebhookTokenListForEnvironmentRequest();
50437
+ message.environmentName = object.environmentName ?? "";
50438
+ return message;
50439
+ }
50440
+ };
50441
+ function createBaseWebhookTokenListResponse() {
50442
+ return { tokens: [] };
50443
+ }
50444
+ var WebhookTokenListResponse = {
50445
+ encode(message, writer = new BinaryWriter()) {
50446
+ for (const v of message.tokens) {
50447
+ WebhookToken.encode(v, writer.uint32(10).fork()).join();
50448
+ }
50449
+ return writer;
50450
+ },
50451
+ decode(input, length) {
50452
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50453
+ let end = length === void 0 ? reader.len : reader.pos + length;
50454
+ const message = createBaseWebhookTokenListResponse();
50455
+ while (reader.pos < end) {
50456
+ const tag = reader.uint32();
50457
+ switch (tag >>> 3) {
50458
+ case 1: {
50459
+ if (tag !== 10) {
50460
+ break;
50461
+ }
50462
+ message.tokens.push(WebhookToken.decode(reader, reader.uint32()));
50463
+ continue;
50464
+ }
50465
+ }
50466
+ if ((tag & 7) === 4 || tag === 0) {
50467
+ break;
50468
+ }
50469
+ reader.skip(tag & 7);
50470
+ }
50471
+ return message;
50472
+ },
50473
+ fromJSON(object) {
50474
+ return {
50475
+ tokens: globalThis.Array.isArray(object?.tokens) ? object.tokens.map((e) => WebhookToken.fromJSON(e)) : []
50476
+ };
50477
+ },
50478
+ toJSON(message) {
50479
+ const obj = {};
50480
+ if (message.tokens?.length) {
50481
+ obj.tokens = message.tokens.map((e) => WebhookToken.toJSON(e));
50482
+ }
50483
+ return obj;
50484
+ },
50485
+ create(base) {
50486
+ return WebhookTokenListResponse.fromPartial(base ?? {});
50487
+ },
50488
+ fromPartial(object) {
50489
+ const message = createBaseWebhookTokenListResponse();
50490
+ message.tokens = object.tokens?.map((e) => WebhookToken.fromPartial(e)) || [];
50491
+ return message;
50492
+ }
50493
+ };
48793
50494
  function createBaseWorkspaceBillingReportItem() {
48794
- return { objectId: "", description: "", environmentName: "", interval: void 0, cost: "", tags: {} };
50495
+ return {
50496
+ objectId: "",
50497
+ description: "",
50498
+ environmentName: "",
50499
+ interval: void 0,
50500
+ cost: "",
50501
+ tags: {},
50502
+ costByResourceFloat: {},
50503
+ costByResource: {}
50504
+ };
48795
50505
  }
48796
50506
  var WorkspaceBillingReportItem = {
48797
50507
  encode(message, writer = new BinaryWriter()) {
@@ -48813,6 +50523,12 @@ var WorkspaceBillingReportItem = {
48813
50523
  Object.entries(message.tags).forEach(([key, value]) => {
48814
50524
  WorkspaceBillingReportItem_TagsEntry.encode({ key, value }, writer.uint32(50).fork()).join();
48815
50525
  });
50526
+ Object.entries(message.costByResourceFloat).forEach(([key, value]) => {
50527
+ WorkspaceBillingReportItem_CostByResourceFloatEntry.encode({ key, value }, writer.uint32(58).fork()).join();
50528
+ });
50529
+ Object.entries(message.costByResource).forEach(([key, value]) => {
50530
+ WorkspaceBillingReportItem_CostByResourceEntry.encode({ key, value }, writer.uint32(66).fork()).join();
50531
+ });
48816
50532
  return writer;
48817
50533
  },
48818
50534
  decode(input, length) {
@@ -48867,6 +50583,26 @@ var WorkspaceBillingReportItem = {
48867
50583
  }
48868
50584
  continue;
48869
50585
  }
50586
+ case 7: {
50587
+ if (tag !== 58) {
50588
+ break;
50589
+ }
50590
+ const entry7 = WorkspaceBillingReportItem_CostByResourceFloatEntry.decode(reader, reader.uint32());
50591
+ if (entry7.value !== void 0) {
50592
+ message.costByResourceFloat[entry7.key] = entry7.value;
50593
+ }
50594
+ continue;
50595
+ }
50596
+ case 8: {
50597
+ if (tag !== 66) {
50598
+ break;
50599
+ }
50600
+ const entry8 = WorkspaceBillingReportItem_CostByResourceEntry.decode(reader, reader.uint32());
50601
+ if (entry8.value !== void 0) {
50602
+ message.costByResource[entry8.key] = entry8.value;
50603
+ }
50604
+ continue;
50605
+ }
48870
50606
  }
48871
50607
  if ((tag & 7) === 4 || tag === 0) {
48872
50608
  break;
@@ -48885,6 +50621,14 @@ var WorkspaceBillingReportItem = {
48885
50621
  tags: isObject2(object.tags) ? Object.entries(object.tags).reduce((acc, [key, value]) => {
48886
50622
  acc[key] = String(value);
48887
50623
  return acc;
50624
+ }, {}) : {},
50625
+ costByResourceFloat: isObject2(object.costByResourceFloat) ? Object.entries(object.costByResourceFloat).reduce((acc, [key, value]) => {
50626
+ acc[key] = Number(value);
50627
+ return acc;
50628
+ }, {}) : {},
50629
+ costByResource: isObject2(object.costByResource) ? Object.entries(object.costByResource).reduce((acc, [key, value]) => {
50630
+ acc[key] = String(value);
50631
+ return acc;
48888
50632
  }, {}) : {}
48889
50633
  };
48890
50634
  },
@@ -48914,6 +50658,24 @@ var WorkspaceBillingReportItem = {
48914
50658
  });
48915
50659
  }
48916
50660
  }
50661
+ if (message.costByResourceFloat) {
50662
+ const entries = Object.entries(message.costByResourceFloat);
50663
+ if (entries.length > 0) {
50664
+ obj.costByResourceFloat = {};
50665
+ entries.forEach(([k, v]) => {
50666
+ obj.costByResourceFloat[k] = v;
50667
+ });
50668
+ }
50669
+ }
50670
+ if (message.costByResource) {
50671
+ const entries = Object.entries(message.costByResource);
50672
+ if (entries.length > 0) {
50673
+ obj.costByResource = {};
50674
+ entries.forEach(([k, v]) => {
50675
+ obj.costByResource[k] = v;
50676
+ });
50677
+ }
50678
+ }
48917
50679
  return obj;
48918
50680
  },
48919
50681
  create(base) {
@@ -48932,6 +50694,24 @@ var WorkspaceBillingReportItem = {
48932
50694
  }
48933
50695
  return acc;
48934
50696
  }, {});
50697
+ message.costByResourceFloat = Object.entries(object.costByResourceFloat ?? {}).reduce(
50698
+ (acc, [key, value]) => {
50699
+ if (value !== void 0) {
50700
+ acc[key] = globalThis.Number(value);
50701
+ }
50702
+ return acc;
50703
+ },
50704
+ {}
50705
+ );
50706
+ message.costByResource = Object.entries(object.costByResource ?? {}).reduce(
50707
+ (acc, [key, value]) => {
50708
+ if (value !== void 0) {
50709
+ acc[key] = globalThis.String(value);
50710
+ }
50711
+ return acc;
50712
+ },
50713
+ {}
50714
+ );
48935
50715
  return message;
48936
50716
  }
48937
50717
  };
@@ -49003,8 +50783,151 @@ var WorkspaceBillingReportItem_TagsEntry = {
49003
50783
  return message;
49004
50784
  }
49005
50785
  };
50786
+ function createBaseWorkspaceBillingReportItem_CostByResourceFloatEntry() {
50787
+ return { key: "", value: 0 };
50788
+ }
50789
+ var WorkspaceBillingReportItem_CostByResourceFloatEntry = {
50790
+ encode(message, writer = new BinaryWriter()) {
50791
+ if (message.key !== "") {
50792
+ writer.uint32(10).string(message.key);
50793
+ }
50794
+ if (message.value !== 0) {
50795
+ writer.uint32(17).double(message.value);
50796
+ }
50797
+ return writer;
50798
+ },
50799
+ decode(input, length) {
50800
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50801
+ let end = length === void 0 ? reader.len : reader.pos + length;
50802
+ const message = createBaseWorkspaceBillingReportItem_CostByResourceFloatEntry();
50803
+ while (reader.pos < end) {
50804
+ const tag = reader.uint32();
50805
+ switch (tag >>> 3) {
50806
+ case 1: {
50807
+ if (tag !== 10) {
50808
+ break;
50809
+ }
50810
+ message.key = reader.string();
50811
+ continue;
50812
+ }
50813
+ case 2: {
50814
+ if (tag !== 17) {
50815
+ break;
50816
+ }
50817
+ message.value = reader.double();
50818
+ continue;
50819
+ }
50820
+ }
50821
+ if ((tag & 7) === 4 || tag === 0) {
50822
+ break;
50823
+ }
50824
+ reader.skip(tag & 7);
50825
+ }
50826
+ return message;
50827
+ },
50828
+ fromJSON(object) {
50829
+ return {
50830
+ key: isSet5(object.key) ? globalThis.String(object.key) : "",
50831
+ value: isSet5(object.value) ? globalThis.Number(object.value) : 0
50832
+ };
50833
+ },
50834
+ toJSON(message) {
50835
+ const obj = {};
50836
+ if (message.key !== "") {
50837
+ obj.key = message.key;
50838
+ }
50839
+ if (message.value !== 0) {
50840
+ obj.value = message.value;
50841
+ }
50842
+ return obj;
50843
+ },
50844
+ create(base) {
50845
+ return WorkspaceBillingReportItem_CostByResourceFloatEntry.fromPartial(base ?? {});
50846
+ },
50847
+ fromPartial(object) {
50848
+ const message = createBaseWorkspaceBillingReportItem_CostByResourceFloatEntry();
50849
+ message.key = object.key ?? "";
50850
+ message.value = object.value ?? 0;
50851
+ return message;
50852
+ }
50853
+ };
50854
+ function createBaseWorkspaceBillingReportItem_CostByResourceEntry() {
50855
+ return { key: "", value: "" };
50856
+ }
50857
+ var WorkspaceBillingReportItem_CostByResourceEntry = {
50858
+ encode(message, writer = new BinaryWriter()) {
50859
+ if (message.key !== "") {
50860
+ writer.uint32(10).string(message.key);
50861
+ }
50862
+ if (message.value !== "") {
50863
+ writer.uint32(18).string(message.value);
50864
+ }
50865
+ return writer;
50866
+ },
50867
+ decode(input, length) {
50868
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
50869
+ let end = length === void 0 ? reader.len : reader.pos + length;
50870
+ const message = createBaseWorkspaceBillingReportItem_CostByResourceEntry();
50871
+ while (reader.pos < end) {
50872
+ const tag = reader.uint32();
50873
+ switch (tag >>> 3) {
50874
+ case 1: {
50875
+ if (tag !== 10) {
50876
+ break;
50877
+ }
50878
+ message.key = reader.string();
50879
+ continue;
50880
+ }
50881
+ case 2: {
50882
+ if (tag !== 18) {
50883
+ break;
50884
+ }
50885
+ message.value = reader.string();
50886
+ continue;
50887
+ }
50888
+ }
50889
+ if ((tag & 7) === 4 || tag === 0) {
50890
+ break;
50891
+ }
50892
+ reader.skip(tag & 7);
50893
+ }
50894
+ return message;
50895
+ },
50896
+ fromJSON(object) {
50897
+ return {
50898
+ key: isSet5(object.key) ? globalThis.String(object.key) : "",
50899
+ value: isSet5(object.value) ? globalThis.String(object.value) : ""
50900
+ };
50901
+ },
50902
+ toJSON(message) {
50903
+ const obj = {};
50904
+ if (message.key !== "") {
50905
+ obj.key = message.key;
50906
+ }
50907
+ if (message.value !== "") {
50908
+ obj.value = message.value;
50909
+ }
50910
+ return obj;
50911
+ },
50912
+ create(base) {
50913
+ return WorkspaceBillingReportItem_CostByResourceEntry.fromPartial(base ?? {});
50914
+ },
50915
+ fromPartial(object) {
50916
+ const message = createBaseWorkspaceBillingReportItem_CostByResourceEntry();
50917
+ message.key = object.key ?? "";
50918
+ message.value = object.value ?? "";
50919
+ return message;
50920
+ }
50921
+ };
49006
50922
  function createBaseWorkspaceBillingReportRequest() {
49007
- return { startTimestamp: void 0, endTimestamp: void 0, resolution: "", tagNames: [] };
50923
+ return {
50924
+ startTimestamp: void 0,
50925
+ endTimestamp: void 0,
50926
+ resolution: "",
50927
+ tagNames: [],
50928
+ environmentIds: [],
50929
+ appIds: []
50930
+ };
49008
50931
  }
49009
50932
  var WorkspaceBillingReportRequest = {
49010
50933
  encode(message, writer = new BinaryWriter()) {
@@ -49020,6 +50943,12 @@ var WorkspaceBillingReportRequest = {
49020
50943
  for (const v of message.tagNames) {
49021
50944
  writer.uint32(34).string(v);
49022
50945
  }
50946
+ for (const v of message.environmentIds) {
50947
+ writer.uint32(42).string(v);
50948
+ }
50949
+ for (const v of message.appIds) {
50950
+ writer.uint32(50).string(v);
50951
+ }
49023
50952
  return writer;
49024
50953
  },
49025
50954
  decode(input, length) {
@@ -49057,6 +50986,20 @@ var WorkspaceBillingReportRequest = {
49057
50986
  message.tagNames.push(reader.string());
49058
50987
  continue;
49059
50988
  }
50989
+ case 5: {
50990
+ if (tag !== 42) {
50991
+ break;
50992
+ }
50993
+ message.environmentIds.push(reader.string());
50994
+ continue;
50995
+ }
50996
+ case 6: {
50997
+ if (tag !== 50) {
50998
+ break;
50999
+ }
51000
+ message.appIds.push(reader.string());
51001
+ continue;
51002
+ }
49060
51003
  }
49061
51004
  if ((tag & 7) === 4 || tag === 0) {
49062
51005
  break;
@@ -49070,7 +51013,9 @@ var WorkspaceBillingReportRequest = {
49070
51013
  startTimestamp: isSet5(object.startTimestamp) ? fromJsonTimestamp(object.startTimestamp) : void 0,
49071
51014
  endTimestamp: isSet5(object.endTimestamp) ? fromJsonTimestamp(object.endTimestamp) : void 0,
49072
51015
  resolution: isSet5(object.resolution) ? globalThis.String(object.resolution) : "",
49073
- tagNames: globalThis.Array.isArray(object?.tagNames) ? object.tagNames.map((e) => globalThis.String(e)) : []
51016
+ tagNames: globalThis.Array.isArray(object?.tagNames) ? object.tagNames.map((e) => globalThis.String(e)) : [],
51017
+ environmentIds: globalThis.Array.isArray(object?.environmentIds) ? object.environmentIds.map((e) => globalThis.String(e)) : [],
51018
+ appIds: globalThis.Array.isArray(object?.appIds) ? object.appIds.map((e) => globalThis.String(e)) : []
49074
51019
  };
49075
51020
  },
49076
51021
  toJSON(message) {
@@ -49087,6 +51032,12 @@ var WorkspaceBillingReportRequest = {
49087
51032
  if (message.tagNames?.length) {
49088
51033
  obj.tagNames = message.tagNames;
49089
51034
  }
51035
+ if (message.environmentIds?.length) {
51036
+ obj.environmentIds = message.environmentIds;
51037
+ }
51038
+ if (message.appIds?.length) {
51039
+ obj.appIds = message.appIds;
51040
+ }
49090
51041
  return obj;
49091
51042
  },
49092
51043
  create(base) {
@@ -49098,6 +51049,8 @@ var WorkspaceBillingReportRequest = {
49098
51049
  message.endTimestamp = object.endTimestamp ?? void 0;
49099
51050
  message.resolution = object.resolution ?? "";
49100
51051
  message.tagNames = object.tagNames?.map((e) => e) || [];
51052
+ message.environmentIds = object.environmentIds?.map((e) => e) || [];
51053
+ message.appIds = object.appIds?.map((e) => e) || [];
49101
51054
  return message;
49102
51055
  }
49103
51056
  };
@@ -49539,6 +51492,231 @@ var WorkspaceNameLookupResponse = {
49539
51492
  return message;
49540
51493
  }
49541
51494
  };
51495
+ function createBaseWorkspaceSetDefaultEnvironmentRequest() {
51496
+ return { environmentName: "" };
51497
+ }
51498
+ var WorkspaceSetDefaultEnvironmentRequest = {
51499
+ encode(message, writer = new BinaryWriter()) {
51500
+ if (message.environmentName !== "") {
51501
+ writer.uint32(10).string(message.environmentName);
51502
+ }
51503
+ return writer;
51504
+ },
51505
+ decode(input, length) {
51506
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51507
+ let end = length === void 0 ? reader.len : reader.pos + length;
51508
+ const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
51509
+ while (reader.pos < end) {
51510
+ const tag = reader.uint32();
51511
+ switch (tag >>> 3) {
51512
+ case 1: {
51513
+ if (tag !== 10) {
51514
+ break;
51515
+ }
51516
+ message.environmentName = reader.string();
51517
+ continue;
51518
+ }
51519
+ }
51520
+ if ((tag & 7) === 4 || tag === 0) {
51521
+ break;
51522
+ }
51523
+ reader.skip(tag & 7);
51524
+ }
51525
+ return message;
51526
+ },
51527
+ fromJSON(object) {
51528
+ return { environmentName: isSet5(object.environmentName) ? globalThis.String(object.environmentName) : "" };
51529
+ },
51530
+ toJSON(message) {
51531
+ const obj = {};
51532
+ if (message.environmentName !== "") {
51533
+ obj.environmentName = message.environmentName;
51534
+ }
51535
+ return obj;
51536
+ },
51537
+ create(base) {
51538
+ return WorkspaceSetDefaultEnvironmentRequest.fromPartial(base ?? {});
51539
+ },
51540
+ fromPartial(object) {
51541
+ const message = createBaseWorkspaceSetDefaultEnvironmentRequest();
51542
+ message.environmentName = object.environmentName ?? "";
51543
+ return message;
51544
+ }
51545
+ };
51546
+ function createBaseWorkspaceSetImageBuilderVersionRequest() {
51547
+ return { newImageBuilderVersion: "" };
51548
+ }
51549
+ var WorkspaceSetImageBuilderVersionRequest = {
51550
+ encode(message, writer = new BinaryWriter()) {
51551
+ if (message.newImageBuilderVersion !== "") {
51552
+ writer.uint32(10).string(message.newImageBuilderVersion);
51553
+ }
51554
+ return writer;
51555
+ },
51556
+ decode(input, length) {
51557
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51558
+ let end = length === void 0 ? reader.len : reader.pos + length;
51559
+ const message = createBaseWorkspaceSetImageBuilderVersionRequest();
51560
+ while (reader.pos < end) {
51561
+ const tag = reader.uint32();
51562
+ switch (tag >>> 3) {
51563
+ case 1: {
51564
+ if (tag !== 10) {
51565
+ break;
51566
+ }
51567
+ message.newImageBuilderVersion = reader.string();
51568
+ continue;
51569
+ }
51570
+ }
51571
+ if ((tag & 7) === 4 || tag === 0) {
51572
+ break;
51573
+ }
51574
+ reader.skip(tag & 7);
51575
+ }
51576
+ return message;
51577
+ },
51578
+ fromJSON(object) {
51579
+ return {
51580
+ newImageBuilderVersion: isSet5(object.newImageBuilderVersion) ? globalThis.String(object.newImageBuilderVersion) : ""
51581
+ };
51582
+ },
51583
+ toJSON(message) {
51584
+ const obj = {};
51585
+ if (message.newImageBuilderVersion !== "") {
51586
+ obj.newImageBuilderVersion = message.newImageBuilderVersion;
51587
+ }
51588
+ return obj;
51589
+ },
51590
+ create(base) {
51591
+ return WorkspaceSetImageBuilderVersionRequest.fromPartial(base ?? {});
51592
+ },
51593
+ fromPartial(object) {
51594
+ const message = createBaseWorkspaceSetImageBuilderVersionRequest();
51595
+ message.newImageBuilderVersion = object.newImageBuilderVersion ?? "";
51596
+ return message;
51597
+ }
51598
+ };
51599
+ function createBaseWorkspaceSetImageBuilderVersionResponse() {
51600
+ return { imageBuilderVersion: "" };
51601
+ }
51602
+ var WorkspaceSetImageBuilderVersionResponse = {
51603
+ encode(message, writer = new BinaryWriter()) {
51604
+ if (message.imageBuilderVersion !== "") {
51605
+ writer.uint32(10).string(message.imageBuilderVersion);
51606
+ }
51607
+ return writer;
51608
+ },
51609
+ decode(input, length) {
51610
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51611
+ let end = length === void 0 ? reader.len : reader.pos + length;
51612
+ const message = createBaseWorkspaceSetImageBuilderVersionResponse();
51613
+ while (reader.pos < end) {
51614
+ const tag = reader.uint32();
51615
+ switch (tag >>> 3) {
51616
+ case 1: {
51617
+ if (tag !== 10) {
51618
+ break;
51619
+ }
51620
+ message.imageBuilderVersion = reader.string();
51621
+ continue;
51622
+ }
51623
+ }
51624
+ if ((tag & 7) === 4 || tag === 0) {
51625
+ break;
51626
+ }
51627
+ reader.skip(tag & 7);
51628
+ }
51629
+ return message;
51630
+ },
51631
+ fromJSON(object) {
51632
+ return {
51633
+ imageBuilderVersion: isSet5(object.imageBuilderVersion) ? globalThis.String(object.imageBuilderVersion) : ""
51634
+ };
51635
+ },
51636
+ toJSON(message) {
51637
+ const obj = {};
51638
+ if (message.imageBuilderVersion !== "") {
51639
+ obj.imageBuilderVersion = message.imageBuilderVersion;
51640
+ }
51641
+ return obj;
51642
+ },
51643
+ create(base) {
51644
+ return WorkspaceSetImageBuilderVersionResponse.fromPartial(base ?? {});
51645
+ },
51646
+ fromPartial(object) {
51647
+ const message = createBaseWorkspaceSetImageBuilderVersionResponse();
51648
+ message.imageBuilderVersion = object.imageBuilderVersion ?? "";
51649
+ return message;
51650
+ }
51651
+ };
51652
+ function createBaseWorkspaceSettingsResponse() {
51653
+ return { defaultEnvironmentName: "", imageBuilderVersion: "" };
51654
+ }
51655
+ var WorkspaceSettingsResponse = {
51656
+ encode(message, writer = new BinaryWriter()) {
51657
+ if (message.defaultEnvironmentName !== "") {
51658
+ writer.uint32(10).string(message.defaultEnvironmentName);
51659
+ }
51660
+ if (message.imageBuilderVersion !== "") {
51661
+ writer.uint32(18).string(message.imageBuilderVersion);
51662
+ }
51663
+ return writer;
51664
+ },
51665
+ decode(input, length) {
51666
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
51667
+ let end = length === void 0 ? reader.len : reader.pos + length;
51668
+ const message = createBaseWorkspaceSettingsResponse();
51669
+ while (reader.pos < end) {
51670
+ const tag = reader.uint32();
51671
+ switch (tag >>> 3) {
51672
+ case 1: {
51673
+ if (tag !== 10) {
51674
+ break;
51675
+ }
51676
+ message.defaultEnvironmentName = reader.string();
51677
+ continue;
51678
+ }
51679
+ case 2: {
51680
+ if (tag !== 18) {
51681
+ break;
51682
+ }
51683
+ message.imageBuilderVersion = reader.string();
51684
+ continue;
51685
+ }
51686
+ }
51687
+ if ((tag & 7) === 4 || tag === 0) {
51688
+ break;
51689
+ }
51690
+ reader.skip(tag & 7);
51691
+ }
51692
+ return message;
51693
+ },
51694
+ fromJSON(object) {
51695
+ return {
51696
+ defaultEnvironmentName: isSet5(object.defaultEnvironmentName) ? globalThis.String(object.defaultEnvironmentName) : "",
51697
+ imageBuilderVersion: isSet5(object.imageBuilderVersion) ? globalThis.String(object.imageBuilderVersion) : ""
51698
+ };
51699
+ },
51700
+ toJSON(message) {
51701
+ const obj = {};
51702
+ if (message.defaultEnvironmentName !== "") {
51703
+ obj.defaultEnvironmentName = message.defaultEnvironmentName;
51704
+ }
51705
+ if (message.imageBuilderVersion !== "") {
51706
+ obj.imageBuilderVersion = message.imageBuilderVersion;
51707
+ }
51708
+ return obj;
51709
+ },
51710
+ create(base) {
51711
+ return WorkspaceSettingsResponse.fromPartial(base ?? {});
51712
+ },
51713
+ fromPartial(object) {
51714
+ const message = createBaseWorkspaceSettingsResponse();
51715
+ message.defaultEnvironmentName = object.defaultEnvironmentName ?? "";
51716
+ message.imageBuilderVersion = object.imageBuilderVersion ?? "";
51717
+ return message;
51718
+ }
51719
+ };
49542
51720
  var ModalClientDefinition = {
49543
51721
  name: "ModalClient",
49544
51722
  fullName: "modal.client.ModalClient",
@@ -49684,7 +51862,7 @@ var ModalClientDefinition = {
49684
51862
  name: "AppRollback",
49685
51863
  requestType: AppRollbackRequest,
49686
51864
  requestStream: false,
49687
- responseType: Empty,
51865
+ responseType: AppRollbackResponse,
49688
51866
  responseStream: false,
49689
51867
  options: {}
49690
51868
  },
@@ -49911,6 +52089,15 @@ var ModalClientDefinition = {
49911
52089
  responseStream: false,
49912
52090
  options: {}
49913
52091
  },
52092
+ /** Curl */
52093
+ curlGetAuthToken: {
52094
+ name: "CurlGetAuthToken",
52095
+ requestType: CurlAuthTokenRequest,
52096
+ requestStream: false,
52097
+ responseType: CurlAuthTokenResponse,
52098
+ responseStream: false,
52099
+ options: {}
52100
+ },
49914
52101
  /** Dicts */
49915
52102
  dictClear: {
49916
52103
  name: "DictClear",
@@ -50042,6 +52229,22 @@ var ModalClientDefinition = {
50042
52229
  responseStream: false,
50043
52230
  options: {}
50044
52231
  },
52232
+ endpointGetByName: {
52233
+ name: "EndpointGetByName",
52234
+ requestType: EndpointGetByNameRequest,
52235
+ requestStream: false,
52236
+ responseType: EndpointGetByNameResponse,
52237
+ responseStream: false,
52238
+ options: {}
52239
+ },
52240
+ endpointGetLifecycle: {
52241
+ name: "EndpointGetLifecycle",
52242
+ requestType: EndpointGetLifecycleRequest,
52243
+ requestStream: false,
52244
+ responseType: EndpointGetLifecycleResponse,
52245
+ responseStream: false,
52246
+ options: {}
52247
+ },
50045
52248
  endpointList: {
50046
52249
  name: "EndpointList",
50047
52250
  requestType: EndpointListRequest,
@@ -50075,6 +52278,14 @@ var ModalClientDefinition = {
50075
52278
  responseStream: false,
50076
52279
  options: {}
50077
52280
  },
52281
+ environmentGetBudget: {
52282
+ name: "EnvironmentGetBudget",
52283
+ requestType: EnvironmentGetBudgetRequest,
52284
+ requestStream: false,
52285
+ responseType: EnvironmentGetBudgetResponse,
52286
+ responseStream: false,
52287
+ options: {}
52288
+ },
50078
52289
  environmentGetManaged: {
50079
52290
  name: "EnvironmentGetManaged",
50080
52291
  requestType: EnvironmentGetManagedRequest,
@@ -50107,6 +52318,14 @@ var ModalClientDefinition = {
50107
52318
  responseStream: false,
50108
52319
  options: {}
50109
52320
  },
52321
+ environmentSetBudget: {
52322
+ name: "EnvironmentSetBudget",
52323
+ requestType: EnvironmentSetBudgetRequest,
52324
+ requestStream: false,
52325
+ responseType: Empty,
52326
+ responseStream: false,
52327
+ options: {}
52328
+ },
50110
52329
  environmentSetManaged: {
50111
52330
  name: "EnvironmentSetManaged",
50112
52331
  requestType: EnvironmentSetManagedRequest,
@@ -51193,6 +53412,63 @@ var ModalClientDefinition = {
51193
53412
  responseStream: false,
51194
53413
  options: {}
51195
53414
  },
53415
+ /** Webhook tokens (proxy tokens) */
53416
+ webhookTokenCreate: {
53417
+ name: "WebhookTokenCreate",
53418
+ requestType: WebhookTokenCreateRequest,
53419
+ requestStream: false,
53420
+ responseType: TokenCreateResponse,
53421
+ responseStream: false,
53422
+ options: {}
53423
+ },
53424
+ webhookTokenDelete: {
53425
+ name: "WebhookTokenDelete",
53426
+ requestType: TokenDeleteRequest,
53427
+ requestStream: false,
53428
+ responseType: Empty,
53429
+ responseStream: false,
53430
+ options: {}
53431
+ },
53432
+ webhookTokenEnvironmentAdd: {
53433
+ name: "WebhookTokenEnvironmentAdd",
53434
+ requestType: WebhookTokenEnvironmentAddRequest,
53435
+ requestStream: false,
53436
+ responseType: Empty,
53437
+ responseStream: false,
53438
+ options: {}
53439
+ },
53440
+ webhookTokenEnvironmentList: {
53441
+ name: "WebhookTokenEnvironmentList",
53442
+ requestType: WebhookTokenEnvironmentListRequest,
53443
+ requestStream: false,
53444
+ responseType: WebhookTokenEnvironmentListResponse,
53445
+ responseStream: false,
53446
+ options: {}
53447
+ },
53448
+ webhookTokenEnvironmentRemove: {
53449
+ name: "WebhookTokenEnvironmentRemove",
53450
+ requestType: WebhookTokenEnvironmentRemoveRequest,
53451
+ requestStream: false,
53452
+ responseType: Empty,
53453
+ responseStream: false,
53454
+ options: {}
53455
+ },
53456
+ webhookTokenList: {
53457
+ name: "WebhookTokenList",
53458
+ requestType: Empty,
53459
+ requestStream: false,
53460
+ responseType: WebhookTokenListResponse,
53461
+ responseStream: false,
53462
+ options: {}
53463
+ },
53464
+ webhookTokenListForEnvironment: {
53465
+ name: "WebhookTokenListForEnvironment",
53466
+ requestType: WebhookTokenListForEnvironmentRequest,
53467
+ requestStream: false,
53468
+ responseType: WebhookTokenListResponse,
53469
+ responseStream: false,
53470
+ options: {}
53471
+ },
51196
53472
  /** Workspaces */
51197
53473
  workspaceBillingReport: {
51198
53474
  name: "WorkspaceBillingReport",
@@ -51225,6 +53501,30 @@ var ModalClientDefinition = {
51225
53501
  responseType: WorkspaceNameLookupResponse,
51226
53502
  responseStream: false,
51227
53503
  options: {}
53504
+ },
53505
+ workspaceSetDefaultEnvironment: {
53506
+ name: "WorkspaceSetDefaultEnvironment",
53507
+ requestType: WorkspaceSetDefaultEnvironmentRequest,
53508
+ requestStream: false,
53509
+ responseType: Empty,
53510
+ responseStream: false,
53511
+ options: {}
53512
+ },
53513
+ workspaceSetImageBuilderVersion: {
53514
+ name: "WorkspaceSetImageBuilderVersion",
53515
+ requestType: WorkspaceSetImageBuilderVersionRequest,
53516
+ requestStream: false,
53517
+ responseType: WorkspaceSetImageBuilderVersionResponse,
53518
+ responseStream: false,
53519
+ options: {}
53520
+ },
53521
+ workspaceSettings: {
53522
+ name: "WorkspaceSettings",
53523
+ requestType: Empty,
53524
+ requestStream: false,
53525
+ responseType: WorkspaceSettingsResponse,
53526
+ responseStream: false,
53527
+ options: {}
51228
53528
  }
51229
53529
  }
51230
53530
  };
@@ -54121,10 +56421,10 @@ var SandboxStdioReadV2Response = {
54121
56421
  return message;
54122
56422
  }
54123
56423
  };
54124
- function createBaseSandboxWaitUntilReadyRequest2() {
56424
+ function createBaseSandboxWaitUntilReadyTcrRequest() {
54125
56425
  return { taskId: "", timeout: 0 };
54126
56426
  }
54127
- var SandboxWaitUntilReadyRequest2 = {
56427
+ var SandboxWaitUntilReadyTcrRequest = {
54128
56428
  encode(message, writer = new BinaryWriter()) {
54129
56429
  if (message.taskId !== "") {
54130
56430
  writer.uint32(10).string(message.taskId);
@@ -54137,7 +56437,7 @@ var SandboxWaitUntilReadyRequest2 = {
54137
56437
  decode(input, length) {
54138
56438
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
54139
56439
  let end = length === void 0 ? reader.len : reader.pos + length;
54140
- const message = createBaseSandboxWaitUntilReadyRequest2();
56440
+ const message = createBaseSandboxWaitUntilReadyTcrRequest();
54141
56441
  while (reader.pos < end) {
54142
56442
  const tag = reader.uint32();
54143
56443
  switch (tag >>> 3) {
@@ -54180,19 +56480,19 @@ var SandboxWaitUntilReadyRequest2 = {
54180
56480
  return obj;
54181
56481
  },
54182
56482
  create(base) {
54183
- return SandboxWaitUntilReadyRequest2.fromPartial(base ?? {});
56483
+ return SandboxWaitUntilReadyTcrRequest.fromPartial(base ?? {});
54184
56484
  },
54185
56485
  fromPartial(object) {
54186
- const message = createBaseSandboxWaitUntilReadyRequest2();
56486
+ const message = createBaseSandboxWaitUntilReadyTcrRequest();
54187
56487
  message.taskId = object.taskId ?? "";
54188
56488
  message.timeout = object.timeout ?? 0;
54189
56489
  return message;
54190
56490
  }
54191
56491
  };
54192
- function createBaseSandboxWaitUntilReadyResponse2() {
56492
+ function createBaseSandboxWaitUntilReadyTcrResponse() {
54193
56493
  return { readyAt: 0 };
54194
56494
  }
54195
- var SandboxWaitUntilReadyResponse2 = {
56495
+ var SandboxWaitUntilReadyTcrResponse = {
54196
56496
  encode(message, writer = new BinaryWriter()) {
54197
56497
  if (message.readyAt !== 0) {
54198
56498
  writer.uint32(9).double(message.readyAt);
@@ -54202,7 +56502,7 @@ var SandboxWaitUntilReadyResponse2 = {
54202
56502
  decode(input, length) {
54203
56503
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
54204
56504
  let end = length === void 0 ? reader.len : reader.pos + length;
54205
- const message = createBaseSandboxWaitUntilReadyResponse2();
56505
+ const message = createBaseSandboxWaitUntilReadyTcrResponse();
54206
56506
  while (reader.pos < end) {
54207
56507
  const tag = reader.uint32();
54208
56508
  switch (tag >>> 3) {
@@ -54232,16 +56532,25 @@ var SandboxWaitUntilReadyResponse2 = {
54232
56532
  return obj;
54233
56533
  },
54234
56534
  create(base) {
54235
- return SandboxWaitUntilReadyResponse2.fromPartial(base ?? {});
56535
+ return SandboxWaitUntilReadyTcrResponse.fromPartial(base ?? {});
54236
56536
  },
54237
56537
  fromPartial(object) {
54238
- const message = createBaseSandboxWaitUntilReadyResponse2();
56538
+ const message = createBaseSandboxWaitUntilReadyTcrResponse();
54239
56539
  message.readyAt = object.readyAt ?? 0;
54240
56540
  return message;
54241
56541
  }
54242
56542
  };
54243
56543
  function createBaseTaskContainerCreateRequest() {
54244
- return { taskId: "", containerName: "", imageId: "", args: [], env: {}, workdir: "", secretIds: [] };
56544
+ return {
56545
+ taskId: "",
56546
+ containerName: "",
56547
+ imageId: "",
56548
+ args: [],
56549
+ env: {},
56550
+ workdir: "",
56551
+ secretIds: [],
56552
+ volumeMounts: []
56553
+ };
54245
56554
  }
54246
56555
  var TaskContainerCreateRequest = {
54247
56556
  encode(message, writer = new BinaryWriter()) {
@@ -54266,6 +56575,9 @@ var TaskContainerCreateRequest = {
54266
56575
  for (const v of message.secretIds) {
54267
56576
  writer.uint32(66).string(v);
54268
56577
  }
56578
+ for (const v of message.volumeMounts) {
56579
+ VolumeMount.encode(v, writer.uint32(74).fork()).join();
56580
+ }
54269
56581
  return writer;
54270
56582
  },
54271
56583
  decode(input, length) {
@@ -54327,6 +56639,13 @@ var TaskContainerCreateRequest = {
54327
56639
  message.secretIds.push(reader.string());
54328
56640
  continue;
54329
56641
  }
56642
+ case 9: {
56643
+ if (tag !== 74) {
56644
+ break;
56645
+ }
56646
+ message.volumeMounts.push(VolumeMount.decode(reader, reader.uint32()));
56647
+ continue;
56648
+ }
54330
56649
  }
54331
56650
  if ((tag & 7) === 4 || tag === 0) {
54332
56651
  break;
@@ -54346,7 +56665,8 @@ var TaskContainerCreateRequest = {
54346
56665
  return acc;
54347
56666
  }, {}) : {},
54348
56667
  workdir: isSet6(object.workdir) ? globalThis.String(object.workdir) : "",
54349
- secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : []
56668
+ secretIds: globalThis.Array.isArray(object?.secretIds) ? object.secretIds.map((e) => globalThis.String(e)) : [],
56669
+ volumeMounts: globalThis.Array.isArray(object?.volumeMounts) ? object.volumeMounts.map((e) => VolumeMount.fromJSON(e)) : []
54350
56670
  };
54351
56671
  },
54352
56672
  toJSON(message) {
@@ -54378,6 +56698,9 @@ var TaskContainerCreateRequest = {
54378
56698
  if (message.secretIds?.length) {
54379
56699
  obj.secretIds = message.secretIds;
54380
56700
  }
56701
+ if (message.volumeMounts?.length) {
56702
+ obj.volumeMounts = message.volumeMounts.map((e) => VolumeMount.toJSON(e));
56703
+ }
54381
56704
  return obj;
54382
56705
  },
54383
56706
  create(base) {
@@ -54397,6 +56720,7 @@ var TaskContainerCreateRequest = {
54397
56720
  }, {});
54398
56721
  message.workdir = object.workdir ?? "";
54399
56722
  message.secretIds = object.secretIds?.map((e) => e) || [];
56723
+ message.volumeMounts = object.volumeMounts?.map((e) => VolumeMount.fromPartial(e)) || [];
54400
56724
  return message;
54401
56725
  }
54402
56726
  };
@@ -56474,6 +58798,199 @@ var TaskMountDirectoryRequest = {
56474
58798
  return message;
56475
58799
  }
56476
58800
  };
58801
+ function createBaseTaskReloadVolumesRequest() {
58802
+ return { taskId: "" };
58803
+ }
58804
+ var TaskReloadVolumesRequest = {
58805
+ encode(message, writer = new BinaryWriter()) {
58806
+ if (message.taskId !== "") {
58807
+ writer.uint32(10).string(message.taskId);
58808
+ }
58809
+ return writer;
58810
+ },
58811
+ decode(input, length) {
58812
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
58813
+ let end = length === void 0 ? reader.len : reader.pos + length;
58814
+ const message = createBaseTaskReloadVolumesRequest();
58815
+ while (reader.pos < end) {
58816
+ const tag = reader.uint32();
58817
+ switch (tag >>> 3) {
58818
+ case 1: {
58819
+ if (tag !== 10) {
58820
+ break;
58821
+ }
58822
+ message.taskId = reader.string();
58823
+ continue;
58824
+ }
58825
+ }
58826
+ if ((tag & 7) === 4 || tag === 0) {
58827
+ break;
58828
+ }
58829
+ reader.skip(tag & 7);
58830
+ }
58831
+ return message;
58832
+ },
58833
+ fromJSON(object) {
58834
+ return { taskId: isSet6(object.taskId) ? globalThis.String(object.taskId) : "" };
58835
+ },
58836
+ toJSON(message) {
58837
+ const obj = {};
58838
+ if (message.taskId !== "") {
58839
+ obj.taskId = message.taskId;
58840
+ }
58841
+ return obj;
58842
+ },
58843
+ create(base) {
58844
+ return TaskReloadVolumesRequest.fromPartial(base ?? {});
58845
+ },
58846
+ fromPartial(object) {
58847
+ const message = createBaseTaskReloadVolumesRequest();
58848
+ message.taskId = object.taskId ?? "";
58849
+ return message;
58850
+ }
58851
+ };
58852
+ function createBaseTaskReloadVolumesResponse() {
58853
+ return {};
58854
+ }
58855
+ var TaskReloadVolumesResponse = {
58856
+ encode(_, writer = new BinaryWriter()) {
58857
+ return writer;
58858
+ },
58859
+ decode(input, length) {
58860
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
58861
+ let end = length === void 0 ? reader.len : reader.pos + length;
58862
+ const message = createBaseTaskReloadVolumesResponse();
58863
+ while (reader.pos < end) {
58864
+ const tag = reader.uint32();
58865
+ switch (tag >>> 3) {
58866
+ }
58867
+ if ((tag & 7) === 4 || tag === 0) {
58868
+ break;
58869
+ }
58870
+ reader.skip(tag & 7);
58871
+ }
58872
+ return message;
58873
+ },
58874
+ fromJSON(_) {
58875
+ return {};
58876
+ },
58877
+ toJSON(_) {
58878
+ const obj = {};
58879
+ return obj;
58880
+ },
58881
+ create(base) {
58882
+ return TaskReloadVolumesResponse.fromPartial(base ?? {});
58883
+ },
58884
+ fromPartial(_) {
58885
+ const message = createBaseTaskReloadVolumesResponse();
58886
+ return message;
58887
+ }
58888
+ };
58889
+ function createBaseTaskSetNetworkAccessRequest() {
58890
+ return { taskId: "", networkAccess: void 0 };
58891
+ }
58892
+ var TaskSetNetworkAccessRequest = {
58893
+ encode(message, writer = new BinaryWriter()) {
58894
+ if (message.taskId !== "") {
58895
+ writer.uint32(10).string(message.taskId);
58896
+ }
58897
+ if (message.networkAccess !== void 0) {
58898
+ NetworkAccess.encode(message.networkAccess, writer.uint32(18).fork()).join();
58899
+ }
58900
+ return writer;
58901
+ },
58902
+ decode(input, length) {
58903
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
58904
+ let end = length === void 0 ? reader.len : reader.pos + length;
58905
+ const message = createBaseTaskSetNetworkAccessRequest();
58906
+ while (reader.pos < end) {
58907
+ const tag = reader.uint32();
58908
+ switch (tag >>> 3) {
58909
+ case 1: {
58910
+ if (tag !== 10) {
58911
+ break;
58912
+ }
58913
+ message.taskId = reader.string();
58914
+ continue;
58915
+ }
58916
+ case 2: {
58917
+ if (tag !== 18) {
58918
+ break;
58919
+ }
58920
+ message.networkAccess = NetworkAccess.decode(reader, reader.uint32());
58921
+ continue;
58922
+ }
58923
+ }
58924
+ if ((tag & 7) === 4 || tag === 0) {
58925
+ break;
58926
+ }
58927
+ reader.skip(tag & 7);
58928
+ }
58929
+ return message;
58930
+ },
58931
+ fromJSON(object) {
58932
+ return {
58933
+ taskId: isSet6(object.taskId) ? globalThis.String(object.taskId) : "",
58934
+ networkAccess: isSet6(object.networkAccess) ? NetworkAccess.fromJSON(object.networkAccess) : void 0
58935
+ };
58936
+ },
58937
+ toJSON(message) {
58938
+ const obj = {};
58939
+ if (message.taskId !== "") {
58940
+ obj.taskId = message.taskId;
58941
+ }
58942
+ if (message.networkAccess !== void 0) {
58943
+ obj.networkAccess = NetworkAccess.toJSON(message.networkAccess);
58944
+ }
58945
+ return obj;
58946
+ },
58947
+ create(base) {
58948
+ return TaskSetNetworkAccessRequest.fromPartial(base ?? {});
58949
+ },
58950
+ fromPartial(object) {
58951
+ const message = createBaseTaskSetNetworkAccessRequest();
58952
+ message.taskId = object.taskId ?? "";
58953
+ message.networkAccess = object.networkAccess !== void 0 && object.networkAccess !== null ? NetworkAccess.fromPartial(object.networkAccess) : void 0;
58954
+ return message;
58955
+ }
58956
+ };
58957
+ function createBaseTaskSetNetworkAccessResponse() {
58958
+ return {};
58959
+ }
58960
+ var TaskSetNetworkAccessResponse = {
58961
+ encode(_, writer = new BinaryWriter()) {
58962
+ return writer;
58963
+ },
58964
+ decode(input, length) {
58965
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
58966
+ let end = length === void 0 ? reader.len : reader.pos + length;
58967
+ const message = createBaseTaskSetNetworkAccessResponse();
58968
+ while (reader.pos < end) {
58969
+ const tag = reader.uint32();
58970
+ switch (tag >>> 3) {
58971
+ }
58972
+ if ((tag & 7) === 4 || tag === 0) {
58973
+ break;
58974
+ }
58975
+ reader.skip(tag & 7);
58976
+ }
58977
+ return message;
58978
+ },
58979
+ fromJSON(_) {
58980
+ return {};
58981
+ },
58982
+ toJSON(_) {
58983
+ const obj = {};
58984
+ return obj;
58985
+ },
58986
+ create(base) {
58987
+ return TaskSetNetworkAccessResponse.fromPartial(base ?? {});
58988
+ },
58989
+ fromPartial(_) {
58990
+ const message = createBaseTaskSetNetworkAccessResponse();
58991
+ return message;
58992
+ }
58993
+ };
56477
58994
  function createBaseTaskSnapshotDirectoryRequest() {
56478
58995
  return {
56479
58996
  taskId: "",
@@ -56883,9 +59400,9 @@ var TaskCommandRouterDefinition = {
56883
59400
  },
56884
59401
  sandboxWaitUntilReady: {
56885
59402
  name: "SandboxWaitUntilReady",
56886
- requestType: SandboxWaitUntilReadyRequest2,
59403
+ requestType: SandboxWaitUntilReadyTcrRequest,
56887
59404
  requestStream: false,
56888
- responseType: SandboxWaitUntilReadyResponse2,
59405
+ responseType: SandboxWaitUntilReadyTcrResponse,
56889
59406
  responseStream: false,
56890
59407
  options: {}
56891
59408
  },
@@ -56954,7 +59471,9 @@ var TaskCommandRouterDefinition = {
56954
59471
  },
56955
59472
  /**
56956
59473
  * Get the current stdin write status for an exec'd command. Used to resume
56957
- * a TaskExecStdinWriteStream after a stream failure.
59474
+ * a TaskExecStdinWriteStream after a stream failure. Evicts any in-flight
59475
+ * TaskExecStdinWriteStream for this exec, so it is not safe to call for
59476
+ * read-only observability.
56958
59477
  */
56959
59478
  taskExecStdinStatus: {
56960
59479
  name: "TaskExecStdinStatus",
@@ -56975,7 +59494,7 @@ var TaskCommandRouterDefinition = {
56975
59494
  },
56976
59495
  /**
56977
59496
  * Stream stdin bytes to an exec'd command. First message carries the
56978
- * start envelope (task_id, exec_id, offset); subsequent messages carry data.
59497
+ * start message (task_id, exec_id, offset); subsequent messages carry data.
56979
59498
  */
56980
59499
  taskExecStdinWriteStream: {
56981
59500
  name: "TaskExecStdinWriteStream",
@@ -57012,6 +59531,24 @@ var TaskCommandRouterDefinition = {
57012
59531
  responseStream: false,
57013
59532
  options: {}
57014
59533
  },
59534
+ /** Reload all Volumes mounted in the task to reflect their latest committed state. */
59535
+ taskReloadVolumes: {
59536
+ name: "TaskReloadVolumes",
59537
+ requestType: TaskReloadVolumesRequest,
59538
+ requestStream: false,
59539
+ responseType: TaskReloadVolumesResponse,
59540
+ responseStream: false,
59541
+ options: {}
59542
+ },
59543
+ /** Replace the task's outbound network allowlist (domains + CIDRs). */
59544
+ taskSetNetworkAccess: {
59545
+ name: "TaskSetNetworkAccess",
59546
+ requestType: TaskSetNetworkAccessRequest,
59547
+ requestStream: false,
59548
+ responseType: TaskSetNetworkAccessResponse,
59549
+ responseStream: false,
59550
+ options: {}
59551
+ },
57015
59552
  /** Snapshot a directory with a mounted image, including any local changes, into a new image. */
57016
59553
  taskSnapshotDirectory: {
57017
59554
  name: "TaskSnapshotDirectory",
@@ -57393,8 +59930,9 @@ var AuthTokenManager = class {
57393
59930
  };
57394
59931
 
57395
59932
  // src/version.ts
59933
+ var SDK_VERSION = "0.8.2";
57396
59934
  function getSDKVersion() {
57397
- return true ? "0.8.0" : "0.0.0";
59935
+ return SDK_VERSION;
57398
59936
  }
57399
59937
 
57400
59938
  // src/logger.ts
@@ -58290,6 +60828,40 @@ var TaskCommandRouterClientImpl = class _TaskCommandRouterClientImpl {
58290
60828
  async unmountDirectory(request) {
58291
60829
  await this.callUnary(() => this.stub.taskUnmountDirectory(request));
58292
60830
  }
60831
+ async setNetworkAccess(request) {
60832
+ await this.callUnary(() => this.stub.taskSetNetworkAccess(request));
60833
+ }
60834
+ /** Reload all Volumes mounted in the task to reflect their latest committed state. */
60835
+ async reloadVolumes(request) {
60836
+ await this.callUnary(() => this.stub.taskReloadVolumes(request));
60837
+ }
60838
+ async sandboxWaitUntilReady(taskId, timeoutMs) {
60839
+ const deadlineMs = Date.now() + timeoutMs;
60840
+ try {
60841
+ return await callWithRetriesOnTransientErrors(
60842
+ () => this.callWithAuthRetry(() => {
60843
+ const remainingMs = Math.max(1, deadlineMs - Date.now());
60844
+ const request = SandboxWaitUntilReadyTcrRequest.create({
60845
+ taskId,
60846
+ timeout: remainingMs / 1e3
60847
+ });
60848
+ return this.stub.sandboxWaitUntilReady(request, {
60849
+ timeoutMs: remainingMs
60850
+ });
60851
+ }),
60852
+ 10,
60853
+ 2,
60854
+ 10,
60855
+ deadlineMs,
60856
+ () => this.closed
60857
+ );
60858
+ } catch (err) {
60859
+ if (err instanceof RetryDeadlineExceededError) {
60860
+ throw new TimeoutError("Timeout expired");
60861
+ }
60862
+ throw err;
60863
+ }
60864
+ }
58293
60865
  async refreshJwt() {
58294
60866
  let error;
58295
60867
  this.jwtRefreshLock = this.jwtRefreshLock.then(async () => {
@@ -59385,6 +61957,8 @@ var SB_LOGS_INITIAL_DELAY_MS = 10;
59385
61957
  var SB_LOGS_DELAY_FACTOR = 2;
59386
61958
  var SB_LOGS_MAX_RETRIES = 10;
59387
61959
  var TTL_NO_EXPIRY_SENTINEL = -1;
61960
+ var CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MIN_LENGTH = 16;
61961
+ var CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MAX_LENGTH = 512;
59388
61962
  function resolveTtlSeconds(ttlMs) {
59389
61963
  if (ttlMs === void 0) {
59390
61964
  return 30 * 24 * 3600;
@@ -59400,6 +61974,20 @@ function resolveTtlSeconds(ttlMs) {
59400
61974
  }
59401
61975
  return ttlMs / 1e3;
59402
61976
  }
61977
+ function validateExperimentalEncryptionKey(key) {
61978
+ if (key === void 0) {
61979
+ return void 0;
61980
+ }
61981
+ if (!(key instanceof Uint8Array)) {
61982
+ throw new TypeError("experimentalEncryptionKey must be a Uint8Array");
61983
+ }
61984
+ if (key.length < CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MIN_LENGTH || key.length > CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MAX_LENGTH) {
61985
+ throw new InvalidError(
61986
+ `experimentalEncryptionKey must be between ${CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MIN_LENGTH} and ${CUSTOMER_SUPPLIED_ENCRYPTION_KEY_MAX_LENGTH} bytes, got ${key.length} bytes`
61987
+ );
61988
+ }
61989
+ return key;
61990
+ }
59403
61991
  var V1_SANDBOX_ID_ALPHABET = new Set(
59404
61992
  "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
59405
61993
  );
@@ -59564,6 +62152,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
59564
62152
  const secretIds = (params.secrets || []).map((secret) => secret.secretId);
59565
62153
  let networkAccess;
59566
62154
  if (params.blockNetwork) {
62155
+ if (params.i6pn) {
62156
+ throw new InvalidError(
62157
+ "blockNetwork disables all networking, including i6pn. To keep i6pn while blocking public egress, use an empty outbound allowlist (outboundCidrAllowlist: []) instead."
62158
+ );
62159
+ }
59567
62160
  if (params.outboundCidrAllowlist) {
59568
62161
  throw new Error(
59569
62162
  "outboundCidrAllowlist cannot be used when blockNetwork is enabled"
@@ -59653,7 +62246,7 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
59653
62246
  `experimental option '${name}' must be a boolean, got ${value}`
59654
62247
  );
59655
62248
  }
59656
- acc[name] = Boolean(value);
62249
+ acc[name] = String(value);
59657
62250
  return acc;
59658
62251
  },
59659
62252
  {}
@@ -59690,10 +62283,11 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
59690
62283
  proxyId: params.proxy?.proxyId,
59691
62284
  readinessProbe: params.readinessProbe?.toProto(),
59692
62285
  name: params.name,
59693
- experimentalOptions: protoExperimentalOptions,
62286
+ experimentalOptionsV2: protoExperimentalOptions,
59694
62287
  customDomain: params.customDomain,
59695
62288
  includeOidcIdentityToken: params.includeOidcIdentityToken ?? false,
59696
- inboundCidrAllowlist: params.inboundCidrAllowlist ?? []
62289
+ inboundCidrAllowlist: params.inboundCidrAllowlist ?? [],
62290
+ i6pnEnabled: params.i6pn ?? false
59697
62291
  }
59698
62292
  });
59699
62293
  }
@@ -59707,26 +62301,6 @@ async function buildSandboxCreateV2RequestProto(appId, imageId, params = {}) {
59707
62301
  if (params.customDomain) {
59708
62302
  throw new Error("custom domains are not supported by experimentalCreate");
59709
62303
  }
59710
- if (params.proxy) {
59711
- throw new Error("proxies are not supported by experimentalCreate");
59712
- }
59713
- if (params.readinessProbe) {
59714
- throw new Error("readiness probes are not supported by experimentalCreate");
59715
- }
59716
- if (params.includeOidcIdentityToken) {
59717
- throw new Error(
59718
- "includeOidcIdentityToken is not supported by experimentalCreate"
59719
- );
59720
- }
59721
- if (params.cloudBucketMounts) {
59722
- for (const [mountPath, cbm] of Object.entries(params.cloudBucketMounts)) {
59723
- if (cbm.oidcAuthRoleArn) {
59724
- throw new Error(
59725
- `CloudBucketMount with oidcAuthRoleArn is not supported by experimentalCreate (at mount path "${mountPath}")`
59726
- );
59727
- }
59728
- }
59729
- }
59730
62304
  const req = await buildSandboxCreateRequestProto(appId, imageId, params);
59731
62305
  return SandboxCreateV2Request.create({
59732
62306
  appId: req.appId,
@@ -59780,12 +62354,11 @@ var SandboxService = class {
59780
62354
  *
59781
62355
  * Supported features include exec, encrypted tunnels, wait/poll/terminate,
59782
62356
  * CPU and memory configuration, region placement, volumes, cloud bucket
59783
- * mounts (with static credentials via {@link Secret}), and filesystem
59784
- * snapshots.
62357
+ * mounts (with static credentials via {@link Secret} or `oidcAuthRoleArn`),
62358
+ * OIDC identity tokens, {@link Proxy proxies}, and filesystem snapshots.
59785
62359
  *
59786
- * Features like tags, memory snapshots, GPUs, custom domains, OIDC identity
59787
- * tokens (including `oidcAuthRoleArn` on a {@link CloudBucketMount}),
59788
- * proxies, and readiness probes are not supported.
62360
+ * Features like tags, memory snapshots, GPUs, and custom domains are not
62361
+ * supported.
59789
62362
  *
59790
62363
  * V2 sandboxes created with this method are not currently returned by
59791
62364
  * {@link SandboxService#list client.sandboxes.list()} and cannot be looked up
@@ -59908,6 +62481,41 @@ var SandboxService = class {
59908
62481
  }
59909
62482
  }
59910
62483
  }
62484
+ /**
62485
+ * List the V2 {@link Sandbox}es in an {@link App}.
62486
+ *
62487
+ * This lists V2 Sandboxes, i.e. Sandboxes created via
62488
+ * {@link SandboxService#experimentalCreate client.sandboxes.experimentalCreate()}.
62489
+ * Such Sandboxes are not returned by
62490
+ * {@link SandboxService#list client.sandboxes.list()}. Filtering based on tags
62491
+ * is not yet supported.
62492
+ *
62493
+ * Yields {@link Sandbox} objects that are currently running in the App.
62494
+ *
62495
+ * EXPERIMENTAL: the API is subject to change.
62496
+ */
62497
+ async *experimentalList(params) {
62498
+ if (!params?.appId) {
62499
+ throw new InvalidError(
62500
+ 'experimentalList requires an `appId`:\n\nconst app = await modal.apps.fromName("my-app");\nmodal.sandboxes.experimentalList({ appId: app.appId });'
62501
+ );
62502
+ }
62503
+ let beforeTimestamp = void 0;
62504
+ while (true) {
62505
+ const resp = await this.#client.cpClient.sandboxListV2({
62506
+ appId: params.appId,
62507
+ beforeTimestamp,
62508
+ includeFinished: false
62509
+ });
62510
+ if (!resp.sandboxes || resp.sandboxes.length === 0) {
62511
+ return;
62512
+ }
62513
+ for (const info of resp.sandboxes) {
62514
+ yield new Sandbox2(this.#client, info.id, { isV2: true });
62515
+ }
62516
+ beforeTimestamp = resp.sandboxes[resp.sandboxes.length - 1].createdAt;
62517
+ }
62518
+ }
59911
62519
  };
59912
62520
  var Tunnel = class {
59913
62521
  /** @ignore */
@@ -60026,6 +62634,27 @@ function buildTaskExecStartRequestProto(taskId, execId, command, params, contain
60026
62634
  containerId: containerId ?? ""
60027
62635
  });
60028
62636
  }
62637
+ function buildTaskMountDirectoryRequestProto(taskId, path2, imageId, params) {
62638
+ return TaskMountDirectoryRequest.create({
62639
+ taskId,
62640
+ path: new TextEncoder().encode(path2),
62641
+ imageId,
62642
+ customerSuppliedEncryptionKey: validateExperimentalEncryptionKey(
62643
+ params?.experimentalEncryptionKey
62644
+ )
62645
+ });
62646
+ }
62647
+ function buildTaskSnapshotDirectoryRequestProto(taskId, path2, snapshotId, ttlSeconds, params) {
62648
+ return TaskSnapshotDirectoryRequest.create({
62649
+ taskId,
62650
+ path: new TextEncoder().encode(path2),
62651
+ snapshotId,
62652
+ ttlSeconds,
62653
+ customerSuppliedEncryptionKey: validateExperimentalEncryptionKey(
62654
+ params?.experimentalEncryptionKey
62655
+ )
62656
+ });
62657
+ }
60029
62658
  var Sandbox2 = class _Sandbox {
60030
62659
  #client;
60031
62660
  sandboxId;
@@ -60317,9 +62946,16 @@ var Sandbox2 = class _Sandbox {
60317
62946
  async createConnectToken(params) {
60318
62947
  this.#ensureAttached();
60319
62948
  this.#ensureV1("createConnectToken");
62949
+ const port = params?.port ?? 8080;
62950
+ if (!Number.isInteger(port) || port < 1 || port > 65535) {
62951
+ throw new InvalidError(
62952
+ `createConnectToken() expects \`port\` in [1, 65535], got ${port}`
62953
+ );
62954
+ }
60320
62955
  const resp = await this.#client.cpClient.sandboxCreateConnectToken({
60321
62956
  sandboxId: this.sandboxId,
60322
- userMetadata: params?.userMetadata
62957
+ userMetadata: params?.userMetadata,
62958
+ port
60323
62959
  });
60324
62960
  return { url: resp.url, token: resp.token };
60325
62961
  }
@@ -60374,35 +63010,11 @@ var Sandbox2 = class _Sandbox {
60374
63010
  */
60375
63011
  async waitUntilReady(timeoutMs = 3e5) {
60376
63012
  this.#ensureAttached();
60377
- this.#ensureV1("waitUntilReady");
60378
63013
  if (timeoutMs <= 0) {
60379
63014
  throw new InvalidError(`timeoutMs must be positive, got ${timeoutMs}`);
60380
63015
  }
60381
- const deadline = Date.now() + timeoutMs;
60382
- while (true) {
60383
- const remainingMs = deadline - Date.now();
60384
- if (remainingMs <= 0) {
60385
- throw new TimeoutError("Sandbox operation timed out");
60386
- }
60387
- const requestTimeoutMs = Math.min(
60388
- remainingMs,
60389
- 5e4
60390
- // Max request timeout for each gRPC call
60391
- );
60392
- try {
60393
- const resp = await this.#client.cpClient.sandboxWaitUntilReady({
60394
- sandboxId: this.sandboxId,
60395
- timeout: requestTimeoutMs / 1e3
60396
- });
60397
- if (resp.readyAt > 0) {
60398
- return;
60399
- }
60400
- } catch (err) {
60401
- if (err instanceof import_nice_grpc15.ClientError && err.code === import_nice_grpc15.Status.DEADLINE_EXCEEDED)
60402
- continue;
60403
- throw err;
60404
- }
60405
- }
63016
+ const [taskId, commandRouterClient] = await this.#getCommandRouter();
63017
+ await commandRouterClient.sandboxWaitUntilReady(taskId, timeoutMs);
60406
63018
  }
60407
63019
  /** Get {@link Tunnel} metadata for the Sandbox.
60408
63020
  *
@@ -60465,8 +63077,9 @@ var Sandbox2 = class _Sandbox {
60465
63077
  *
60466
63078
  * @param path - The path where the directory should be mounted
60467
63079
  * @param image - Optional {@link Image} to mount. If undefined, mounts an empty directory.
63080
+ * @param params - Optional parameters; see {@link SandboxMountImageParams}.
60468
63081
  */
60469
- async mountImage(path2, image) {
63082
+ async mountImage(path2, image, params) {
60470
63083
  this.#ensureAttached();
60471
63084
  const [taskId, commandRouterClient] = await this.#getCommandRouter();
60472
63085
  if (image && !image.imageId) {
@@ -60474,13 +63087,13 @@ var Sandbox2 = class _Sandbox {
60474
63087
  "Image must be built before mounting. Call `image.build(app)` first."
60475
63088
  );
60476
63089
  }
60477
- const pathBytes = new TextEncoder().encode(path2);
60478
63090
  const imageId = image?.imageId ?? "";
60479
- const request = TaskMountDirectoryRequest.create({
63091
+ const request = buildTaskMountDirectoryRequestProto(
60480
63092
  taskId,
60481
- path: pathBytes,
60482
- imageId
60483
- });
63093
+ path2,
63094
+ imageId,
63095
+ params
63096
+ );
60484
63097
  await commandRouterClient.mountDirectory(request);
60485
63098
  }
60486
63099
  /**
@@ -60498,6 +63111,48 @@ var Sandbox2 = class _Sandbox {
60498
63111
  });
60499
63112
  await commandRouterClient.unmountDirectory(request);
60500
63113
  }
63114
+ /**
63115
+ * Updates the outbound network policy of a running Sandbox.
63116
+ *
63117
+ * Established connections that the new policy no longer permits are terminated.
63118
+ *
63119
+ * @param params - Both `outboundCidrAllowlist` and `outboundDomainAllowlist` must be provided.
63120
+ */
63121
+ async updateNetworkPolicy(params) {
63122
+ this.#ensureAttached();
63123
+ if (params.outboundCidrAllowlist === void 0 || params.outboundDomainAllowlist === void 0) {
63124
+ throw new InvalidError(
63125
+ "updateNetworkPolicy currently requires both outboundCidrAllowlist and outboundDomainAllowlist to be set"
63126
+ );
63127
+ }
63128
+ const [taskId, commandRouterClient] = await this.#getCommandRouter();
63129
+ const request = TaskSetNetworkAccessRequest.create({
63130
+ taskId,
63131
+ networkAccess: NetworkAccess.create({
63132
+ networkAccessType: 3 /* ALLOWLIST */,
63133
+ allowedCidrs: params.outboundCidrAllowlist,
63134
+ allowedDomains: params.outboundDomainAllowlist
63135
+ })
63136
+ });
63137
+ await commandRouterClient.setNetworkAccess(request);
63138
+ }
63139
+ /**
63140
+ * Reload all Volumes mounted in the Sandbox.
63141
+ */
63142
+ async reloadVolumes() {
63143
+ this.#ensureAttached();
63144
+ const taskId = await this.#getTaskId();
63145
+ if (this.#isV2) {
63146
+ const commandRouterClient = await this.#getOrCreateCommandRouterClient(taskId);
63147
+ await commandRouterClient.reloadVolumes(
63148
+ TaskReloadVolumesRequest.create({ taskId })
63149
+ );
63150
+ } else {
63151
+ await this.#client.cpClient.containerReloadVolumes(
63152
+ ContainerReloadVolumesRequest.create({ taskId })
63153
+ );
63154
+ }
63155
+ }
60501
63156
  /**
60502
63157
  * Snapshots and creates a new {@link Image} from a directory in the running sandbox.
60503
63158
  *
@@ -60518,13 +63173,13 @@ var Sandbox2 = class _Sandbox {
60518
63173
  const wireTtlSeconds = resolveTtlSeconds(params?.ttlMs);
60519
63174
  const timeoutMs = params?.timeoutMs || 55e3;
60520
63175
  const [taskId, commandRouterClient] = await this.#getCommandRouter();
60521
- const pathBytes = new TextEncoder().encode(path2);
60522
- const request = TaskSnapshotDirectoryRequest.create({
63176
+ const request = buildTaskSnapshotDirectoryRequestProto(
60523
63177
  taskId,
60524
- path: pathBytes,
60525
- snapshotId: (0, import_uuid2.v4)(),
60526
- ttlSeconds: wireTtlSeconds
60527
- });
63178
+ path2,
63179
+ (0, import_uuid2.v4)(),
63180
+ wireTtlSeconds,
63181
+ params
63182
+ );
60528
63183
  const response = await commandRouterClient.snapshotDirectory(request, {
60529
63184
  timeoutMs
60530
63185
  });