@nebius/js-sdk 0.2.22 → 0.2.24

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,8 +1,8 @@
1
1
  "use strict";
2
2
  /* Generated by Nebius TS generator. DO NOT EDIT! */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.JobSpec_VolumeMount_S3Config_S3Credentials = exports.JobSpec_VolumeMount_S3Config = exports.JobSpec_VolumeMount = exports.JobSpec_Port = exports.JobSpec_EnvironmentVariable = exports.JobSpec = exports.Job = exports.JobInstanceStatus_State = exports.JobStatus_State = exports.JobSpec_VolumeMount_Mode = exports.JobSpec_Port_Protocol = exports.JobService = exports.JobServiceBaseClient = exports.JobServiceServiceDescription = exports.ListJobsResponse = exports.CancelJobRequest = exports.DeleteJobRequest = exports.CreateJobRequest = exports.ListJobsRequest = exports.GetJobByNameRequest = exports.GetJobRequest = exports.EndpointInstanceStatus = exports.EndpointStateDetails = exports.EndpointStatus = exports.EndpointSpec_MysteryBoxSecretRef = exports.EndpointSpec_RegistryCredentials = exports.EndpointSpec_DiskSpec = exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.EndpointSpec_VolumeMount_S3Config_S3Credentials = exports.EndpointSpec_VolumeMount_S3Config = exports.EndpointSpec_VolumeMount = exports.EndpointSpec_Port = exports.EndpointSpec_EnvironmentVariable = exports.EndpointSpec = exports.Endpoint = exports.EndpointInstanceStatus_State = exports.EndpointStatus_State = exports.EndpointSpec_VolumeMount_Mode = exports.EndpointSpec_Port_Protocol = exports.EndpointService = exports.EndpointServiceBaseClient = exports.EndpointServiceServiceDescription = exports.ListEndpointsResponse = exports.StopEndpointRequest = exports.StartEndpointRequest = exports.DeleteEndpointRequest = exports.CreateEndpointRequest = exports.ListEndpointsRequest = exports.GetEndpointByNameRequest = exports.GetEndpointRequest = void 0;
5
- exports.JobInstanceStatus = exports.JobStateDetails = exports.JobStatus = exports.JobSpec_MysteryBoxSecretRef = exports.JobSpec_RegistryCredentials = exports.JobSpec_DiskSpec = exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef = void 0;
4
+ exports.JobSpec_VolumeMount_S3Config = exports.JobSpec_VolumeMount = exports.JobSpec_Port = exports.JobSpec_EnvironmentVariable = exports.JobSpec = exports.Job = exports.JobInstanceStatus_State = exports.JobStatus_State = exports.JobSpec_VolumeMount_Mode = exports.JobSpec_Port_Protocol = exports.JobService = exports.JobServiceBaseClient = exports.JobServiceServiceDescription = exports.ListJobsResponse = exports.CancelJobRequest = exports.DeleteJobRequest = exports.CreateJobRequest = exports.ListJobsRequest = exports.GetJobByNameRequest = exports.GetJobRequest = exports.EndpointInstanceStatus = exports.EndpointStateDetails = exports.EndpointStatus = exports.EndpointSpec_MysteryBoxSecretRef = exports.EndpointSpec_FileInjection = exports.EndpointSpec_RegistryCredentials = exports.EndpointSpec_DiskSpec = exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.EndpointSpec_VolumeMount_S3Config_S3Credentials = exports.EndpointSpec_VolumeMount_S3Config = exports.EndpointSpec_VolumeMount = exports.EndpointSpec_Port = exports.EndpointSpec_EnvironmentVariable = exports.EndpointSpec = exports.Endpoint = exports.EndpointInstanceStatus_State = exports.EndpointStatus_State = exports.EndpointSpec_VolumeMount_Mode = exports.EndpointSpec_Port_Protocol = exports.EndpointService = exports.EndpointServiceBaseClient = exports.EndpointServiceServiceDescription = exports.ListEndpointsResponse = exports.StopEndpointRequest = exports.StartEndpointRequest = exports.DeleteEndpointRequest = exports.CreateEndpointRequest = exports.ListEndpointsRequest = exports.GetEndpointByNameRequest = exports.GetEndpointRequest = void 0;
5
+ exports.JobInstanceStatus = exports.JobStateDetails = exports.JobStatus = exports.JobSpec_MysteryBoxSecretRef = exports.JobSpec_FileInjection = exports.JobSpec_RegistryCredentials = exports.JobSpec_DiskSpec = exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.JobSpec_VolumeMount_S3Config_S3Credentials = void 0;
6
6
  const index_js_1 = require("../../../../runtime/protos/index.js");
7
7
  const util_1 = require("util");
8
8
  const protobuf_js_1 = require("../../../protobuf.js");
@@ -1461,6 +1461,11 @@ exports.EndpointSpec = {
1461
1461
  exports.EndpointSpec_MysteryBoxSecretRef.encode(message.authTokenMysteryboxSecret, w);
1462
1462
  w.join();
1463
1463
  }
1464
+ for (const v of (message.injectedFiles ?? [])) {
1465
+ const w = writer.uint32(258).fork();
1466
+ exports.EndpointSpec_FileInjection.encode(v, w);
1467
+ w.join();
1468
+ }
1464
1469
  if (message[index_js_1.unknownFieldsSymbol]) {
1465
1470
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
1466
1471
  }
@@ -1582,6 +1587,12 @@ exports.EndpointSpec = {
1582
1587
  message.authTokenMysteryboxSecret = exports.EndpointSpec_MysteryBoxSecretRef.decode(reader, reader.uint32());
1583
1588
  continue;
1584
1589
  }
1590
+ case 32: {
1591
+ if (tag !== 258)
1592
+ break;
1593
+ message.injectedFiles.push(exports.EndpointSpec_FileInjection.decode(reader, reader.uint32()));
1594
+ continue;
1595
+ }
1585
1596
  default:
1586
1597
  break;
1587
1598
  }
@@ -1657,6 +1668,9 @@ exports.EndpointSpec = {
1657
1668
  authTokenMysteryboxSecret: (0, index_js_1.isSet)(object.authTokenMysteryboxSecret ?? object.auth_token_mysterybox_secret)
1658
1669
  ? exports.EndpointSpec_MysteryBoxSecretRef.fromJSON(object.authTokenMysteryboxSecret ?? object.auth_token_mysterybox_secret)
1659
1670
  : undefined,
1671
+ injectedFiles: globalThis.Array.isArray(object?.injectedFiles ?? object?.injected_files)
1672
+ ? (object.injectedFiles ?? object.injected_files).map((e) => exports.EndpointSpec_FileInjection.fromJSON(e))
1673
+ : [],
1660
1674
  });
1661
1675
  },
1662
1676
  toJSON(message, use = "json") {
@@ -1722,6 +1736,9 @@ exports.EndpointSpec = {
1722
1736
  ? exports.EndpointSpec_MysteryBoxSecretRef.toJSON(message.authTokenMysteryboxSecret, use)
1723
1737
  : undefined;
1724
1738
  }
1739
+ if (message.injectedFiles?.length) {
1740
+ obj[pick("injectedFiles", "injected_files")] = message.injectedFiles.map((e) => e ? exports.EndpointSpec_FileInjection.toJSON(e, use) : undefined);
1741
+ }
1725
1742
  return obj;
1726
1743
  },
1727
1744
  create(base) {
@@ -1775,6 +1792,7 @@ exports.EndpointSpec = {
1775
1792
  message.authTokenMysteryboxSecret = (object.authTokenMysteryboxSecret !== undefined && object.authTokenMysteryboxSecret !== null)
1776
1793
  ? exports.EndpointSpec_MysteryBoxSecretRef.fromPartial(object.authTokenMysteryboxSecret)
1777
1794
  : undefined;
1795
+ message.injectedFiles = object.injectedFiles?.map((e) => exports.EndpointSpec_FileInjection.fromPartial(e)) || [];
1778
1796
  return message;
1779
1797
  },
1780
1798
  };
@@ -1817,6 +1835,8 @@ function EndpointSpecCustomInspect() {
1817
1835
  parts.push("authToken" + "=***");
1818
1836
  if (this.authTokenMysteryboxSecret !== undefined)
1819
1837
  parts.push("authTokenMysteryboxSecret" + "=" + (0, util_1.inspect)(this.authTokenMysteryboxSecret));
1838
+ if ((this.injectedFiles?.length ?? 0) !== 0)
1839
+ parts.push("injectedFiles" + "=" + (0, util_1.inspect)(this.injectedFiles));
1820
1840
  return `${this.$type}(${parts.join(", ")})`;
1821
1841
  }
1822
1842
  function EndpointSpecCustomJson() {
@@ -1859,6 +1879,8 @@ function EndpointSpecCustomJson() {
1859
1879
  obj.authToken = "***";
1860
1880
  if (this.authTokenMysteryboxSecret !== undefined)
1861
1881
  obj.authTokenMysteryboxSecret = (0, logging_js_1.inspectJson)(this.authTokenMysteryboxSecret);
1882
+ if ((this.injectedFiles?.length ?? 0) !== 0)
1883
+ obj.injectedFiles = (0, logging_js_1.inspectJson)(this.injectedFiles);
1862
1884
  return obj;
1863
1885
  }
1864
1886
  function applyEndpointSpecCustom(message) {
@@ -1887,6 +1909,7 @@ function createBaseEndpointSpec() {
1887
1909
  preemptible: false,
1888
1910
  authToken: "",
1889
1911
  authTokenMysteryboxSecret: undefined,
1912
+ injectedFiles: [],
1890
1913
  };
1891
1914
  return applyEndpointSpecCustom(message);
1892
1915
  }
@@ -3113,6 +3136,126 @@ function createBaseEndpointSpec_RegistryCredentials() {
3113
3136
  };
3114
3137
  return applyEndpointSpec_RegistryCredentialsCustom(message);
3115
3138
  }
3139
+ exports.EndpointSpec_FileInjection = {
3140
+ $type: "nebius.ai.v1.EndpointSpec.FileInjection",
3141
+ encode(message, writer = new index_js_1.BinaryWriter()) {
3142
+ if (message.containerPath !== "") {
3143
+ writer.uint32(10).string(message.containerPath);
3144
+ }
3145
+ if ((message.content?.length ?? 0) !== 0) {
3146
+ writer.uint32(18).bytes(message.content);
3147
+ }
3148
+ if (message[index_js_1.unknownFieldsSymbol]) {
3149
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
3150
+ }
3151
+ return writer;
3152
+ },
3153
+ decode(input, length) {
3154
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
3155
+ const end = length === undefined ? reader.len : reader.pos + length;
3156
+ const message = createBaseEndpointSpec_FileInjection();
3157
+ let writer = undefined;
3158
+ while (reader.pos < end) {
3159
+ const tag = reader.uint32();
3160
+ switch (tag >>> 3) {
3161
+ case 1: {
3162
+ if (tag !== 10)
3163
+ break;
3164
+ message.containerPath = reader.string();
3165
+ continue;
3166
+ }
3167
+ case 2: {
3168
+ if (tag !== 18)
3169
+ break;
3170
+ message.content = reader.bytes();
3171
+ continue;
3172
+ }
3173
+ default:
3174
+ break;
3175
+ }
3176
+ if ((tag & 7) === 4 || tag === 0) {
3177
+ break;
3178
+ }
3179
+ {
3180
+ if (!writer)
3181
+ writer = new index_js_1.BinaryWriter();
3182
+ const skipped = reader.skip(tag & 7, tag >>> 3);
3183
+ writer.uint32(tag).raw(skipped);
3184
+ }
3185
+ }
3186
+ if (writer) {
3187
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
3188
+ }
3189
+ return message;
3190
+ },
3191
+ fromJSON(object) {
3192
+ return applyEndpointSpec_FileInjectionCustom({
3193
+ $type: "nebius.ai.v1.EndpointSpec.FileInjection",
3194
+ containerPath: (0, index_js_1.isSet)(object.containerPath ?? object.container_path)
3195
+ ? String(object.containerPath ?? object.container_path)
3196
+ : "",
3197
+ content: (0, index_js_1.isSet)(object.content ?? object.content)
3198
+ ? (0, index_js_1.bytesFromBase64)(object.content ?? object.content)
3199
+ : new Uint8Array(0),
3200
+ });
3201
+ },
3202
+ toJSON(message, use = "json") {
3203
+ const obj = {};
3204
+ const pick = (json, pb) => (use === "json" ? json : pb);
3205
+ if (message.containerPath !== "") {
3206
+ obj[pick("containerPath", "container_path")] = message.containerPath;
3207
+ }
3208
+ if ((message.content?.length ?? 0) !== 0) {
3209
+ obj[pick("content", "content")] = (0, index_js_1.base64FromBytes)(message.content);
3210
+ }
3211
+ return obj;
3212
+ },
3213
+ create(base) {
3214
+ return exports.EndpointSpec_FileInjection.fromPartial(base ?? {});
3215
+ },
3216
+ fromPartial(object) {
3217
+ const message = createBaseEndpointSpec_FileInjection();
3218
+ message.containerPath = (object.containerPath !== undefined && object.containerPath !== null)
3219
+ ? object.containerPath
3220
+ : "";
3221
+ message.content = (object.content !== undefined && object.content !== null)
3222
+ ? object.content
3223
+ : new Uint8Array(0);
3224
+ return message;
3225
+ },
3226
+ };
3227
+ protobuf_js_1.protoRegistry.registerMessage(exports.EndpointSpec_FileInjection);
3228
+ function EndpointSpec_FileInjectionCustomInspect() {
3229
+ const parts = [];
3230
+ if (this.containerPath !== "")
3231
+ parts.push("containerPath" + "=" + (0, util_1.inspect)(this.containerPath));
3232
+ if ((this.content?.length ?? 0) !== 0)
3233
+ parts.push("content" + "=***");
3234
+ return `${this.$type}(${parts.join(", ")})`;
3235
+ }
3236
+ function EndpointSpec_FileInjectionCustomJson() {
3237
+ const obj = {
3238
+ type: this.$type,
3239
+ };
3240
+ if (this.containerPath !== "")
3241
+ obj.containerPath = (0, logging_js_1.inspectJson)(this.containerPath);
3242
+ if ((this.content?.length ?? 0) !== 0)
3243
+ obj.content = "***";
3244
+ return obj;
3245
+ }
3246
+ function applyEndpointSpec_FileInjectionCustom(message) {
3247
+ message[logging_js_1.custom] = EndpointSpec_FileInjectionCustomInspect;
3248
+ message[logging_js_1.customJson] = EndpointSpec_FileInjectionCustomJson;
3249
+ return message;
3250
+ }
3251
+ function createBaseEndpointSpec_FileInjection() {
3252
+ const message = {
3253
+ $type: "nebius.ai.v1.EndpointSpec.FileInjection",
3254
+ containerPath: "",
3255
+ content: new Uint8Array(0),
3256
+ };
3257
+ return applyEndpointSpec_FileInjectionCustom(message);
3258
+ }
3116
3259
  exports.EndpointSpec_MysteryBoxSecretRef = {
3117
3260
  $type: "nebius.ai.v1.EndpointSpec.MysteryBoxSecretRef",
3118
3261
  encode(message, writer = new index_js_1.BinaryWriter()) {
@@ -3122,6 +3265,9 @@ exports.EndpointSpec_MysteryBoxSecretRef = {
3122
3265
  if (message.versionId !== "") {
3123
3266
  writer.uint32(18).string(message.versionId);
3124
3267
  }
3268
+ if (message.key !== "") {
3269
+ writer.uint32(26).string(message.key);
3270
+ }
3125
3271
  if (message[index_js_1.unknownFieldsSymbol]) {
3126
3272
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
3127
3273
  }
@@ -3147,6 +3293,12 @@ exports.EndpointSpec_MysteryBoxSecretRef = {
3147
3293
  message.versionId = reader.string();
3148
3294
  continue;
3149
3295
  }
3296
+ case 3: {
3297
+ if (tag !== 26)
3298
+ break;
3299
+ message.key = reader.string();
3300
+ continue;
3301
+ }
3150
3302
  default:
3151
3303
  break;
3152
3304
  }
@@ -3174,6 +3326,9 @@ exports.EndpointSpec_MysteryBoxSecretRef = {
3174
3326
  versionId: (0, index_js_1.isSet)(object.versionId ?? object.version_id)
3175
3327
  ? String(object.versionId ?? object.version_id)
3176
3328
  : "",
3329
+ key: (0, index_js_1.isSet)(object.key ?? object.key)
3330
+ ? String(object.key ?? object.key)
3331
+ : "",
3177
3332
  });
3178
3333
  },
3179
3334
  toJSON(message, use = "json") {
@@ -3185,6 +3340,9 @@ exports.EndpointSpec_MysteryBoxSecretRef = {
3185
3340
  if (message.versionId !== "") {
3186
3341
  obj[pick("versionId", "version_id")] = message.versionId;
3187
3342
  }
3343
+ if (message.key !== "") {
3344
+ obj[pick("key", "key")] = message.key;
3345
+ }
3188
3346
  return obj;
3189
3347
  },
3190
3348
  create(base) {
@@ -3198,6 +3356,9 @@ exports.EndpointSpec_MysteryBoxSecretRef = {
3198
3356
  message.versionId = (object.versionId !== undefined && object.versionId !== null)
3199
3357
  ? object.versionId
3200
3358
  : "";
3359
+ message.key = (object.key !== undefined && object.key !== null)
3360
+ ? object.key
3361
+ : "";
3201
3362
  return message;
3202
3363
  },
3203
3364
  };
@@ -3208,6 +3369,8 @@ function EndpointSpec_MysteryBoxSecretRefCustomInspect() {
3208
3369
  parts.push("secretId" + "=" + (0, util_1.inspect)(this.secretId));
3209
3370
  if (this.versionId !== "")
3210
3371
  parts.push("versionId" + "=" + (0, util_1.inspect)(this.versionId));
3372
+ if (this.key !== "")
3373
+ parts.push("key" + "=" + (0, util_1.inspect)(this.key));
3211
3374
  return `${this.$type}(${parts.join(", ")})`;
3212
3375
  }
3213
3376
  function EndpointSpec_MysteryBoxSecretRefCustomJson() {
@@ -3218,6 +3381,8 @@ function EndpointSpec_MysteryBoxSecretRefCustomJson() {
3218
3381
  obj.secretId = (0, logging_js_1.inspectJson)(this.secretId);
3219
3382
  if (this.versionId !== "")
3220
3383
  obj.versionId = (0, logging_js_1.inspectJson)(this.versionId);
3384
+ if (this.key !== "")
3385
+ obj.key = (0, logging_js_1.inspectJson)(this.key);
3221
3386
  return obj;
3222
3387
  }
3223
3388
  function applyEndpointSpec_MysteryBoxSecretRefCustom(message) {
@@ -3230,6 +3395,7 @@ function createBaseEndpointSpec_MysteryBoxSecretRef() {
3230
3395
  $type: "nebius.ai.v1.EndpointSpec.MysteryBoxSecretRef",
3231
3396
  secretId: "",
3232
3397
  versionId: "",
3398
+ key: "",
3233
3399
  };
3234
3400
  return applyEndpointSpec_MysteryBoxSecretRefCustom(message);
3235
3401
  }
@@ -5085,6 +5251,11 @@ exports.JobSpec = {
5085
5251
  index_js_1.wkt[".google.protobuf.Duration"].writeMessage(w, message.timeout);
5086
5252
  w.join();
5087
5253
  }
5254
+ for (const v of (message.injectedFiles ?? [])) {
5255
+ const w = writer.uint32(258).fork();
5256
+ exports.JobSpec_FileInjection.encode(v, w);
5257
+ w.join();
5258
+ }
5088
5259
  if (message[index_js_1.unknownFieldsSymbol]) {
5089
5260
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
5090
5261
  }
@@ -5207,6 +5378,12 @@ exports.JobSpec = {
5207
5378
  message.timeout = index_js_1.wkt[".google.protobuf.Duration"].readMessage(reader, len);
5208
5379
  continue;
5209
5380
  }
5381
+ case 32: {
5382
+ if (tag !== 258)
5383
+ break;
5384
+ message.injectedFiles.push(exports.JobSpec_FileInjection.decode(reader, reader.uint32()));
5385
+ continue;
5386
+ }
5210
5387
  default:
5211
5388
  break;
5212
5389
  }
@@ -5282,6 +5459,9 @@ exports.JobSpec = {
5282
5459
  timeout: (0, index_js_1.isSet)(object.timeout ?? object.timeout)
5283
5460
  ? index_js_1.wkt[".google.protobuf.Duration"].fromJSON(object.timeout ?? object.timeout)
5284
5461
  : undefined,
5462
+ injectedFiles: globalThis.Array.isArray(object?.injectedFiles ?? object?.injected_files)
5463
+ ? (object.injectedFiles ?? object.injected_files).map((e) => exports.JobSpec_FileInjection.fromJSON(e))
5464
+ : [],
5285
5465
  });
5286
5466
  },
5287
5467
  toJSON(message, use = "json") {
@@ -5345,6 +5525,9 @@ exports.JobSpec = {
5345
5525
  if (message.timeout !== undefined) {
5346
5526
  obj[pick("timeout", "timeout")] = index_js_1.wkt[".google.protobuf.Duration"].toJSON(message.timeout, use);
5347
5527
  }
5528
+ if (message.injectedFiles?.length) {
5529
+ obj[pick("injectedFiles", "injected_files")] = message.injectedFiles.map((e) => e ? exports.JobSpec_FileInjection.toJSON(e, use) : undefined);
5530
+ }
5348
5531
  return obj;
5349
5532
  },
5350
5533
  create(base) {
@@ -5398,6 +5581,7 @@ exports.JobSpec = {
5398
5581
  message.timeout = (object.timeout !== undefined && object.timeout !== null)
5399
5582
  ? index_js_1.wkt[".google.protobuf.Duration"].fromPartial(object.timeout)
5400
5583
  : undefined;
5584
+ message.injectedFiles = object.injectedFiles?.map((e) => exports.JobSpec_FileInjection.fromPartial(e)) || [];
5401
5585
  return message;
5402
5586
  },
5403
5587
  };
@@ -5440,6 +5624,8 @@ function JobSpecCustomInspect() {
5440
5624
  parts.push("restartAttempts" + "=" + (0, util_1.inspect)(this.restartAttempts));
5441
5625
  if (this.timeout !== undefined)
5442
5626
  parts.push("timeout" + "=" + (0, util_1.inspect)(this.timeout));
5627
+ if ((this.injectedFiles?.length ?? 0) !== 0)
5628
+ parts.push("injectedFiles" + "=" + (0, util_1.inspect)(this.injectedFiles));
5443
5629
  return `${this.$type}(${parts.join(", ")})`;
5444
5630
  }
5445
5631
  function JobSpecCustomJson() {
@@ -5482,6 +5668,8 @@ function JobSpecCustomJson() {
5482
5668
  obj.restartAttempts = (0, logging_js_1.inspectJson)(this.restartAttempts);
5483
5669
  if (this.timeout !== undefined)
5484
5670
  obj.timeout = (0, logging_js_1.inspectJson)(this.timeout);
5671
+ if ((this.injectedFiles?.length ?? 0) !== 0)
5672
+ obj.injectedFiles = (0, logging_js_1.inspectJson)(this.injectedFiles);
5485
5673
  return obj;
5486
5674
  }
5487
5675
  function applyJobSpecCustom(message) {
@@ -5510,6 +5698,7 @@ function createBaseJobSpec() {
5510
5698
  preemptible: false,
5511
5699
  restartAttempts: index_js_1.Long.ZERO,
5512
5700
  timeout: undefined,
5701
+ injectedFiles: [],
5513
5702
  };
5514
5703
  return applyJobSpecCustom(message);
5515
5704
  }
@@ -6736,6 +6925,126 @@ function createBaseJobSpec_RegistryCredentials() {
6736
6925
  };
6737
6926
  return applyJobSpec_RegistryCredentialsCustom(message);
6738
6927
  }
6928
+ exports.JobSpec_FileInjection = {
6929
+ $type: "nebius.ai.v1.JobSpec.FileInjection",
6930
+ encode(message, writer = new index_js_1.BinaryWriter()) {
6931
+ if (message.containerPath !== "") {
6932
+ writer.uint32(10).string(message.containerPath);
6933
+ }
6934
+ if ((message.content?.length ?? 0) !== 0) {
6935
+ writer.uint32(18).bytes(message.content);
6936
+ }
6937
+ if (message[index_js_1.unknownFieldsSymbol]) {
6938
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
6939
+ }
6940
+ return writer;
6941
+ },
6942
+ decode(input, length) {
6943
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
6944
+ const end = length === undefined ? reader.len : reader.pos + length;
6945
+ const message = createBaseJobSpec_FileInjection();
6946
+ let writer = undefined;
6947
+ while (reader.pos < end) {
6948
+ const tag = reader.uint32();
6949
+ switch (tag >>> 3) {
6950
+ case 1: {
6951
+ if (tag !== 10)
6952
+ break;
6953
+ message.containerPath = reader.string();
6954
+ continue;
6955
+ }
6956
+ case 2: {
6957
+ if (tag !== 18)
6958
+ break;
6959
+ message.content = reader.bytes();
6960
+ continue;
6961
+ }
6962
+ default:
6963
+ break;
6964
+ }
6965
+ if ((tag & 7) === 4 || tag === 0) {
6966
+ break;
6967
+ }
6968
+ {
6969
+ if (!writer)
6970
+ writer = new index_js_1.BinaryWriter();
6971
+ const skipped = reader.skip(tag & 7, tag >>> 3);
6972
+ writer.uint32(tag).raw(skipped);
6973
+ }
6974
+ }
6975
+ if (writer) {
6976
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
6977
+ }
6978
+ return message;
6979
+ },
6980
+ fromJSON(object) {
6981
+ return applyJobSpec_FileInjectionCustom({
6982
+ $type: "nebius.ai.v1.JobSpec.FileInjection",
6983
+ containerPath: (0, index_js_1.isSet)(object.containerPath ?? object.container_path)
6984
+ ? String(object.containerPath ?? object.container_path)
6985
+ : "",
6986
+ content: (0, index_js_1.isSet)(object.content ?? object.content)
6987
+ ? (0, index_js_1.bytesFromBase64)(object.content ?? object.content)
6988
+ : new Uint8Array(0),
6989
+ });
6990
+ },
6991
+ toJSON(message, use = "json") {
6992
+ const obj = {};
6993
+ const pick = (json, pb) => (use === "json" ? json : pb);
6994
+ if (message.containerPath !== "") {
6995
+ obj[pick("containerPath", "container_path")] = message.containerPath;
6996
+ }
6997
+ if ((message.content?.length ?? 0) !== 0) {
6998
+ obj[pick("content", "content")] = (0, index_js_1.base64FromBytes)(message.content);
6999
+ }
7000
+ return obj;
7001
+ },
7002
+ create(base) {
7003
+ return exports.JobSpec_FileInjection.fromPartial(base ?? {});
7004
+ },
7005
+ fromPartial(object) {
7006
+ const message = createBaseJobSpec_FileInjection();
7007
+ message.containerPath = (object.containerPath !== undefined && object.containerPath !== null)
7008
+ ? object.containerPath
7009
+ : "";
7010
+ message.content = (object.content !== undefined && object.content !== null)
7011
+ ? object.content
7012
+ : new Uint8Array(0);
7013
+ return message;
7014
+ },
7015
+ };
7016
+ protobuf_js_1.protoRegistry.registerMessage(exports.JobSpec_FileInjection);
7017
+ function JobSpec_FileInjectionCustomInspect() {
7018
+ const parts = [];
7019
+ if (this.containerPath !== "")
7020
+ parts.push("containerPath" + "=" + (0, util_1.inspect)(this.containerPath));
7021
+ if ((this.content?.length ?? 0) !== 0)
7022
+ parts.push("content" + "=***");
7023
+ return `${this.$type}(${parts.join(", ")})`;
7024
+ }
7025
+ function JobSpec_FileInjectionCustomJson() {
7026
+ const obj = {
7027
+ type: this.$type,
7028
+ };
7029
+ if (this.containerPath !== "")
7030
+ obj.containerPath = (0, logging_js_1.inspectJson)(this.containerPath);
7031
+ if ((this.content?.length ?? 0) !== 0)
7032
+ obj.content = "***";
7033
+ return obj;
7034
+ }
7035
+ function applyJobSpec_FileInjectionCustom(message) {
7036
+ message[logging_js_1.custom] = JobSpec_FileInjectionCustomInspect;
7037
+ message[logging_js_1.customJson] = JobSpec_FileInjectionCustomJson;
7038
+ return message;
7039
+ }
7040
+ function createBaseJobSpec_FileInjection() {
7041
+ const message = {
7042
+ $type: "nebius.ai.v1.JobSpec.FileInjection",
7043
+ containerPath: "",
7044
+ content: new Uint8Array(0),
7045
+ };
7046
+ return applyJobSpec_FileInjectionCustom(message);
7047
+ }
6739
7048
  exports.JobSpec_MysteryBoxSecretRef = {
6740
7049
  $type: "nebius.ai.v1.JobSpec.MysteryBoxSecretRef",
6741
7050
  encode(message, writer = new index_js_1.BinaryWriter()) {
@@ -6745,6 +7054,9 @@ exports.JobSpec_MysteryBoxSecretRef = {
6745
7054
  if (message.versionId !== "") {
6746
7055
  writer.uint32(18).string(message.versionId);
6747
7056
  }
7057
+ if (message.key !== "") {
7058
+ writer.uint32(26).string(message.key);
7059
+ }
6748
7060
  if (message[index_js_1.unknownFieldsSymbol]) {
6749
7061
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
6750
7062
  }
@@ -6770,6 +7082,12 @@ exports.JobSpec_MysteryBoxSecretRef = {
6770
7082
  message.versionId = reader.string();
6771
7083
  continue;
6772
7084
  }
7085
+ case 3: {
7086
+ if (tag !== 26)
7087
+ break;
7088
+ message.key = reader.string();
7089
+ continue;
7090
+ }
6773
7091
  default:
6774
7092
  break;
6775
7093
  }
@@ -6797,6 +7115,9 @@ exports.JobSpec_MysteryBoxSecretRef = {
6797
7115
  versionId: (0, index_js_1.isSet)(object.versionId ?? object.version_id)
6798
7116
  ? String(object.versionId ?? object.version_id)
6799
7117
  : "",
7118
+ key: (0, index_js_1.isSet)(object.key ?? object.key)
7119
+ ? String(object.key ?? object.key)
7120
+ : "",
6800
7121
  });
6801
7122
  },
6802
7123
  toJSON(message, use = "json") {
@@ -6808,6 +7129,9 @@ exports.JobSpec_MysteryBoxSecretRef = {
6808
7129
  if (message.versionId !== "") {
6809
7130
  obj[pick("versionId", "version_id")] = message.versionId;
6810
7131
  }
7132
+ if (message.key !== "") {
7133
+ obj[pick("key", "key")] = message.key;
7134
+ }
6811
7135
  return obj;
6812
7136
  },
6813
7137
  create(base) {
@@ -6821,6 +7145,9 @@ exports.JobSpec_MysteryBoxSecretRef = {
6821
7145
  message.versionId = (object.versionId !== undefined && object.versionId !== null)
6822
7146
  ? object.versionId
6823
7147
  : "";
7148
+ message.key = (object.key !== undefined && object.key !== null)
7149
+ ? object.key
7150
+ : "";
6824
7151
  return message;
6825
7152
  },
6826
7153
  };
@@ -6831,6 +7158,8 @@ function JobSpec_MysteryBoxSecretRefCustomInspect() {
6831
7158
  parts.push("secretId" + "=" + (0, util_1.inspect)(this.secretId));
6832
7159
  if (this.versionId !== "")
6833
7160
  parts.push("versionId" + "=" + (0, util_1.inspect)(this.versionId));
7161
+ if (this.key !== "")
7162
+ parts.push("key" + "=" + (0, util_1.inspect)(this.key));
6834
7163
  return `${this.$type}(${parts.join(", ")})`;
6835
7164
  }
6836
7165
  function JobSpec_MysteryBoxSecretRefCustomJson() {
@@ -6841,6 +7170,8 @@ function JobSpec_MysteryBoxSecretRefCustomJson() {
6841
7170
  obj.secretId = (0, logging_js_1.inspectJson)(this.secretId);
6842
7171
  if (this.versionId !== "")
6843
7172
  obj.versionId = (0, logging_js_1.inspectJson)(this.versionId);
7173
+ if (this.key !== "")
7174
+ obj.key = (0, logging_js_1.inspectJson)(this.key);
6844
7175
  return obj;
6845
7176
  }
6846
7177
  function applyJobSpec_MysteryBoxSecretRefCustom(message) {
@@ -6853,6 +7184,7 @@ function createBaseJobSpec_MysteryBoxSecretRef() {
6853
7184
  $type: "nebius.ai.v1.JobSpec.MysteryBoxSecretRef",
6854
7185
  secretId: "",
6855
7186
  versionId: "",
7187
+ key: "",
6856
7188
  };
6857
7189
  return applyJobSpec_MysteryBoxSecretRefCustom(message);
6858
7190
  }