@nebius/js-sdk 0.2.22 → 0.2.23

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.
@@ -1,5 +1,5 @@
1
1
  /* Generated by Nebius TS generator. DO NOT EDIT! */
2
- import { BinaryReader, BinaryWriter, isSet, Long, wkt, createEnum, unknownFieldsSymbol } from "../../../../runtime/protos/index.js";
2
+ import { BinaryReader, BinaryWriter, isSet, Long, bytesFromBase64, base64FromBytes, wkt, createEnum, unknownFieldsSymbol } from "../../../../runtime/protos/index.js";
3
3
  import { inspect } from "util";
4
4
  import { protoRegistry } from "../../../protobuf.js";
5
5
  import { custom, customJson, inspectJson } from "../../../../runtime/util/logging.js";
@@ -1456,6 +1456,11 @@ export const EndpointSpec = {
1456
1456
  EndpointSpec_MysteryBoxSecretRef.encode(message.authTokenMysteryboxSecret, w);
1457
1457
  w.join();
1458
1458
  }
1459
+ for (const v of (message.injectedFiles ?? [])) {
1460
+ const w = writer.uint32(258).fork();
1461
+ EndpointSpec_FileInjection.encode(v, w);
1462
+ w.join();
1463
+ }
1459
1464
  if (message[unknownFieldsSymbol]) {
1460
1465
  writer.raw(message[unknownFieldsSymbol]);
1461
1466
  }
@@ -1577,6 +1582,12 @@ export const EndpointSpec = {
1577
1582
  message.authTokenMysteryboxSecret = EndpointSpec_MysteryBoxSecretRef.decode(reader, reader.uint32());
1578
1583
  continue;
1579
1584
  }
1585
+ case 32: {
1586
+ if (tag !== 258)
1587
+ break;
1588
+ message.injectedFiles.push(EndpointSpec_FileInjection.decode(reader, reader.uint32()));
1589
+ continue;
1590
+ }
1580
1591
  default:
1581
1592
  break;
1582
1593
  }
@@ -1652,6 +1663,9 @@ export const EndpointSpec = {
1652
1663
  authTokenMysteryboxSecret: isSet(object.authTokenMysteryboxSecret ?? object.auth_token_mysterybox_secret)
1653
1664
  ? EndpointSpec_MysteryBoxSecretRef.fromJSON(object.authTokenMysteryboxSecret ?? object.auth_token_mysterybox_secret)
1654
1665
  : undefined,
1666
+ injectedFiles: globalThis.Array.isArray(object?.injectedFiles ?? object?.injected_files)
1667
+ ? (object.injectedFiles ?? object.injected_files).map((e) => EndpointSpec_FileInjection.fromJSON(e))
1668
+ : [],
1655
1669
  });
1656
1670
  },
1657
1671
  toJSON(message, use = "json") {
@@ -1717,6 +1731,9 @@ export const EndpointSpec = {
1717
1731
  ? EndpointSpec_MysteryBoxSecretRef.toJSON(message.authTokenMysteryboxSecret, use)
1718
1732
  : undefined;
1719
1733
  }
1734
+ if (message.injectedFiles?.length) {
1735
+ obj[pick("injectedFiles", "injected_files")] = message.injectedFiles.map((e) => e ? EndpointSpec_FileInjection.toJSON(e, use) : undefined);
1736
+ }
1720
1737
  return obj;
1721
1738
  },
1722
1739
  create(base) {
@@ -1770,6 +1787,7 @@ export const EndpointSpec = {
1770
1787
  message.authTokenMysteryboxSecret = (object.authTokenMysteryboxSecret !== undefined && object.authTokenMysteryboxSecret !== null)
1771
1788
  ? EndpointSpec_MysteryBoxSecretRef.fromPartial(object.authTokenMysteryboxSecret)
1772
1789
  : undefined;
1790
+ message.injectedFiles = object.injectedFiles?.map((e) => EndpointSpec_FileInjection.fromPartial(e)) || [];
1773
1791
  return message;
1774
1792
  },
1775
1793
  };
@@ -1812,6 +1830,8 @@ function EndpointSpecCustomInspect() {
1812
1830
  parts.push("authToken" + "=***");
1813
1831
  if (this.authTokenMysteryboxSecret !== undefined)
1814
1832
  parts.push("authTokenMysteryboxSecret" + "=" + inspect(this.authTokenMysteryboxSecret));
1833
+ if ((this.injectedFiles?.length ?? 0) !== 0)
1834
+ parts.push("injectedFiles" + "=" + inspect(this.injectedFiles));
1815
1835
  return `${this.$type}(${parts.join(", ")})`;
1816
1836
  }
1817
1837
  function EndpointSpecCustomJson() {
@@ -1854,6 +1874,8 @@ function EndpointSpecCustomJson() {
1854
1874
  obj.authToken = "***";
1855
1875
  if (this.authTokenMysteryboxSecret !== undefined)
1856
1876
  obj.authTokenMysteryboxSecret = inspectJson(this.authTokenMysteryboxSecret);
1877
+ if ((this.injectedFiles?.length ?? 0) !== 0)
1878
+ obj.injectedFiles = inspectJson(this.injectedFiles);
1857
1879
  return obj;
1858
1880
  }
1859
1881
  function applyEndpointSpecCustom(message) {
@@ -1882,6 +1904,7 @@ function createBaseEndpointSpec() {
1882
1904
  preemptible: false,
1883
1905
  authToken: "",
1884
1906
  authTokenMysteryboxSecret: undefined,
1907
+ injectedFiles: [],
1885
1908
  };
1886
1909
  return applyEndpointSpecCustom(message);
1887
1910
  }
@@ -3108,6 +3131,126 @@ function createBaseEndpointSpec_RegistryCredentials() {
3108
3131
  };
3109
3132
  return applyEndpointSpec_RegistryCredentialsCustom(message);
3110
3133
  }
3134
+ export const EndpointSpec_FileInjection = {
3135
+ $type: "nebius.ai.v1.EndpointSpec.FileInjection",
3136
+ encode(message, writer = new BinaryWriter()) {
3137
+ if (message.containerPath !== "") {
3138
+ writer.uint32(10).string(message.containerPath);
3139
+ }
3140
+ if ((message.content?.length ?? 0) !== 0) {
3141
+ writer.uint32(18).bytes(message.content);
3142
+ }
3143
+ if (message[unknownFieldsSymbol]) {
3144
+ writer.raw(message[unknownFieldsSymbol]);
3145
+ }
3146
+ return writer;
3147
+ },
3148
+ decode(input, length) {
3149
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3150
+ const end = length === undefined ? reader.len : reader.pos + length;
3151
+ const message = createBaseEndpointSpec_FileInjection();
3152
+ let writer = undefined;
3153
+ while (reader.pos < end) {
3154
+ const tag = reader.uint32();
3155
+ switch (tag >>> 3) {
3156
+ case 1: {
3157
+ if (tag !== 10)
3158
+ break;
3159
+ message.containerPath = reader.string();
3160
+ continue;
3161
+ }
3162
+ case 2: {
3163
+ if (tag !== 18)
3164
+ break;
3165
+ message.content = reader.bytes();
3166
+ continue;
3167
+ }
3168
+ default:
3169
+ break;
3170
+ }
3171
+ if ((tag & 7) === 4 || tag === 0) {
3172
+ break;
3173
+ }
3174
+ {
3175
+ if (!writer)
3176
+ writer = new BinaryWriter();
3177
+ const skipped = reader.skip(tag & 7, tag >>> 3);
3178
+ writer.uint32(tag).raw(skipped);
3179
+ }
3180
+ }
3181
+ if (writer) {
3182
+ message[unknownFieldsSymbol] = writer.finish();
3183
+ }
3184
+ return message;
3185
+ },
3186
+ fromJSON(object) {
3187
+ return applyEndpointSpec_FileInjectionCustom({
3188
+ $type: "nebius.ai.v1.EndpointSpec.FileInjection",
3189
+ containerPath: isSet(object.containerPath ?? object.container_path)
3190
+ ? String(object.containerPath ?? object.container_path)
3191
+ : "",
3192
+ content: isSet(object.content ?? object.content)
3193
+ ? bytesFromBase64(object.content ?? object.content)
3194
+ : new Uint8Array(0),
3195
+ });
3196
+ },
3197
+ toJSON(message, use = "json") {
3198
+ const obj = {};
3199
+ const pick = (json, pb) => (use === "json" ? json : pb);
3200
+ if (message.containerPath !== "") {
3201
+ obj[pick("containerPath", "container_path")] = message.containerPath;
3202
+ }
3203
+ if ((message.content?.length ?? 0) !== 0) {
3204
+ obj[pick("content", "content")] = base64FromBytes(message.content);
3205
+ }
3206
+ return obj;
3207
+ },
3208
+ create(base) {
3209
+ return EndpointSpec_FileInjection.fromPartial(base ?? {});
3210
+ },
3211
+ fromPartial(object) {
3212
+ const message = createBaseEndpointSpec_FileInjection();
3213
+ message.containerPath = (object.containerPath !== undefined && object.containerPath !== null)
3214
+ ? object.containerPath
3215
+ : "";
3216
+ message.content = (object.content !== undefined && object.content !== null)
3217
+ ? object.content
3218
+ : new Uint8Array(0);
3219
+ return message;
3220
+ },
3221
+ };
3222
+ protoRegistry.registerMessage(EndpointSpec_FileInjection);
3223
+ function EndpointSpec_FileInjectionCustomInspect() {
3224
+ const parts = [];
3225
+ if (this.containerPath !== "")
3226
+ parts.push("containerPath" + "=" + inspect(this.containerPath));
3227
+ if ((this.content?.length ?? 0) !== 0)
3228
+ parts.push("content" + "=***");
3229
+ return `${this.$type}(${parts.join(", ")})`;
3230
+ }
3231
+ function EndpointSpec_FileInjectionCustomJson() {
3232
+ const obj = {
3233
+ type: this.$type,
3234
+ };
3235
+ if (this.containerPath !== "")
3236
+ obj.containerPath = inspectJson(this.containerPath);
3237
+ if ((this.content?.length ?? 0) !== 0)
3238
+ obj.content = "***";
3239
+ return obj;
3240
+ }
3241
+ function applyEndpointSpec_FileInjectionCustom(message) {
3242
+ message[custom] = EndpointSpec_FileInjectionCustomInspect;
3243
+ message[customJson] = EndpointSpec_FileInjectionCustomJson;
3244
+ return message;
3245
+ }
3246
+ function createBaseEndpointSpec_FileInjection() {
3247
+ const message = {
3248
+ $type: "nebius.ai.v1.EndpointSpec.FileInjection",
3249
+ containerPath: "",
3250
+ content: new Uint8Array(0),
3251
+ };
3252
+ return applyEndpointSpec_FileInjectionCustom(message);
3253
+ }
3111
3254
  export const EndpointSpec_MysteryBoxSecretRef = {
3112
3255
  $type: "nebius.ai.v1.EndpointSpec.MysteryBoxSecretRef",
3113
3256
  encode(message, writer = new BinaryWriter()) {
@@ -3117,6 +3260,9 @@ export const EndpointSpec_MysteryBoxSecretRef = {
3117
3260
  if (message.versionId !== "") {
3118
3261
  writer.uint32(18).string(message.versionId);
3119
3262
  }
3263
+ if (message.key !== "") {
3264
+ writer.uint32(26).string(message.key);
3265
+ }
3120
3266
  if (message[unknownFieldsSymbol]) {
3121
3267
  writer.raw(message[unknownFieldsSymbol]);
3122
3268
  }
@@ -3142,6 +3288,12 @@ export const EndpointSpec_MysteryBoxSecretRef = {
3142
3288
  message.versionId = reader.string();
3143
3289
  continue;
3144
3290
  }
3291
+ case 3: {
3292
+ if (tag !== 26)
3293
+ break;
3294
+ message.key = reader.string();
3295
+ continue;
3296
+ }
3145
3297
  default:
3146
3298
  break;
3147
3299
  }
@@ -3169,6 +3321,9 @@ export const EndpointSpec_MysteryBoxSecretRef = {
3169
3321
  versionId: isSet(object.versionId ?? object.version_id)
3170
3322
  ? String(object.versionId ?? object.version_id)
3171
3323
  : "",
3324
+ key: isSet(object.key ?? object.key)
3325
+ ? String(object.key ?? object.key)
3326
+ : "",
3172
3327
  });
3173
3328
  },
3174
3329
  toJSON(message, use = "json") {
@@ -3180,6 +3335,9 @@ export const EndpointSpec_MysteryBoxSecretRef = {
3180
3335
  if (message.versionId !== "") {
3181
3336
  obj[pick("versionId", "version_id")] = message.versionId;
3182
3337
  }
3338
+ if (message.key !== "") {
3339
+ obj[pick("key", "key")] = message.key;
3340
+ }
3183
3341
  return obj;
3184
3342
  },
3185
3343
  create(base) {
@@ -3193,6 +3351,9 @@ export const EndpointSpec_MysteryBoxSecretRef = {
3193
3351
  message.versionId = (object.versionId !== undefined && object.versionId !== null)
3194
3352
  ? object.versionId
3195
3353
  : "";
3354
+ message.key = (object.key !== undefined && object.key !== null)
3355
+ ? object.key
3356
+ : "";
3196
3357
  return message;
3197
3358
  },
3198
3359
  };
@@ -3203,6 +3364,8 @@ function EndpointSpec_MysteryBoxSecretRefCustomInspect() {
3203
3364
  parts.push("secretId" + "=" + inspect(this.secretId));
3204
3365
  if (this.versionId !== "")
3205
3366
  parts.push("versionId" + "=" + inspect(this.versionId));
3367
+ if (this.key !== "")
3368
+ parts.push("key" + "=" + inspect(this.key));
3206
3369
  return `${this.$type}(${parts.join(", ")})`;
3207
3370
  }
3208
3371
  function EndpointSpec_MysteryBoxSecretRefCustomJson() {
@@ -3213,6 +3376,8 @@ function EndpointSpec_MysteryBoxSecretRefCustomJson() {
3213
3376
  obj.secretId = inspectJson(this.secretId);
3214
3377
  if (this.versionId !== "")
3215
3378
  obj.versionId = inspectJson(this.versionId);
3379
+ if (this.key !== "")
3380
+ obj.key = inspectJson(this.key);
3216
3381
  return obj;
3217
3382
  }
3218
3383
  function applyEndpointSpec_MysteryBoxSecretRefCustom(message) {
@@ -3225,6 +3390,7 @@ function createBaseEndpointSpec_MysteryBoxSecretRef() {
3225
3390
  $type: "nebius.ai.v1.EndpointSpec.MysteryBoxSecretRef",
3226
3391
  secretId: "",
3227
3392
  versionId: "",
3393
+ key: "",
3228
3394
  };
3229
3395
  return applyEndpointSpec_MysteryBoxSecretRefCustom(message);
3230
3396
  }
@@ -5079,6 +5245,11 @@ export const JobSpec = {
5079
5245
  wkt[".google.protobuf.Duration"].writeMessage(w, message.timeout);
5080
5246
  w.join();
5081
5247
  }
5248
+ for (const v of (message.injectedFiles ?? [])) {
5249
+ const w = writer.uint32(258).fork();
5250
+ JobSpec_FileInjection.encode(v, w);
5251
+ w.join();
5252
+ }
5082
5253
  if (message[unknownFieldsSymbol]) {
5083
5254
  writer.raw(message[unknownFieldsSymbol]);
5084
5255
  }
@@ -5201,6 +5372,12 @@ export const JobSpec = {
5201
5372
  message.timeout = wkt[".google.protobuf.Duration"].readMessage(reader, len);
5202
5373
  continue;
5203
5374
  }
5375
+ case 32: {
5376
+ if (tag !== 258)
5377
+ break;
5378
+ message.injectedFiles.push(JobSpec_FileInjection.decode(reader, reader.uint32()));
5379
+ continue;
5380
+ }
5204
5381
  default:
5205
5382
  break;
5206
5383
  }
@@ -5276,6 +5453,9 @@ export const JobSpec = {
5276
5453
  timeout: isSet(object.timeout ?? object.timeout)
5277
5454
  ? wkt[".google.protobuf.Duration"].fromJSON(object.timeout ?? object.timeout)
5278
5455
  : undefined,
5456
+ injectedFiles: globalThis.Array.isArray(object?.injectedFiles ?? object?.injected_files)
5457
+ ? (object.injectedFiles ?? object.injected_files).map((e) => JobSpec_FileInjection.fromJSON(e))
5458
+ : [],
5279
5459
  });
5280
5460
  },
5281
5461
  toJSON(message, use = "json") {
@@ -5339,6 +5519,9 @@ export const JobSpec = {
5339
5519
  if (message.timeout !== undefined) {
5340
5520
  obj[pick("timeout", "timeout")] = wkt[".google.protobuf.Duration"].toJSON(message.timeout, use);
5341
5521
  }
5522
+ if (message.injectedFiles?.length) {
5523
+ obj[pick("injectedFiles", "injected_files")] = message.injectedFiles.map((e) => e ? JobSpec_FileInjection.toJSON(e, use) : undefined);
5524
+ }
5342
5525
  return obj;
5343
5526
  },
5344
5527
  create(base) {
@@ -5392,6 +5575,7 @@ export const JobSpec = {
5392
5575
  message.timeout = (object.timeout !== undefined && object.timeout !== null)
5393
5576
  ? wkt[".google.protobuf.Duration"].fromPartial(object.timeout)
5394
5577
  : undefined;
5578
+ message.injectedFiles = object.injectedFiles?.map((e) => JobSpec_FileInjection.fromPartial(e)) || [];
5395
5579
  return message;
5396
5580
  },
5397
5581
  };
@@ -5434,6 +5618,8 @@ function JobSpecCustomInspect() {
5434
5618
  parts.push("restartAttempts" + "=" + inspect(this.restartAttempts));
5435
5619
  if (this.timeout !== undefined)
5436
5620
  parts.push("timeout" + "=" + inspect(this.timeout));
5621
+ if ((this.injectedFiles?.length ?? 0) !== 0)
5622
+ parts.push("injectedFiles" + "=" + inspect(this.injectedFiles));
5437
5623
  return `${this.$type}(${parts.join(", ")})`;
5438
5624
  }
5439
5625
  function JobSpecCustomJson() {
@@ -5476,6 +5662,8 @@ function JobSpecCustomJson() {
5476
5662
  obj.restartAttempts = inspectJson(this.restartAttempts);
5477
5663
  if (this.timeout !== undefined)
5478
5664
  obj.timeout = inspectJson(this.timeout);
5665
+ if ((this.injectedFiles?.length ?? 0) !== 0)
5666
+ obj.injectedFiles = inspectJson(this.injectedFiles);
5479
5667
  return obj;
5480
5668
  }
5481
5669
  function applyJobSpecCustom(message) {
@@ -5504,6 +5692,7 @@ function createBaseJobSpec() {
5504
5692
  preemptible: false,
5505
5693
  restartAttempts: Long.ZERO,
5506
5694
  timeout: undefined,
5695
+ injectedFiles: [],
5507
5696
  };
5508
5697
  return applyJobSpecCustom(message);
5509
5698
  }
@@ -6730,6 +6919,126 @@ function createBaseJobSpec_RegistryCredentials() {
6730
6919
  };
6731
6920
  return applyJobSpec_RegistryCredentialsCustom(message);
6732
6921
  }
6922
+ export const JobSpec_FileInjection = {
6923
+ $type: "nebius.ai.v1.JobSpec.FileInjection",
6924
+ encode(message, writer = new BinaryWriter()) {
6925
+ if (message.containerPath !== "") {
6926
+ writer.uint32(10).string(message.containerPath);
6927
+ }
6928
+ if ((message.content?.length ?? 0) !== 0) {
6929
+ writer.uint32(18).bytes(message.content);
6930
+ }
6931
+ if (message[unknownFieldsSymbol]) {
6932
+ writer.raw(message[unknownFieldsSymbol]);
6933
+ }
6934
+ return writer;
6935
+ },
6936
+ decode(input, length) {
6937
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
6938
+ const end = length === undefined ? reader.len : reader.pos + length;
6939
+ const message = createBaseJobSpec_FileInjection();
6940
+ let writer = undefined;
6941
+ while (reader.pos < end) {
6942
+ const tag = reader.uint32();
6943
+ switch (tag >>> 3) {
6944
+ case 1: {
6945
+ if (tag !== 10)
6946
+ break;
6947
+ message.containerPath = reader.string();
6948
+ continue;
6949
+ }
6950
+ case 2: {
6951
+ if (tag !== 18)
6952
+ break;
6953
+ message.content = reader.bytes();
6954
+ continue;
6955
+ }
6956
+ default:
6957
+ break;
6958
+ }
6959
+ if ((tag & 7) === 4 || tag === 0) {
6960
+ break;
6961
+ }
6962
+ {
6963
+ if (!writer)
6964
+ writer = new BinaryWriter();
6965
+ const skipped = reader.skip(tag & 7, tag >>> 3);
6966
+ writer.uint32(tag).raw(skipped);
6967
+ }
6968
+ }
6969
+ if (writer) {
6970
+ message[unknownFieldsSymbol] = writer.finish();
6971
+ }
6972
+ return message;
6973
+ },
6974
+ fromJSON(object) {
6975
+ return applyJobSpec_FileInjectionCustom({
6976
+ $type: "nebius.ai.v1.JobSpec.FileInjection",
6977
+ containerPath: isSet(object.containerPath ?? object.container_path)
6978
+ ? String(object.containerPath ?? object.container_path)
6979
+ : "",
6980
+ content: isSet(object.content ?? object.content)
6981
+ ? bytesFromBase64(object.content ?? object.content)
6982
+ : new Uint8Array(0),
6983
+ });
6984
+ },
6985
+ toJSON(message, use = "json") {
6986
+ const obj = {};
6987
+ const pick = (json, pb) => (use === "json" ? json : pb);
6988
+ if (message.containerPath !== "") {
6989
+ obj[pick("containerPath", "container_path")] = message.containerPath;
6990
+ }
6991
+ if ((message.content?.length ?? 0) !== 0) {
6992
+ obj[pick("content", "content")] = base64FromBytes(message.content);
6993
+ }
6994
+ return obj;
6995
+ },
6996
+ create(base) {
6997
+ return JobSpec_FileInjection.fromPartial(base ?? {});
6998
+ },
6999
+ fromPartial(object) {
7000
+ const message = createBaseJobSpec_FileInjection();
7001
+ message.containerPath = (object.containerPath !== undefined && object.containerPath !== null)
7002
+ ? object.containerPath
7003
+ : "";
7004
+ message.content = (object.content !== undefined && object.content !== null)
7005
+ ? object.content
7006
+ : new Uint8Array(0);
7007
+ return message;
7008
+ },
7009
+ };
7010
+ protoRegistry.registerMessage(JobSpec_FileInjection);
7011
+ function JobSpec_FileInjectionCustomInspect() {
7012
+ const parts = [];
7013
+ if (this.containerPath !== "")
7014
+ parts.push("containerPath" + "=" + inspect(this.containerPath));
7015
+ if ((this.content?.length ?? 0) !== 0)
7016
+ parts.push("content" + "=***");
7017
+ return `${this.$type}(${parts.join(", ")})`;
7018
+ }
7019
+ function JobSpec_FileInjectionCustomJson() {
7020
+ const obj = {
7021
+ type: this.$type,
7022
+ };
7023
+ if (this.containerPath !== "")
7024
+ obj.containerPath = inspectJson(this.containerPath);
7025
+ if ((this.content?.length ?? 0) !== 0)
7026
+ obj.content = "***";
7027
+ return obj;
7028
+ }
7029
+ function applyJobSpec_FileInjectionCustom(message) {
7030
+ message[custom] = JobSpec_FileInjectionCustomInspect;
7031
+ message[customJson] = JobSpec_FileInjectionCustomJson;
7032
+ return message;
7033
+ }
7034
+ function createBaseJobSpec_FileInjection() {
7035
+ const message = {
7036
+ $type: "nebius.ai.v1.JobSpec.FileInjection",
7037
+ containerPath: "",
7038
+ content: new Uint8Array(0),
7039
+ };
7040
+ return applyJobSpec_FileInjectionCustom(message);
7041
+ }
6733
7042
  export const JobSpec_MysteryBoxSecretRef = {
6734
7043
  $type: "nebius.ai.v1.JobSpec.MysteryBoxSecretRef",
6735
7044
  encode(message, writer = new BinaryWriter()) {
@@ -6739,6 +7048,9 @@ export const JobSpec_MysteryBoxSecretRef = {
6739
7048
  if (message.versionId !== "") {
6740
7049
  writer.uint32(18).string(message.versionId);
6741
7050
  }
7051
+ if (message.key !== "") {
7052
+ writer.uint32(26).string(message.key);
7053
+ }
6742
7054
  if (message[unknownFieldsSymbol]) {
6743
7055
  writer.raw(message[unknownFieldsSymbol]);
6744
7056
  }
@@ -6764,6 +7076,12 @@ export const JobSpec_MysteryBoxSecretRef = {
6764
7076
  message.versionId = reader.string();
6765
7077
  continue;
6766
7078
  }
7079
+ case 3: {
7080
+ if (tag !== 26)
7081
+ break;
7082
+ message.key = reader.string();
7083
+ continue;
7084
+ }
6767
7085
  default:
6768
7086
  break;
6769
7087
  }
@@ -6791,6 +7109,9 @@ export const JobSpec_MysteryBoxSecretRef = {
6791
7109
  versionId: isSet(object.versionId ?? object.version_id)
6792
7110
  ? String(object.versionId ?? object.version_id)
6793
7111
  : "",
7112
+ key: isSet(object.key ?? object.key)
7113
+ ? String(object.key ?? object.key)
7114
+ : "",
6794
7115
  });
6795
7116
  },
6796
7117
  toJSON(message, use = "json") {
@@ -6802,6 +7123,9 @@ export const JobSpec_MysteryBoxSecretRef = {
6802
7123
  if (message.versionId !== "") {
6803
7124
  obj[pick("versionId", "version_id")] = message.versionId;
6804
7125
  }
7126
+ if (message.key !== "") {
7127
+ obj[pick("key", "key")] = message.key;
7128
+ }
6805
7129
  return obj;
6806
7130
  },
6807
7131
  create(base) {
@@ -6815,6 +7139,9 @@ export const JobSpec_MysteryBoxSecretRef = {
6815
7139
  message.versionId = (object.versionId !== undefined && object.versionId !== null)
6816
7140
  ? object.versionId
6817
7141
  : "";
7142
+ message.key = (object.key !== undefined && object.key !== null)
7143
+ ? object.key
7144
+ : "";
6818
7145
  return message;
6819
7146
  },
6820
7147
  };
@@ -6825,6 +7152,8 @@ function JobSpec_MysteryBoxSecretRefCustomInspect() {
6825
7152
  parts.push("secretId" + "=" + inspect(this.secretId));
6826
7153
  if (this.versionId !== "")
6827
7154
  parts.push("versionId" + "=" + inspect(this.versionId));
7155
+ if (this.key !== "")
7156
+ parts.push("key" + "=" + inspect(this.key));
6828
7157
  return `${this.$type}(${parts.join(", ")})`;
6829
7158
  }
6830
7159
  function JobSpec_MysteryBoxSecretRefCustomJson() {
@@ -6835,6 +7164,8 @@ function JobSpec_MysteryBoxSecretRefCustomJson() {
6835
7164
  obj.secretId = inspectJson(this.secretId);
6836
7165
  if (this.versionId !== "")
6837
7166
  obj.versionId = inspectJson(this.versionId);
7167
+ if (this.key !== "")
7168
+ obj.key = inspectJson(this.key);
6838
7169
  return obj;
6839
7170
  }
6840
7171
  function applyJobSpec_MysteryBoxSecretRefCustom(message) {
@@ -6847,6 +7178,7 @@ function createBaseJobSpec_MysteryBoxSecretRef() {
6847
7178
  $type: "nebius.ai.v1.JobSpec.MysteryBoxSecretRef",
6848
7179
  secretId: "",
6849
7180
  versionId: "",
7181
+ key: "",
6850
7182
  };
6851
7183
  return applyJobSpec_MysteryBoxSecretRefCustom(message);
6852
7184
  }