@nebius/js-sdk 0.2.46 → 0.2.48

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.
@@ -754,6 +754,7 @@ const BadRequest_Violation_MESSAGE_DESCRIPTOR = {
754
754
  fields: {
755
755
  "field": { pbName: "field", scalarType: 9 },
756
756
  "message": { pbName: "message", scalarType: 9 },
757
+ "relatedFields": { pbName: "related_fields", scalarType: 9, repeated: true },
757
758
  },
758
759
  };
759
760
  /** Encodes, decodes, converts, and creates {@link BadRequest_Violation} messages. */
@@ -767,6 +768,9 @@ export const BadRequest_Violation = {
767
768
  if (message.message !== "") {
768
769
  writer.uint32(18).string(message.message);
769
770
  }
771
+ for (const v of (message.relatedFields ?? [])) {
772
+ writer.uint32(26).string(v);
773
+ }
770
774
  if (message[unknownFieldsSymbol]) {
771
775
  writer.raw(message[unknownFieldsSymbol]);
772
776
  }
@@ -792,6 +796,12 @@ export const BadRequest_Violation = {
792
796
  message.message = reader.string();
793
797
  continue;
794
798
  }
799
+ case 3: {
800
+ if (tag !== 26)
801
+ break;
802
+ message.relatedFields.push(reader.string());
803
+ continue;
804
+ }
795
805
  default:
796
806
  break;
797
807
  }
@@ -819,6 +829,9 @@ export const BadRequest_Violation = {
819
829
  message: isSet(object.message ?? object.message)
820
830
  ? String(object.message ?? object.message)
821
831
  : "",
832
+ relatedFields: globalThis.Array.isArray(object?.relatedFields ?? object?.related_fields)
833
+ ? (object.relatedFields ?? object.related_fields).map((e) => String(e))
834
+ : [],
822
835
  });
823
836
  },
824
837
  toJSON(message, use = "json") {
@@ -830,6 +843,9 @@ export const BadRequest_Violation = {
830
843
  if (message.message !== "") {
831
844
  obj[pick("message", "message")] = message.message;
832
845
  }
846
+ if (message.relatedFields?.length) {
847
+ obj[pick("relatedFields", "related_fields")] = message.relatedFields.map((e) => e);
848
+ }
833
849
  return obj;
834
850
  },
835
851
  create(base) {
@@ -843,6 +859,7 @@ export const BadRequest_Violation = {
843
859
  message.message = (object.message !== undefined && object.message !== null)
844
860
  ? object.message
845
861
  : "";
862
+ message.relatedFields = object.relatedFields?.map((e) => e) || [];
846
863
  return message;
847
864
  },
848
865
  };
@@ -853,6 +870,8 @@ function BadRequest_ViolationCustomInspect() {
853
870
  parts.push("field" + "=" + inspect(this.field));
854
871
  if (this.message !== "")
855
872
  parts.push("message" + "=" + inspect(this.message));
873
+ if ((this.relatedFields?.length ?? 0) !== 0)
874
+ parts.push("relatedFields" + "=" + inspect(this.relatedFields));
856
875
  return `${this.$type}(${parts.join(", ")})`;
857
876
  }
858
877
  function BadRequest_ViolationCustomJson() {
@@ -863,6 +882,8 @@ function BadRequest_ViolationCustomJson() {
863
882
  obj.field = inspectJson(this.field);
864
883
  if (this.message !== "")
865
884
  obj.message = inspectJson(this.message);
885
+ if ((this.relatedFields?.length ?? 0) !== 0)
886
+ obj.relatedFields = inspectJson(this.relatedFields);
866
887
  return obj;
867
888
  }
868
889
  function applyBadRequest_ViolationCustom(message) {
@@ -875,6 +896,7 @@ function createBaseBadRequest_Violation() {
875
896
  $type: "nebius.common.v1.BadRequest.Violation",
876
897
  field: "",
877
898
  message: "",
899
+ relatedFields: [],
878
900
  };
879
901
  return applyBadRequest_ViolationCustom(message);
880
902
  }