@nebius/js-sdk 0.2.51 → 0.2.52

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