@nebius/js-sdk 0.2.40 → 0.2.42

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.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  /* Generated by Nebius TS generator. DO NOT EDIT! */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.JobSpec_VolumeMount_S3Config = exports.JobSpec_VolumeMount = exports.JobSpec_Port = exports.JobSpec_EnvironmentVariable = exports.JobSpec = exports.Job = exports.JobInstanceStatus_State = exports.JobStatus_State = exports.JobSpec_VolumeMount_Mode = exports.JobSpec_Port_Protocol = exports.JobService = exports.JobServiceBaseClient = exports.JobServiceServiceDescription = exports.ListJobsResponse = exports.CancelJobRequest = exports.DeleteJobRequest = exports.CreateJobRequest = exports.ListJobsRequest = exports.GetJobByNameRequest = exports.GetJobRequest = exports.EndpointInstanceStatus = exports.EndpointStateDetails = exports.EndpointStatus = exports.EndpointSpec_MysteryBoxSecretRef = exports.EndpointSpec_FileInjection = exports.EndpointSpec_RegistryCredentials = exports.EndpointSpec_DiskSpec = exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.EndpointSpec_VolumeMount_S3Config_S3Credentials = exports.EndpointSpec_VolumeMount_S3Config = exports.EndpointSpec_VolumeMount = exports.EndpointSpec_Port = exports.EndpointSpec_EnvironmentVariable = exports.EndpointSpec = exports.Endpoint = exports.EndpointInstanceStatus_State = exports.EndpointStatus_State = exports.EndpointSpec_VolumeMount_Mode = exports.EndpointSpec_Port_Protocol = exports.EndpointService = exports.EndpointServiceBaseClient = exports.EndpointServiceServiceDescription = exports.ListEndpointsResponse = exports.StopEndpointRequest = exports.StartEndpointRequest = exports.DeleteEndpointRequest = exports.CreateEndpointRequest = exports.ListEndpointsRequest = exports.GetEndpointByNameRequest = exports.GetEndpointRequest = void 0;
5
- exports.JobInstanceStatus = exports.JobStateDetails = exports.JobStatus = exports.JobSpec_MysteryBoxSecretRef = exports.JobSpec_FileInjection = exports.JobSpec_RegistryCredentials = exports.JobSpec_DiskSpec = exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.JobSpec_VolumeMount_S3Config_S3Credentials = void 0;
4
+ exports.JobSpec_Port = exports.JobSpec_EnvironmentVariable = exports.JobSpec = exports.Job = exports.JobInstanceStatus_State = exports.JobStatus_State = exports.JobSpec_VolumeMount_Mode = exports.JobSpec_Port_Protocol = exports.JobService = exports.JobServiceBaseClient = exports.JobServiceServiceDescription = exports.ListJobsResponse = exports.RestartJobRequest = exports.CancelJobRequest = exports.DeleteJobRequest = exports.CreateJobRequest = exports.ListJobsRequest = exports.GetJobByNameRequest = exports.GetJobRequest = exports.EndpointInstanceStatus = exports.EndpointStateDetails = exports.EndpointStatus = exports.EndpointSpec_MysteryBoxSecretRef = exports.EndpointSpec_FileInjection = exports.EndpointSpec_RegistryCredentials = exports.EndpointSpec_DiskSpec = exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.EndpointSpec_VolumeMount_S3Config_S3Credentials = exports.EndpointSpec_VolumeMount_S3Config = exports.EndpointSpec_VolumeMount = exports.EndpointSpec_Port = exports.EndpointSpec_EnvironmentVariable = exports.EndpointSpec = exports.Endpoint = exports.EndpointInstanceStatus_State = exports.EndpointStatus_State = exports.EndpointSpec_VolumeMount_Mode = exports.EndpointSpec_Port_Protocol = exports.EndpointService = exports.EndpointServiceBaseClient = exports.EndpointServiceServiceDescription = exports.ListEndpointsResponse = exports.StopEndpointRequest = exports.RestartEndpointRequest = exports.StartEndpointRequest = exports.DeleteEndpointRequest = exports.CreateEndpointRequest = exports.ListEndpointsRequest = exports.GetEndpointByNameRequest = exports.GetEndpointRequest = void 0;
5
+ exports.JobInstanceStatus = exports.JobStateDetails = exports.JobStatus = exports.JobSpec_MysteryBoxSecretRef = exports.JobSpec_FileInjection = exports.JobSpec_RegistryCredentials = exports.JobSpec_DiskSpec = exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.JobSpec_VolumeMount_S3Config_S3Credentials = exports.JobSpec_VolumeMount_S3Config = exports.JobSpec_VolumeMount = void 0;
6
6
  const index_js_1 = require("../../../../runtime/protos/index.js");
7
7
  const util_1 = require("util");
8
8
  const protobuf_js_1 = require("../../../protobuf.js");
@@ -759,6 +759,109 @@ function createBaseStartEndpointRequest() {
759
759
  };
760
760
  return applyStartEndpointRequestCustom(message);
761
761
  }
762
+ const RestartEndpointRequest_MESSAGE_DESCRIPTOR = {
763
+ fields: {
764
+ "id": { pbName: "id", scalarType: 9 },
765
+ },
766
+ };
767
+ exports.RestartEndpointRequest = {
768
+ $type: "nebius.ai.v1.RestartEndpointRequest",
769
+ $descriptor: RestartEndpointRequest_MESSAGE_DESCRIPTOR,
770
+ encode(message, writer = new index_js_1.BinaryWriter()) {
771
+ if (message.id !== "") {
772
+ writer.uint32(10).string(message.id);
773
+ }
774
+ if (message[index_js_1.unknownFieldsSymbol]) {
775
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
776
+ }
777
+ return writer;
778
+ },
779
+ decode(input, length) {
780
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
781
+ const end = length === undefined ? reader.len : reader.pos + length;
782
+ const message = createBaseRestartEndpointRequest();
783
+ let writer = undefined;
784
+ while (reader.pos < end) {
785
+ const tag = reader.uint32();
786
+ switch (tag >>> 3) {
787
+ case 1: {
788
+ if (tag !== 10)
789
+ break;
790
+ message.id = reader.string();
791
+ continue;
792
+ }
793
+ default:
794
+ break;
795
+ }
796
+ if ((tag & 7) === 4 || tag === 0) {
797
+ break;
798
+ }
799
+ {
800
+ if (!writer)
801
+ writer = new index_js_1.BinaryWriter();
802
+ const skipped = reader.skip(tag & 7, tag >>> 3);
803
+ writer.uint32(tag).raw(skipped);
804
+ }
805
+ }
806
+ if (writer) {
807
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
808
+ }
809
+ return message;
810
+ },
811
+ fromJSON(object) {
812
+ return applyRestartEndpointRequestCustom({
813
+ $type: "nebius.ai.v1.RestartEndpointRequest",
814
+ id: (0, index_js_1.isSet)(object.id ?? object.id)
815
+ ? String(object.id ?? object.id)
816
+ : "",
817
+ });
818
+ },
819
+ toJSON(message, use = "json") {
820
+ const obj = {};
821
+ const pick = (json, pb) => (use === "json" ? json : pb);
822
+ if (message.id !== "") {
823
+ obj[pick("id", "id")] = message.id;
824
+ }
825
+ return obj;
826
+ },
827
+ create(base) {
828
+ return exports.RestartEndpointRequest.fromPartial(base ?? {});
829
+ },
830
+ fromPartial(object) {
831
+ const message = createBaseRestartEndpointRequest();
832
+ message.id = (object.id !== undefined && object.id !== null)
833
+ ? object.id
834
+ : "";
835
+ return message;
836
+ },
837
+ };
838
+ protobuf_js_1.protoRegistry.registerMessage(exports.RestartEndpointRequest);
839
+ function RestartEndpointRequestCustomInspect() {
840
+ const parts = [];
841
+ if (this.id !== "")
842
+ parts.push("id" + "=" + (0, util_1.inspect)(this.id));
843
+ return `${this.$type}(${parts.join(", ")})`;
844
+ }
845
+ function RestartEndpointRequestCustomJson() {
846
+ const obj = {
847
+ type: this.$type,
848
+ };
849
+ if (this.id !== "")
850
+ obj.id = (0, logging_js_1.inspectJson)(this.id);
851
+ return obj;
852
+ }
853
+ function applyRestartEndpointRequestCustom(message) {
854
+ message[logging_js_1.custom] = RestartEndpointRequestCustomInspect;
855
+ message[logging_js_1.customJson] = RestartEndpointRequestCustomJson;
856
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.RestartEndpointRequest.$descriptor);
857
+ }
858
+ function createBaseRestartEndpointRequest() {
859
+ const message = {
860
+ $type: "nebius.ai.v1.RestartEndpointRequest",
861
+ id: "",
862
+ };
863
+ return applyRestartEndpointRequestCustom(message);
864
+ }
762
865
  const StopEndpointRequest_MESSAGE_DESCRIPTOR = {
763
866
  fields: {
764
867
  "id": { pbName: "id", scalarType: 9 },
@@ -1056,6 +1159,17 @@ exports.EndpointServiceServiceDescription = {
1056
1159
  responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
1057
1160
  responseDeserialize: (value) => index_js_2.Operation.decode(value),
1058
1161
  },
1162
+ restart: {
1163
+ path: "/nebius.ai.v1.EndpointService/Restart",
1164
+ requestStream: false,
1165
+ responseStream: false,
1166
+ requestSerialize: (value) => Buffer.from(exports.RestartEndpointRequest.encode(value).finish()),
1167
+ requestDescriptor: () => exports.RestartEndpointRequest.$descriptor,
1168
+ sendResetMask: false,
1169
+ requestDeserialize: (value) => exports.RestartEndpointRequest.decode(value),
1170
+ responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
1171
+ responseDeserialize: (value) => index_js_2.Operation.decode(value),
1172
+ },
1059
1173
  stop: {
1060
1174
  path: "/nebius.ai.v1.EndpointService/Stop",
1061
1175
  requestStream: false,
@@ -1141,6 +1255,17 @@ class EndpointService {
1141
1255
  };
1142
1256
  return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1143
1257
  }
1258
+ restart(...args) {
1259
+ const spec = this.spec.restart;
1260
+ const request = args[0];
1261
+ const metadata = (args.length > 1 ? args[1] : undefined);
1262
+ const options = (args.length > 2 ? args[2] : undefined);
1263
+ const deserialize = (value) => {
1264
+ const resp = spec.responseDeserialize(value);
1265
+ return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
1266
+ };
1267
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1268
+ }
1144
1269
  stop(...args) {
1145
1270
  const spec = this.spec.stop;
1146
1271
  const request = args[0];
@@ -3773,6 +3898,7 @@ const EndpointStateDetails_MESSAGE_DESCRIPTOR = {
3773
3898
  fields: {
3774
3899
  "code": { pbName: "code", scalarType: 9 },
3775
3900
  "message": { pbName: "message", scalarType: 9 },
3901
+ "serviceError": { pbName: "service_error", message: () => index_js_2.ServiceError.$descriptor },
3776
3902
  },
3777
3903
  };
3778
3904
  exports.EndpointStateDetails = {
@@ -3785,6 +3911,11 @@ exports.EndpointStateDetails = {
3785
3911
  if (message.message !== "") {
3786
3912
  writer.uint32(18).string(message.message);
3787
3913
  }
3914
+ if (message.serviceError !== undefined) {
3915
+ const w = writer.uint32(26).fork();
3916
+ index_js_2.ServiceError.encode(message.serviceError, w);
3917
+ w.join();
3918
+ }
3788
3919
  if (message[index_js_1.unknownFieldsSymbol]) {
3789
3920
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
3790
3921
  }
@@ -3810,6 +3941,12 @@ exports.EndpointStateDetails = {
3810
3941
  message.message = reader.string();
3811
3942
  continue;
3812
3943
  }
3944
+ case 3: {
3945
+ if (tag !== 26)
3946
+ break;
3947
+ message.serviceError = index_js_2.ServiceError.decode(reader, reader.uint32());
3948
+ continue;
3949
+ }
3813
3950
  default:
3814
3951
  break;
3815
3952
  }
@@ -3837,6 +3974,9 @@ exports.EndpointStateDetails = {
3837
3974
  message: (0, index_js_1.isSet)(object.message ?? object.message)
3838
3975
  ? String(object.message ?? object.message)
3839
3976
  : "",
3977
+ serviceError: (0, index_js_1.isSet)(object.serviceError ?? object.service_error)
3978
+ ? index_js_2.ServiceError.fromJSON(object.serviceError ?? object.service_error)
3979
+ : undefined,
3840
3980
  });
3841
3981
  },
3842
3982
  toJSON(message, use = "json") {
@@ -3848,6 +3988,11 @@ exports.EndpointStateDetails = {
3848
3988
  if (message.message !== "") {
3849
3989
  obj[pick("message", "message")] = message.message;
3850
3990
  }
3991
+ if (message.serviceError !== undefined) {
3992
+ obj[pick("serviceError", "service_error")] = message.serviceError
3993
+ ? index_js_2.ServiceError.toJSON(message.serviceError, use)
3994
+ : undefined;
3995
+ }
3851
3996
  return obj;
3852
3997
  },
3853
3998
  create(base) {
@@ -3861,6 +4006,9 @@ exports.EndpointStateDetails = {
3861
4006
  message.message = (object.message !== undefined && object.message !== null)
3862
4007
  ? object.message
3863
4008
  : "";
4009
+ message.serviceError = (object.serviceError !== undefined && object.serviceError !== null)
4010
+ ? index_js_2.ServiceError.fromPartial(object.serviceError)
4011
+ : undefined;
3864
4012
  return message;
3865
4013
  },
3866
4014
  };
@@ -3871,6 +4019,8 @@ function EndpointStateDetailsCustomInspect() {
3871
4019
  parts.push("code" + "=" + (0, util_1.inspect)(this.code));
3872
4020
  if (this.message !== "")
3873
4021
  parts.push("message" + "=" + (0, util_1.inspect)(this.message));
4022
+ if (this.serviceError !== undefined)
4023
+ parts.push("serviceError" + "=" + (0, util_1.inspect)(this.serviceError));
3874
4024
  return `${this.$type}(${parts.join(", ")})`;
3875
4025
  }
3876
4026
  function EndpointStateDetailsCustomJson() {
@@ -3881,6 +4031,8 @@ function EndpointStateDetailsCustomJson() {
3881
4031
  obj.code = (0, logging_js_1.inspectJson)(this.code);
3882
4032
  if (this.message !== "")
3883
4033
  obj.message = (0, logging_js_1.inspectJson)(this.message);
4034
+ if (this.serviceError !== undefined)
4035
+ obj.serviceError = (0, logging_js_1.inspectJson)(this.serviceError);
3884
4036
  return obj;
3885
4037
  }
3886
4038
  function applyEndpointStateDetailsCustom(message) {
@@ -3893,6 +4045,7 @@ function createBaseEndpointStateDetails() {
3893
4045
  $type: "nebius.ai.v1.EndpointStateDetails",
3894
4046
  code: "",
3895
4047
  message: "",
4048
+ serviceError: undefined,
3896
4049
  };
3897
4050
  return applyEndpointStateDetailsCustom(message);
3898
4051
  }
@@ -4841,6 +4994,109 @@ function createBaseCancelJobRequest() {
4841
4994
  };
4842
4995
  return applyCancelJobRequestCustom(message);
4843
4996
  }
4997
+ const RestartJobRequest_MESSAGE_DESCRIPTOR = {
4998
+ fields: {
4999
+ "id": { pbName: "id", scalarType: 9 },
5000
+ },
5001
+ };
5002
+ exports.RestartJobRequest = {
5003
+ $type: "nebius.ai.v1.RestartJobRequest",
5004
+ $descriptor: RestartJobRequest_MESSAGE_DESCRIPTOR,
5005
+ encode(message, writer = new index_js_1.BinaryWriter()) {
5006
+ if (message.id !== "") {
5007
+ writer.uint32(10).string(message.id);
5008
+ }
5009
+ if (message[index_js_1.unknownFieldsSymbol]) {
5010
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
5011
+ }
5012
+ return writer;
5013
+ },
5014
+ decode(input, length) {
5015
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
5016
+ const end = length === undefined ? reader.len : reader.pos + length;
5017
+ const message = createBaseRestartJobRequest();
5018
+ let writer = undefined;
5019
+ while (reader.pos < end) {
5020
+ const tag = reader.uint32();
5021
+ switch (tag >>> 3) {
5022
+ case 1: {
5023
+ if (tag !== 10)
5024
+ break;
5025
+ message.id = reader.string();
5026
+ continue;
5027
+ }
5028
+ default:
5029
+ break;
5030
+ }
5031
+ if ((tag & 7) === 4 || tag === 0) {
5032
+ break;
5033
+ }
5034
+ {
5035
+ if (!writer)
5036
+ writer = new index_js_1.BinaryWriter();
5037
+ const skipped = reader.skip(tag & 7, tag >>> 3);
5038
+ writer.uint32(tag).raw(skipped);
5039
+ }
5040
+ }
5041
+ if (writer) {
5042
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
5043
+ }
5044
+ return message;
5045
+ },
5046
+ fromJSON(object) {
5047
+ return applyRestartJobRequestCustom({
5048
+ $type: "nebius.ai.v1.RestartJobRequest",
5049
+ id: (0, index_js_1.isSet)(object.id ?? object.id)
5050
+ ? String(object.id ?? object.id)
5051
+ : "",
5052
+ });
5053
+ },
5054
+ toJSON(message, use = "json") {
5055
+ const obj = {};
5056
+ const pick = (json, pb) => (use === "json" ? json : pb);
5057
+ if (message.id !== "") {
5058
+ obj[pick("id", "id")] = message.id;
5059
+ }
5060
+ return obj;
5061
+ },
5062
+ create(base) {
5063
+ return exports.RestartJobRequest.fromPartial(base ?? {});
5064
+ },
5065
+ fromPartial(object) {
5066
+ const message = createBaseRestartJobRequest();
5067
+ message.id = (object.id !== undefined && object.id !== null)
5068
+ ? object.id
5069
+ : "";
5070
+ return message;
5071
+ },
5072
+ };
5073
+ protobuf_js_1.protoRegistry.registerMessage(exports.RestartJobRequest);
5074
+ function RestartJobRequestCustomInspect() {
5075
+ const parts = [];
5076
+ if (this.id !== "")
5077
+ parts.push("id" + "=" + (0, util_1.inspect)(this.id));
5078
+ return `${this.$type}(${parts.join(", ")})`;
5079
+ }
5080
+ function RestartJobRequestCustomJson() {
5081
+ const obj = {
5082
+ type: this.$type,
5083
+ };
5084
+ if (this.id !== "")
5085
+ obj.id = (0, logging_js_1.inspectJson)(this.id);
5086
+ return obj;
5087
+ }
5088
+ function applyRestartJobRequestCustom(message) {
5089
+ message[logging_js_1.custom] = RestartJobRequestCustomInspect;
5090
+ message[logging_js_1.customJson] = RestartJobRequestCustomJson;
5091
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.RestartJobRequest.$descriptor);
5092
+ }
5093
+ function createBaseRestartJobRequest() {
5094
+ const message = {
5095
+ $type: "nebius.ai.v1.RestartJobRequest",
5096
+ id: "",
5097
+ };
5098
+ return applyRestartJobRequestCustom(message);
5099
+ }
4844
5100
  const ListJobsResponse_MESSAGE_DESCRIPTOR = {
4845
5101
  fields: {
4846
5102
  "items": { pbName: "items", repeated: true, message: () => exports.Job.$descriptor },
@@ -5035,6 +5291,17 @@ exports.JobServiceServiceDescription = {
5035
5291
  responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
5036
5292
  responseDeserialize: (value) => index_js_2.Operation.decode(value),
5037
5293
  },
5294
+ restart: {
5295
+ path: "/nebius.ai.v1.JobService/Restart",
5296
+ requestStream: false,
5297
+ responseStream: false,
5298
+ requestSerialize: (value) => Buffer.from(exports.RestartJobRequest.encode(value).finish()),
5299
+ requestDescriptor: () => exports.RestartJobRequest.$descriptor,
5300
+ sendResetMask: false,
5301
+ requestDeserialize: (value) => exports.RestartJobRequest.decode(value),
5302
+ responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
5303
+ responseDeserialize: (value) => index_js_2.Operation.decode(value),
5304
+ },
5038
5305
  };
5039
5306
  exports.JobServiceBaseClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.JobServiceServiceDescription, "nebius.ai.v1.JobService");
5040
5307
  class JobService {
@@ -5109,6 +5376,17 @@ class JobService {
5109
5376
  };
5110
5377
  return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
5111
5378
  }
5379
+ restart(...args) {
5380
+ const spec = this.spec.restart;
5381
+ const request = args[0];
5382
+ const metadata = (args.length > 1 ? args[1] : undefined);
5383
+ const options = (args.length > 2 ? args[2] : undefined);
5384
+ const deserialize = (value) => {
5385
+ const resp = spec.responseDeserialize(value);
5386
+ return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
5387
+ };
5388
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
5389
+ }
5112
5390
  }
5113
5391
  exports.JobService = JobService;
5114
5392
  const JobSpec_Port_Protocol_VALUE_COMMENTS = {
@@ -7807,6 +8085,7 @@ const JobStateDetails_MESSAGE_DESCRIPTOR = {
7807
8085
  fields: {
7808
8086
  "code": { pbName: "code", scalarType: 9 },
7809
8087
  "message": { pbName: "message", scalarType: 9 },
8088
+ "serviceError": { pbName: "service_error", message: () => index_js_2.ServiceError.$descriptor },
7810
8089
  },
7811
8090
  };
7812
8091
  exports.JobStateDetails = {
@@ -7819,6 +8098,11 @@ exports.JobStateDetails = {
7819
8098
  if (message.message !== "") {
7820
8099
  writer.uint32(18).string(message.message);
7821
8100
  }
8101
+ if (message.serviceError !== undefined) {
8102
+ const w = writer.uint32(26).fork();
8103
+ index_js_2.ServiceError.encode(message.serviceError, w);
8104
+ w.join();
8105
+ }
7822
8106
  if (message[index_js_1.unknownFieldsSymbol]) {
7823
8107
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
7824
8108
  }
@@ -7844,6 +8128,12 @@ exports.JobStateDetails = {
7844
8128
  message.message = reader.string();
7845
8129
  continue;
7846
8130
  }
8131
+ case 3: {
8132
+ if (tag !== 26)
8133
+ break;
8134
+ message.serviceError = index_js_2.ServiceError.decode(reader, reader.uint32());
8135
+ continue;
8136
+ }
7847
8137
  default:
7848
8138
  break;
7849
8139
  }
@@ -7871,6 +8161,9 @@ exports.JobStateDetails = {
7871
8161
  message: (0, index_js_1.isSet)(object.message ?? object.message)
7872
8162
  ? String(object.message ?? object.message)
7873
8163
  : "",
8164
+ serviceError: (0, index_js_1.isSet)(object.serviceError ?? object.service_error)
8165
+ ? index_js_2.ServiceError.fromJSON(object.serviceError ?? object.service_error)
8166
+ : undefined,
7874
8167
  });
7875
8168
  },
7876
8169
  toJSON(message, use = "json") {
@@ -7882,6 +8175,11 @@ exports.JobStateDetails = {
7882
8175
  if (message.message !== "") {
7883
8176
  obj[pick("message", "message")] = message.message;
7884
8177
  }
8178
+ if (message.serviceError !== undefined) {
8179
+ obj[pick("serviceError", "service_error")] = message.serviceError
8180
+ ? index_js_2.ServiceError.toJSON(message.serviceError, use)
8181
+ : undefined;
8182
+ }
7885
8183
  return obj;
7886
8184
  },
7887
8185
  create(base) {
@@ -7895,6 +8193,9 @@ exports.JobStateDetails = {
7895
8193
  message.message = (object.message !== undefined && object.message !== null)
7896
8194
  ? object.message
7897
8195
  : "";
8196
+ message.serviceError = (object.serviceError !== undefined && object.serviceError !== null)
8197
+ ? index_js_2.ServiceError.fromPartial(object.serviceError)
8198
+ : undefined;
7898
8199
  return message;
7899
8200
  },
7900
8201
  };
@@ -7905,6 +8206,8 @@ function JobStateDetailsCustomInspect() {
7905
8206
  parts.push("code" + "=" + (0, util_1.inspect)(this.code));
7906
8207
  if (this.message !== "")
7907
8208
  parts.push("message" + "=" + (0, util_1.inspect)(this.message));
8209
+ if (this.serviceError !== undefined)
8210
+ parts.push("serviceError" + "=" + (0, util_1.inspect)(this.serviceError));
7908
8211
  return `${this.$type}(${parts.join(", ")})`;
7909
8212
  }
7910
8213
  function JobStateDetailsCustomJson() {
@@ -7915,6 +8218,8 @@ function JobStateDetailsCustomJson() {
7915
8218
  obj.code = (0, logging_js_1.inspectJson)(this.code);
7916
8219
  if (this.message !== "")
7917
8220
  obj.message = (0, logging_js_1.inspectJson)(this.message);
8221
+ if (this.serviceError !== undefined)
8222
+ obj.serviceError = (0, logging_js_1.inspectJson)(this.serviceError);
7918
8223
  return obj;
7919
8224
  }
7920
8225
  function applyJobStateDetailsCustom(message) {
@@ -7927,6 +8232,7 @@ function createBaseJobStateDetails() {
7927
8232
  $type: "nebius.ai.v1.JobStateDetails",
7928
8233
  code: "",
7929
8234
  message: "",
8235
+ serviceError: undefined,
7930
8236
  };
7931
8237
  return applyJobStateDetailsCustom(message);
7932
8238
  }