@nebius/js-sdk 0.2.51 → 0.2.53

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.
Files changed (43) hide show
  1. package/dist/cjs/api/nebius/common/v1/index.d.ts +177 -0
  2. package/dist/cjs/api/nebius/common/v1/index.d.ts.map +1 -1
  3. package/dist/cjs/api/nebius/common/v1/index.js +566 -1
  4. package/dist/cjs/api/nebius/common/v1/index.js.map +1 -1
  5. package/dist/cjs/api/nebius/compute/v1/index.d.ts +4 -1
  6. package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
  7. package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
  8. package/dist/cjs/api/nebius/registry/v1/index.d.ts +52 -1
  9. package/dist/cjs/api/nebius/registry/v1/index.d.ts.map +1 -1
  10. package/dist/cjs/api/nebius/registry/v1/index.js +23 -0
  11. package/dist/cjs/api/nebius/registry/v1/index.js.map +1 -1
  12. package/dist/cjs/api/nebius/storage/v1/index.d.ts +578 -0
  13. package/dist/cjs/api/nebius/storage/v1/index.d.ts.map +1 -1
  14. package/dist/cjs/api/nebius/storage/v1/index.js +1549 -2
  15. package/dist/cjs/api/nebius/storage/v1/index.js.map +1 -1
  16. package/dist/cjs/api/nebius/tunnel/v1/index.d.ts +35 -0
  17. package/dist/cjs/api/nebius/tunnel/v1/index.d.ts.map +1 -1
  18. package/dist/cjs/api/nebius/tunnel/v1/index.js +153 -1
  19. package/dist/cjs/api/nebius/tunnel/v1/index.js.map +1 -1
  20. package/dist/cjs/version.d.ts +1 -1
  21. package/dist/cjs/version.js +1 -1
  22. package/dist/esm/api/nebius/common/v1/index.d.ts +177 -0
  23. package/dist/esm/api/nebius/common/v1/index.d.ts.map +1 -1
  24. package/dist/esm/api/nebius/common/v1/index.js +565 -0
  25. package/dist/esm/api/nebius/common/v1/index.js.map +1 -1
  26. package/dist/esm/api/nebius/compute/v1/index.d.ts +4 -1
  27. package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
  28. package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
  29. package/dist/esm/api/nebius/registry/v1/index.d.ts +52 -1
  30. package/dist/esm/api/nebius/registry/v1/index.d.ts.map +1 -1
  31. package/dist/esm/api/nebius/registry/v1/index.js +24 -1
  32. package/dist/esm/api/nebius/registry/v1/index.js.map +1 -1
  33. package/dist/esm/api/nebius/storage/v1/index.d.ts +578 -0
  34. package/dist/esm/api/nebius/storage/v1/index.d.ts.map +1 -1
  35. package/dist/esm/api/nebius/storage/v1/index.js +1546 -0
  36. package/dist/esm/api/nebius/storage/v1/index.js.map +1 -1
  37. package/dist/esm/api/nebius/tunnel/v1/index.d.ts +35 -0
  38. package/dist/esm/api/nebius/tunnel/v1/index.d.ts.map +1 -1
  39. package/dist/esm/api/nebius/tunnel/v1/index.js +152 -0
  40. package/dist/esm/api/nebius/tunnel/v1/index.js.map +1 -1
  41. package/dist/esm/version.d.ts +1 -1
  42. package/dist/esm/version.js +1 -1
  43. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /* Generated by Nebius TS generator. DO NOT EDIT! */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Warning = exports.Warnings = exports.Warning_Code = exports.Warning_Target = exports.RecurrentResourceEvent = exports.ResourceEvent = exports.ResourceEvent_Level = exports.ProgressTracker_Step = exports.ProgressTracker_WorkDone = exports.ProgressTracker = exports.Operation_RequestHeader = exports.Operation = exports.OperationService = exports.OperationServiceBaseClient = exports.OperationServiceServiceDescription = exports.ListOperationsResponse = exports.ListOperationsRequest = exports.GetOperationRequest = exports.GetByNameRequest = exports.ResourceMetadata = exports.NotEnoughResources_Violation = exports.NotEnoughResources = exports.QuotaFailure_Violation = exports.QuotaFailure = exports.TooManyRequests = exports.InternalError = exports.PermissionDenied = exports.OutOfRange = exports.OperationConflict = exports.OperationAborted = exports.ResourceConflict = exports.ResourceAlreadyExists = exports.ResourceNotFound = exports.BadResourceState = exports.BadRequest_Violation = exports.BadRequest = exports.ServiceError = exports.ServiceError_RetryType = void 0;
4
+ exports.Warning = exports.Warnings = exports.Warning_Code = exports.Warning_Target = exports.RecurrentResourceEvent = exports.ResourceEvent = exports.ResourceEvent_Level = exports.ProgressTracker_Step = exports.ProgressTracker_WorkDone = exports.ProgressTracker = exports.PreflightCheckResult = exports.PreflightCheckDiagnostic = exports.PreflightCheckContext = exports.PreflightCheckDiagnostic_Severity = exports.PreflightCheckContext_Action = exports.Operation_RequestHeader = exports.Operation = exports.OperationService = exports.OperationServiceBaseClient = exports.OperationServiceServiceDescription = exports.ListOperationsResponse = exports.ListOperationsRequest = exports.GetOperationRequest = exports.GetByNameRequest = exports.ResourceMetadata = exports.NotEnoughResources_Violation = exports.NotEnoughResources = exports.QuotaFailure_Violation = exports.QuotaFailure = exports.TooManyRequests = exports.InternalError = exports.PermissionDenied = exports.OutOfRange = exports.OperationConflict = exports.OperationAborted = exports.ResourceConflict = exports.ResourceAlreadyExists = exports.ResourceNotFound = exports.BadResourceState = exports.BadRequest_Violation = exports.BadRequest = exports.ServiceError = exports.ServiceError_RetryType = void 0;
5
5
  const index_js_1 = require("../../../../runtime/protos/index.js");
6
6
  const util_1 = require("util");
7
7
  const protobuf_js_1 = require("../../../protobuf.js");
@@ -4036,6 +4036,571 @@ function createBaseOperation_RequestHeader() {
4036
4036
  };
4037
4037
  return applyOperation_RequestHeaderCustom(message);
4038
4038
  }
4039
+ const PreflightCheckContext_Action_VALUE_COMMENTS = {
4040
+ UNSPECIFIED: " Infer UPDATE when the request metadata contains a resource ID; otherwise infer CREATE.\n",
4041
+ CREATE: " Evaluate resource creation.\n",
4042
+ UPDATE: " Evaluate a resource update.\n",
4043
+ DELETE: " Evaluate resource deletion. Reserved until delete preflight requests are supported.\n",
4044
+ RECREATE: " Evaluate resource recreation. This is the same as CREATE, but assumes that the resource\n with the requested ID is deleted immediately before it is created.\n",
4045
+ };
4046
+ /** Converts and creates {@link PreflightCheckContext_Action} values. */
4047
+ exports.PreflightCheckContext_Action = (0, index_js_1.createEnum)("nebius.common.v1.PreflightCheckContext.Action", {
4048
+ /**
4049
+ * Infer UPDATE when the request metadata contains a resource ID; otherwise infer CREATE.
4050
+ *
4051
+ */
4052
+ UNSPECIFIED: 0,
4053
+ /**
4054
+ * Evaluate resource creation.
4055
+ *
4056
+ */
4057
+ CREATE: 1,
4058
+ /**
4059
+ * Evaluate a resource update.
4060
+ *
4061
+ */
4062
+ UPDATE: 2,
4063
+ /**
4064
+ * Evaluate resource deletion. Reserved until delete preflight requests are supported.
4065
+ *
4066
+ */
4067
+ DELETE: 3,
4068
+ /**
4069
+ * Evaluate resource recreation. This is the same as CREATE, but assumes that the resource
4070
+ * with the requested ID is deleted immediately before it is created.
4071
+ *
4072
+ */
4073
+ RECREATE: 4,
4074
+ }, PreflightCheckContext_Action_VALUE_COMMENTS);
4075
+ protobuf_js_1.protoRegistry.registerEnum(exports.PreflightCheckContext_Action);
4076
+ const PreflightCheckDiagnostic_Severity_VALUE_COMMENTS = {
4077
+ UNSPECIFIED: " Invalid for a returned diagnostic.\n",
4078
+ ERROR: " The proposed operation cannot proceed.\n",
4079
+ WARNING: " The proposed operation can proceed, subject to requires_user_approval.\n",
4080
+ };
4081
+ /** Converts and creates {@link PreflightCheckDiagnostic_Severity} values. */
4082
+ exports.PreflightCheckDiagnostic_Severity = (0, index_js_1.createEnum)("nebius.common.v1.PreflightCheckDiagnostic.Severity", {
4083
+ /**
4084
+ * Invalid for a returned diagnostic.
4085
+ *
4086
+ */
4087
+ UNSPECIFIED: 0,
4088
+ /**
4089
+ * The proposed operation cannot proceed.
4090
+ *
4091
+ */
4092
+ ERROR: 1,
4093
+ /**
4094
+ * The proposed operation can proceed, subject to requires_user_approval.
4095
+ *
4096
+ */
4097
+ WARNING: 2,
4098
+ }, PreflightCheckDiagnostic_Severity_VALUE_COMMENTS);
4099
+ protobuf_js_1.protoRegistry.registerEnum(exports.PreflightCheckDiagnostic_Severity);
4100
+ const PreflightCheckContext_MESSAGE_DESCRIPTOR = {
4101
+ fields: {
4102
+ "action": { pbName: "action", scalarType: 14 },
4103
+ "tool": { pbName: "tool", scalarType: 9 },
4104
+ "unknownPaths": { pbName: "unknown_paths", scalarType: 9 },
4105
+ "pathsRequireRecreate": { pbName: "paths_require_recreate", scalarType: 9 },
4106
+ },
4107
+ };
4108
+ /** Encodes, decodes, converts, and creates {@link PreflightCheckContext} messages. */
4109
+ exports.PreflightCheckContext = {
4110
+ $type: "nebius.common.v1.PreflightCheckContext",
4111
+ $descriptor: PreflightCheckContext_MESSAGE_DESCRIPTOR,
4112
+ encode(message, writer = new index_js_1.BinaryWriter()) {
4113
+ if ((message.action ?? exports.PreflightCheckContext_Action.UNSPECIFIED) !== exports.PreflightCheckContext_Action.UNSPECIFIED) {
4114
+ exports.PreflightCheckContext_Action.encodeField(writer, 1, message.action);
4115
+ }
4116
+ if (message.tool !== "") {
4117
+ writer.uint32(18).string(message.tool);
4118
+ }
4119
+ if (message.unknownPaths !== "") {
4120
+ writer.uint32(26).string(message.unknownPaths);
4121
+ }
4122
+ if (message.pathsRequireRecreate !== "") {
4123
+ writer.uint32(34).string(message.pathsRequireRecreate);
4124
+ }
4125
+ if (message[index_js_1.unknownFieldsSymbol]) {
4126
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
4127
+ }
4128
+ return writer;
4129
+ },
4130
+ decode(input, length) {
4131
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
4132
+ const end = length === undefined ? reader.len : reader.pos + length;
4133
+ const message = createBasePreflightCheckContext();
4134
+ let writer = undefined;
4135
+ while (reader.pos < end) {
4136
+ const tag = reader.uint32();
4137
+ switch (tag >>> 3) {
4138
+ case 1: {
4139
+ if (tag !== 8)
4140
+ break;
4141
+ message.action = exports.PreflightCheckContext_Action.fromNumber(reader.int32());
4142
+ continue;
4143
+ }
4144
+ case 2: {
4145
+ if (tag !== 18)
4146
+ break;
4147
+ message.tool = reader.string();
4148
+ continue;
4149
+ }
4150
+ case 3: {
4151
+ if (tag !== 26)
4152
+ break;
4153
+ message.unknownPaths = reader.string();
4154
+ continue;
4155
+ }
4156
+ case 4: {
4157
+ if (tag !== 34)
4158
+ break;
4159
+ message.pathsRequireRecreate = reader.string();
4160
+ continue;
4161
+ }
4162
+ default:
4163
+ break;
4164
+ }
4165
+ if ((tag & 7) === 4 || tag === 0) {
4166
+ break;
4167
+ }
4168
+ {
4169
+ if (!writer)
4170
+ writer = new index_js_1.BinaryWriter();
4171
+ const skipped = reader.skip(tag & 7, tag >>> 3);
4172
+ writer.uint32(tag).raw(skipped);
4173
+ }
4174
+ }
4175
+ if (writer) {
4176
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
4177
+ }
4178
+ return message;
4179
+ },
4180
+ fromJSON(object) {
4181
+ return applyPreflightCheckContextCustom({
4182
+ $type: "nebius.common.v1.PreflightCheckContext",
4183
+ action: (0, index_js_1.isSet)(object.action ?? object.action)
4184
+ ? exports.PreflightCheckContext_Action.fromJSON(object.action ?? object.action)
4185
+ : exports.PreflightCheckContext_Action.UNSPECIFIED,
4186
+ tool: (0, index_js_1.isSet)(object.tool ?? object.tool)
4187
+ ? String(object.tool ?? object.tool)
4188
+ : "",
4189
+ unknownPaths: (0, index_js_1.isSet)(object.unknownPaths ?? object.unknown_paths)
4190
+ ? String(object.unknownPaths ?? object.unknown_paths)
4191
+ : "",
4192
+ pathsRequireRecreate: (0, index_js_1.isSet)(object.pathsRequireRecreate ?? object.paths_require_recreate)
4193
+ ? String(object.pathsRequireRecreate ?? object.paths_require_recreate)
4194
+ : "",
4195
+ });
4196
+ },
4197
+ toJSON(message, use = "json") {
4198
+ const obj = {};
4199
+ const pick = (json, pb) => (use === "json" ? json : pb);
4200
+ if ((message.action ?? exports.PreflightCheckContext_Action.UNSPECIFIED) !== exports.PreflightCheckContext_Action.UNSPECIFIED) {
4201
+ obj[pick("action", "action")] = exports.PreflightCheckContext_Action.toJSON(message.action);
4202
+ }
4203
+ if (message.tool !== "") {
4204
+ obj[pick("tool", "tool")] = message.tool;
4205
+ }
4206
+ if (message.unknownPaths !== "") {
4207
+ obj[pick("unknownPaths", "unknown_paths")] = message.unknownPaths;
4208
+ }
4209
+ if (message.pathsRequireRecreate !== "") {
4210
+ obj[pick("pathsRequireRecreate", "paths_require_recreate")] = message.pathsRequireRecreate;
4211
+ }
4212
+ return obj;
4213
+ },
4214
+ create(base) {
4215
+ return exports.PreflightCheckContext.fromPartial(base ?? {});
4216
+ },
4217
+ fromPartial(object) {
4218
+ const message = createBasePreflightCheckContext();
4219
+ message.action = (object.action !== undefined && object.action !== null)
4220
+ ? exports.PreflightCheckContext_Action.fromJSON(object.action.name)
4221
+ : exports.PreflightCheckContext_Action.UNSPECIFIED;
4222
+ message.tool = (object.tool !== undefined && object.tool !== null)
4223
+ ? object.tool
4224
+ : "";
4225
+ message.unknownPaths = (object.unknownPaths !== undefined && object.unknownPaths !== null)
4226
+ ? object.unknownPaths
4227
+ : "";
4228
+ message.pathsRequireRecreate = (object.pathsRequireRecreate !== undefined && object.pathsRequireRecreate !== null)
4229
+ ? object.pathsRequireRecreate
4230
+ : "";
4231
+ return message;
4232
+ },
4233
+ };
4234
+ protobuf_js_1.protoRegistry.registerMessage(exports.PreflightCheckContext);
4235
+ function PreflightCheckContextCustomInspect() {
4236
+ const parts = [];
4237
+ if (this.action !== undefined)
4238
+ parts.push("action" + "=" + (0, util_1.inspect)(this.action));
4239
+ if (this.tool !== "")
4240
+ parts.push("tool" + "=" + (0, util_1.inspect)(this.tool));
4241
+ if (this.unknownPaths !== "")
4242
+ parts.push("unknownPaths" + "=" + (0, util_1.inspect)(this.unknownPaths));
4243
+ if (this.pathsRequireRecreate !== "")
4244
+ parts.push("pathsRequireRecreate" + "=" + (0, util_1.inspect)(this.pathsRequireRecreate));
4245
+ return `${this.$type}(${parts.join(", ")})`;
4246
+ }
4247
+ function PreflightCheckContextCustomJson() {
4248
+ const obj = {
4249
+ type: this.$type,
4250
+ };
4251
+ if (this.action !== undefined)
4252
+ obj.action = (0, logging_js_1.inspectJson)(this.action);
4253
+ if (this.tool !== "")
4254
+ obj.tool = (0, logging_js_1.inspectJson)(this.tool);
4255
+ if (this.unknownPaths !== "")
4256
+ obj.unknownPaths = (0, logging_js_1.inspectJson)(this.unknownPaths);
4257
+ if (this.pathsRequireRecreate !== "")
4258
+ obj.pathsRequireRecreate = (0, logging_js_1.inspectJson)(this.pathsRequireRecreate);
4259
+ return obj;
4260
+ }
4261
+ function applyPreflightCheckContextCustom(message) {
4262
+ message[logging_js_1.custom] = PreflightCheckContextCustomInspect;
4263
+ message[logging_js_1.customJson] = PreflightCheckContextCustomJson;
4264
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.PreflightCheckContext.$descriptor);
4265
+ }
4266
+ function createBasePreflightCheckContext() {
4267
+ const message = {
4268
+ $type: "nebius.common.v1.PreflightCheckContext",
4269
+ action: exports.PreflightCheckContext_Action.UNSPECIFIED,
4270
+ tool: "",
4271
+ unknownPaths: "",
4272
+ pathsRequireRecreate: "",
4273
+ };
4274
+ return applyPreflightCheckContextCustom(message);
4275
+ }
4276
+ const PreflightCheckDiagnostic_MESSAGE_DESCRIPTOR = {
4277
+ fields: {
4278
+ "severity": { pbName: "severity", scalarType: 14 },
4279
+ "summary": { pbName: "summary", scalarType: 9 },
4280
+ "details": { pbName: "details", scalarType: 9 },
4281
+ "path": { pbName: "path", scalarType: 9 },
4282
+ },
4283
+ };
4284
+ /** Encodes, decodes, converts, and creates {@link PreflightCheckDiagnostic} messages. */
4285
+ exports.PreflightCheckDiagnostic = {
4286
+ $type: "nebius.common.v1.PreflightCheckDiagnostic",
4287
+ $descriptor: PreflightCheckDiagnostic_MESSAGE_DESCRIPTOR,
4288
+ encode(message, writer = new index_js_1.BinaryWriter()) {
4289
+ if ((message.severity ?? exports.PreflightCheckDiagnostic_Severity.UNSPECIFIED) !== exports.PreflightCheckDiagnostic_Severity.UNSPECIFIED) {
4290
+ exports.PreflightCheckDiagnostic_Severity.encodeField(writer, 1, message.severity);
4291
+ }
4292
+ if (message.summary !== "") {
4293
+ writer.uint32(18).string(message.summary);
4294
+ }
4295
+ if (message.details !== "") {
4296
+ writer.uint32(26).string(message.details);
4297
+ }
4298
+ if (message.path !== "") {
4299
+ writer.uint32(34).string(message.path);
4300
+ }
4301
+ if (message[index_js_1.unknownFieldsSymbol]) {
4302
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
4303
+ }
4304
+ return writer;
4305
+ },
4306
+ decode(input, length) {
4307
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
4308
+ const end = length === undefined ? reader.len : reader.pos + length;
4309
+ const message = createBasePreflightCheckDiagnostic();
4310
+ let writer = undefined;
4311
+ while (reader.pos < end) {
4312
+ const tag = reader.uint32();
4313
+ switch (tag >>> 3) {
4314
+ case 1: {
4315
+ if (tag !== 8)
4316
+ break;
4317
+ message.severity = exports.PreflightCheckDiagnostic_Severity.fromNumber(reader.int32());
4318
+ continue;
4319
+ }
4320
+ case 2: {
4321
+ if (tag !== 18)
4322
+ break;
4323
+ message.summary = reader.string();
4324
+ continue;
4325
+ }
4326
+ case 3: {
4327
+ if (tag !== 26)
4328
+ break;
4329
+ message.details = reader.string();
4330
+ continue;
4331
+ }
4332
+ case 4: {
4333
+ if (tag !== 34)
4334
+ break;
4335
+ message.path = reader.string();
4336
+ continue;
4337
+ }
4338
+ default:
4339
+ break;
4340
+ }
4341
+ if ((tag & 7) === 4 || tag === 0) {
4342
+ break;
4343
+ }
4344
+ {
4345
+ if (!writer)
4346
+ writer = new index_js_1.BinaryWriter();
4347
+ const skipped = reader.skip(tag & 7, tag >>> 3);
4348
+ writer.uint32(tag).raw(skipped);
4349
+ }
4350
+ }
4351
+ if (writer) {
4352
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
4353
+ }
4354
+ return message;
4355
+ },
4356
+ fromJSON(object) {
4357
+ return applyPreflightCheckDiagnosticCustom({
4358
+ $type: "nebius.common.v1.PreflightCheckDiagnostic",
4359
+ severity: (0, index_js_1.isSet)(object.severity ?? object.severity)
4360
+ ? exports.PreflightCheckDiagnostic_Severity.fromJSON(object.severity ?? object.severity)
4361
+ : exports.PreflightCheckDiagnostic_Severity.UNSPECIFIED,
4362
+ summary: (0, index_js_1.isSet)(object.summary ?? object.summary)
4363
+ ? String(object.summary ?? object.summary)
4364
+ : "",
4365
+ details: (0, index_js_1.isSet)(object.details ?? object.details)
4366
+ ? String(object.details ?? object.details)
4367
+ : "",
4368
+ path: (0, index_js_1.isSet)(object.path ?? object.path)
4369
+ ? String(object.path ?? object.path)
4370
+ : "",
4371
+ });
4372
+ },
4373
+ toJSON(message, use = "json") {
4374
+ const obj = {};
4375
+ const pick = (json, pb) => (use === "json" ? json : pb);
4376
+ if ((message.severity ?? exports.PreflightCheckDiagnostic_Severity.UNSPECIFIED) !== exports.PreflightCheckDiagnostic_Severity.UNSPECIFIED) {
4377
+ obj[pick("severity", "severity")] = exports.PreflightCheckDiagnostic_Severity.toJSON(message.severity);
4378
+ }
4379
+ if (message.summary !== "") {
4380
+ obj[pick("summary", "summary")] = message.summary;
4381
+ }
4382
+ if (message.details !== "") {
4383
+ obj[pick("details", "details")] = message.details;
4384
+ }
4385
+ if (message.path !== "") {
4386
+ obj[pick("path", "path")] = message.path;
4387
+ }
4388
+ return obj;
4389
+ },
4390
+ create(base) {
4391
+ return exports.PreflightCheckDiagnostic.fromPartial(base ?? {});
4392
+ },
4393
+ fromPartial(object) {
4394
+ const message = createBasePreflightCheckDiagnostic();
4395
+ message.severity = (object.severity !== undefined && object.severity !== null)
4396
+ ? exports.PreflightCheckDiagnostic_Severity.fromJSON(object.severity.name)
4397
+ : exports.PreflightCheckDiagnostic_Severity.UNSPECIFIED;
4398
+ message.summary = (object.summary !== undefined && object.summary !== null)
4399
+ ? object.summary
4400
+ : "";
4401
+ message.details = (object.details !== undefined && object.details !== null)
4402
+ ? object.details
4403
+ : "";
4404
+ message.path = (object.path !== undefined && object.path !== null)
4405
+ ? object.path
4406
+ : "";
4407
+ return message;
4408
+ },
4409
+ };
4410
+ protobuf_js_1.protoRegistry.registerMessage(exports.PreflightCheckDiagnostic);
4411
+ function PreflightCheckDiagnosticCustomInspect() {
4412
+ const parts = [];
4413
+ if (this.severity !== undefined)
4414
+ parts.push("severity" + "=" + (0, util_1.inspect)(this.severity));
4415
+ if (this.summary !== "")
4416
+ parts.push("summary" + "=" + (0, util_1.inspect)(this.summary));
4417
+ if (this.details !== "")
4418
+ parts.push("details" + "=" + (0, util_1.inspect)(this.details));
4419
+ if (this.path !== "")
4420
+ parts.push("path" + "=" + (0, util_1.inspect)(this.path));
4421
+ return `${this.$type}(${parts.join(", ")})`;
4422
+ }
4423
+ function PreflightCheckDiagnosticCustomJson() {
4424
+ const obj = {
4425
+ type: this.$type,
4426
+ };
4427
+ if (this.severity !== undefined)
4428
+ obj.severity = (0, logging_js_1.inspectJson)(this.severity);
4429
+ if (this.summary !== "")
4430
+ obj.summary = (0, logging_js_1.inspectJson)(this.summary);
4431
+ if (this.details !== "")
4432
+ obj.details = (0, logging_js_1.inspectJson)(this.details);
4433
+ if (this.path !== "")
4434
+ obj.path = (0, logging_js_1.inspectJson)(this.path);
4435
+ return obj;
4436
+ }
4437
+ function applyPreflightCheckDiagnosticCustom(message) {
4438
+ message[logging_js_1.custom] = PreflightCheckDiagnosticCustomInspect;
4439
+ message[logging_js_1.customJson] = PreflightCheckDiagnosticCustomJson;
4440
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.PreflightCheckDiagnostic.$descriptor);
4441
+ }
4442
+ function createBasePreflightCheckDiagnostic() {
4443
+ const message = {
4444
+ $type: "nebius.common.v1.PreflightCheckDiagnostic",
4445
+ severity: exports.PreflightCheckDiagnostic_Severity.UNSPECIFIED,
4446
+ summary: "",
4447
+ details: "",
4448
+ path: "",
4449
+ };
4450
+ return applyPreflightCheckDiagnosticCustom(message);
4451
+ }
4452
+ const PreflightCheckResult_MESSAGE_DESCRIPTOR = {
4453
+ fields: {
4454
+ "diagnostics": { pbName: "diagnostics", repeated: true, message: () => exports.PreflightCheckDiagnostic.$descriptor },
4455
+ "pathsRequireRecreate": { pbName: "paths_require_recreate", scalarType: 9 },
4456
+ "requiresUserApproval": { pbName: "requires_user_approval", scalarType: 8 },
4457
+ },
4458
+ };
4459
+ /** Encodes, decodes, converts, and creates {@link PreflightCheckResult} messages. */
4460
+ exports.PreflightCheckResult = {
4461
+ $type: "nebius.common.v1.PreflightCheckResult",
4462
+ $descriptor: PreflightCheckResult_MESSAGE_DESCRIPTOR,
4463
+ encode(message, writer = new index_js_1.BinaryWriter()) {
4464
+ for (const v of (message.diagnostics ?? [])) {
4465
+ const w = writer.uint32(10).fork();
4466
+ exports.PreflightCheckDiagnostic.encode(v, w);
4467
+ w.join();
4468
+ }
4469
+ if (message.pathsRequireRecreate !== "") {
4470
+ writer.uint32(18).string(message.pathsRequireRecreate);
4471
+ }
4472
+ if (message.requiresUserApproval === true) {
4473
+ writer.uint32(24).bool(message.requiresUserApproval);
4474
+ }
4475
+ if (message[index_js_1.unknownFieldsSymbol]) {
4476
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
4477
+ }
4478
+ return writer;
4479
+ },
4480
+ decode(input, length) {
4481
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
4482
+ const end = length === undefined ? reader.len : reader.pos + length;
4483
+ const message = createBasePreflightCheckResult();
4484
+ let writer = undefined;
4485
+ while (reader.pos < end) {
4486
+ const tag = reader.uint32();
4487
+ switch (tag >>> 3) {
4488
+ case 1: {
4489
+ if (tag !== 10)
4490
+ break;
4491
+ message.diagnostics.push(exports.PreflightCheckDiagnostic.decode(reader, reader.uint32()));
4492
+ continue;
4493
+ }
4494
+ case 2: {
4495
+ if (tag !== 18)
4496
+ break;
4497
+ message.pathsRequireRecreate = reader.string();
4498
+ continue;
4499
+ }
4500
+ case 3: {
4501
+ if (tag !== 24)
4502
+ break;
4503
+ message.requiresUserApproval = reader.bool();
4504
+ continue;
4505
+ }
4506
+ default:
4507
+ break;
4508
+ }
4509
+ if ((tag & 7) === 4 || tag === 0) {
4510
+ break;
4511
+ }
4512
+ {
4513
+ if (!writer)
4514
+ writer = new index_js_1.BinaryWriter();
4515
+ const skipped = reader.skip(tag & 7, tag >>> 3);
4516
+ writer.uint32(tag).raw(skipped);
4517
+ }
4518
+ }
4519
+ if (writer) {
4520
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
4521
+ }
4522
+ return message;
4523
+ },
4524
+ fromJSON(object) {
4525
+ return applyPreflightCheckResultCustom({
4526
+ $type: "nebius.common.v1.PreflightCheckResult",
4527
+ diagnostics: globalThis.Array.isArray(object?.diagnostics ?? object?.diagnostics)
4528
+ ? (object.diagnostics ?? object.diagnostics).map((e) => exports.PreflightCheckDiagnostic.fromJSON(e))
4529
+ : [],
4530
+ pathsRequireRecreate: (0, index_js_1.isSet)(object.pathsRequireRecreate ?? object.paths_require_recreate)
4531
+ ? String(object.pathsRequireRecreate ?? object.paths_require_recreate)
4532
+ : "",
4533
+ requiresUserApproval: (0, index_js_1.isSet)(object.requiresUserApproval ?? object.requires_user_approval)
4534
+ ? Boolean(object.requiresUserApproval ?? object.requires_user_approval)
4535
+ : false,
4536
+ });
4537
+ },
4538
+ toJSON(message, use = "json") {
4539
+ const obj = {};
4540
+ const pick = (json, pb) => (use === "json" ? json : pb);
4541
+ if (message.diagnostics?.length) {
4542
+ obj[pick("diagnostics", "diagnostics")] = message.diagnostics.map((e) => e ? exports.PreflightCheckDiagnostic.toJSON(e, use) : undefined);
4543
+ }
4544
+ if (message.pathsRequireRecreate !== "") {
4545
+ obj[pick("pathsRequireRecreate", "paths_require_recreate")] = message.pathsRequireRecreate;
4546
+ }
4547
+ if (message.requiresUserApproval === true) {
4548
+ obj[pick("requiresUserApproval", "requires_user_approval")] = message.requiresUserApproval;
4549
+ }
4550
+ return obj;
4551
+ },
4552
+ create(base) {
4553
+ return exports.PreflightCheckResult.fromPartial(base ?? {});
4554
+ },
4555
+ fromPartial(object) {
4556
+ const message = createBasePreflightCheckResult();
4557
+ message.diagnostics = object.diagnostics?.map((e) => exports.PreflightCheckDiagnostic.fromPartial(e)) || [];
4558
+ message.pathsRequireRecreate = (object.pathsRequireRecreate !== undefined && object.pathsRequireRecreate !== null)
4559
+ ? object.pathsRequireRecreate
4560
+ : "";
4561
+ message.requiresUserApproval = (object.requiresUserApproval !== undefined && object.requiresUserApproval !== null)
4562
+ ? object.requiresUserApproval
4563
+ : false;
4564
+ return message;
4565
+ },
4566
+ };
4567
+ protobuf_js_1.protoRegistry.registerMessage(exports.PreflightCheckResult);
4568
+ function PreflightCheckResultCustomInspect() {
4569
+ const parts = [];
4570
+ if ((this.diagnostics?.length ?? 0) !== 0)
4571
+ parts.push("diagnostics" + "=" + (0, util_1.inspect)(this.diagnostics));
4572
+ if (this.pathsRequireRecreate !== "")
4573
+ parts.push("pathsRequireRecreate" + "=" + (0, util_1.inspect)(this.pathsRequireRecreate));
4574
+ if (this.requiresUserApproval === true)
4575
+ parts.push("requiresUserApproval" + "=" + (0, util_1.inspect)(this.requiresUserApproval));
4576
+ return `${this.$type}(${parts.join(", ")})`;
4577
+ }
4578
+ function PreflightCheckResultCustomJson() {
4579
+ const obj = {
4580
+ type: this.$type,
4581
+ };
4582
+ if ((this.diagnostics?.length ?? 0) !== 0)
4583
+ obj.diagnostics = (0, logging_js_1.inspectJson)(this.diagnostics);
4584
+ if (this.pathsRequireRecreate !== "")
4585
+ obj.pathsRequireRecreate = (0, logging_js_1.inspectJson)(this.pathsRequireRecreate);
4586
+ if (this.requiresUserApproval === true)
4587
+ obj.requiresUserApproval = (0, logging_js_1.inspectJson)(this.requiresUserApproval);
4588
+ return obj;
4589
+ }
4590
+ function applyPreflightCheckResultCustom(message) {
4591
+ message[logging_js_1.custom] = PreflightCheckResultCustomInspect;
4592
+ message[logging_js_1.customJson] = PreflightCheckResultCustomJson;
4593
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.PreflightCheckResult.$descriptor);
4594
+ }
4595
+ function createBasePreflightCheckResult() {
4596
+ const message = {
4597
+ $type: "nebius.common.v1.PreflightCheckResult",
4598
+ diagnostics: [],
4599
+ pathsRequireRecreate: "",
4600
+ requiresUserApproval: false,
4601
+ };
4602
+ return applyPreflightCheckResultCustom(message);
4603
+ }
4039
4604
  const ProgressTracker_MESSAGE_DESCRIPTOR = {
4040
4605
  fields: {
4041
4606
  "description": { pbName: "description", scalarType: 9 },