modal 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2581,6 +2581,36 @@ function cloudBucketMount_BucketTypeToJSON(object) {
2581
2581
  return "UNRECOGNIZED";
2582
2582
  }
2583
2583
  }
2584
+ function cloudBucketMount_MetadataTTLTypeFromJSON(object) {
2585
+ switch (object) {
2586
+ case 0:
2587
+ case "METADATA_TTL_TYPE_UNSPECIFIED":
2588
+ return 0 /* METADATA_TTL_TYPE_UNSPECIFIED */;
2589
+ case 1:
2590
+ case "METADATA_TTL_TYPE_MINIMAL":
2591
+ return 1 /* METADATA_TTL_TYPE_MINIMAL */;
2592
+ case 2:
2593
+ case "METADATA_TTL_TYPE_INDEFINITE":
2594
+ return 2 /* METADATA_TTL_TYPE_INDEFINITE */;
2595
+ case -1:
2596
+ case "UNRECOGNIZED":
2597
+ default:
2598
+ return -1 /* UNRECOGNIZED */;
2599
+ }
2600
+ }
2601
+ function cloudBucketMount_MetadataTTLTypeToJSON(object) {
2602
+ switch (object) {
2603
+ case 0 /* METADATA_TTL_TYPE_UNSPECIFIED */:
2604
+ return "METADATA_TTL_TYPE_UNSPECIFIED";
2605
+ case 1 /* METADATA_TTL_TYPE_MINIMAL */:
2606
+ return "METADATA_TTL_TYPE_MINIMAL";
2607
+ case 2 /* METADATA_TTL_TYPE_INDEFINITE */:
2608
+ return "METADATA_TTL_TYPE_INDEFINITE";
2609
+ case -1 /* UNRECOGNIZED */:
2610
+ default:
2611
+ return "UNRECOGNIZED";
2612
+ }
2613
+ }
2584
2614
  function fileEntry_FileTypeFromJSON(object) {
2585
2615
  switch (object) {
2586
2616
  case 0:
@@ -2980,7 +3010,7 @@ var AppClientDisconnectRequest = {
2980
3010
  }
2981
3011
  };
2982
3012
  function createBaseAppCreateRequest() {
2983
- return { clientId: "", description: "", environmentName: "", appState: 0 };
3013
+ return { clientId: "", description: "", environmentName: "", appState: 0, tags: {} };
2984
3014
  }
2985
3015
  var AppCreateRequest = {
2986
3016
  encode(message, writer = new BinaryWriter()) {
@@ -2996,6 +3026,9 @@ var AppCreateRequest = {
2996
3026
  if (message.appState !== 0) {
2997
3027
  writer.uint32(48).int32(message.appState);
2998
3028
  }
3029
+ Object.entries(message.tags).forEach(([key, value]) => {
3030
+ AppCreateRequest_TagsEntry.encode({ key, value }, writer.uint32(58).fork()).join();
3031
+ });
2999
3032
  return writer;
3000
3033
  },
3001
3034
  decode(input, length) {
@@ -3033,6 +3066,16 @@ var AppCreateRequest = {
3033
3066
  message.appState = reader.int32();
3034
3067
  continue;
3035
3068
  }
3069
+ case 7: {
3070
+ if (tag !== 58) {
3071
+ break;
3072
+ }
3073
+ const entry7 = AppCreateRequest_TagsEntry.decode(reader, reader.uint32());
3074
+ if (entry7.value !== void 0) {
3075
+ message.tags[entry7.key] = entry7.value;
3076
+ }
3077
+ continue;
3078
+ }
3036
3079
  }
3037
3080
  if ((tag & 7) === 4 || tag === 0) {
3038
3081
  break;
@@ -3046,7 +3089,11 @@ var AppCreateRequest = {
3046
3089
  clientId: isSet4(object.clientId) ? globalThis.String(object.clientId) : "",
3047
3090
  description: isSet4(object.description) ? globalThis.String(object.description) : "",
3048
3091
  environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
3049
- appState: isSet4(object.appState) ? appStateFromJSON(object.appState) : 0
3092
+ appState: isSet4(object.appState) ? appStateFromJSON(object.appState) : 0,
3093
+ tags: isObject2(object.tags) ? Object.entries(object.tags).reduce((acc, [key, value]) => {
3094
+ acc[key] = String(value);
3095
+ return acc;
3096
+ }, {}) : {}
3050
3097
  };
3051
3098
  },
3052
3099
  toJSON(message) {
@@ -3063,6 +3110,15 @@ var AppCreateRequest = {
3063
3110
  if (message.appState !== 0) {
3064
3111
  obj.appState = appStateToJSON(message.appState);
3065
3112
  }
3113
+ if (message.tags) {
3114
+ const entries = Object.entries(message.tags);
3115
+ if (entries.length > 0) {
3116
+ obj.tags = {};
3117
+ entries.forEach(([k, v]) => {
3118
+ obj.tags[k] = v;
3119
+ });
3120
+ }
3121
+ }
3066
3122
  return obj;
3067
3123
  },
3068
3124
  create(base) {
@@ -3074,6 +3130,80 @@ var AppCreateRequest = {
3074
3130
  message.description = object.description ?? "";
3075
3131
  message.environmentName = object.environmentName ?? "";
3076
3132
  message.appState = object.appState ?? 0;
3133
+ message.tags = Object.entries(object.tags ?? {}).reduce((acc, [key, value]) => {
3134
+ if (value !== void 0) {
3135
+ acc[key] = globalThis.String(value);
3136
+ }
3137
+ return acc;
3138
+ }, {});
3139
+ return message;
3140
+ }
3141
+ };
3142
+ function createBaseAppCreateRequest_TagsEntry() {
3143
+ return { key: "", value: "" };
3144
+ }
3145
+ var AppCreateRequest_TagsEntry = {
3146
+ encode(message, writer = new BinaryWriter()) {
3147
+ if (message.key !== "") {
3148
+ writer.uint32(10).string(message.key);
3149
+ }
3150
+ if (message.value !== "") {
3151
+ writer.uint32(18).string(message.value);
3152
+ }
3153
+ return writer;
3154
+ },
3155
+ decode(input, length) {
3156
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3157
+ let end = length === void 0 ? reader.len : reader.pos + length;
3158
+ const message = createBaseAppCreateRequest_TagsEntry();
3159
+ while (reader.pos < end) {
3160
+ const tag = reader.uint32();
3161
+ switch (tag >>> 3) {
3162
+ case 1: {
3163
+ if (tag !== 10) {
3164
+ break;
3165
+ }
3166
+ message.key = reader.string();
3167
+ continue;
3168
+ }
3169
+ case 2: {
3170
+ if (tag !== 18) {
3171
+ break;
3172
+ }
3173
+ message.value = reader.string();
3174
+ continue;
3175
+ }
3176
+ }
3177
+ if ((tag & 7) === 4 || tag === 0) {
3178
+ break;
3179
+ }
3180
+ reader.skip(tag & 7);
3181
+ }
3182
+ return message;
3183
+ },
3184
+ fromJSON(object) {
3185
+ return {
3186
+ key: isSet4(object.key) ? globalThis.String(object.key) : "",
3187
+ value: isSet4(object.value) ? globalThis.String(object.value) : ""
3188
+ };
3189
+ },
3190
+ toJSON(message) {
3191
+ const obj = {};
3192
+ if (message.key !== "") {
3193
+ obj.key = message.key;
3194
+ }
3195
+ if (message.value !== "") {
3196
+ obj.value = message.value;
3197
+ }
3198
+ return obj;
3199
+ },
3200
+ create(base) {
3201
+ return AppCreateRequest_TagsEntry.fromPartial(base ?? {});
3202
+ },
3203
+ fromPartial(object) {
3204
+ const message = createBaseAppCreateRequest_TagsEntry();
3205
+ message.key = object.key ?? "";
3206
+ message.value = object.value ?? "";
3077
3207
  return message;
3078
3208
  }
3079
3209
  };
@@ -3854,6 +3984,7 @@ function createBaseAppGetLogsRequest() {
3854
3984
  timeout: 0,
3855
3985
  lastEntryId: "",
3856
3986
  functionId: "",
3987
+ parametrizedFunctionId: "",
3857
3988
  inputId: "",
3858
3989
  taskId: "",
3859
3990
  functionCallId: "",
@@ -3875,6 +4006,9 @@ var AppGetLogsRequest = {
3875
4006
  if (message.functionId !== "") {
3876
4007
  writer.uint32(42).string(message.functionId);
3877
4008
  }
4009
+ if (message.parametrizedFunctionId !== "") {
4010
+ writer.uint32(90).string(message.parametrizedFunctionId);
4011
+ }
3878
4012
  if (message.inputId !== "") {
3879
4013
  writer.uint32(50).string(message.inputId);
3880
4014
  }
@@ -3927,6 +4061,13 @@ var AppGetLogsRequest = {
3927
4061
  message.functionId = reader.string();
3928
4062
  continue;
3929
4063
  }
4064
+ case 11: {
4065
+ if (tag !== 90) {
4066
+ break;
4067
+ }
4068
+ message.parametrizedFunctionId = reader.string();
4069
+ continue;
4070
+ }
3930
4071
  case 6: {
3931
4072
  if (tag !== 50) {
3932
4073
  break;
@@ -3976,6 +4117,7 @@ var AppGetLogsRequest = {
3976
4117
  timeout: isSet4(object.timeout) ? globalThis.Number(object.timeout) : 0,
3977
4118
  lastEntryId: isSet4(object.lastEntryId) ? globalThis.String(object.lastEntryId) : "",
3978
4119
  functionId: isSet4(object.functionId) ? globalThis.String(object.functionId) : "",
4120
+ parametrizedFunctionId: isSet4(object.parametrizedFunctionId) ? globalThis.String(object.parametrizedFunctionId) : "",
3979
4121
  inputId: isSet4(object.inputId) ? globalThis.String(object.inputId) : "",
3980
4122
  taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "",
3981
4123
  functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : "",
@@ -3997,6 +4139,9 @@ var AppGetLogsRequest = {
3997
4139
  if (message.functionId !== "") {
3998
4140
  obj.functionId = message.functionId;
3999
4141
  }
4142
+ if (message.parametrizedFunctionId !== "") {
4143
+ obj.parametrizedFunctionId = message.parametrizedFunctionId;
4144
+ }
4000
4145
  if (message.inputId !== "") {
4001
4146
  obj.inputId = message.inputId;
4002
4147
  }
@@ -4023,6 +4168,7 @@ var AppGetLogsRequest = {
4023
4168
  message.timeout = object.timeout ?? 0;
4024
4169
  message.lastEntryId = object.lastEntryId ?? "";
4025
4170
  message.functionId = object.functionId ?? "";
4171
+ message.parametrizedFunctionId = object.parametrizedFunctionId ?? "";
4026
4172
  message.inputId = object.inputId ?? "";
4027
4173
  message.taskId = object.taskId ?? "";
4028
4174
  message.functionCallId = object.functionCallId ?? "";
@@ -6991,104 +7137,6 @@ var AutoscalerSettings = {
6991
7137
  return message;
6992
7138
  }
6993
7139
  };
6994
- function createBaseAutoscalingMetrics() {
6995
- return { cpuUsagePercent: 0, memoryUsagePercent: 0, concurrentRequests: 0, timestamp: 0 };
6996
- }
6997
- var AutoscalingMetrics = {
6998
- encode(message, writer = new BinaryWriter()) {
6999
- if (message.cpuUsagePercent !== 0) {
7000
- writer.uint32(9).double(message.cpuUsagePercent);
7001
- }
7002
- if (message.memoryUsagePercent !== 0) {
7003
- writer.uint32(17).double(message.memoryUsagePercent);
7004
- }
7005
- if (message.concurrentRequests !== 0) {
7006
- writer.uint32(24).uint32(message.concurrentRequests);
7007
- }
7008
- if (message.timestamp !== 0) {
7009
- writer.uint32(33).double(message.timestamp);
7010
- }
7011
- return writer;
7012
- },
7013
- decode(input, length) {
7014
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7015
- let end = length === void 0 ? reader.len : reader.pos + length;
7016
- const message = createBaseAutoscalingMetrics();
7017
- while (reader.pos < end) {
7018
- const tag = reader.uint32();
7019
- switch (tag >>> 3) {
7020
- case 1: {
7021
- if (tag !== 9) {
7022
- break;
7023
- }
7024
- message.cpuUsagePercent = reader.double();
7025
- continue;
7026
- }
7027
- case 2: {
7028
- if (tag !== 17) {
7029
- break;
7030
- }
7031
- message.memoryUsagePercent = reader.double();
7032
- continue;
7033
- }
7034
- case 3: {
7035
- if (tag !== 24) {
7036
- break;
7037
- }
7038
- message.concurrentRequests = reader.uint32();
7039
- continue;
7040
- }
7041
- case 4: {
7042
- if (tag !== 33) {
7043
- break;
7044
- }
7045
- message.timestamp = reader.double();
7046
- continue;
7047
- }
7048
- }
7049
- if ((tag & 7) === 4 || tag === 0) {
7050
- break;
7051
- }
7052
- reader.skip(tag & 7);
7053
- }
7054
- return message;
7055
- },
7056
- fromJSON(object) {
7057
- return {
7058
- cpuUsagePercent: isSet4(object.cpuUsagePercent) ? globalThis.Number(object.cpuUsagePercent) : 0,
7059
- memoryUsagePercent: isSet4(object.memoryUsagePercent) ? globalThis.Number(object.memoryUsagePercent) : 0,
7060
- concurrentRequests: isSet4(object.concurrentRequests) ? globalThis.Number(object.concurrentRequests) : 0,
7061
- timestamp: isSet4(object.timestamp) ? globalThis.Number(object.timestamp) : 0
7062
- };
7063
- },
7064
- toJSON(message) {
7065
- const obj = {};
7066
- if (message.cpuUsagePercent !== 0) {
7067
- obj.cpuUsagePercent = message.cpuUsagePercent;
7068
- }
7069
- if (message.memoryUsagePercent !== 0) {
7070
- obj.memoryUsagePercent = message.memoryUsagePercent;
7071
- }
7072
- if (message.concurrentRequests !== 0) {
7073
- obj.concurrentRequests = Math.round(message.concurrentRequests);
7074
- }
7075
- if (message.timestamp !== 0) {
7076
- obj.timestamp = message.timestamp;
7077
- }
7078
- return obj;
7079
- },
7080
- create(base) {
7081
- return AutoscalingMetrics.fromPartial(base ?? {});
7082
- },
7083
- fromPartial(object) {
7084
- const message = createBaseAutoscalingMetrics();
7085
- message.cpuUsagePercent = object.cpuUsagePercent ?? 0;
7086
- message.memoryUsagePercent = object.memoryUsagePercent ?? 0;
7087
- message.concurrentRequests = object.concurrentRequests ?? 0;
7088
- message.timestamp = object.timestamp ?? 0;
7089
- return message;
7090
- }
7091
- };
7092
7140
  function createBaseBaseImage() {
7093
7141
  return { imageId: "", dockerTag: "" };
7094
7142
  }
@@ -7561,7 +7609,7 @@ var BuildFunction = {
7561
7609
  }
7562
7610
  };
7563
7611
  function createBaseCancelInputEvent() {
7564
- return { inputIds: [], terminateContainers: false };
7612
+ return { inputIds: [], terminateContainers: false, cancellationReason: "" };
7565
7613
  }
7566
7614
  var CancelInputEvent = {
7567
7615
  encode(message, writer = new BinaryWriter()) {
@@ -7571,6 +7619,9 @@ var CancelInputEvent = {
7571
7619
  if (message.terminateContainers !== false) {
7572
7620
  writer.uint32(16).bool(message.terminateContainers);
7573
7621
  }
7622
+ if (message.cancellationReason !== "") {
7623
+ writer.uint32(26).string(message.cancellationReason);
7624
+ }
7574
7625
  return writer;
7575
7626
  },
7576
7627
  decode(input, length) {
@@ -7594,6 +7645,13 @@ var CancelInputEvent = {
7594
7645
  message.terminateContainers = reader.bool();
7595
7646
  continue;
7596
7647
  }
7648
+ case 3: {
7649
+ if (tag !== 26) {
7650
+ break;
7651
+ }
7652
+ message.cancellationReason = reader.string();
7653
+ continue;
7654
+ }
7597
7655
  }
7598
7656
  if ((tag & 7) === 4 || tag === 0) {
7599
7657
  break;
@@ -7605,7 +7663,8 @@ var CancelInputEvent = {
7605
7663
  fromJSON(object) {
7606
7664
  return {
7607
7665
  inputIds: globalThis.Array.isArray(object?.inputIds) ? object.inputIds.map((e) => globalThis.String(e)) : [],
7608
- terminateContainers: isSet4(object.terminateContainers) ? globalThis.Boolean(object.terminateContainers) : false
7666
+ terminateContainers: isSet4(object.terminateContainers) ? globalThis.Boolean(object.terminateContainers) : false,
7667
+ cancellationReason: isSet4(object.cancellationReason) ? globalThis.String(object.cancellationReason) : ""
7609
7668
  };
7610
7669
  },
7611
7670
  toJSON(message) {
@@ -7616,6 +7675,9 @@ var CancelInputEvent = {
7616
7675
  if (message.terminateContainers !== false) {
7617
7676
  obj.terminateContainers = message.terminateContainers;
7618
7677
  }
7678
+ if (message.cancellationReason !== "") {
7679
+ obj.cancellationReason = message.cancellationReason;
7680
+ }
7619
7681
  return obj;
7620
7682
  },
7621
7683
  create(base) {
@@ -7625,6 +7687,7 @@ var CancelInputEvent = {
7625
7687
  const message = createBaseCancelInputEvent();
7626
7688
  message.inputIds = object.inputIds?.map((e) => e) || [];
7627
7689
  message.terminateContainers = object.terminateContainers ?? false;
7690
+ message.cancellationReason = object.cancellationReason ?? "";
7628
7691
  return message;
7629
7692
  }
7630
7693
  };
@@ -8856,7 +8919,10 @@ function createBaseCloudBucketMount() {
8856
8919
  requesterPays: false,
8857
8920
  bucketEndpointUrl: void 0,
8858
8921
  keyPrefix: void 0,
8859
- oidcAuthRoleArn: void 0
8922
+ oidcAuthRoleArn: void 0,
8923
+ forcePathStyle: false,
8924
+ metadataTtlType: void 0,
8925
+ metadataTtlSeconds: void 0
8860
8926
  };
8861
8927
  }
8862
8928
  var CloudBucketMount = {
@@ -8888,6 +8954,15 @@ var CloudBucketMount = {
8888
8954
  if (message.oidcAuthRoleArn !== void 0) {
8889
8955
  writer.uint32(74).string(message.oidcAuthRoleArn);
8890
8956
  }
8957
+ if (message.forcePathStyle !== false) {
8958
+ writer.uint32(80).bool(message.forcePathStyle);
8959
+ }
8960
+ if (message.metadataTtlType !== void 0) {
8961
+ writer.uint32(88).int32(message.metadataTtlType);
8962
+ }
8963
+ if (message.metadataTtlSeconds !== void 0) {
8964
+ writer.uint32(96).uint64(message.metadataTtlSeconds);
8965
+ }
8891
8966
  return writer;
8892
8967
  },
8893
8968
  decode(input, length) {
@@ -8960,6 +9035,27 @@ var CloudBucketMount = {
8960
9035
  message.oidcAuthRoleArn = reader.string();
8961
9036
  continue;
8962
9037
  }
9038
+ case 10: {
9039
+ if (tag !== 80) {
9040
+ break;
9041
+ }
9042
+ message.forcePathStyle = reader.bool();
9043
+ continue;
9044
+ }
9045
+ case 11: {
9046
+ if (tag !== 88) {
9047
+ break;
9048
+ }
9049
+ message.metadataTtlType = reader.int32();
9050
+ continue;
9051
+ }
9052
+ case 12: {
9053
+ if (tag !== 96) {
9054
+ break;
9055
+ }
9056
+ message.metadataTtlSeconds = longToNumber2(reader.uint64());
9057
+ continue;
9058
+ }
8963
9059
  }
8964
9060
  if ((tag & 7) === 4 || tag === 0) {
8965
9061
  break;
@@ -8978,7 +9074,10 @@ var CloudBucketMount = {
8978
9074
  requesterPays: isSet4(object.requesterPays) ? globalThis.Boolean(object.requesterPays) : false,
8979
9075
  bucketEndpointUrl: isSet4(object.bucketEndpointUrl) ? globalThis.String(object.bucketEndpointUrl) : void 0,
8980
9076
  keyPrefix: isSet4(object.keyPrefix) ? globalThis.String(object.keyPrefix) : void 0,
8981
- oidcAuthRoleArn: isSet4(object.oidcAuthRoleArn) ? globalThis.String(object.oidcAuthRoleArn) : void 0
9077
+ oidcAuthRoleArn: isSet4(object.oidcAuthRoleArn) ? globalThis.String(object.oidcAuthRoleArn) : void 0,
9078
+ forcePathStyle: isSet4(object.forcePathStyle) ? globalThis.Boolean(object.forcePathStyle) : false,
9079
+ metadataTtlType: isSet4(object.metadataTtlType) ? cloudBucketMount_MetadataTTLTypeFromJSON(object.metadataTtlType) : void 0,
9080
+ metadataTtlSeconds: isSet4(object.metadataTtlSeconds) ? globalThis.Number(object.metadataTtlSeconds) : void 0
8982
9081
  };
8983
9082
  },
8984
9083
  toJSON(message) {
@@ -9010,6 +9109,15 @@ var CloudBucketMount = {
9010
9109
  if (message.oidcAuthRoleArn !== void 0) {
9011
9110
  obj.oidcAuthRoleArn = message.oidcAuthRoleArn;
9012
9111
  }
9112
+ if (message.forcePathStyle !== false) {
9113
+ obj.forcePathStyle = message.forcePathStyle;
9114
+ }
9115
+ if (message.metadataTtlType !== void 0) {
9116
+ obj.metadataTtlType = cloudBucketMount_MetadataTTLTypeToJSON(message.metadataTtlType);
9117
+ }
9118
+ if (message.metadataTtlSeconds !== void 0) {
9119
+ obj.metadataTtlSeconds = Math.round(message.metadataTtlSeconds);
9120
+ }
9013
9121
  return obj;
9014
9122
  },
9015
9123
  create(base) {
@@ -9026,6 +9134,9 @@ var CloudBucketMount = {
9026
9134
  message.bucketEndpointUrl = object.bucketEndpointUrl ?? void 0;
9027
9135
  message.keyPrefix = object.keyPrefix ?? void 0;
9028
9136
  message.oidcAuthRoleArn = object.oidcAuthRoleArn ?? void 0;
9137
+ message.forcePathStyle = object.forcePathStyle ?? false;
9138
+ message.metadataTtlType = object.metadataTtlType ?? void 0;
9139
+ message.metadataTtlSeconds = object.metadataTtlSeconds ?? void 0;
9029
9140
  return message;
9030
9141
  }
9031
9142
  };
@@ -14186,7 +14297,18 @@ var EnvironmentGetOrCreateResponse = {
14186
14297
  }
14187
14298
  };
14188
14299
  function createBaseEnvironmentListItem() {
14189
- return { name: "", webhookSuffix: "", createdAt: 0, default: false, isManaged: false, environmentId: "" };
14300
+ return {
14301
+ name: "",
14302
+ webhookSuffix: "",
14303
+ createdAt: 0,
14304
+ default: false,
14305
+ isManaged: false,
14306
+ environmentId: "",
14307
+ maxConcurrentTasks: void 0,
14308
+ maxConcurrentGpus: void 0,
14309
+ currentConcurrentTasks: 0,
14310
+ currentConcurrentGpus: 0
14311
+ };
14190
14312
  }
14191
14313
  var EnvironmentListItem = {
14192
14314
  encode(message, writer = new BinaryWriter()) {
@@ -14208,6 +14330,18 @@ var EnvironmentListItem = {
14208
14330
  if (message.environmentId !== "") {
14209
14331
  writer.uint32(50).string(message.environmentId);
14210
14332
  }
14333
+ if (message.maxConcurrentTasks !== void 0) {
14334
+ writer.uint32(56).int32(message.maxConcurrentTasks);
14335
+ }
14336
+ if (message.maxConcurrentGpus !== void 0) {
14337
+ writer.uint32(64).int32(message.maxConcurrentGpus);
14338
+ }
14339
+ if (message.currentConcurrentTasks !== 0) {
14340
+ writer.uint32(72).int32(message.currentConcurrentTasks);
14341
+ }
14342
+ if (message.currentConcurrentGpus !== 0) {
14343
+ writer.uint32(80).int32(message.currentConcurrentGpus);
14344
+ }
14211
14345
  return writer;
14212
14346
  },
14213
14347
  decode(input, length) {
@@ -14259,6 +14393,34 @@ var EnvironmentListItem = {
14259
14393
  message.environmentId = reader.string();
14260
14394
  continue;
14261
14395
  }
14396
+ case 7: {
14397
+ if (tag !== 56) {
14398
+ break;
14399
+ }
14400
+ message.maxConcurrentTasks = reader.int32();
14401
+ continue;
14402
+ }
14403
+ case 8: {
14404
+ if (tag !== 64) {
14405
+ break;
14406
+ }
14407
+ message.maxConcurrentGpus = reader.int32();
14408
+ continue;
14409
+ }
14410
+ case 9: {
14411
+ if (tag !== 72) {
14412
+ break;
14413
+ }
14414
+ message.currentConcurrentTasks = reader.int32();
14415
+ continue;
14416
+ }
14417
+ case 10: {
14418
+ if (tag !== 80) {
14419
+ break;
14420
+ }
14421
+ message.currentConcurrentGpus = reader.int32();
14422
+ continue;
14423
+ }
14262
14424
  }
14263
14425
  if ((tag & 7) === 4 || tag === 0) {
14264
14426
  break;
@@ -14274,7 +14436,11 @@ var EnvironmentListItem = {
14274
14436
  createdAt: isSet4(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
14275
14437
  default: isSet4(object.default) ? globalThis.Boolean(object.default) : false,
14276
14438
  isManaged: isSet4(object.isManaged) ? globalThis.Boolean(object.isManaged) : false,
14277
- environmentId: isSet4(object.environmentId) ? globalThis.String(object.environmentId) : ""
14439
+ environmentId: isSet4(object.environmentId) ? globalThis.String(object.environmentId) : "",
14440
+ maxConcurrentTasks: isSet4(object.maxConcurrentTasks) ? globalThis.Number(object.maxConcurrentTasks) : void 0,
14441
+ maxConcurrentGpus: isSet4(object.maxConcurrentGpus) ? globalThis.Number(object.maxConcurrentGpus) : void 0,
14442
+ currentConcurrentTasks: isSet4(object.currentConcurrentTasks) ? globalThis.Number(object.currentConcurrentTasks) : 0,
14443
+ currentConcurrentGpus: isSet4(object.currentConcurrentGpus) ? globalThis.Number(object.currentConcurrentGpus) : 0
14278
14444
  };
14279
14445
  },
14280
14446
  toJSON(message) {
@@ -14297,6 +14463,18 @@ var EnvironmentListItem = {
14297
14463
  if (message.environmentId !== "") {
14298
14464
  obj.environmentId = message.environmentId;
14299
14465
  }
14466
+ if (message.maxConcurrentTasks !== void 0) {
14467
+ obj.maxConcurrentTasks = Math.round(message.maxConcurrentTasks);
14468
+ }
14469
+ if (message.maxConcurrentGpus !== void 0) {
14470
+ obj.maxConcurrentGpus = Math.round(message.maxConcurrentGpus);
14471
+ }
14472
+ if (message.currentConcurrentTasks !== 0) {
14473
+ obj.currentConcurrentTasks = Math.round(message.currentConcurrentTasks);
14474
+ }
14475
+ if (message.currentConcurrentGpus !== 0) {
14476
+ obj.currentConcurrentGpus = Math.round(message.currentConcurrentGpus);
14477
+ }
14300
14478
  return obj;
14301
14479
  },
14302
14480
  create(base) {
@@ -14310,6 +14488,10 @@ var EnvironmentListItem = {
14310
14488
  message.default = object.default ?? false;
14311
14489
  message.isManaged = object.isManaged ?? false;
14312
14490
  message.environmentId = object.environmentId ?? "";
14491
+ message.maxConcurrentTasks = object.maxConcurrentTasks ?? void 0;
14492
+ message.maxConcurrentGpus = object.maxConcurrentGpus ?? void 0;
14493
+ message.currentConcurrentTasks = object.currentConcurrentTasks ?? 0;
14494
+ message.currentConcurrentGpus = object.currentConcurrentGpus ?? 0;
14313
14495
  return message;
14314
14496
  }
14315
14497
  };
@@ -14503,7 +14685,13 @@ var EnvironmentSettings = {
14503
14685
  }
14504
14686
  };
14505
14687
  function createBaseEnvironmentUpdateRequest() {
14506
- return { currentName: "", name: void 0, webSuffix: void 0 };
14688
+ return {
14689
+ currentName: "",
14690
+ name: void 0,
14691
+ webSuffix: void 0,
14692
+ maxConcurrentTasks: void 0,
14693
+ maxConcurrentGpus: void 0
14694
+ };
14507
14695
  }
14508
14696
  var EnvironmentUpdateRequest = {
14509
14697
  encode(message, writer = new BinaryWriter()) {
@@ -14516,6 +14704,12 @@ var EnvironmentUpdateRequest = {
14516
14704
  if (message.webSuffix !== void 0) {
14517
14705
  StringValue.encode({ value: message.webSuffix }, writer.uint32(26).fork()).join();
14518
14706
  }
14707
+ if (message.maxConcurrentTasks !== void 0) {
14708
+ writer.uint32(32).int32(message.maxConcurrentTasks);
14709
+ }
14710
+ if (message.maxConcurrentGpus !== void 0) {
14711
+ writer.uint32(40).int32(message.maxConcurrentGpus);
14712
+ }
14519
14713
  return writer;
14520
14714
  },
14521
14715
  decode(input, length) {
@@ -14546,6 +14740,20 @@ var EnvironmentUpdateRequest = {
14546
14740
  message.webSuffix = StringValue.decode(reader, reader.uint32()).value;
14547
14741
  continue;
14548
14742
  }
14743
+ case 4: {
14744
+ if (tag !== 32) {
14745
+ break;
14746
+ }
14747
+ message.maxConcurrentTasks = reader.int32();
14748
+ continue;
14749
+ }
14750
+ case 5: {
14751
+ if (tag !== 40) {
14752
+ break;
14753
+ }
14754
+ message.maxConcurrentGpus = reader.int32();
14755
+ continue;
14756
+ }
14549
14757
  }
14550
14758
  if ((tag & 7) === 4 || tag === 0) {
14551
14759
  break;
@@ -14558,7 +14766,9 @@ var EnvironmentUpdateRequest = {
14558
14766
  return {
14559
14767
  currentName: isSet4(object.currentName) ? globalThis.String(object.currentName) : "",
14560
14768
  name: isSet4(object.name) ? String(object.name) : void 0,
14561
- webSuffix: isSet4(object.webSuffix) ? String(object.webSuffix) : void 0
14769
+ webSuffix: isSet4(object.webSuffix) ? String(object.webSuffix) : void 0,
14770
+ maxConcurrentTasks: isSet4(object.maxConcurrentTasks) ? globalThis.Number(object.maxConcurrentTasks) : void 0,
14771
+ maxConcurrentGpus: isSet4(object.maxConcurrentGpus) ? globalThis.Number(object.maxConcurrentGpus) : void 0
14562
14772
  };
14563
14773
  },
14564
14774
  toJSON(message) {
@@ -14572,6 +14782,12 @@ var EnvironmentUpdateRequest = {
14572
14782
  if (message.webSuffix !== void 0) {
14573
14783
  obj.webSuffix = message.webSuffix;
14574
14784
  }
14785
+ if (message.maxConcurrentTasks !== void 0) {
14786
+ obj.maxConcurrentTasks = Math.round(message.maxConcurrentTasks);
14787
+ }
14788
+ if (message.maxConcurrentGpus !== void 0) {
14789
+ obj.maxConcurrentGpus = Math.round(message.maxConcurrentGpus);
14790
+ }
14575
14791
  return obj;
14576
14792
  },
14577
14793
  create(base) {
@@ -14582,6 +14798,8 @@ var EnvironmentUpdateRequest = {
14582
14798
  message.currentName = object.currentName ?? "";
14583
14799
  message.name = object.name ?? void 0;
14584
14800
  message.webSuffix = object.webSuffix ?? void 0;
14801
+ message.maxConcurrentTasks = object.maxConcurrentTasks ?? void 0;
14802
+ message.maxConcurrentGpus = object.maxConcurrentGpus ?? void 0;
14585
14803
  return message;
14586
14804
  }
14587
14805
  };
@@ -15364,7 +15582,11 @@ function createBaseFunctionMessage() {
15364
15582
  enableGpuSnapshot: false,
15365
15583
  startupTimeoutSecs: 0,
15366
15584
  supportedInputFormats: [],
15367
- supportedOutputFormats: []
15585
+ supportedOutputFormats: [],
15586
+ httpConfig: void 0,
15587
+ implementationName: "",
15588
+ singleUseContainers: false,
15589
+ isServer: false
15368
15590
  };
15369
15591
  }
15370
15592
  var FunctionMessage = {
@@ -15598,6 +15820,18 @@ var FunctionMessage = {
15598
15820
  writer.int32(v);
15599
15821
  }
15600
15822
  writer.join();
15823
+ if (message.httpConfig !== void 0) {
15824
+ HTTPConfig.encode(message.httpConfig, writer.uint32(714).fork()).join();
15825
+ }
15826
+ if (message.implementationName !== "") {
15827
+ writer.uint32(722).string(message.implementationName);
15828
+ }
15829
+ if (message.singleUseContainers !== false) {
15830
+ writer.uint32(728).bool(message.singleUseContainers);
15831
+ }
15832
+ if (message.isServer !== false) {
15833
+ writer.uint32(736).bool(message.isServer);
15834
+ }
15601
15835
  return writer;
15602
15836
  },
15603
15837
  decode(input, length) {
@@ -16152,6 +16386,34 @@ var FunctionMessage = {
16152
16386
  }
16153
16387
  break;
16154
16388
  }
16389
+ case 89: {
16390
+ if (tag !== 714) {
16391
+ break;
16392
+ }
16393
+ message.httpConfig = HTTPConfig.decode(reader, reader.uint32());
16394
+ continue;
16395
+ }
16396
+ case 90: {
16397
+ if (tag !== 722) {
16398
+ break;
16399
+ }
16400
+ message.implementationName = reader.string();
16401
+ continue;
16402
+ }
16403
+ case 91: {
16404
+ if (tag !== 728) {
16405
+ break;
16406
+ }
16407
+ message.singleUseContainers = reader.bool();
16408
+ continue;
16409
+ }
16410
+ case 92: {
16411
+ if (tag !== 736) {
16412
+ break;
16413
+ }
16414
+ message.isServer = reader.bool();
16415
+ continue;
16416
+ }
16155
16417
  }
16156
16418
  if ((tag & 7) === 4 || tag === 0) {
16157
16419
  break;
@@ -16242,7 +16504,11 @@ var FunctionMessage = {
16242
16504
  enableGpuSnapshot: isSet4(object.enableGpuSnapshot) ? globalThis.Boolean(object.enableGpuSnapshot) : false,
16243
16505
  startupTimeoutSecs: isSet4(object.startupTimeoutSecs) ? globalThis.Number(object.startupTimeoutSecs) : 0,
16244
16506
  supportedInputFormats: globalThis.Array.isArray(object?.supportedInputFormats) ? object.supportedInputFormats.map((e) => dataFormatFromJSON(e)) : [],
16245
- supportedOutputFormats: globalThis.Array.isArray(object?.supportedOutputFormats) ? object.supportedOutputFormats.map((e) => dataFormatFromJSON(e)) : []
16507
+ supportedOutputFormats: globalThis.Array.isArray(object?.supportedOutputFormats) ? object.supportedOutputFormats.map((e) => dataFormatFromJSON(e)) : [],
16508
+ httpConfig: isSet4(object.httpConfig) ? HTTPConfig.fromJSON(object.httpConfig) : void 0,
16509
+ implementationName: isSet4(object.implementationName) ? globalThis.String(object.implementationName) : "",
16510
+ singleUseContainers: isSet4(object.singleUseContainers) ? globalThis.Boolean(object.singleUseContainers) : false,
16511
+ isServer: isSet4(object.isServer) ? globalThis.Boolean(object.isServer) : false
16246
16512
  };
16247
16513
  },
16248
16514
  toJSON(message) {
@@ -16484,6 +16750,18 @@ var FunctionMessage = {
16484
16750
  if (message.supportedOutputFormats?.length) {
16485
16751
  obj.supportedOutputFormats = message.supportedOutputFormats.map((e) => dataFormatToJSON(e));
16486
16752
  }
16753
+ if (message.httpConfig !== void 0) {
16754
+ obj.httpConfig = HTTPConfig.toJSON(message.httpConfig);
16755
+ }
16756
+ if (message.implementationName !== "") {
16757
+ obj.implementationName = message.implementationName;
16758
+ }
16759
+ if (message.singleUseContainers !== false) {
16760
+ obj.singleUseContainers = message.singleUseContainers;
16761
+ }
16762
+ if (message.isServer !== false) {
16763
+ obj.isServer = message.isServer;
16764
+ }
16487
16765
  return obj;
16488
16766
  },
16489
16767
  create(base) {
@@ -16579,6 +16857,10 @@ var FunctionMessage = {
16579
16857
  message.startupTimeoutSecs = object.startupTimeoutSecs ?? 0;
16580
16858
  message.supportedInputFormats = object.supportedInputFormats?.map((e) => e) || [];
16581
16859
  message.supportedOutputFormats = object.supportedOutputFormats?.map((e) => e) || [];
16860
+ message.httpConfig = object.httpConfig !== void 0 && object.httpConfig !== null ? HTTPConfig.fromPartial(object.httpConfig) : void 0;
16861
+ message.implementationName = object.implementationName ?? "";
16862
+ message.singleUseContainers = object.singleUseContainers ?? false;
16863
+ message.isServer = object.isServer ?? false;
16582
16864
  return message;
16583
16865
  }
16584
16866
  };
@@ -17357,7 +17639,7 @@ var FunctionCallFromIdResponse = {
17357
17639
  }
17358
17640
  };
17359
17641
  function createBaseFunctionCallGetDataRequest() {
17360
- return { functionCallId: void 0, attemptToken: void 0, lastIndex: 0 };
17642
+ return { functionCallId: void 0, attemptToken: void 0, lastIndex: 0, useGaplessRead: false };
17361
17643
  }
17362
17644
  var FunctionCallGetDataRequest = {
17363
17645
  encode(message, writer = new BinaryWriter()) {
@@ -17370,6 +17652,9 @@ var FunctionCallGetDataRequest = {
17370
17652
  if (message.lastIndex !== 0) {
17371
17653
  writer.uint32(16).uint64(message.lastIndex);
17372
17654
  }
17655
+ if (message.useGaplessRead !== false) {
17656
+ writer.uint32(32).bool(message.useGaplessRead);
17657
+ }
17373
17658
  return writer;
17374
17659
  },
17375
17660
  decode(input, length) {
@@ -17400,6 +17685,13 @@ var FunctionCallGetDataRequest = {
17400
17685
  message.lastIndex = longToNumber2(reader.uint64());
17401
17686
  continue;
17402
17687
  }
17688
+ case 4: {
17689
+ if (tag !== 32) {
17690
+ break;
17691
+ }
17692
+ message.useGaplessRead = reader.bool();
17693
+ continue;
17694
+ }
17403
17695
  }
17404
17696
  if ((tag & 7) === 4 || tag === 0) {
17405
17697
  break;
@@ -17412,7 +17704,8 @@ var FunctionCallGetDataRequest = {
17412
17704
  return {
17413
17705
  functionCallId: isSet4(object.functionCallId) ? globalThis.String(object.functionCallId) : void 0,
17414
17706
  attemptToken: isSet4(object.attemptToken) ? globalThis.String(object.attemptToken) : void 0,
17415
- lastIndex: isSet4(object.lastIndex) ? globalThis.Number(object.lastIndex) : 0
17707
+ lastIndex: isSet4(object.lastIndex) ? globalThis.Number(object.lastIndex) : 0,
17708
+ useGaplessRead: isSet4(object.useGaplessRead) ? globalThis.Boolean(object.useGaplessRead) : false
17416
17709
  };
17417
17710
  },
17418
17711
  toJSON(message) {
@@ -17426,6 +17719,9 @@ var FunctionCallGetDataRequest = {
17426
17719
  if (message.lastIndex !== 0) {
17427
17720
  obj.lastIndex = Math.round(message.lastIndex);
17428
17721
  }
17722
+ if (message.useGaplessRead !== false) {
17723
+ obj.useGaplessRead = message.useGaplessRead;
17724
+ }
17429
17725
  return obj;
17430
17726
  },
17431
17727
  create(base) {
@@ -17436,6 +17732,7 @@ var FunctionCallGetDataRequest = {
17436
17732
  message.functionCallId = object.functionCallId ?? void 0;
17437
17733
  message.attemptToken = object.attemptToken ?? void 0;
17438
17734
  message.lastIndex = object.lastIndex ?? 0;
17735
+ message.useGaplessRead = object.useGaplessRead ?? false;
17439
17736
  return message;
17440
17737
  }
17441
17738
  };
@@ -18089,7 +18386,10 @@ function createBaseFunctionData() {
18089
18386
  flashServiceLabel: "",
18090
18387
  startupTimeoutSecs: 0,
18091
18388
  supportedInputFormats: [],
18092
- supportedOutputFormats: []
18389
+ supportedOutputFormats: [],
18390
+ httpConfig: void 0,
18391
+ implementationName: "",
18392
+ isServer: false
18093
18393
  };
18094
18394
  }
18095
18395
  var FunctionData = {
@@ -18209,6 +18509,15 @@ var FunctionData = {
18209
18509
  writer.int32(v);
18210
18510
  }
18211
18511
  writer.join();
18512
+ if (message.httpConfig !== void 0) {
18513
+ HTTPConfig.encode(message.httpConfig, writer.uint32(314).fork()).join();
18514
+ }
18515
+ if (message.implementationName !== "") {
18516
+ writer.uint32(322).string(message.implementationName);
18517
+ }
18518
+ if (message.isServer !== false) {
18519
+ writer.uint32(328).bool(message.isServer);
18520
+ }
18212
18521
  return writer;
18213
18522
  },
18214
18523
  decode(input, length) {
@@ -18497,6 +18806,27 @@ var FunctionData = {
18497
18806
  }
18498
18807
  break;
18499
18808
  }
18809
+ case 39: {
18810
+ if (tag !== 314) {
18811
+ break;
18812
+ }
18813
+ message.httpConfig = HTTPConfig.decode(reader, reader.uint32());
18814
+ continue;
18815
+ }
18816
+ case 40: {
18817
+ if (tag !== 322) {
18818
+ break;
18819
+ }
18820
+ message.implementationName = reader.string();
18821
+ continue;
18822
+ }
18823
+ case 41: {
18824
+ if (tag !== 328) {
18825
+ break;
18826
+ }
18827
+ message.isServer = reader.bool();
18828
+ continue;
18829
+ }
18500
18830
  }
18501
18831
  if ((tag & 7) === 4 || tag === 0) {
18502
18832
  break;
@@ -18549,7 +18879,10 @@ var FunctionData = {
18549
18879
  flashServiceLabel: isSet4(object.flashServiceLabel) ? globalThis.String(object.flashServiceLabel) : "",
18550
18880
  startupTimeoutSecs: isSet4(object.startupTimeoutSecs) ? globalThis.Number(object.startupTimeoutSecs) : 0,
18551
18881
  supportedInputFormats: globalThis.Array.isArray(object?.supportedInputFormats) ? object.supportedInputFormats.map((e) => dataFormatFromJSON(e)) : [],
18552
- supportedOutputFormats: globalThis.Array.isArray(object?.supportedOutputFormats) ? object.supportedOutputFormats.map((e) => dataFormatFromJSON(e)) : []
18882
+ supportedOutputFormats: globalThis.Array.isArray(object?.supportedOutputFormats) ? object.supportedOutputFormats.map((e) => dataFormatFromJSON(e)) : [],
18883
+ httpConfig: isSet4(object.httpConfig) ? HTTPConfig.fromJSON(object.httpConfig) : void 0,
18884
+ implementationName: isSet4(object.implementationName) ? globalThis.String(object.implementationName) : "",
18885
+ isServer: isSet4(object.isServer) ? globalThis.Boolean(object.isServer) : false
18553
18886
  };
18554
18887
  },
18555
18888
  toJSON(message) {
@@ -18677,6 +19010,15 @@ var FunctionData = {
18677
19010
  if (message.supportedOutputFormats?.length) {
18678
19011
  obj.supportedOutputFormats = message.supportedOutputFormats.map((e) => dataFormatToJSON(e));
18679
19012
  }
19013
+ if (message.httpConfig !== void 0) {
19014
+ obj.httpConfig = HTTPConfig.toJSON(message.httpConfig);
19015
+ }
19016
+ if (message.implementationName !== "") {
19017
+ obj.implementationName = message.implementationName;
19018
+ }
19019
+ if (message.isServer !== false) {
19020
+ obj.isServer = message.isServer;
19021
+ }
18680
19022
  return obj;
18681
19023
  },
18682
19024
  create(base) {
@@ -18734,6 +19076,9 @@ var FunctionData = {
18734
19076
  message.startupTimeoutSecs = object.startupTimeoutSecs ?? 0;
18735
19077
  message.supportedInputFormats = object.supportedInputFormats?.map((e) => e) || [];
18736
19078
  message.supportedOutputFormats = object.supportedOutputFormats?.map((e) => e) || [];
19079
+ message.httpConfig = object.httpConfig !== void 0 && object.httpConfig !== null ? HTTPConfig.fromPartial(object.httpConfig) : void 0;
19080
+ message.implementationName = object.implementationName ?? "";
19081
+ message.isServer = object.isServer ?? false;
18737
19082
  return message;
18738
19083
  }
18739
19084
  };
@@ -23504,6 +23849,134 @@ var GenericResult = {
23504
23849
  return message;
23505
23850
  }
23506
23851
  };
23852
+ function createBaseHTTPConfig() {
23853
+ return { port: 0, proxyRegions: [], startupTimeout: 0, exitGracePeriod: 0, h2Enabled: false, targetConcurrency: 0 };
23854
+ }
23855
+ var HTTPConfig = {
23856
+ encode(message, writer = new BinaryWriter()) {
23857
+ if (message.port !== 0) {
23858
+ writer.uint32(8).uint32(message.port);
23859
+ }
23860
+ for (const v of message.proxyRegions) {
23861
+ writer.uint32(18).string(v);
23862
+ }
23863
+ if (message.startupTimeout !== 0) {
23864
+ writer.uint32(24).uint32(message.startupTimeout);
23865
+ }
23866
+ if (message.exitGracePeriod !== 0) {
23867
+ writer.uint32(32).uint32(message.exitGracePeriod);
23868
+ }
23869
+ if (message.h2Enabled !== false) {
23870
+ writer.uint32(40).bool(message.h2Enabled);
23871
+ }
23872
+ if (message.targetConcurrency !== 0) {
23873
+ writer.uint32(48).uint32(message.targetConcurrency);
23874
+ }
23875
+ return writer;
23876
+ },
23877
+ decode(input, length) {
23878
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
23879
+ let end = length === void 0 ? reader.len : reader.pos + length;
23880
+ const message = createBaseHTTPConfig();
23881
+ while (reader.pos < end) {
23882
+ const tag = reader.uint32();
23883
+ switch (tag >>> 3) {
23884
+ case 1: {
23885
+ if (tag !== 8) {
23886
+ break;
23887
+ }
23888
+ message.port = reader.uint32();
23889
+ continue;
23890
+ }
23891
+ case 2: {
23892
+ if (tag !== 18) {
23893
+ break;
23894
+ }
23895
+ message.proxyRegions.push(reader.string());
23896
+ continue;
23897
+ }
23898
+ case 3: {
23899
+ if (tag !== 24) {
23900
+ break;
23901
+ }
23902
+ message.startupTimeout = reader.uint32();
23903
+ continue;
23904
+ }
23905
+ case 4: {
23906
+ if (tag !== 32) {
23907
+ break;
23908
+ }
23909
+ message.exitGracePeriod = reader.uint32();
23910
+ continue;
23911
+ }
23912
+ case 5: {
23913
+ if (tag !== 40) {
23914
+ break;
23915
+ }
23916
+ message.h2Enabled = reader.bool();
23917
+ continue;
23918
+ }
23919
+ case 6: {
23920
+ if (tag !== 48) {
23921
+ break;
23922
+ }
23923
+ message.targetConcurrency = reader.uint32();
23924
+ continue;
23925
+ }
23926
+ }
23927
+ if ((tag & 7) === 4 || tag === 0) {
23928
+ break;
23929
+ }
23930
+ reader.skip(tag & 7);
23931
+ }
23932
+ return message;
23933
+ },
23934
+ fromJSON(object) {
23935
+ return {
23936
+ port: isSet4(object.port) ? globalThis.Number(object.port) : 0,
23937
+ proxyRegions: globalThis.Array.isArray(object?.proxyRegions) ? object.proxyRegions.map((e) => globalThis.String(e)) : [],
23938
+ startupTimeout: isSet4(object.startupTimeout) ? globalThis.Number(object.startupTimeout) : 0,
23939
+ exitGracePeriod: isSet4(object.exitGracePeriod) ? globalThis.Number(object.exitGracePeriod) : 0,
23940
+ h2Enabled: isSet4(object.h2Enabled) ? globalThis.Boolean(object.h2Enabled) : false,
23941
+ targetConcurrency: isSet4(object.targetConcurrency) ? globalThis.Number(object.targetConcurrency) : 0
23942
+ };
23943
+ },
23944
+ toJSON(message) {
23945
+ const obj = {};
23946
+ if (message.port !== 0) {
23947
+ obj.port = Math.round(message.port);
23948
+ }
23949
+ if (message.proxyRegions?.length) {
23950
+ obj.proxyRegions = message.proxyRegions;
23951
+ }
23952
+ if (message.startupTimeout !== 0) {
23953
+ obj.startupTimeout = Math.round(message.startupTimeout);
23954
+ }
23955
+ if (message.exitGracePeriod !== 0) {
23956
+ obj.exitGracePeriod = Math.round(message.exitGracePeriod);
23957
+ }
23958
+ if (message.h2Enabled !== false) {
23959
+ obj.h2Enabled = message.h2Enabled;
23960
+ }
23961
+ if (message.targetConcurrency !== 0) {
23962
+ obj.targetConcurrency = Math.round(message.targetConcurrency);
23963
+ }
23964
+ return obj;
23965
+ },
23966
+ create(base) {
23967
+ return HTTPConfig.fromPartial(base ?? {});
23968
+ },
23969
+ fromPartial(object) {
23970
+ const message = createBaseHTTPConfig();
23971
+ message.port = object.port ?? 0;
23972
+ message.proxyRegions = object.proxyRegions?.map((e) => e) || [];
23973
+ message.startupTimeout = object.startupTimeout ?? 0;
23974
+ message.exitGracePeriod = object.exitGracePeriod ?? 0;
23975
+ message.h2Enabled = object.h2Enabled ?? false;
23976
+ message.targetConcurrency = object.targetConcurrency ?? 0;
23977
+ return message;
23978
+ }
23979
+ };
23507
23980
  function createBaseImage() {
23508
23981
  return {
23509
23982
  baseImages: [],
@@ -27916,7 +28389,7 @@ var PortSpecs = {
27916
28389
  }
27917
28390
  };
27918
28391
  function createBaseProxy() {
27919
- return { name: "", createdAt: 0, environmentName: "", proxyId: "", proxyIps: [] };
28392
+ return { name: "", createdAt: 0, environmentName: "", proxyIps: [], proxyId: "", region: "" };
27920
28393
  }
27921
28394
  var Proxy2 = {
27922
28395
  encode(message, writer = new BinaryWriter()) {
@@ -27929,11 +28402,14 @@ var Proxy2 = {
27929
28402
  if (message.environmentName !== "") {
27930
28403
  writer.uint32(26).string(message.environmentName);
27931
28404
  }
28405
+ for (const v of message.proxyIps) {
28406
+ ProxyIp.encode(v, writer.uint32(34).fork()).join();
28407
+ }
27932
28408
  if (message.proxyId !== "") {
27933
28409
  writer.uint32(42).string(message.proxyId);
27934
28410
  }
27935
- for (const v of message.proxyIps) {
27936
- ProxyIp.encode(v, writer.uint32(34).fork()).join();
28411
+ if (message.region !== "") {
28412
+ writer.uint32(50).string(message.region);
27937
28413
  }
27938
28414
  return writer;
27939
28415
  },
@@ -27965,6 +28441,13 @@ var Proxy2 = {
27965
28441
  message.environmentName = reader.string();
27966
28442
  continue;
27967
28443
  }
28444
+ case 4: {
28445
+ if (tag !== 34) {
28446
+ break;
28447
+ }
28448
+ message.proxyIps.push(ProxyIp.decode(reader, reader.uint32()));
28449
+ continue;
28450
+ }
27968
28451
  case 5: {
27969
28452
  if (tag !== 42) {
27970
28453
  break;
@@ -27972,11 +28455,11 @@ var Proxy2 = {
27972
28455
  message.proxyId = reader.string();
27973
28456
  continue;
27974
28457
  }
27975
- case 4: {
27976
- if (tag !== 34) {
28458
+ case 6: {
28459
+ if (tag !== 50) {
27977
28460
  break;
27978
28461
  }
27979
- message.proxyIps.push(ProxyIp.decode(reader, reader.uint32()));
28462
+ message.region = reader.string();
27980
28463
  continue;
27981
28464
  }
27982
28465
  }
@@ -27992,8 +28475,9 @@ var Proxy2 = {
27992
28475
  name: isSet4(object.name) ? globalThis.String(object.name) : "",
27993
28476
  createdAt: isSet4(object.createdAt) ? globalThis.Number(object.createdAt) : 0,
27994
28477
  environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
28478
+ proxyIps: globalThis.Array.isArray(object?.proxyIps) ? object.proxyIps.map((e) => ProxyIp.fromJSON(e)) : [],
27995
28479
  proxyId: isSet4(object.proxyId) ? globalThis.String(object.proxyId) : "",
27996
- proxyIps: globalThis.Array.isArray(object?.proxyIps) ? object.proxyIps.map((e) => ProxyIp.fromJSON(e)) : []
28480
+ region: isSet4(object.region) ? globalThis.String(object.region) : ""
27997
28481
  };
27998
28482
  },
27999
28483
  toJSON(message) {
@@ -28007,11 +28491,14 @@ var Proxy2 = {
28007
28491
  if (message.environmentName !== "") {
28008
28492
  obj.environmentName = message.environmentName;
28009
28493
  }
28494
+ if (message.proxyIps?.length) {
28495
+ obj.proxyIps = message.proxyIps.map((e) => ProxyIp.toJSON(e));
28496
+ }
28010
28497
  if (message.proxyId !== "") {
28011
28498
  obj.proxyId = message.proxyId;
28012
28499
  }
28013
- if (message.proxyIps?.length) {
28014
- obj.proxyIps = message.proxyIps.map((e) => ProxyIp.toJSON(e));
28500
+ if (message.region !== "") {
28501
+ obj.region = message.region;
28015
28502
  }
28016
28503
  return obj;
28017
28504
  },
@@ -28023,8 +28510,9 @@ var Proxy2 = {
28023
28510
  message.name = object.name ?? "";
28024
28511
  message.createdAt = object.createdAt ?? 0;
28025
28512
  message.environmentName = object.environmentName ?? "";
28026
- message.proxyId = object.proxyId ?? "";
28027
28513
  message.proxyIps = object.proxyIps?.map((e) => ProxyIp.fromPartial(e)) || [];
28514
+ message.proxyId = object.proxyId ?? "";
28515
+ message.region = object.region ?? "";
28028
28516
  return message;
28029
28517
  }
28030
28518
  };
@@ -28131,7 +28619,7 @@ var ProxyAddIpResponse = {
28131
28619
  }
28132
28620
  };
28133
28621
  function createBaseProxyCreateRequest() {
28134
- return { name: "", environmentName: "" };
28622
+ return { name: "", environmentName: "", region: "" };
28135
28623
  }
28136
28624
  var ProxyCreateRequest = {
28137
28625
  encode(message, writer = new BinaryWriter()) {
@@ -28141,6 +28629,9 @@ var ProxyCreateRequest = {
28141
28629
  if (message.environmentName !== "") {
28142
28630
  writer.uint32(18).string(message.environmentName);
28143
28631
  }
28632
+ if (message.region !== "") {
28633
+ writer.uint32(26).string(message.region);
28634
+ }
28144
28635
  return writer;
28145
28636
  },
28146
28637
  decode(input, length) {
@@ -28164,6 +28655,13 @@ var ProxyCreateRequest = {
28164
28655
  message.environmentName = reader.string();
28165
28656
  continue;
28166
28657
  }
28658
+ case 3: {
28659
+ if (tag !== 26) {
28660
+ break;
28661
+ }
28662
+ message.region = reader.string();
28663
+ continue;
28664
+ }
28167
28665
  }
28168
28666
  if ((tag & 7) === 4 || tag === 0) {
28169
28667
  break;
@@ -28175,7 +28673,8 @@ var ProxyCreateRequest = {
28175
28673
  fromJSON(object) {
28176
28674
  return {
28177
28675
  name: isSet4(object.name) ? globalThis.String(object.name) : "",
28178
- environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : ""
28676
+ environmentName: isSet4(object.environmentName) ? globalThis.String(object.environmentName) : "",
28677
+ region: isSet4(object.region) ? globalThis.String(object.region) : ""
28179
28678
  };
28180
28679
  },
28181
28680
  toJSON(message) {
@@ -28186,6 +28685,9 @@ var ProxyCreateRequest = {
28186
28685
  if (message.environmentName !== "") {
28187
28686
  obj.environmentName = message.environmentName;
28188
28687
  }
28688
+ if (message.region !== "") {
28689
+ obj.region = message.region;
28690
+ }
28189
28691
  return obj;
28190
28692
  },
28191
28693
  create(base) {
@@ -28195,6 +28697,7 @@ var ProxyCreateRequest = {
28195
28697
  const message = createBaseProxyCreateRequest();
28196
28698
  message.name = object.name ?? "";
28197
28699
  message.environmentName = object.environmentName ?? "";
28700
+ message.region = object.region ?? "";
28198
28701
  return message;
28199
28702
  }
28200
28703
  };
@@ -30108,6 +30611,202 @@ var RateLimit = {
30108
30611
  return message;
30109
30612
  }
30110
30613
  };
30614
+ function createBaseResourceInfo() {
30615
+ return { memoryMb: void 0, milliCpu: void 0, gpuType: "", memoryMbMax: 0, ephemeralDiskMb: 0, milliCpuMax: 0 };
30616
+ }
30617
+ var ResourceInfo = {
30618
+ encode(message, writer = new BinaryWriter()) {
30619
+ if (message.memoryMb !== void 0) {
30620
+ ResourceInfo_ResourceValue.encode(message.memoryMb, writer.uint32(10).fork()).join();
30621
+ }
30622
+ if (message.milliCpu !== void 0) {
30623
+ ResourceInfo_ResourceValue.encode(message.milliCpu, writer.uint32(18).fork()).join();
30624
+ }
30625
+ if (message.gpuType !== "") {
30626
+ writer.uint32(26).string(message.gpuType);
30627
+ }
30628
+ if (message.memoryMbMax !== 0) {
30629
+ writer.uint32(32).uint32(message.memoryMbMax);
30630
+ }
30631
+ if (message.ephemeralDiskMb !== 0) {
30632
+ writer.uint32(40).uint32(message.ephemeralDiskMb);
30633
+ }
30634
+ if (message.milliCpuMax !== 0) {
30635
+ writer.uint32(48).uint32(message.milliCpuMax);
30636
+ }
30637
+ return writer;
30638
+ },
30639
+ decode(input, length) {
30640
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30641
+ let end = length === void 0 ? reader.len : reader.pos + length;
30642
+ const message = createBaseResourceInfo();
30643
+ while (reader.pos < end) {
30644
+ const tag = reader.uint32();
30645
+ switch (tag >>> 3) {
30646
+ case 1: {
30647
+ if (tag !== 10) {
30648
+ break;
30649
+ }
30650
+ message.memoryMb = ResourceInfo_ResourceValue.decode(reader, reader.uint32());
30651
+ continue;
30652
+ }
30653
+ case 2: {
30654
+ if (tag !== 18) {
30655
+ break;
30656
+ }
30657
+ message.milliCpu = ResourceInfo_ResourceValue.decode(reader, reader.uint32());
30658
+ continue;
30659
+ }
30660
+ case 3: {
30661
+ if (tag !== 26) {
30662
+ break;
30663
+ }
30664
+ message.gpuType = reader.string();
30665
+ continue;
30666
+ }
30667
+ case 4: {
30668
+ if (tag !== 32) {
30669
+ break;
30670
+ }
30671
+ message.memoryMbMax = reader.uint32();
30672
+ continue;
30673
+ }
30674
+ case 5: {
30675
+ if (tag !== 40) {
30676
+ break;
30677
+ }
30678
+ message.ephemeralDiskMb = reader.uint32();
30679
+ continue;
30680
+ }
30681
+ case 6: {
30682
+ if (tag !== 48) {
30683
+ break;
30684
+ }
30685
+ message.milliCpuMax = reader.uint32();
30686
+ continue;
30687
+ }
30688
+ }
30689
+ if ((tag & 7) === 4 || tag === 0) {
30690
+ break;
30691
+ }
30692
+ reader.skip(tag & 7);
30693
+ }
30694
+ return message;
30695
+ },
30696
+ fromJSON(object) {
30697
+ return {
30698
+ memoryMb: isSet4(object.memoryMb) ? ResourceInfo_ResourceValue.fromJSON(object.memoryMb) : void 0,
30699
+ milliCpu: isSet4(object.milliCpu) ? ResourceInfo_ResourceValue.fromJSON(object.milliCpu) : void 0,
30700
+ gpuType: isSet4(object.gpuType) ? globalThis.String(object.gpuType) : "",
30701
+ memoryMbMax: isSet4(object.memoryMbMax) ? globalThis.Number(object.memoryMbMax) : 0,
30702
+ ephemeralDiskMb: isSet4(object.ephemeralDiskMb) ? globalThis.Number(object.ephemeralDiskMb) : 0,
30703
+ milliCpuMax: isSet4(object.milliCpuMax) ? globalThis.Number(object.milliCpuMax) : 0
30704
+ };
30705
+ },
30706
+ toJSON(message) {
30707
+ const obj = {};
30708
+ if (message.memoryMb !== void 0) {
30709
+ obj.memoryMb = ResourceInfo_ResourceValue.toJSON(message.memoryMb);
30710
+ }
30711
+ if (message.milliCpu !== void 0) {
30712
+ obj.milliCpu = ResourceInfo_ResourceValue.toJSON(message.milliCpu);
30713
+ }
30714
+ if (message.gpuType !== "") {
30715
+ obj.gpuType = message.gpuType;
30716
+ }
30717
+ if (message.memoryMbMax !== 0) {
30718
+ obj.memoryMbMax = Math.round(message.memoryMbMax);
30719
+ }
30720
+ if (message.ephemeralDiskMb !== 0) {
30721
+ obj.ephemeralDiskMb = Math.round(message.ephemeralDiskMb);
30722
+ }
30723
+ if (message.milliCpuMax !== 0) {
30724
+ obj.milliCpuMax = Math.round(message.milliCpuMax);
30725
+ }
30726
+ return obj;
30727
+ },
30728
+ create(base) {
30729
+ return ResourceInfo.fromPartial(base ?? {});
30730
+ },
30731
+ fromPartial(object) {
30732
+ const message = createBaseResourceInfo();
30733
+ message.memoryMb = object.memoryMb !== void 0 && object.memoryMb !== null ? ResourceInfo_ResourceValue.fromPartial(object.memoryMb) : void 0;
30734
+ message.milliCpu = object.milliCpu !== void 0 && object.milliCpu !== null ? ResourceInfo_ResourceValue.fromPartial(object.milliCpu) : void 0;
30735
+ message.gpuType = object.gpuType ?? "";
30736
+ message.memoryMbMax = object.memoryMbMax ?? 0;
30737
+ message.ephemeralDiskMb = object.ephemeralDiskMb ?? 0;
30738
+ message.milliCpuMax = object.milliCpuMax ?? 0;
30739
+ return message;
30740
+ }
30741
+ };
30742
+ function createBaseResourceInfo_ResourceValue() {
30743
+ return { value: 0, isDefault: false };
30744
+ }
30745
+ var ResourceInfo_ResourceValue = {
30746
+ encode(message, writer = new BinaryWriter()) {
30747
+ if (message.value !== 0) {
30748
+ writer.uint32(8).uint32(message.value);
30749
+ }
30750
+ if (message.isDefault !== false) {
30751
+ writer.uint32(16).bool(message.isDefault);
30752
+ }
30753
+ return writer;
30754
+ },
30755
+ decode(input, length) {
30756
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
30757
+ let end = length === void 0 ? reader.len : reader.pos + length;
30758
+ const message = createBaseResourceInfo_ResourceValue();
30759
+ while (reader.pos < end) {
30760
+ const tag = reader.uint32();
30761
+ switch (tag >>> 3) {
30762
+ case 1: {
30763
+ if (tag !== 8) {
30764
+ break;
30765
+ }
30766
+ message.value = reader.uint32();
30767
+ continue;
30768
+ }
30769
+ case 2: {
30770
+ if (tag !== 16) {
30771
+ break;
30772
+ }
30773
+ message.isDefault = reader.bool();
30774
+ continue;
30775
+ }
30776
+ }
30777
+ if ((tag & 7) === 4 || tag === 0) {
30778
+ break;
30779
+ }
30780
+ reader.skip(tag & 7);
30781
+ }
30782
+ return message;
30783
+ },
30784
+ fromJSON(object) {
30785
+ return {
30786
+ value: isSet4(object.value) ? globalThis.Number(object.value) : 0,
30787
+ isDefault: isSet4(object.isDefault) ? globalThis.Boolean(object.isDefault) : false
30788
+ };
30789
+ },
30790
+ toJSON(message) {
30791
+ const obj = {};
30792
+ if (message.value !== 0) {
30793
+ obj.value = Math.round(message.value);
30794
+ }
30795
+ if (message.isDefault !== false) {
30796
+ obj.isDefault = message.isDefault;
30797
+ }
30798
+ return obj;
30799
+ },
30800
+ create(base) {
30801
+ return ResourceInfo_ResourceValue.fromPartial(base ?? {});
30802
+ },
30803
+ fromPartial(object) {
30804
+ const message = createBaseResourceInfo_ResourceValue();
30805
+ message.value = object.value ?? 0;
30806
+ message.isDefault = object.isDefault ?? false;
30807
+ return message;
30808
+ }
30809
+ };
30111
30810
  function createBaseResources() {
30112
30811
  return {
30113
30812
  memoryMb: 0,
@@ -30684,7 +31383,9 @@ function createBaseSandbox() {
30684
31383
  experimentalOptions: {},
30685
31384
  preloadPathPrefixes: [],
30686
31385
  idleTimeoutSecs: void 0,
30687
- directSandboxCommandsEnabled: false
31386
+ directSandboxCommandsEnabled: false,
31387
+ RestoreInstanceType: "",
31388
+ customDomain: ""
30688
31389
  };
30689
31390
  }
30690
31391
  var Sandbox = {
@@ -30785,6 +31486,12 @@ var Sandbox = {
30785
31486
  if (message.directSandboxCommandsEnabled !== false) {
30786
31487
  writer.uint32(272).bool(message.directSandboxCommandsEnabled);
30787
31488
  }
31489
+ if (message.RestoreInstanceType !== "") {
31490
+ writer.uint32(282).string(message.RestoreInstanceType);
31491
+ }
31492
+ if (message.customDomain !== "") {
31493
+ writer.uint32(290).string(message.customDomain);
31494
+ }
30788
31495
  return writer;
30789
31496
  },
30790
31497
  decode(input, length) {
@@ -31021,6 +31728,20 @@ var Sandbox = {
31021
31728
  message.directSandboxCommandsEnabled = reader.bool();
31022
31729
  continue;
31023
31730
  }
31731
+ case 35: {
31732
+ if (tag !== 282) {
31733
+ break;
31734
+ }
31735
+ message.RestoreInstanceType = reader.string();
31736
+ continue;
31737
+ }
31738
+ case 36: {
31739
+ if (tag !== 290) {
31740
+ break;
31741
+ }
31742
+ message.customDomain = reader.string();
31743
+ continue;
31744
+ }
31024
31745
  }
31025
31746
  if ((tag & 7) === 4 || tag === 0) {
31026
31747
  break;
@@ -31065,7 +31786,9 @@ var Sandbox = {
31065
31786
  }, {}) : {},
31066
31787
  preloadPathPrefixes: globalThis.Array.isArray(object?.preloadPathPrefixes) ? object.preloadPathPrefixes.map((e) => globalThis.String(e)) : [],
31067
31788
  idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0,
31068
- directSandboxCommandsEnabled: isSet4(object.directSandboxCommandsEnabled) ? globalThis.Boolean(object.directSandboxCommandsEnabled) : false
31789
+ directSandboxCommandsEnabled: isSet4(object.directSandboxCommandsEnabled) ? globalThis.Boolean(object.directSandboxCommandsEnabled) : false,
31790
+ RestoreInstanceType: isSet4(object.RestoreInstanceType) ? globalThis.String(object.RestoreInstanceType) : "",
31791
+ customDomain: isSet4(object.customDomain) ? globalThis.String(object.customDomain) : ""
31069
31792
  };
31070
31793
  },
31071
31794
  toJSON(message) {
@@ -31172,6 +31895,12 @@ var Sandbox = {
31172
31895
  if (message.directSandboxCommandsEnabled !== false) {
31173
31896
  obj.directSandboxCommandsEnabled = message.directSandboxCommandsEnabled;
31174
31897
  }
31898
+ if (message.RestoreInstanceType !== "") {
31899
+ obj.RestoreInstanceType = message.RestoreInstanceType;
31900
+ }
31901
+ if (message.customDomain !== "") {
31902
+ obj.customDomain = message.customDomain;
31903
+ }
31175
31904
  return obj;
31176
31905
  },
31177
31906
  create(base) {
@@ -31219,6 +31948,8 @@ var Sandbox = {
31219
31948
  message.preloadPathPrefixes = object.preloadPathPrefixes?.map((e) => e) || [];
31220
31949
  message.idleTimeoutSecs = object.idleTimeoutSecs ?? void 0;
31221
31950
  message.directSandboxCommandsEnabled = object.directSandboxCommandsEnabled ?? false;
31951
+ message.RestoreInstanceType = object.RestoreInstanceType ?? "";
31952
+ message.customDomain = object.customDomain ?? "";
31222
31953
  return message;
31223
31954
  }
31224
31955
  };
@@ -31552,133 +32283,14 @@ var SandboxCreateResponse = {
31552
32283
  return obj;
31553
32284
  },
31554
32285
  create(base) {
31555
- return SandboxCreateResponse.fromPartial(base ?? {});
31556
- },
31557
- fromPartial(object) {
31558
- const message = createBaseSandboxCreateResponse();
31559
- message.sandboxId = object.sandboxId ?? "";
31560
- return message;
31561
- }
31562
- };
31563
- function createBaseSandboxGetCommandRouterAccessRequest() {
31564
- return { sandboxId: "" };
31565
- }
31566
- var SandboxGetCommandRouterAccessRequest = {
31567
- encode(message, writer = new BinaryWriter()) {
31568
- if (message.sandboxId !== "") {
31569
- writer.uint32(10).string(message.sandboxId);
31570
- }
31571
- return writer;
31572
- },
31573
- decode(input, length) {
31574
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31575
- let end = length === void 0 ? reader.len : reader.pos + length;
31576
- const message = createBaseSandboxGetCommandRouterAccessRequest();
31577
- while (reader.pos < end) {
31578
- const tag = reader.uint32();
31579
- switch (tag >>> 3) {
31580
- case 1: {
31581
- if (tag !== 10) {
31582
- break;
31583
- }
31584
- message.sandboxId = reader.string();
31585
- continue;
31586
- }
31587
- }
31588
- if ((tag & 7) === 4 || tag === 0) {
31589
- break;
31590
- }
31591
- reader.skip(tag & 7);
31592
- }
31593
- return message;
31594
- },
31595
- fromJSON(object) {
31596
- return { sandboxId: isSet4(object.sandboxId) ? globalThis.String(object.sandboxId) : "" };
31597
- },
31598
- toJSON(message) {
31599
- const obj = {};
31600
- if (message.sandboxId !== "") {
31601
- obj.sandboxId = message.sandboxId;
31602
- }
31603
- return obj;
31604
- },
31605
- create(base) {
31606
- return SandboxGetCommandRouterAccessRequest.fromPartial(base ?? {});
32286
+ return SandboxCreateResponse.fromPartial(base ?? {});
31607
32287
  },
31608
32288
  fromPartial(object) {
31609
- const message = createBaseSandboxGetCommandRouterAccessRequest();
32289
+ const message = createBaseSandboxCreateResponse();
31610
32290
  message.sandboxId = object.sandboxId ?? "";
31611
32291
  return message;
31612
32292
  }
31613
32293
  };
31614
- function createBaseSandboxGetCommandRouterAccessResponse() {
31615
- return { jwt: "", url: "" };
31616
- }
31617
- var SandboxGetCommandRouterAccessResponse = {
31618
- encode(message, writer = new BinaryWriter()) {
31619
- if (message.jwt !== "") {
31620
- writer.uint32(10).string(message.jwt);
31621
- }
31622
- if (message.url !== "") {
31623
- writer.uint32(18).string(message.url);
31624
- }
31625
- return writer;
31626
- },
31627
- decode(input, length) {
31628
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31629
- let end = length === void 0 ? reader.len : reader.pos + length;
31630
- const message = createBaseSandboxGetCommandRouterAccessResponse();
31631
- while (reader.pos < end) {
31632
- const tag = reader.uint32();
31633
- switch (tag >>> 3) {
31634
- case 1: {
31635
- if (tag !== 10) {
31636
- break;
31637
- }
31638
- message.jwt = reader.string();
31639
- continue;
31640
- }
31641
- case 2: {
31642
- if (tag !== 18) {
31643
- break;
31644
- }
31645
- message.url = reader.string();
31646
- continue;
31647
- }
31648
- }
31649
- if ((tag & 7) === 4 || tag === 0) {
31650
- break;
31651
- }
31652
- reader.skip(tag & 7);
31653
- }
31654
- return message;
31655
- },
31656
- fromJSON(object) {
31657
- return {
31658
- jwt: isSet4(object.jwt) ? globalThis.String(object.jwt) : "",
31659
- url: isSet4(object.url) ? globalThis.String(object.url) : ""
31660
- };
31661
- },
31662
- toJSON(message) {
31663
- const obj = {};
31664
- if (message.jwt !== "") {
31665
- obj.jwt = message.jwt;
31666
- }
31667
- if (message.url !== "") {
31668
- obj.url = message.url;
31669
- }
31670
- return obj;
31671
- },
31672
- create(base) {
31673
- return SandboxGetCommandRouterAccessResponse.fromPartial(base ?? {});
31674
- },
31675
- fromPartial(object) {
31676
- const message = createBaseSandboxGetCommandRouterAccessResponse();
31677
- message.jwt = object.jwt ?? "";
31678
- message.url = object.url ?? "";
31679
- return message;
31680
- }
31681
- };
31682
32294
  function createBaseSandboxGetFromNameRequest() {
31683
32295
  return { sandboxName: "", environmentName: "", appName: "" };
31684
32296
  }
@@ -32399,7 +33011,19 @@ var SandboxHandleMetadata = {
32399
33011
  }
32400
33012
  };
32401
33013
  function createBaseSandboxInfo() {
32402
- return { id: "", createdAt: 0, taskInfo: void 0, appId: "", tags: [], name: "" };
33014
+ return {
33015
+ id: "",
33016
+ createdAt: 0,
33017
+ taskInfo: void 0,
33018
+ appId: "",
33019
+ tags: [],
33020
+ name: "",
33021
+ imageId: "",
33022
+ resourceInfo: void 0,
33023
+ regions: [],
33024
+ timeoutSecs: 0,
33025
+ idleTimeoutSecs: void 0
33026
+ };
32403
33027
  }
32404
33028
  var SandboxInfo = {
32405
33029
  encode(message, writer = new BinaryWriter()) {
@@ -32421,6 +33045,21 @@ var SandboxInfo = {
32421
33045
  if (message.name !== "") {
32422
33046
  writer.uint32(58).string(message.name);
32423
33047
  }
33048
+ if (message.imageId !== "") {
33049
+ writer.uint32(66).string(message.imageId);
33050
+ }
33051
+ if (message.resourceInfo !== void 0) {
33052
+ ResourceInfo.encode(message.resourceInfo, writer.uint32(74).fork()).join();
33053
+ }
33054
+ for (const v of message.regions) {
33055
+ writer.uint32(82).string(v);
33056
+ }
33057
+ if (message.timeoutSecs !== 0) {
33058
+ writer.uint32(88).uint32(message.timeoutSecs);
33059
+ }
33060
+ if (message.idleTimeoutSecs !== void 0) {
33061
+ writer.uint32(96).uint32(message.idleTimeoutSecs);
33062
+ }
32424
33063
  return writer;
32425
33064
  },
32426
33065
  decode(input, length) {
@@ -32472,6 +33111,41 @@ var SandboxInfo = {
32472
33111
  message.name = reader.string();
32473
33112
  continue;
32474
33113
  }
33114
+ case 8: {
33115
+ if (tag !== 66) {
33116
+ break;
33117
+ }
33118
+ message.imageId = reader.string();
33119
+ continue;
33120
+ }
33121
+ case 9: {
33122
+ if (tag !== 74) {
33123
+ break;
33124
+ }
33125
+ message.resourceInfo = ResourceInfo.decode(reader, reader.uint32());
33126
+ continue;
33127
+ }
33128
+ case 10: {
33129
+ if (tag !== 82) {
33130
+ break;
33131
+ }
33132
+ message.regions.push(reader.string());
33133
+ continue;
33134
+ }
33135
+ case 11: {
33136
+ if (tag !== 88) {
33137
+ break;
33138
+ }
33139
+ message.timeoutSecs = reader.uint32();
33140
+ continue;
33141
+ }
33142
+ case 12: {
33143
+ if (tag !== 96) {
33144
+ break;
33145
+ }
33146
+ message.idleTimeoutSecs = reader.uint32();
33147
+ continue;
33148
+ }
32475
33149
  }
32476
33150
  if ((tag & 7) === 4 || tag === 0) {
32477
33151
  break;
@@ -32487,7 +33161,12 @@ var SandboxInfo = {
32487
33161
  taskInfo: isSet4(object.taskInfo) ? TaskInfo.fromJSON(object.taskInfo) : void 0,
32488
33162
  appId: isSet4(object.appId) ? globalThis.String(object.appId) : "",
32489
33163
  tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => SandboxTag.fromJSON(e)) : [],
32490
- name: isSet4(object.name) ? globalThis.String(object.name) : ""
33164
+ name: isSet4(object.name) ? globalThis.String(object.name) : "",
33165
+ imageId: isSet4(object.imageId) ? globalThis.String(object.imageId) : "",
33166
+ resourceInfo: isSet4(object.resourceInfo) ? ResourceInfo.fromJSON(object.resourceInfo) : void 0,
33167
+ regions: globalThis.Array.isArray(object?.regions) ? object.regions.map((e) => globalThis.String(e)) : [],
33168
+ timeoutSecs: isSet4(object.timeoutSecs) ? globalThis.Number(object.timeoutSecs) : 0,
33169
+ idleTimeoutSecs: isSet4(object.idleTimeoutSecs) ? globalThis.Number(object.idleTimeoutSecs) : void 0
32491
33170
  };
32492
33171
  },
32493
33172
  toJSON(message) {
@@ -32510,6 +33189,21 @@ var SandboxInfo = {
32510
33189
  if (message.name !== "") {
32511
33190
  obj.name = message.name;
32512
33191
  }
33192
+ if (message.imageId !== "") {
33193
+ obj.imageId = message.imageId;
33194
+ }
33195
+ if (message.resourceInfo !== void 0) {
33196
+ obj.resourceInfo = ResourceInfo.toJSON(message.resourceInfo);
33197
+ }
33198
+ if (message.regions?.length) {
33199
+ obj.regions = message.regions;
33200
+ }
33201
+ if (message.timeoutSecs !== 0) {
33202
+ obj.timeoutSecs = Math.round(message.timeoutSecs);
33203
+ }
33204
+ if (message.idleTimeoutSecs !== void 0) {
33205
+ obj.idleTimeoutSecs = Math.round(message.idleTimeoutSecs);
33206
+ }
32513
33207
  return obj;
32514
33208
  },
32515
33209
  create(base) {
@@ -32523,6 +33217,11 @@ var SandboxInfo = {
32523
33217
  message.appId = object.appId ?? "";
32524
33218
  message.tags = object.tags?.map((e) => SandboxTag.fromPartial(e)) || [];
32525
33219
  message.name = object.name ?? "";
33220
+ message.imageId = object.imageId ?? "";
33221
+ message.resourceInfo = object.resourceInfo !== void 0 && object.resourceInfo !== null ? ResourceInfo.fromPartial(object.resourceInfo) : void 0;
33222
+ message.regions = object.regions?.map((e) => e) || [];
33223
+ message.timeoutSecs = object.timeoutSecs ?? 0;
33224
+ message.idleTimeoutSecs = object.idleTimeoutSecs ?? void 0;
32526
33225
  return message;
32527
33226
  }
32528
33227
  };
@@ -34361,7 +35060,7 @@ var Schedule_Period = {
34361
35060
  }
34362
35061
  };
34363
35062
  function createBaseSchedulerPlacement() {
34364
- return { regions: [], Zone: void 0, Lifecycle: void 0, InstanceTypes: [] };
35063
+ return { regions: [], Zone: void 0, Lifecycle: void 0, InstanceTypes: [], nonpreemptible: false };
34365
35064
  }
34366
35065
  var SchedulerPlacement = {
34367
35066
  encode(message, writer = new BinaryWriter()) {
@@ -34377,6 +35076,9 @@ var SchedulerPlacement = {
34377
35076
  for (const v of message.InstanceTypes) {
34378
35077
  writer.uint32(42).string(v);
34379
35078
  }
35079
+ if (message.nonpreemptible !== false) {
35080
+ writer.uint32(48).bool(message.nonpreemptible);
35081
+ }
34380
35082
  return writer;
34381
35083
  },
34382
35084
  decode(input, length) {
@@ -34414,6 +35116,13 @@ var SchedulerPlacement = {
34414
35116
  message.InstanceTypes.push(reader.string());
34415
35117
  continue;
34416
35118
  }
35119
+ case 6: {
35120
+ if (tag !== 48) {
35121
+ break;
35122
+ }
35123
+ message.nonpreemptible = reader.bool();
35124
+ continue;
35125
+ }
34417
35126
  }
34418
35127
  if ((tag & 7) === 4 || tag === 0) {
34419
35128
  break;
@@ -34427,7 +35136,8 @@ var SchedulerPlacement = {
34427
35136
  regions: globalThis.Array.isArray(object?.regions) ? object.regions.map((e) => globalThis.String(e)) : [],
34428
35137
  Zone: isSet4(object.Zone) ? globalThis.String(object.Zone) : void 0,
34429
35138
  Lifecycle: isSet4(object.Lifecycle) ? globalThis.String(object.Lifecycle) : void 0,
34430
- InstanceTypes: globalThis.Array.isArray(object?.InstanceTypes) ? object.InstanceTypes.map((e) => globalThis.String(e)) : []
35139
+ InstanceTypes: globalThis.Array.isArray(object?.InstanceTypes) ? object.InstanceTypes.map((e) => globalThis.String(e)) : [],
35140
+ nonpreemptible: isSet4(object.nonpreemptible) ? globalThis.Boolean(object.nonpreemptible) : false
34431
35141
  };
34432
35142
  },
34433
35143
  toJSON(message) {
@@ -34444,6 +35154,9 @@ var SchedulerPlacement = {
34444
35154
  if (message.InstanceTypes?.length) {
34445
35155
  obj.InstanceTypes = message.InstanceTypes;
34446
35156
  }
35157
+ if (message.nonpreemptible !== false) {
35158
+ obj.nonpreemptible = message.nonpreemptible;
35159
+ }
34447
35160
  return obj;
34448
35161
  },
34449
35162
  create(base) {
@@ -34455,6 +35168,7 @@ var SchedulerPlacement = {
34455
35168
  message.Zone = object.Zone ?? void 0;
34456
35169
  message.Lifecycle = object.Lifecycle ?? void 0;
34457
35170
  message.InstanceTypes = object.InstanceTypes?.map((e) => e) || [];
35171
+ message.nonpreemptible = object.nonpreemptible ?? false;
34458
35172
  return message;
34459
35173
  }
34460
35174
  };
@@ -35122,6 +35836,89 @@ var SecretMetadata = {
35122
35836
  return message;
35123
35837
  }
35124
35838
  };
35839
+ function createBaseServiceUserIdentity() {
35840
+ return { serviceUserId: "", serviceUserName: "", createdBy: void 0 };
35841
+ }
35842
+ var ServiceUserIdentity = {
35843
+ encode(message, writer = new BinaryWriter()) {
35844
+ if (message.serviceUserId !== "") {
35845
+ writer.uint32(10).string(message.serviceUserId);
35846
+ }
35847
+ if (message.serviceUserName !== "") {
35848
+ writer.uint32(18).string(message.serviceUserName);
35849
+ }
35850
+ if (message.createdBy !== void 0) {
35851
+ UserIdentity.encode(message.createdBy, writer.uint32(26).fork()).join();
35852
+ }
35853
+ return writer;
35854
+ },
35855
+ decode(input, length) {
35856
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35857
+ let end = length === void 0 ? reader.len : reader.pos + length;
35858
+ const message = createBaseServiceUserIdentity();
35859
+ while (reader.pos < end) {
35860
+ const tag = reader.uint32();
35861
+ switch (tag >>> 3) {
35862
+ case 1: {
35863
+ if (tag !== 10) {
35864
+ break;
35865
+ }
35866
+ message.serviceUserId = reader.string();
35867
+ continue;
35868
+ }
35869
+ case 2: {
35870
+ if (tag !== 18) {
35871
+ break;
35872
+ }
35873
+ message.serviceUserName = reader.string();
35874
+ continue;
35875
+ }
35876
+ case 3: {
35877
+ if (tag !== 26) {
35878
+ break;
35879
+ }
35880
+ message.createdBy = UserIdentity.decode(reader, reader.uint32());
35881
+ continue;
35882
+ }
35883
+ }
35884
+ if ((tag & 7) === 4 || tag === 0) {
35885
+ break;
35886
+ }
35887
+ reader.skip(tag & 7);
35888
+ }
35889
+ return message;
35890
+ },
35891
+ fromJSON(object) {
35892
+ return {
35893
+ serviceUserId: isSet4(object.serviceUserId) ? globalThis.String(object.serviceUserId) : "",
35894
+ serviceUserName: isSet4(object.serviceUserName) ? globalThis.String(object.serviceUserName) : "",
35895
+ createdBy: isSet4(object.createdBy) ? UserIdentity.fromJSON(object.createdBy) : void 0
35896
+ };
35897
+ },
35898
+ toJSON(message) {
35899
+ const obj = {};
35900
+ if (message.serviceUserId !== "") {
35901
+ obj.serviceUserId = message.serviceUserId;
35902
+ }
35903
+ if (message.serviceUserName !== "") {
35904
+ obj.serviceUserName = message.serviceUserName;
35905
+ }
35906
+ if (message.createdBy !== void 0) {
35907
+ obj.createdBy = UserIdentity.toJSON(message.createdBy);
35908
+ }
35909
+ return obj;
35910
+ },
35911
+ create(base) {
35912
+ return ServiceUserIdentity.fromPartial(base ?? {});
35913
+ },
35914
+ fromPartial(object) {
35915
+ const message = createBaseServiceUserIdentity();
35916
+ message.serviceUserId = object.serviceUserId ?? "";
35917
+ message.serviceUserName = object.serviceUserName ?? "";
35918
+ message.createdBy = object.createdBy !== void 0 && object.createdBy !== null ? UserIdentity.fromPartial(object.createdBy) : void 0;
35919
+ return message;
35920
+ }
35921
+ };
35125
35922
  function createBaseSharedVolumeDeleteRequest() {
35126
35923
  return { sharedVolumeId: "" };
35127
35924
  }
@@ -36479,108 +37276,6 @@ var TaskCurrentInputsResponse = {
36479
37276
  return message;
36480
37277
  }
36481
37278
  };
36482
- function createBaseTaskGetAutoscalingMetricsRequest() {
36483
- return { taskId: "" };
36484
- }
36485
- var TaskGetAutoscalingMetricsRequest = {
36486
- encode(message, writer = new BinaryWriter()) {
36487
- if (message.taskId !== "") {
36488
- writer.uint32(10).string(message.taskId);
36489
- }
36490
- return writer;
36491
- },
36492
- decode(input, length) {
36493
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36494
- let end = length === void 0 ? reader.len : reader.pos + length;
36495
- const message = createBaseTaskGetAutoscalingMetricsRequest();
36496
- while (reader.pos < end) {
36497
- const tag = reader.uint32();
36498
- switch (tag >>> 3) {
36499
- case 1: {
36500
- if (tag !== 10) {
36501
- break;
36502
- }
36503
- message.taskId = reader.string();
36504
- continue;
36505
- }
36506
- }
36507
- if ((tag & 7) === 4 || tag === 0) {
36508
- break;
36509
- }
36510
- reader.skip(tag & 7);
36511
- }
36512
- return message;
36513
- },
36514
- fromJSON(object) {
36515
- return { taskId: isSet4(object.taskId) ? globalThis.String(object.taskId) : "" };
36516
- },
36517
- toJSON(message) {
36518
- const obj = {};
36519
- if (message.taskId !== "") {
36520
- obj.taskId = message.taskId;
36521
- }
36522
- return obj;
36523
- },
36524
- create(base) {
36525
- return TaskGetAutoscalingMetricsRequest.fromPartial(base ?? {});
36526
- },
36527
- fromPartial(object) {
36528
- const message = createBaseTaskGetAutoscalingMetricsRequest();
36529
- message.taskId = object.taskId ?? "";
36530
- return message;
36531
- }
36532
- };
36533
- function createBaseTaskGetAutoscalingMetricsResponse() {
36534
- return { metrics: void 0 };
36535
- }
36536
- var TaskGetAutoscalingMetricsResponse = {
36537
- encode(message, writer = new BinaryWriter()) {
36538
- if (message.metrics !== void 0) {
36539
- AutoscalingMetrics.encode(message.metrics, writer.uint32(10).fork()).join();
36540
- }
36541
- return writer;
36542
- },
36543
- decode(input, length) {
36544
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36545
- let end = length === void 0 ? reader.len : reader.pos + length;
36546
- const message = createBaseTaskGetAutoscalingMetricsResponse();
36547
- while (reader.pos < end) {
36548
- const tag = reader.uint32();
36549
- switch (tag >>> 3) {
36550
- case 1: {
36551
- if (tag !== 10) {
36552
- break;
36553
- }
36554
- message.metrics = AutoscalingMetrics.decode(reader, reader.uint32());
36555
- continue;
36556
- }
36557
- }
36558
- if ((tag & 7) === 4 || tag === 0) {
36559
- break;
36560
- }
36561
- reader.skip(tag & 7);
36562
- }
36563
- return message;
36564
- },
36565
- fromJSON(object) {
36566
- return { metrics: isSet4(object.metrics) ? AutoscalingMetrics.fromJSON(object.metrics) : void 0 };
36567
- },
36568
- toJSON(message) {
36569
- const obj = {};
36570
- if (message.metrics !== void 0) {
36571
- obj.metrics = AutoscalingMetrics.toJSON(message.metrics);
36572
- }
36573
- return obj;
36574
- },
36575
- create(base) {
36576
- return TaskGetAutoscalingMetricsResponse.fromPartial(base ?? {});
36577
- },
36578
- fromPartial(object) {
36579
- const message = createBaseTaskGetAutoscalingMetricsResponse();
36580
- message.metrics = object.metrics !== void 0 && object.metrics !== null ? AutoscalingMetrics.fromPartial(object.metrics) : void 0;
36581
- return message;
36582
- }
36583
- };
36584
37279
  function createBaseTaskGetCommandRouterAccessRequest() {
36585
37280
  return { taskId: "" };
36586
37281
  }
@@ -38091,6 +38786,194 @@ var TokenFlowWaitResponse = {
38091
38786
  return message;
38092
38787
  }
38093
38788
  };
38789
+ function createBaseTokenInfoGetRequest() {
38790
+ return {};
38791
+ }
38792
+ var TokenInfoGetRequest = {
38793
+ encode(_, writer = new BinaryWriter()) {
38794
+ return writer;
38795
+ },
38796
+ decode(input, length) {
38797
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
38798
+ let end = length === void 0 ? reader.len : reader.pos + length;
38799
+ const message = createBaseTokenInfoGetRequest();
38800
+ while (reader.pos < end) {
38801
+ const tag = reader.uint32();
38802
+ switch (tag >>> 3) {
38803
+ }
38804
+ if ((tag & 7) === 4 || tag === 0) {
38805
+ break;
38806
+ }
38807
+ reader.skip(tag & 7);
38808
+ }
38809
+ return message;
38810
+ },
38811
+ fromJSON(_) {
38812
+ return {};
38813
+ },
38814
+ toJSON(_) {
38815
+ const obj = {};
38816
+ return obj;
38817
+ },
38818
+ create(base) {
38819
+ return TokenInfoGetRequest.fromPartial(base ?? {});
38820
+ },
38821
+ fromPartial(_) {
38822
+ const message = createBaseTokenInfoGetRequest();
38823
+ return message;
38824
+ }
38825
+ };
38826
+ function createBaseTokenInfoGetResponse() {
38827
+ return {
38828
+ tokenId: "",
38829
+ workspaceId: "",
38830
+ workspaceName: "",
38831
+ userIdentity: void 0,
38832
+ serviceUserIdentity: void 0,
38833
+ createdAt: void 0,
38834
+ expiresAt: void 0
38835
+ };
38836
+ }
38837
+ var TokenInfoGetResponse = {
38838
+ encode(message, writer = new BinaryWriter()) {
38839
+ if (message.tokenId !== "") {
38840
+ writer.uint32(10).string(message.tokenId);
38841
+ }
38842
+ if (message.workspaceId !== "") {
38843
+ writer.uint32(18).string(message.workspaceId);
38844
+ }
38845
+ if (message.workspaceName !== "") {
38846
+ writer.uint32(26).string(message.workspaceName);
38847
+ }
38848
+ if (message.userIdentity !== void 0) {
38849
+ UserIdentity.encode(message.userIdentity, writer.uint32(34).fork()).join();
38850
+ }
38851
+ if (message.serviceUserIdentity !== void 0) {
38852
+ ServiceUserIdentity.encode(message.serviceUserIdentity, writer.uint32(42).fork()).join();
38853
+ }
38854
+ if (message.createdAt !== void 0) {
38855
+ Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).join();
38856
+ }
38857
+ if (message.expiresAt !== void 0) {
38858
+ Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(58).fork()).join();
38859
+ }
38860
+ return writer;
38861
+ },
38862
+ decode(input, length) {
38863
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
38864
+ let end = length === void 0 ? reader.len : reader.pos + length;
38865
+ const message = createBaseTokenInfoGetResponse();
38866
+ while (reader.pos < end) {
38867
+ const tag = reader.uint32();
38868
+ switch (tag >>> 3) {
38869
+ case 1: {
38870
+ if (tag !== 10) {
38871
+ break;
38872
+ }
38873
+ message.tokenId = reader.string();
38874
+ continue;
38875
+ }
38876
+ case 2: {
38877
+ if (tag !== 18) {
38878
+ break;
38879
+ }
38880
+ message.workspaceId = reader.string();
38881
+ continue;
38882
+ }
38883
+ case 3: {
38884
+ if (tag !== 26) {
38885
+ break;
38886
+ }
38887
+ message.workspaceName = reader.string();
38888
+ continue;
38889
+ }
38890
+ case 4: {
38891
+ if (tag !== 34) {
38892
+ break;
38893
+ }
38894
+ message.userIdentity = UserIdentity.decode(reader, reader.uint32());
38895
+ continue;
38896
+ }
38897
+ case 5: {
38898
+ if (tag !== 42) {
38899
+ break;
38900
+ }
38901
+ message.serviceUserIdentity = ServiceUserIdentity.decode(reader, reader.uint32());
38902
+ continue;
38903
+ }
38904
+ case 6: {
38905
+ if (tag !== 50) {
38906
+ break;
38907
+ }
38908
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
38909
+ continue;
38910
+ }
38911
+ case 7: {
38912
+ if (tag !== 58) {
38913
+ break;
38914
+ }
38915
+ message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
38916
+ continue;
38917
+ }
38918
+ }
38919
+ if ((tag & 7) === 4 || tag === 0) {
38920
+ break;
38921
+ }
38922
+ reader.skip(tag & 7);
38923
+ }
38924
+ return message;
38925
+ },
38926
+ fromJSON(object) {
38927
+ return {
38928
+ tokenId: isSet4(object.tokenId) ? globalThis.String(object.tokenId) : "",
38929
+ workspaceId: isSet4(object.workspaceId) ? globalThis.String(object.workspaceId) : "",
38930
+ workspaceName: isSet4(object.workspaceName) ? globalThis.String(object.workspaceName) : "",
38931
+ userIdentity: isSet4(object.userIdentity) ? UserIdentity.fromJSON(object.userIdentity) : void 0,
38932
+ serviceUserIdentity: isSet4(object.serviceUserIdentity) ? ServiceUserIdentity.fromJSON(object.serviceUserIdentity) : void 0,
38933
+ createdAt: isSet4(object.createdAt) ? fromJsonTimestamp(object.createdAt) : void 0,
38934
+ expiresAt: isSet4(object.expiresAt) ? fromJsonTimestamp(object.expiresAt) : void 0
38935
+ };
38936
+ },
38937
+ toJSON(message) {
38938
+ const obj = {};
38939
+ if (message.tokenId !== "") {
38940
+ obj.tokenId = message.tokenId;
38941
+ }
38942
+ if (message.workspaceId !== "") {
38943
+ obj.workspaceId = message.workspaceId;
38944
+ }
38945
+ if (message.workspaceName !== "") {
38946
+ obj.workspaceName = message.workspaceName;
38947
+ }
38948
+ if (message.userIdentity !== void 0) {
38949
+ obj.userIdentity = UserIdentity.toJSON(message.userIdentity);
38950
+ }
38951
+ if (message.serviceUserIdentity !== void 0) {
38952
+ obj.serviceUserIdentity = ServiceUserIdentity.toJSON(message.serviceUserIdentity);
38953
+ }
38954
+ if (message.createdAt !== void 0) {
38955
+ obj.createdAt = message.createdAt.toISOString();
38956
+ }
38957
+ if (message.expiresAt !== void 0) {
38958
+ obj.expiresAt = message.expiresAt.toISOString();
38959
+ }
38960
+ return obj;
38961
+ },
38962
+ create(base) {
38963
+ return TokenInfoGetResponse.fromPartial(base ?? {});
38964
+ },
38965
+ fromPartial(object) {
38966
+ const message = createBaseTokenInfoGetResponse();
38967
+ message.tokenId = object.tokenId ?? "";
38968
+ message.workspaceId = object.workspaceId ?? "";
38969
+ message.workspaceName = object.workspaceName ?? "";
38970
+ message.userIdentity = object.userIdentity !== void 0 && object.userIdentity !== null ? UserIdentity.fromPartial(object.userIdentity) : void 0;
38971
+ message.serviceUserIdentity = object.serviceUserIdentity !== void 0 && object.serviceUserIdentity !== null ? ServiceUserIdentity.fromPartial(object.serviceUserIdentity) : void 0;
38972
+ message.createdAt = object.createdAt ?? void 0;
38973
+ message.expiresAt = object.expiresAt ?? void 0;
38974
+ return message;
38975
+ }
38976
+ };
38094
38977
  function createBaseTunnelData() {
38095
38978
  return { host: "", port: 0, unencryptedHost: void 0, unencryptedPort: void 0, containerPort: 0 };
38096
38979
  }
@@ -38148,13 +39031,199 @@ var TunnelData = {
38148
39031
  message.unencryptedPort = reader.uint32();
38149
39032
  continue;
38150
39033
  }
38151
- case 5: {
38152
- if (tag !== 40) {
38153
- break;
38154
- }
38155
- message.containerPort = reader.uint32();
38156
- continue;
38157
- }
39034
+ case 5: {
39035
+ if (tag !== 40) {
39036
+ break;
39037
+ }
39038
+ message.containerPort = reader.uint32();
39039
+ continue;
39040
+ }
39041
+ }
39042
+ if ((tag & 7) === 4 || tag === 0) {
39043
+ break;
39044
+ }
39045
+ reader.skip(tag & 7);
39046
+ }
39047
+ return message;
39048
+ },
39049
+ fromJSON(object) {
39050
+ return {
39051
+ host: isSet4(object.host) ? globalThis.String(object.host) : "",
39052
+ port: isSet4(object.port) ? globalThis.Number(object.port) : 0,
39053
+ unencryptedHost: isSet4(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
39054
+ unencryptedPort: isSet4(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0,
39055
+ containerPort: isSet4(object.containerPort) ? globalThis.Number(object.containerPort) : 0
39056
+ };
39057
+ },
39058
+ toJSON(message) {
39059
+ const obj = {};
39060
+ if (message.host !== "") {
39061
+ obj.host = message.host;
39062
+ }
39063
+ if (message.port !== 0) {
39064
+ obj.port = Math.round(message.port);
39065
+ }
39066
+ if (message.unencryptedHost !== void 0) {
39067
+ obj.unencryptedHost = message.unencryptedHost;
39068
+ }
39069
+ if (message.unencryptedPort !== void 0) {
39070
+ obj.unencryptedPort = Math.round(message.unencryptedPort);
39071
+ }
39072
+ if (message.containerPort !== 0) {
39073
+ obj.containerPort = Math.round(message.containerPort);
39074
+ }
39075
+ return obj;
39076
+ },
39077
+ create(base) {
39078
+ return TunnelData.fromPartial(base ?? {});
39079
+ },
39080
+ fromPartial(object) {
39081
+ const message = createBaseTunnelData();
39082
+ message.host = object.host ?? "";
39083
+ message.port = object.port ?? 0;
39084
+ message.unencryptedHost = object.unencryptedHost ?? void 0;
39085
+ message.unencryptedPort = object.unencryptedPort ?? void 0;
39086
+ message.containerPort = object.containerPort ?? 0;
39087
+ return message;
39088
+ }
39089
+ };
39090
+ function createBaseTunnelStartRequest() {
39091
+ return { port: 0, unencrypted: false, tunnelType: void 0 };
39092
+ }
39093
+ var TunnelStartRequest = {
39094
+ encode(message, writer = new BinaryWriter()) {
39095
+ if (message.port !== 0) {
39096
+ writer.uint32(8).uint32(message.port);
39097
+ }
39098
+ if (message.unencrypted !== false) {
39099
+ writer.uint32(16).bool(message.unencrypted);
39100
+ }
39101
+ if (message.tunnelType !== void 0) {
39102
+ writer.uint32(24).int32(message.tunnelType);
39103
+ }
39104
+ return writer;
39105
+ },
39106
+ decode(input, length) {
39107
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
39108
+ let end = length === void 0 ? reader.len : reader.pos + length;
39109
+ const message = createBaseTunnelStartRequest();
39110
+ while (reader.pos < end) {
39111
+ const tag = reader.uint32();
39112
+ switch (tag >>> 3) {
39113
+ case 1: {
39114
+ if (tag !== 8) {
39115
+ break;
39116
+ }
39117
+ message.port = reader.uint32();
39118
+ continue;
39119
+ }
39120
+ case 2: {
39121
+ if (tag !== 16) {
39122
+ break;
39123
+ }
39124
+ message.unencrypted = reader.bool();
39125
+ continue;
39126
+ }
39127
+ case 3: {
39128
+ if (tag !== 24) {
39129
+ break;
39130
+ }
39131
+ message.tunnelType = reader.int32();
39132
+ continue;
39133
+ }
39134
+ }
39135
+ if ((tag & 7) === 4 || tag === 0) {
39136
+ break;
39137
+ }
39138
+ reader.skip(tag & 7);
39139
+ }
39140
+ return message;
39141
+ },
39142
+ fromJSON(object) {
39143
+ return {
39144
+ port: isSet4(object.port) ? globalThis.Number(object.port) : 0,
39145
+ unencrypted: isSet4(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
39146
+ tunnelType: isSet4(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
39147
+ };
39148
+ },
39149
+ toJSON(message) {
39150
+ const obj = {};
39151
+ if (message.port !== 0) {
39152
+ obj.port = Math.round(message.port);
39153
+ }
39154
+ if (message.unencrypted !== false) {
39155
+ obj.unencrypted = message.unencrypted;
39156
+ }
39157
+ if (message.tunnelType !== void 0) {
39158
+ obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
39159
+ }
39160
+ return obj;
39161
+ },
39162
+ create(base) {
39163
+ return TunnelStartRequest.fromPartial(base ?? {});
39164
+ },
39165
+ fromPartial(object) {
39166
+ const message = createBaseTunnelStartRequest();
39167
+ message.port = object.port ?? 0;
39168
+ message.unencrypted = object.unencrypted ?? false;
39169
+ message.tunnelType = object.tunnelType ?? void 0;
39170
+ return message;
39171
+ }
39172
+ };
39173
+ function createBaseTunnelStartResponse() {
39174
+ return { host: "", port: 0, unencryptedHost: void 0, unencryptedPort: void 0 };
39175
+ }
39176
+ var TunnelStartResponse = {
39177
+ encode(message, writer = new BinaryWriter()) {
39178
+ if (message.host !== "") {
39179
+ writer.uint32(10).string(message.host);
39180
+ }
39181
+ if (message.port !== 0) {
39182
+ writer.uint32(16).uint32(message.port);
39183
+ }
39184
+ if (message.unencryptedHost !== void 0) {
39185
+ writer.uint32(26).string(message.unencryptedHost);
39186
+ }
39187
+ if (message.unencryptedPort !== void 0) {
39188
+ writer.uint32(32).uint32(message.unencryptedPort);
39189
+ }
39190
+ return writer;
39191
+ },
39192
+ decode(input, length) {
39193
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
39194
+ let end = length === void 0 ? reader.len : reader.pos + length;
39195
+ const message = createBaseTunnelStartResponse();
39196
+ while (reader.pos < end) {
39197
+ const tag = reader.uint32();
39198
+ switch (tag >>> 3) {
39199
+ case 1: {
39200
+ if (tag !== 10) {
39201
+ break;
39202
+ }
39203
+ message.host = reader.string();
39204
+ continue;
39205
+ }
39206
+ case 2: {
39207
+ if (tag !== 16) {
39208
+ break;
39209
+ }
39210
+ message.port = reader.uint32();
39211
+ continue;
39212
+ }
39213
+ case 3: {
39214
+ if (tag !== 26) {
39215
+ break;
39216
+ }
39217
+ message.unencryptedHost = reader.string();
39218
+ continue;
39219
+ }
39220
+ case 4: {
39221
+ if (tag !== 32) {
39222
+ break;
39223
+ }
39224
+ message.unencryptedPort = reader.uint32();
39225
+ continue;
39226
+ }
38158
39227
  }
38159
39228
  if ((tag & 7) === 4 || tag === 0) {
38160
39229
  break;
@@ -38168,8 +39237,7 @@ var TunnelData = {
38168
39237
  host: isSet4(object.host) ? globalThis.String(object.host) : "",
38169
39238
  port: isSet4(object.port) ? globalThis.Number(object.port) : 0,
38170
39239
  unencryptedHost: isSet4(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
38171
- unencryptedPort: isSet4(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0,
38172
- containerPort: isSet4(object.containerPort) ? globalThis.Number(object.containerPort) : 0
39240
+ unencryptedPort: isSet4(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
38173
39241
  };
38174
39242
  },
38175
39243
  toJSON(message) {
@@ -38186,44 +39254,34 @@ var TunnelData = {
38186
39254
  if (message.unencryptedPort !== void 0) {
38187
39255
  obj.unencryptedPort = Math.round(message.unencryptedPort);
38188
39256
  }
38189
- if (message.containerPort !== 0) {
38190
- obj.containerPort = Math.round(message.containerPort);
38191
- }
38192
39257
  return obj;
38193
39258
  },
38194
39259
  create(base) {
38195
- return TunnelData.fromPartial(base ?? {});
39260
+ return TunnelStartResponse.fromPartial(base ?? {});
38196
39261
  },
38197
39262
  fromPartial(object) {
38198
- const message = createBaseTunnelData();
39263
+ const message = createBaseTunnelStartResponse();
38199
39264
  message.host = object.host ?? "";
38200
39265
  message.port = object.port ?? 0;
38201
39266
  message.unencryptedHost = object.unencryptedHost ?? void 0;
38202
39267
  message.unencryptedPort = object.unencryptedPort ?? void 0;
38203
- message.containerPort = object.containerPort ?? 0;
38204
39268
  return message;
38205
39269
  }
38206
39270
  };
38207
- function createBaseTunnelStartRequest() {
38208
- return { port: 0, unencrypted: false, tunnelType: void 0 };
39271
+ function createBaseTunnelStopRequest() {
39272
+ return { port: 0 };
38209
39273
  }
38210
- var TunnelStartRequest = {
39274
+ var TunnelStopRequest = {
38211
39275
  encode(message, writer = new BinaryWriter()) {
38212
39276
  if (message.port !== 0) {
38213
39277
  writer.uint32(8).uint32(message.port);
38214
39278
  }
38215
- if (message.unencrypted !== false) {
38216
- writer.uint32(16).bool(message.unencrypted);
38217
- }
38218
- if (message.tunnelType !== void 0) {
38219
- writer.uint32(24).int32(message.tunnelType);
38220
- }
38221
39279
  return writer;
38222
39280
  },
38223
39281
  decode(input, length) {
38224
39282
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
38225
39283
  let end = length === void 0 ? reader.len : reader.pos + length;
38226
- const message = createBaseTunnelStartRequest();
39284
+ const message = createBaseTunnelStopRequest();
38227
39285
  while (reader.pos < end) {
38228
39286
  const tag = reader.uint32();
38229
39287
  switch (tag >>> 3) {
@@ -38234,20 +39292,6 @@ var TunnelStartRequest = {
38234
39292
  message.port = reader.uint32();
38235
39293
  continue;
38236
39294
  }
38237
- case 2: {
38238
- if (tag !== 16) {
38239
- break;
38240
- }
38241
- message.unencrypted = reader.bool();
38242
- continue;
38243
- }
38244
- case 3: {
38245
- if (tag !== 24) {
38246
- break;
38247
- }
38248
- message.tunnelType = reader.int32();
38249
- continue;
38250
- }
38251
39295
  }
38252
39296
  if ((tag & 7) === 4 || tag === 0) {
38253
39297
  break;
@@ -38257,88 +39301,46 @@ var TunnelStartRequest = {
38257
39301
  return message;
38258
39302
  },
38259
39303
  fromJSON(object) {
38260
- return {
38261
- port: isSet4(object.port) ? globalThis.Number(object.port) : 0,
38262
- unencrypted: isSet4(object.unencrypted) ? globalThis.Boolean(object.unencrypted) : false,
38263
- tunnelType: isSet4(object.tunnelType) ? tunnelTypeFromJSON(object.tunnelType) : void 0
38264
- };
39304
+ return { port: isSet4(object.port) ? globalThis.Number(object.port) : 0 };
38265
39305
  },
38266
39306
  toJSON(message) {
38267
39307
  const obj = {};
38268
39308
  if (message.port !== 0) {
38269
39309
  obj.port = Math.round(message.port);
38270
39310
  }
38271
- if (message.unencrypted !== false) {
38272
- obj.unencrypted = message.unencrypted;
38273
- }
38274
- if (message.tunnelType !== void 0) {
38275
- obj.tunnelType = tunnelTypeToJSON(message.tunnelType);
38276
- }
38277
39311
  return obj;
38278
39312
  },
38279
39313
  create(base) {
38280
- return TunnelStartRequest.fromPartial(base ?? {});
39314
+ return TunnelStopRequest.fromPartial(base ?? {});
38281
39315
  },
38282
39316
  fromPartial(object) {
38283
- const message = createBaseTunnelStartRequest();
39317
+ const message = createBaseTunnelStopRequest();
38284
39318
  message.port = object.port ?? 0;
38285
- message.unencrypted = object.unencrypted ?? false;
38286
- message.tunnelType = object.tunnelType ?? void 0;
38287
39319
  return message;
38288
39320
  }
38289
39321
  };
38290
- function createBaseTunnelStartResponse() {
38291
- return { host: "", port: 0, unencryptedHost: void 0, unencryptedPort: void 0 };
39322
+ function createBaseTunnelStopResponse() {
39323
+ return { exists: false };
38292
39324
  }
38293
- var TunnelStartResponse = {
39325
+ var TunnelStopResponse = {
38294
39326
  encode(message, writer = new BinaryWriter()) {
38295
- if (message.host !== "") {
38296
- writer.uint32(10).string(message.host);
38297
- }
38298
- if (message.port !== 0) {
38299
- writer.uint32(16).uint32(message.port);
38300
- }
38301
- if (message.unencryptedHost !== void 0) {
38302
- writer.uint32(26).string(message.unencryptedHost);
38303
- }
38304
- if (message.unencryptedPort !== void 0) {
38305
- writer.uint32(32).uint32(message.unencryptedPort);
39327
+ if (message.exists !== false) {
39328
+ writer.uint32(8).bool(message.exists);
38306
39329
  }
38307
39330
  return writer;
38308
39331
  },
38309
39332
  decode(input, length) {
38310
39333
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
38311
39334
  let end = length === void 0 ? reader.len : reader.pos + length;
38312
- const message = createBaseTunnelStartResponse();
39335
+ const message = createBaseTunnelStopResponse();
38313
39336
  while (reader.pos < end) {
38314
39337
  const tag = reader.uint32();
38315
39338
  switch (tag >>> 3) {
38316
39339
  case 1: {
38317
- if (tag !== 10) {
38318
- break;
38319
- }
38320
- message.host = reader.string();
38321
- continue;
38322
- }
38323
- case 2: {
38324
- if (tag !== 16) {
38325
- break;
38326
- }
38327
- message.port = reader.uint32();
38328
- continue;
38329
- }
38330
- case 3: {
38331
- if (tag !== 26) {
38332
- break;
38333
- }
38334
- message.unencryptedHost = reader.string();
38335
- continue;
38336
- }
38337
- case 4: {
38338
- if (tag !== 32) {
39340
+ if (tag !== 8) {
38339
39341
  break;
38340
39342
  }
38341
- message.unencryptedPort = reader.uint32();
39343
+ message.exists = reader.bool();
38342
39344
  continue;
38343
39345
  }
38344
39346
  }
@@ -38350,63 +39352,46 @@ var TunnelStartResponse = {
38350
39352
  return message;
38351
39353
  },
38352
39354
  fromJSON(object) {
38353
- return {
38354
- host: isSet4(object.host) ? globalThis.String(object.host) : "",
38355
- port: isSet4(object.port) ? globalThis.Number(object.port) : 0,
38356
- unencryptedHost: isSet4(object.unencryptedHost) ? globalThis.String(object.unencryptedHost) : void 0,
38357
- unencryptedPort: isSet4(object.unencryptedPort) ? globalThis.Number(object.unencryptedPort) : void 0
38358
- };
39355
+ return { exists: isSet4(object.exists) ? globalThis.Boolean(object.exists) : false };
38359
39356
  },
38360
39357
  toJSON(message) {
38361
39358
  const obj = {};
38362
- if (message.host !== "") {
38363
- obj.host = message.host;
38364
- }
38365
- if (message.port !== 0) {
38366
- obj.port = Math.round(message.port);
38367
- }
38368
- if (message.unencryptedHost !== void 0) {
38369
- obj.unencryptedHost = message.unencryptedHost;
38370
- }
38371
- if (message.unencryptedPort !== void 0) {
38372
- obj.unencryptedPort = Math.round(message.unencryptedPort);
39359
+ if (message.exists !== false) {
39360
+ obj.exists = message.exists;
38373
39361
  }
38374
39362
  return obj;
38375
39363
  },
38376
39364
  create(base) {
38377
- return TunnelStartResponse.fromPartial(base ?? {});
39365
+ return TunnelStopResponse.fromPartial(base ?? {});
38378
39366
  },
38379
39367
  fromPartial(object) {
38380
- const message = createBaseTunnelStartResponse();
38381
- message.host = object.host ?? "";
38382
- message.port = object.port ?? 0;
38383
- message.unencryptedHost = object.unencryptedHost ?? void 0;
38384
- message.unencryptedPort = object.unencryptedPort ?? void 0;
39368
+ const message = createBaseTunnelStopResponse();
39369
+ message.exists = object.exists ?? false;
38385
39370
  return message;
38386
39371
  }
38387
39372
  };
38388
- function createBaseTunnelStopRequest() {
38389
- return { port: 0 };
39373
+ function createBaseUploadUrlList() {
39374
+ return { items: [] };
38390
39375
  }
38391
- var TunnelStopRequest = {
39376
+ var UploadUrlList = {
38392
39377
  encode(message, writer = new BinaryWriter()) {
38393
- if (message.port !== 0) {
38394
- writer.uint32(8).uint32(message.port);
39378
+ for (const v of message.items) {
39379
+ writer.uint32(10).string(v);
38395
39380
  }
38396
39381
  return writer;
38397
39382
  },
38398
39383
  decode(input, length) {
38399
39384
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
38400
39385
  let end = length === void 0 ? reader.len : reader.pos + length;
38401
- const message = createBaseTunnelStopRequest();
39386
+ const message = createBaseUploadUrlList();
38402
39387
  while (reader.pos < end) {
38403
39388
  const tag = reader.uint32();
38404
39389
  switch (tag >>> 3) {
38405
39390
  case 1: {
38406
- if (tag !== 8) {
39391
+ if (tag !== 10) {
38407
39392
  break;
38408
39393
  }
38409
- message.port = reader.uint32();
39394
+ message.items.push(reader.string());
38410
39395
  continue;
38411
39396
  }
38412
39397
  }
@@ -38418,97 +39403,56 @@ var TunnelStopRequest = {
38418
39403
  return message;
38419
39404
  },
38420
39405
  fromJSON(object) {
38421
- return { port: isSet4(object.port) ? globalThis.Number(object.port) : 0 };
39406
+ return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => globalThis.String(e)) : [] };
38422
39407
  },
38423
39408
  toJSON(message) {
38424
39409
  const obj = {};
38425
- if (message.port !== 0) {
38426
- obj.port = Math.round(message.port);
39410
+ if (message.items?.length) {
39411
+ obj.items = message.items;
38427
39412
  }
38428
39413
  return obj;
38429
39414
  },
38430
39415
  create(base) {
38431
- return TunnelStopRequest.fromPartial(base ?? {});
39416
+ return UploadUrlList.fromPartial(base ?? {});
38432
39417
  },
38433
39418
  fromPartial(object) {
38434
- const message = createBaseTunnelStopRequest();
38435
- message.port = object.port ?? 0;
39419
+ const message = createBaseUploadUrlList();
39420
+ message.items = object.items?.map((e) => e) || [];
38436
39421
  return message;
38437
39422
  }
38438
39423
  };
38439
- function createBaseTunnelStopResponse() {
38440
- return { exists: false };
39424
+ function createBaseUserIdentity() {
39425
+ return { userId: "", username: "" };
38441
39426
  }
38442
- var TunnelStopResponse = {
39427
+ var UserIdentity = {
38443
39428
  encode(message, writer = new BinaryWriter()) {
38444
- if (message.exists !== false) {
38445
- writer.uint32(8).bool(message.exists);
39429
+ if (message.userId !== "") {
39430
+ writer.uint32(10).string(message.userId);
39431
+ }
39432
+ if (message.username !== "") {
39433
+ writer.uint32(18).string(message.username);
38446
39434
  }
38447
39435
  return writer;
38448
39436
  },
38449
39437
  decode(input, length) {
38450
39438
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
38451
39439
  let end = length === void 0 ? reader.len : reader.pos + length;
38452
- const message = createBaseTunnelStopResponse();
39440
+ const message = createBaseUserIdentity();
38453
39441
  while (reader.pos < end) {
38454
39442
  const tag = reader.uint32();
38455
39443
  switch (tag >>> 3) {
38456
39444
  case 1: {
38457
- if (tag !== 8) {
39445
+ if (tag !== 10) {
38458
39446
  break;
38459
39447
  }
38460
- message.exists = reader.bool();
39448
+ message.userId = reader.string();
38461
39449
  continue;
38462
39450
  }
38463
- }
38464
- if ((tag & 7) === 4 || tag === 0) {
38465
- break;
38466
- }
38467
- reader.skip(tag & 7);
38468
- }
38469
- return message;
38470
- },
38471
- fromJSON(object) {
38472
- return { exists: isSet4(object.exists) ? globalThis.Boolean(object.exists) : false };
38473
- },
38474
- toJSON(message) {
38475
- const obj = {};
38476
- if (message.exists !== false) {
38477
- obj.exists = message.exists;
38478
- }
38479
- return obj;
38480
- },
38481
- create(base) {
38482
- return TunnelStopResponse.fromPartial(base ?? {});
38483
- },
38484
- fromPartial(object) {
38485
- const message = createBaseTunnelStopResponse();
38486
- message.exists = object.exists ?? false;
38487
- return message;
38488
- }
38489
- };
38490
- function createBaseUploadUrlList() {
38491
- return { items: [] };
38492
- }
38493
- var UploadUrlList = {
38494
- encode(message, writer = new BinaryWriter()) {
38495
- for (const v of message.items) {
38496
- writer.uint32(10).string(v);
38497
- }
38498
- return writer;
38499
- },
38500
- decode(input, length) {
38501
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
38502
- let end = length === void 0 ? reader.len : reader.pos + length;
38503
- const message = createBaseUploadUrlList();
38504
- while (reader.pos < end) {
38505
- const tag = reader.uint32();
38506
- switch (tag >>> 3) {
38507
- case 1: {
38508
- if (tag !== 10) {
39451
+ case 2: {
39452
+ if (tag !== 18) {
38509
39453
  break;
38510
39454
  }
38511
- message.items.push(reader.string());
39455
+ message.username = reader.string();
38512
39456
  continue;
38513
39457
  }
38514
39458
  }
@@ -38520,21 +39464,28 @@ var UploadUrlList = {
38520
39464
  return message;
38521
39465
  },
38522
39466
  fromJSON(object) {
38523
- return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => globalThis.String(e)) : [] };
39467
+ return {
39468
+ userId: isSet4(object.userId) ? globalThis.String(object.userId) : "",
39469
+ username: isSet4(object.username) ? globalThis.String(object.username) : ""
39470
+ };
38524
39471
  },
38525
39472
  toJSON(message) {
38526
39473
  const obj = {};
38527
- if (message.items?.length) {
38528
- obj.items = message.items;
39474
+ if (message.userId !== "") {
39475
+ obj.userId = message.userId;
39476
+ }
39477
+ if (message.username !== "") {
39478
+ obj.username = message.username;
38529
39479
  }
38530
39480
  return obj;
38531
39481
  },
38532
39482
  create(base) {
38533
- return UploadUrlList.fromPartial(base ?? {});
39483
+ return UserIdentity.fromPartial(base ?? {});
38534
39484
  },
38535
39485
  fromPartial(object) {
38536
- const message = createBaseUploadUrlList();
38537
- message.items = object.items?.map((e) => e) || [];
39486
+ const message = createBaseUserIdentity();
39487
+ message.userId = object.userId ?? "";
39488
+ message.username = object.username ?? "";
38538
39489
  return message;
38539
39490
  }
38540
39491
  };
@@ -41189,7 +42140,8 @@ function createBaseWebhookConfig() {
41189
42140
  webServerPort: 0,
41190
42141
  webServerStartupTimeout: 0,
41191
42142
  webEndpointDocs: false,
41192
- requiresProxyAuth: false
42143
+ requiresProxyAuth: false,
42144
+ ephemeralSuffix: ""
41193
42145
  };
41194
42146
  }
41195
42147
  var WebhookConfig = {
@@ -41221,6 +42173,9 @@ var WebhookConfig = {
41221
42173
  if (message.requiresProxyAuth !== false) {
41222
42174
  writer.uint32(80).bool(message.requiresProxyAuth);
41223
42175
  }
42176
+ if (message.ephemeralSuffix !== "") {
42177
+ writer.uint32(90).string(message.ephemeralSuffix);
42178
+ }
41224
42179
  return writer;
41225
42180
  },
41226
42181
  decode(input, length) {
@@ -41293,6 +42248,13 @@ var WebhookConfig = {
41293
42248
  message.requiresProxyAuth = reader.bool();
41294
42249
  continue;
41295
42250
  }
42251
+ case 11: {
42252
+ if (tag !== 90) {
42253
+ break;
42254
+ }
42255
+ message.ephemeralSuffix = reader.string();
42256
+ continue;
42257
+ }
41296
42258
  }
41297
42259
  if ((tag & 7) === 4 || tag === 0) {
41298
42260
  break;
@@ -41311,7 +42273,8 @@ var WebhookConfig = {
41311
42273
  webServerPort: isSet4(object.webServerPort) ? globalThis.Number(object.webServerPort) : 0,
41312
42274
  webServerStartupTimeout: isSet4(object.webServerStartupTimeout) ? globalThis.Number(object.webServerStartupTimeout) : 0,
41313
42275
  webEndpointDocs: isSet4(object.webEndpointDocs) ? globalThis.Boolean(object.webEndpointDocs) : false,
41314
- requiresProxyAuth: isSet4(object.requiresProxyAuth) ? globalThis.Boolean(object.requiresProxyAuth) : false
42276
+ requiresProxyAuth: isSet4(object.requiresProxyAuth) ? globalThis.Boolean(object.requiresProxyAuth) : false,
42277
+ ephemeralSuffix: isSet4(object.ephemeralSuffix) ? globalThis.String(object.ephemeralSuffix) : ""
41315
42278
  };
41316
42279
  },
41317
42280
  toJSON(message) {
@@ -41343,6 +42306,9 @@ var WebhookConfig = {
41343
42306
  if (message.requiresProxyAuth !== false) {
41344
42307
  obj.requiresProxyAuth = message.requiresProxyAuth;
41345
42308
  }
42309
+ if (message.ephemeralSuffix !== "") {
42310
+ obj.ephemeralSuffix = message.ephemeralSuffix;
42311
+ }
41346
42312
  return obj;
41347
42313
  },
41348
42314
  create(base) {
@@ -41359,6 +42325,7 @@ var WebhookConfig = {
41359
42325
  message.webServerStartupTimeout = object.webServerStartupTimeout ?? 0;
41360
42326
  message.webEndpointDocs = object.webEndpointDocs ?? false;
41361
42327
  message.requiresProxyAuth = object.requiresProxyAuth ?? false;
42328
+ message.ephemeralSuffix = object.ephemeralSuffix ?? "";
41362
42329
  return message;
41363
42330
  }
41364
42331
  };
@@ -42697,14 +43664,6 @@ var ModalClientDefinition = {
42697
43664
  responseStream: false,
42698
43665
  options: {}
42699
43666
  },
42700
- sandboxGetCommandRouterAccess: {
42701
- name: "SandboxGetCommandRouterAccess",
42702
- requestType: SandboxGetCommandRouterAccessRequest,
42703
- requestStream: false,
42704
- responseType: SandboxGetCommandRouterAccessResponse,
42705
- responseStream: false,
42706
- options: {}
42707
- },
42708
43667
  sandboxGetFromName: {
42709
43668
  name: "SandboxGetFromName",
42710
43669
  requestType: SandboxGetFromNameRequest,
@@ -42965,15 +43924,6 @@ var ModalClientDefinition = {
42965
43924
  responseStream: false,
42966
43925
  options: {}
42967
43926
  },
42968
- /** Used for flash autoscaling */
42969
- taskGetAutoscalingMetrics: {
42970
- name: "TaskGetAutoscalingMetrics",
42971
- requestType: TaskGetAutoscalingMetricsRequest,
42972
- requestStream: false,
42973
- responseType: TaskGetAutoscalingMetricsResponse,
42974
- responseStream: false,
42975
- options: {}
42976
- },
42977
43927
  taskGetCommandRouterAccess: {
42978
43928
  name: "TaskGetCommandRouterAccess",
42979
43929
  requestType: TaskGetCommandRouterAccessRequest,
@@ -43015,6 +43965,14 @@ var ModalClientDefinition = {
43015
43965
  responseStream: false,
43016
43966
  options: {}
43017
43967
  },
43968
+ tokenInfoGet: {
43969
+ name: "TokenInfoGet",
43970
+ requestType: TokenInfoGetRequest,
43971
+ requestStream: false,
43972
+ responseType: TokenInfoGetResponse,
43973
+ responseStream: false,
43974
+ options: {}
43975
+ },
43018
43976
  /** Tunnels */
43019
43977
  tunnelStart: {
43020
43978
  name: "TunnelStart",
@@ -43326,7 +44284,7 @@ var CloudBucketMount2 = class {
43326
44284
  }
43327
44285
  /** @ignore */
43328
44286
  toProto(mountPath) {
43329
- return {
44287
+ return CloudBucketMount.create({
43330
44288
  bucketName: this.bucketName,
43331
44289
  mountPath,
43332
44290
  credentialsSecretId: this.secret?.secretId ?? "",
@@ -43336,7 +44294,7 @@ var CloudBucketMount2 = class {
43336
44294
  bucketEndpointUrl: this.bucketEndpointUrl,
43337
44295
  keyPrefix: this.keyPrefix,
43338
44296
  oidcAuthRoleArn: this.oidcAuthRoleArn
43339
- };
44297
+ });
43340
44298
  }
43341
44299
  };
43342
44300
 
@@ -44510,7 +45468,14 @@ var ImageService = class {
44510
45468
  return new Image2(this.#client, "", tag, imageRegistryConfig);
44511
45469
  }
44512
45470
  /**
44513
- * Delete an {@link Image} by ID. Warning: This removes an *entire Image*, and cannot be undone.
45471
+ * Delete an {@link Image} by ID.
45472
+ *
45473
+ * Deletion is irreversible and will prevent Functions/Sandboxes from using the Image.
45474
+ *
45475
+ * Note: When building an Image, each chained method call will create an
45476
+ * intermediate Image layer, each with its own ID. Deleting an Image will not
45477
+ * delete any of its intermediate layers, only the image identified by the
45478
+ * provided ID.
44514
45479
  */
44515
45480
  async delete(imageId, _ = {}) {
44516
45481
  try {
@@ -45845,7 +46810,8 @@ async function buildSandboxCreateRequestProto(appId, imageId, params = {}) {
45845
46810
  verbose: params.verbose ?? false,
45846
46811
  proxyId: params.proxy?.proxyId,
45847
46812
  name: params.name,
45848
- experimentalOptions: protoExperimentalOptions
46813
+ experimentalOptions: protoExperimentalOptions,
46814
+ customDomain: params.customDomain
45849
46815
  }
45850
46816
  });
45851
46817
  }
@@ -46792,7 +47758,7 @@ var AuthTokenManager = class {
46792
47758
 
46793
47759
  // src/version.ts
46794
47760
  function getSDKVersion() {
46795
- return true ? "0.6.0" : "0.0.0";
47761
+ return true ? "0.6.1" : "0.0.0";
46796
47762
  }
46797
47763
 
46798
47764
  // src/logger.ts