@nebius/js-sdk 0.2.38 → 0.2.40

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 (31) hide show
  1. package/dist/cjs/api/nebius/common/v1/index.d.ts +20 -10
  2. package/dist/cjs/api/nebius/common/v1/index.d.ts.map +1 -1
  3. package/dist/cjs/api/nebius/common/v1/index.js +12 -0
  4. package/dist/cjs/api/nebius/common/v1/index.js.map +1 -1
  5. package/dist/cjs/api/nebius/compute/v1/index.d.ts +67 -4
  6. package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
  7. package/dist/cjs/api/nebius/compute/v1/index.js +301 -3
  8. package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
  9. package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +6 -0
  10. package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
  11. package/dist/cjs/api/nebius/mk8s/v1/index.js +24 -0
  12. package/dist/cjs/api/nebius/mk8s/v1/index.js.map +1 -1
  13. package/dist/cjs/api/nebius/tunnel/v1/index.d.ts +2 -2
  14. package/dist/cjs/version.d.ts +1 -1
  15. package/dist/cjs/version.js +1 -1
  16. package/dist/esm/api/nebius/common/v1/index.d.ts +20 -10
  17. package/dist/esm/api/nebius/common/v1/index.d.ts.map +1 -1
  18. package/dist/esm/api/nebius/common/v1/index.js +12 -0
  19. package/dist/esm/api/nebius/common/v1/index.js.map +1 -1
  20. package/dist/esm/api/nebius/compute/v1/index.d.ts +67 -4
  21. package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
  22. package/dist/esm/api/nebius/compute/v1/index.js +298 -0
  23. package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
  24. package/dist/esm/api/nebius/mk8s/v1/index.d.ts +6 -0
  25. package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
  26. package/dist/esm/api/nebius/mk8s/v1/index.js +24 -0
  27. package/dist/esm/api/nebius/mk8s/v1/index.js.map +1 -1
  28. package/dist/esm/api/nebius/tunnel/v1/index.d.ts +2 -2
  29. package/dist/esm/version.d.ts +1 -1
  30. package/dist/esm/version.js +1 -1
  31. package/package.json +1 -1
@@ -10671,6 +10671,157 @@ function createBaseStopInstanceRequest() {
10671
10671
  };
10672
10672
  return applyStopInstanceRequestCustom(message);
10673
10673
  }
10674
+ const ListInstancesByNVLInstanceGroupRequest_MESSAGE_DESCRIPTOR = {
10675
+ fields: {
10676
+ "nvlInstanceGroupId": { pbName: "nvl_instance_group_id", scalarType: 9 },
10677
+ "pageSize": { pbName: "page_size", scalarType: 3 },
10678
+ "pageToken": { pbName: "page_token", scalarType: 9 },
10679
+ },
10680
+ };
10681
+ export const ListInstancesByNVLInstanceGroupRequest = {
10682
+ $type: "nebius.compute.v1.ListInstancesByNVLInstanceGroupRequest",
10683
+ $descriptor: ListInstancesByNVLInstanceGroupRequest_MESSAGE_DESCRIPTOR,
10684
+ encode(message, writer = new BinaryWriter()) {
10685
+ if (message.nvlInstanceGroupId !== "") {
10686
+ writer.uint32(10).string(message.nvlInstanceGroupId);
10687
+ }
10688
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
10689
+ writer.uint32(16).int64(message.pageSize.toString());
10690
+ }
10691
+ if (message.pageToken !== "") {
10692
+ writer.uint32(26).string(message.pageToken);
10693
+ }
10694
+ if (message[unknownFieldsSymbol]) {
10695
+ writer.raw(message[unknownFieldsSymbol]);
10696
+ }
10697
+ return writer;
10698
+ },
10699
+ decode(input, length) {
10700
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
10701
+ const end = length === undefined ? reader.len : reader.pos + length;
10702
+ const message = createBaseListInstancesByNVLInstanceGroupRequest();
10703
+ let writer = undefined;
10704
+ while (reader.pos < end) {
10705
+ const tag = reader.uint32();
10706
+ switch (tag >>> 3) {
10707
+ case 1: {
10708
+ if (tag !== 10)
10709
+ break;
10710
+ message.nvlInstanceGroupId = reader.string();
10711
+ continue;
10712
+ }
10713
+ case 2: {
10714
+ if (tag !== 16)
10715
+ break;
10716
+ message.pageSize = Long.fromValue(reader.int64());
10717
+ continue;
10718
+ }
10719
+ case 3: {
10720
+ if (tag !== 26)
10721
+ break;
10722
+ message.pageToken = reader.string();
10723
+ continue;
10724
+ }
10725
+ default:
10726
+ break;
10727
+ }
10728
+ if ((tag & 7) === 4 || tag === 0) {
10729
+ break;
10730
+ }
10731
+ {
10732
+ if (!writer)
10733
+ writer = new BinaryWriter();
10734
+ const skipped = reader.skip(tag & 7, tag >>> 3);
10735
+ writer.uint32(tag).raw(skipped);
10736
+ }
10737
+ }
10738
+ if (writer) {
10739
+ message[unknownFieldsSymbol] = writer.finish();
10740
+ }
10741
+ return message;
10742
+ },
10743
+ fromJSON(object) {
10744
+ return applyListInstancesByNVLInstanceGroupRequestCustom({
10745
+ $type: "nebius.compute.v1.ListInstancesByNVLInstanceGroupRequest",
10746
+ nvlInstanceGroupId: isSet(object.nvlInstanceGroupId ?? object.nvl_instance_group_id)
10747
+ ? String(object.nvlInstanceGroupId ?? object.nvl_instance_group_id)
10748
+ : "",
10749
+ pageSize: isSet(object.pageSize ?? object.page_size)
10750
+ ? Long.fromValue(object.pageSize ?? object.page_size)
10751
+ : Long.ZERO,
10752
+ pageToken: isSet(object.pageToken ?? object.page_token)
10753
+ ? String(object.pageToken ?? object.page_token)
10754
+ : "",
10755
+ });
10756
+ },
10757
+ toJSON(message, use = "json") {
10758
+ const obj = {};
10759
+ const pick = (json, pb) => (use === "json" ? json : pb);
10760
+ if (message.nvlInstanceGroupId !== "") {
10761
+ obj[pick("nvlInstanceGroupId", "nvl_instance_group_id")] = message.nvlInstanceGroupId;
10762
+ }
10763
+ if (!message.pageSize?.isZero?.()) {
10764
+ obj[pick("pageSize", "page_size")] = (message.pageSize || Long.ZERO).toString();
10765
+ }
10766
+ if (message.pageToken !== "") {
10767
+ obj[pick("pageToken", "page_token")] = message.pageToken;
10768
+ }
10769
+ return obj;
10770
+ },
10771
+ create(base) {
10772
+ return ListInstancesByNVLInstanceGroupRequest.fromPartial(base ?? {});
10773
+ },
10774
+ fromPartial(object) {
10775
+ const message = createBaseListInstancesByNVLInstanceGroupRequest();
10776
+ message.nvlInstanceGroupId = (object.nvlInstanceGroupId !== undefined && object.nvlInstanceGroupId !== null)
10777
+ ? object.nvlInstanceGroupId
10778
+ : "";
10779
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
10780
+ ? Long.fromValue(object.pageSize)
10781
+ : Long.ZERO;
10782
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
10783
+ ? object.pageToken
10784
+ : "";
10785
+ return message;
10786
+ },
10787
+ };
10788
+ protoRegistry.registerMessage(ListInstancesByNVLInstanceGroupRequest);
10789
+ function ListInstancesByNVLInstanceGroupRequestCustomInspect() {
10790
+ const parts = [];
10791
+ if (this.nvlInstanceGroupId !== "")
10792
+ parts.push("nvlInstanceGroupId" + "=" + inspect(this.nvlInstanceGroupId));
10793
+ if (!this.pageSize?.isZero?.())
10794
+ parts.push("pageSize" + "=" + inspect(this.pageSize));
10795
+ if (this.pageToken !== "")
10796
+ parts.push("pageToken" + "=" + inspect(this.pageToken));
10797
+ return `${this.$type}(${parts.join(", ")})`;
10798
+ }
10799
+ function ListInstancesByNVLInstanceGroupRequestCustomJson() {
10800
+ const obj = {
10801
+ type: this.$type,
10802
+ };
10803
+ if (this.nvlInstanceGroupId !== "")
10804
+ obj.nvlInstanceGroupId = inspectJson(this.nvlInstanceGroupId);
10805
+ if (!this.pageSize?.isZero?.())
10806
+ obj.pageSize = inspectJson(this.pageSize);
10807
+ if (this.pageToken !== "")
10808
+ obj.pageToken = inspectJson(this.pageToken);
10809
+ return obj;
10810
+ }
10811
+ function applyListInstancesByNVLInstanceGroupRequestCustom(message) {
10812
+ message[custom] = ListInstancesByNVLInstanceGroupRequestCustomInspect;
10813
+ message[customJson] = ListInstancesByNVLInstanceGroupRequestCustomJson;
10814
+ return attachMessageDescriptor(message, ListInstancesByNVLInstanceGroupRequest.$descriptor);
10815
+ }
10816
+ function createBaseListInstancesByNVLInstanceGroupRequest() {
10817
+ const message = {
10818
+ $type: "nebius.compute.v1.ListInstancesByNVLInstanceGroupRequest",
10819
+ nvlInstanceGroupId: "",
10820
+ pageSize: Long.ZERO,
10821
+ pageToken: "",
10822
+ };
10823
+ return applyListInstancesByNVLInstanceGroupRequestCustom(message);
10824
+ }
10674
10825
  const BatchGetRequest_MESSAGE_DESCRIPTOR = {
10675
10826
  fields: {
10676
10827
  "instanceIds": { pbName: "instance_ids", scalarType: 9, repeated: true },
@@ -11125,6 +11276,17 @@ export const InstanceServiceServiceDescription = {
11125
11276
  responseSerialize: (value) => Buffer.from(ListInstancesResponse.encode(value).finish()),
11126
11277
  responseDeserialize: (value) => ListInstancesResponse.decode(value),
11127
11278
  },
11279
+ listInstancesByNVLInstanceGroup: {
11280
+ path: "/nebius.compute.v1.InstanceService/ListInstancesByNVLInstanceGroup",
11281
+ requestStream: false,
11282
+ responseStream: false,
11283
+ requestSerialize: (value) => Buffer.from(ListInstancesByNVLInstanceGroupRequest.encode(value).finish()),
11284
+ requestDescriptor: () => ListInstancesByNVLInstanceGroupRequest.$descriptor,
11285
+ sendResetMask: false,
11286
+ requestDeserialize: (value) => ListInstancesByNVLInstanceGroupRequest.decode(value),
11287
+ responseSerialize: (value) => Buffer.from(ListInstancesResponse.encode(value).finish()),
11288
+ responseDeserialize: (value) => ListInstancesResponse.decode(value),
11289
+ },
11128
11290
  create: {
11129
11291
  path: "/nebius.compute.v1.InstanceService/Create",
11130
11292
  requestStream: false,
@@ -11240,6 +11402,14 @@ export class InstanceService {
11240
11402
  const deserialize = spec.responseDeserialize;
11241
11403
  return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
11242
11404
  }
11405
+ listInstancesByNVLInstanceGroup(...args) {
11406
+ const spec = this.spec.listInstancesByNVLInstanceGroup;
11407
+ const request = args[0];
11408
+ const metadata = (args.length > 1 ? args[1] : undefined);
11409
+ const options = (args.length > 2 ? args[2] : undefined);
11410
+ const deserialize = spec.responseDeserialize;
11411
+ return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
11412
+ }
11243
11413
  create(...args) {
11244
11414
  const spec = this.spec.create;
11245
11415
  const request = args[0];
@@ -11307,6 +11477,7 @@ export class InstanceService {
11307
11477
  export const InstanceRecoveryPolicy = createEnum("nebius.compute.v1.InstanceRecoveryPolicy", {
11308
11478
  RECOVER: 0,
11309
11479
  FAIL: 1,
11480
+ ALWAYS: 2,
11310
11481
  });
11311
11482
  protoRegistry.registerEnum(InstanceRecoveryPolicy);
11312
11483
  export const PreemptibleSpec_PreemptionPolicy = createEnum("nebius.compute.v1.PreemptibleSpec.PreemptionPolicy", {
@@ -15575,6 +15746,7 @@ const NetworkInterfaceStatus_MESSAGE_DESCRIPTOR = {
15575
15746
  "aliases": { pbName: "aliases", message: () => IPAliasesStatus.$descriptor },
15576
15747
  "macAddress": { pbName: "mac_address", scalarType: 9 },
15577
15748
  "fqdn": { pbName: "fqdn", scalarType: 9 },
15749
+ "securityGroups": { pbName: "security_groups", repeated: true, message: () => SecurityGroupStatus.$descriptor },
15578
15750
  },
15579
15751
  };
15580
15752
  export const NetworkInterfaceStatus = {
@@ -15608,6 +15780,11 @@ export const NetworkInterfaceStatus = {
15608
15780
  if (message.fqdn !== "") {
15609
15781
  writer.uint32(74).string(message.fqdn);
15610
15782
  }
15783
+ for (const v of (message.securityGroups ?? [])) {
15784
+ const w = writer.uint32(82).fork();
15785
+ SecurityGroupStatus.encode(v, w);
15786
+ w.join();
15787
+ }
15611
15788
  if (message[unknownFieldsSymbol]) {
15612
15789
  writer.raw(message[unknownFieldsSymbol]);
15613
15790
  }
@@ -15663,6 +15840,12 @@ export const NetworkInterfaceStatus = {
15663
15840
  message.fqdn = reader.string();
15664
15841
  continue;
15665
15842
  }
15843
+ case 10: {
15844
+ if (tag !== 82)
15845
+ break;
15846
+ message.securityGroups.push(SecurityGroupStatus.decode(reader, reader.uint32()));
15847
+ continue;
15848
+ }
15666
15849
  default:
15667
15850
  break;
15668
15851
  }
@@ -15705,6 +15888,9 @@ export const NetworkInterfaceStatus = {
15705
15888
  fqdn: isSet(object.fqdn ?? object.fqdn)
15706
15889
  ? String(object.fqdn ?? object.fqdn)
15707
15890
  : "",
15891
+ securityGroups: globalThis.Array.isArray(object?.securityGroups ?? object?.security_groups)
15892
+ ? (object.securityGroups ?? object.security_groups).map((e) => SecurityGroupStatus.fromJSON(e))
15893
+ : [],
15708
15894
  });
15709
15895
  },
15710
15896
  toJSON(message, use = "json") {
@@ -15737,6 +15923,9 @@ export const NetworkInterfaceStatus = {
15737
15923
  if (message.fqdn !== "") {
15738
15924
  obj[pick("fqdn", "fqdn")] = message.fqdn;
15739
15925
  }
15926
+ if (message.securityGroups?.length) {
15927
+ obj[pick("securityGroups", "security_groups")] = message.securityGroups.map((e) => e ? SecurityGroupStatus.toJSON(e, use) : undefined);
15928
+ }
15740
15929
  return obj;
15741
15930
  },
15742
15931
  create(base) {
@@ -15765,6 +15954,7 @@ export const NetworkInterfaceStatus = {
15765
15954
  message.fqdn = (object.fqdn !== undefined && object.fqdn !== null)
15766
15955
  ? object.fqdn
15767
15956
  : "";
15957
+ message.securityGroups = object.securityGroups?.map((e) => SecurityGroupStatus.fromPartial(e)) || [];
15768
15958
  return message;
15769
15959
  },
15770
15960
  };
@@ -15785,6 +15975,8 @@ function NetworkInterfaceStatusCustomInspect() {
15785
15975
  parts.push("macAddress" + "=" + inspect(this.macAddress));
15786
15976
  if (this.fqdn !== "")
15787
15977
  parts.push("fqdn" + "=" + inspect(this.fqdn));
15978
+ if ((this.securityGroups?.length ?? 0) !== 0)
15979
+ parts.push("securityGroups" + "=" + inspect(this.securityGroups));
15788
15980
  return `${this.$type}(${parts.join(", ")})`;
15789
15981
  }
15790
15982
  function NetworkInterfaceStatusCustomJson() {
@@ -15805,6 +15997,8 @@ function NetworkInterfaceStatusCustomJson() {
15805
15997
  obj.macAddress = inspectJson(this.macAddress);
15806
15998
  if (this.fqdn !== "")
15807
15999
  obj.fqdn = inspectJson(this.fqdn);
16000
+ if ((this.securityGroups?.length ?? 0) !== 0)
16001
+ obj.securityGroups = inspectJson(this.securityGroups);
15808
16002
  return obj;
15809
16003
  }
15810
16004
  function applyNetworkInterfaceStatusCustom(message) {
@@ -15822,6 +16016,7 @@ function createBaseNetworkInterfaceStatus() {
15822
16016
  aliases: undefined,
15823
16017
  macAddress: "",
15824
16018
  fqdn: "",
16019
+ securityGroups: [],
15825
16020
  };
15826
16021
  return applyNetworkInterfaceStatusCustom(message);
15827
16022
  }
@@ -16307,6 +16502,109 @@ function createBaseSecurityGroup() {
16307
16502
  };
16308
16503
  return applySecurityGroupCustom(message);
16309
16504
  }
16505
+ const SecurityGroupStatus_MESSAGE_DESCRIPTOR = {
16506
+ fields: {
16507
+ "id": { pbName: "id", scalarType: 9 },
16508
+ },
16509
+ };
16510
+ export const SecurityGroupStatus = {
16511
+ $type: "nebius.compute.v1.SecurityGroupStatus",
16512
+ $descriptor: SecurityGroupStatus_MESSAGE_DESCRIPTOR,
16513
+ encode(message, writer = new BinaryWriter()) {
16514
+ if (message.id !== "") {
16515
+ writer.uint32(10).string(message.id);
16516
+ }
16517
+ if (message[unknownFieldsSymbol]) {
16518
+ writer.raw(message[unknownFieldsSymbol]);
16519
+ }
16520
+ return writer;
16521
+ },
16522
+ decode(input, length) {
16523
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
16524
+ const end = length === undefined ? reader.len : reader.pos + length;
16525
+ const message = createBaseSecurityGroupStatus();
16526
+ let writer = undefined;
16527
+ while (reader.pos < end) {
16528
+ const tag = reader.uint32();
16529
+ switch (tag >>> 3) {
16530
+ case 1: {
16531
+ if (tag !== 10)
16532
+ break;
16533
+ message.id = reader.string();
16534
+ continue;
16535
+ }
16536
+ default:
16537
+ break;
16538
+ }
16539
+ if ((tag & 7) === 4 || tag === 0) {
16540
+ break;
16541
+ }
16542
+ {
16543
+ if (!writer)
16544
+ writer = new BinaryWriter();
16545
+ const skipped = reader.skip(tag & 7, tag >>> 3);
16546
+ writer.uint32(tag).raw(skipped);
16547
+ }
16548
+ }
16549
+ if (writer) {
16550
+ message[unknownFieldsSymbol] = writer.finish();
16551
+ }
16552
+ return message;
16553
+ },
16554
+ fromJSON(object) {
16555
+ return applySecurityGroupStatusCustom({
16556
+ $type: "nebius.compute.v1.SecurityGroupStatus",
16557
+ id: isSet(object.id ?? object.id)
16558
+ ? String(object.id ?? object.id)
16559
+ : "",
16560
+ });
16561
+ },
16562
+ toJSON(message, use = "json") {
16563
+ const obj = {};
16564
+ const pick = (json, pb) => (use === "json" ? json : pb);
16565
+ if (message.id !== "") {
16566
+ obj[pick("id", "id")] = message.id;
16567
+ }
16568
+ return obj;
16569
+ },
16570
+ create(base) {
16571
+ return SecurityGroupStatus.fromPartial(base ?? {});
16572
+ },
16573
+ fromPartial(object) {
16574
+ const message = createBaseSecurityGroupStatus();
16575
+ message.id = (object.id !== undefined && object.id !== null)
16576
+ ? object.id
16577
+ : "";
16578
+ return message;
16579
+ },
16580
+ };
16581
+ protoRegistry.registerMessage(SecurityGroupStatus);
16582
+ function SecurityGroupStatusCustomInspect() {
16583
+ const parts = [];
16584
+ if (this.id !== "")
16585
+ parts.push("id" + "=" + inspect(this.id));
16586
+ return `${this.$type}(${parts.join(", ")})`;
16587
+ }
16588
+ function SecurityGroupStatusCustomJson() {
16589
+ const obj = {
16590
+ type: this.$type,
16591
+ };
16592
+ if (this.id !== "")
16593
+ obj.id = inspectJson(this.id);
16594
+ return obj;
16595
+ }
16596
+ function applySecurityGroupStatusCustom(message) {
16597
+ message[custom] = SecurityGroupStatusCustomInspect;
16598
+ message[customJson] = SecurityGroupStatusCustomJson;
16599
+ return attachMessageDescriptor(message, SecurityGroupStatus.$descriptor);
16600
+ }
16601
+ function createBaseSecurityGroupStatus() {
16602
+ const message = {
16603
+ $type: "nebius.compute.v1.SecurityGroupStatus",
16604
+ id: "",
16605
+ };
16606
+ return applySecurityGroupStatusCustom(message);
16607
+ }
16310
16608
  const NodeSetUnhealthyRequest_MESSAGE_DESCRIPTOR = {
16311
16609
  fields: {
16312
16610
  "instanceId": { pbName: "instance_id", scalarType: 9 },