@nebius/js-sdk 0.2.69 → 0.2.70

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.
@@ -2409,7 +2409,6 @@ const AuditEvent_MESSAGE_DESCRIPTOR = {
2409
2409
  "request": { pbName: "request", message: () => Request.$descriptor },
2410
2410
  "response": { pbName: "response", message: () => Response.$descriptor },
2411
2411
  "status": { pbName: "status", scalarType: 14 },
2412
- "projectRegion": { pbName: "project_region", message: () => Region.$descriptor },
2413
2412
  },
2414
2413
  };
2415
2414
  /** Encodes, decodes, converts, and creates {@link AuditEvent} messages. */
@@ -2417,12 +2416,6 @@ export const AuditEvent = {
2417
2416
  $type: "nebius.audit.v2.AuditEvent",
2418
2417
  $descriptor: AuditEvent_MESSAGE_DESCRIPTOR,
2419
2418
  encode(message, writer = new BinaryWriter()) {
2420
- if (message.projectRegion !== undefined) {
2421
- if (!__deprecatedWarned.has("nebius.audit.v2.AuditEvent.project_region")) {
2422
- __deprecatedWarned.add("nebius.audit.v2.AuditEvent.project_region");
2423
- deprecatedWarn("Region should be tied to a resource, not to a project.", "field", "nebius.audit.v2.AuditEvent.project_region", undefined);
2424
- }
2425
- }
2426
2419
  if (message.id !== "") {
2427
2420
  writer.uint32(10).string(message.id);
2428
2421
  }
@@ -2479,11 +2472,6 @@ export const AuditEvent = {
2479
2472
  if ((message.status ?? Status.RESPONSE_STATUS_UNSPECIFIED) !== Status.RESPONSE_STATUS_UNSPECIFIED) {
2480
2473
  Status.encodeField(writer, 16, message.status);
2481
2474
  }
2482
- if (message.projectRegion !== undefined) {
2483
- const w = writer.uint32(138).fork();
2484
- Region.encode(message.projectRegion, w);
2485
- w.join();
2486
- }
2487
2475
  if (message[unknownFieldsSymbol]) {
2488
2476
  writer.raw(message[unknownFieldsSymbol]);
2489
2477
  }
@@ -2582,12 +2570,6 @@ export const AuditEvent = {
2582
2570
  message.status = Status.fromNumber(reader.int32());
2583
2571
  continue;
2584
2572
  }
2585
- case 17: {
2586
- if (tag !== 138)
2587
- break;
2588
- message.projectRegion = Region.decode(reader, reader.uint32());
2589
- continue;
2590
- }
2591
2573
  default:
2592
2574
  break;
2593
2575
  }
@@ -2651,9 +2633,6 @@ export const AuditEvent = {
2651
2633
  status: isSet(object.status ?? object.status)
2652
2634
  ? Status.fromJSON(object.status ?? object.status)
2653
2635
  : Status.RESPONSE_STATUS_UNSPECIFIED,
2654
- projectRegion: isSet(object.projectRegion ?? object.project_region)
2655
- ? Region.fromJSON(object.projectRegion ?? object.project_region)
2656
- : undefined,
2657
2636
  });
2658
2637
  },
2659
2638
  toJSON(message, use = "json") {
@@ -2713,11 +2692,6 @@ export const AuditEvent = {
2713
2692
  if ((message.status ?? Status.RESPONSE_STATUS_UNSPECIFIED) !== Status.RESPONSE_STATUS_UNSPECIFIED) {
2714
2693
  obj[pick("status", "status")] = Status.toJSON(message.status);
2715
2694
  }
2716
- if (message.projectRegion !== undefined) {
2717
- obj[pick("projectRegion", "project_region")] = message.projectRegion
2718
- ? Region.toJSON(message.projectRegion, use)
2719
- : undefined;
2720
- }
2721
2695
  return obj;
2722
2696
  },
2723
2697
  create(base) {
@@ -2767,9 +2741,6 @@ export const AuditEvent = {
2767
2741
  message.status = (object.status !== undefined && object.status !== null)
2768
2742
  ? Status.fromJSON(object.status.name)
2769
2743
  : Status.RESPONSE_STATUS_UNSPECIFIED;
2770
- message.projectRegion = (object.projectRegion !== undefined && object.projectRegion !== null)
2771
- ? Region.fromPartial(object.projectRegion)
2772
- : undefined;
2773
2744
  return message;
2774
2745
  },
2775
2746
  };
@@ -2804,8 +2775,6 @@ function AuditEventCustomInspect() {
2804
2775
  parts.push("response" + "=" + inspect(this.response));
2805
2776
  if (this.status !== undefined)
2806
2777
  parts.push("status" + "=" + inspect(this.status));
2807
- if (this.projectRegion !== undefined)
2808
- parts.push("projectRegion" + "=" + inspect(this.projectRegion));
2809
2778
  return `${this.$type}(${parts.join(", ")})`;
2810
2779
  }
2811
2780
  function AuditEventCustomJson() {
@@ -2840,8 +2809,6 @@ function AuditEventCustomJson() {
2840
2809
  obj.response = inspectJson(this.response);
2841
2810
  if (this.status !== undefined)
2842
2811
  obj.status = inspectJson(this.status);
2843
- if (this.projectRegion !== undefined)
2844
- obj.projectRegion = inspectJson(this.projectRegion);
2845
2812
  return obj;
2846
2813
  }
2847
2814
  function applyAuditEventCustom(message) {
@@ -2866,7 +2833,6 @@ function createBaseAuditEvent() {
2866
2833
  request: undefined,
2867
2834
  response: undefined,
2868
2835
  status: Status.RESPONSE_STATUS_UNSPECIFIED,
2869
- projectRegion: undefined,
2870
2836
  };
2871
2837
  return applyAuditEventCustom(message);
2872
2838
  }
@@ -3392,110 +3358,6 @@ function createBaseFederation() {
3392
3358
  };
3393
3359
  return applyFederationCustom(message);
3394
3360
  }
3395
- const Region_MESSAGE_DESCRIPTOR = {
3396
- fields: {
3397
- "name": { pbName: "name", scalarType: 9 },
3398
- },
3399
- };
3400
- /** Encodes, decodes, converts, and creates {@link Region} messages. */
3401
- export const Region = {
3402
- $type: "nebius.audit.v2.Region",
3403
- $descriptor: Region_MESSAGE_DESCRIPTOR,
3404
- encode(message, writer = new BinaryWriter()) {
3405
- if (message.name !== "") {
3406
- writer.uint32(18).string(message.name);
3407
- }
3408
- if (message[unknownFieldsSymbol]) {
3409
- writer.raw(message[unknownFieldsSymbol]);
3410
- }
3411
- return writer;
3412
- },
3413
- decode(input, length) {
3414
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3415
- const end = length === undefined ? reader.len : reader.pos + length;
3416
- const message = createBaseRegion();
3417
- let writer = undefined;
3418
- while (reader.pos < end) {
3419
- const tag = reader.uint32();
3420
- switch (tag >>> 3) {
3421
- case 2: {
3422
- if (tag !== 18)
3423
- break;
3424
- message.name = reader.string();
3425
- continue;
3426
- }
3427
- default:
3428
- break;
3429
- }
3430
- if ((tag & 7) === 4 || tag === 0) {
3431
- break;
3432
- }
3433
- {
3434
- if (!writer)
3435
- writer = new BinaryWriter();
3436
- const skipped = reader.skip(tag & 7, tag >>> 3);
3437
- writer.uint32(tag).raw(skipped);
3438
- }
3439
- }
3440
- if (writer) {
3441
- message[unknownFieldsSymbol] = writer.finish();
3442
- }
3443
- return message;
3444
- },
3445
- fromJSON(object) {
3446
- return applyRegionCustom({
3447
- $type: "nebius.audit.v2.Region",
3448
- name: isSet(object.name ?? object.name)
3449
- ? String(object.name ?? object.name)
3450
- : "",
3451
- });
3452
- },
3453
- toJSON(message, use = "json") {
3454
- const obj = {};
3455
- const pick = (json, pb) => (use === "json" ? json : pb);
3456
- if (message.name !== "") {
3457
- obj[pick("name", "name")] = message.name;
3458
- }
3459
- return obj;
3460
- },
3461
- create(base) {
3462
- return Region.fromPartial(base ?? {});
3463
- },
3464
- fromPartial(object) {
3465
- const message = createBaseRegion();
3466
- message.name = (object.name !== undefined && object.name !== null)
3467
- ? object.name
3468
- : "";
3469
- return message;
3470
- },
3471
- };
3472
- protoRegistry.registerMessage(Region);
3473
- function RegionCustomInspect() {
3474
- const parts = [];
3475
- if (this.name !== "")
3476
- parts.push("name" + "=" + inspect(this.name));
3477
- return `${this.$type}(${parts.join(", ")})`;
3478
- }
3479
- function RegionCustomJson() {
3480
- const obj = {
3481
- type: this.$type,
3482
- };
3483
- if (this.name !== "")
3484
- obj.name = inspectJson(this.name);
3485
- return obj;
3486
- }
3487
- function applyRegionCustom(message) {
3488
- message[custom] = RegionCustomInspect;
3489
- message[customJson] = RegionCustomJson;
3490
- return attachMessageDescriptor(message, Region.$descriptor);
3491
- }
3492
- function createBaseRegion() {
3493
- const message = {
3494
- $type: "nebius.audit.v2.Region",
3495
- name: "",
3496
- };
3497
- return applyRegionCustom(message);
3498
- }
3499
3361
  const Request_MESSAGE_DESCRIPTOR = {
3500
3362
  fields: {
3501
3363
  "clientIp": { pbName: "client_ip", scalarType: 9 },