@nebius/js-sdk 0.1.13 → 0.1.15

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.ListObjectVersionsResponse_VersionView = exports.ListObjectVersionsResponse = exports.ListObjectVersionsRequestParameters = exports.ObjectResponse = exports.ObjectRequestParameters = exports.DeleteObjectsResponse_DeleteError = exports.DeleteObjectsResponse_DeleteSuccess = exports.DeleteObjectsResponse = exports.DeleteObjectsRequestParameters_ObjectKey = exports.DeleteObjectsRequestParameters = exports.DeleteObjectResponse = exports.DeleteObjectRequestParameters = exports.CopyObjectResponse = exports.CopyObjectRequestParameters_Target = exports.CopyObjectRequestParameters_Source = exports.CopyObjectRequestParameters = exports.CompleteMultipartUploadResponse = exports.CompleteMultipartUploadRequestParameters_Part = exports.CompleteMultipartUploadRequestParameters = exports.LifecycleNoncurrentVersionTransition = exports.LifecycleTransition = exports.LifecycleAbortIncompleteMultipartUpload = exports.LifecycleNoncurrentVersionExpiration = exports.LifecycleExpiration = exports.LifecycleFilter = exports.LifecycleRule = exports.LifecycleConfiguration = exports.LifecycleRule_Status = exports.BucketStatus = exports.BucketSpec = exports.Bucket = exports.BucketStatus_SuspensionState = exports.BucketStatus_State = exports.BucketService = exports.BucketServiceBaseClient = exports.BucketServiceServiceDescription = exports.ListBucketsResponse = exports.ListBucketsRequest = exports.UndeleteBucketRequest = exports.PurgeBucketRequest = exports.DeleteBucketRequest = exports.UpdateBucketRequest = exports.CreateBucketRequest = exports.GetBucketByNameRequest = exports.GetBucketRequest = exports.BucketCounters = exports.NonCurrentBucketCounters = exports.CurrentBucketCounters = exports.VersioningPolicy = exports.StorageClass = void 0;
5
- exports.PutObjectResponse = exports.PutObjectRequestParameters = exports.PostObjectResponse = exports.PostObjectRequestParameters = exports.ListObjectsResponse_ObjectView = exports.ListObjectsResponse = exports.ListObjectsRequestParameters = exports.ListObjectVersionsResponse_DeleteMarkerView = void 0;
4
+ exports.ObjectRequestParameters = exports.DeleteObjectsResponse_DeleteError = exports.DeleteObjectsResponse_DeleteSuccess = exports.DeleteObjectsResponse = exports.DeleteObjectsRequestParameters_ObjectKey = exports.DeleteObjectsRequestParameters = exports.DeleteObjectResponse = exports.DeleteObjectRequestParameters = exports.CopyObjectResponse = exports.CopyObjectRequestParameters_Target = exports.CopyObjectRequestParameters_Source = exports.CopyObjectRequestParameters = exports.CompleteMultipartUploadResponse = exports.CompleteMultipartUploadRequestParameters_Part = exports.CompleteMultipartUploadRequestParameters = exports.LifecycleNoncurrentVersionTransition = exports.LifecycleTransition = exports.LifecycleAbortIncompleteMultipartUpload = exports.LifecycleNoncurrentVersionExpiration = exports.LifecycleExpiration = exports.LifecycleAccessFilter_Condition = exports.LifecycleAccessFilter = exports.LifecycleFilter = exports.LifecycleRule = exports.LifecycleConfiguration = exports.LifecycleAccessFilter_Condition_Method = exports.LifecycleAccessFilter_Condition_Type = exports.LifecycleRule_Status = exports.BucketStatus = exports.BucketSpec = exports.Bucket = exports.BucketStatus_SuspensionState = exports.BucketStatus_State = exports.BucketService = exports.BucketServiceBaseClient = exports.BucketServiceServiceDescription = exports.ListBucketsResponse = exports.ListBucketsRequest = exports.UndeleteBucketRequest = exports.PurgeBucketRequest = exports.DeleteBucketRequest = exports.UpdateBucketRequest = exports.CreateBucketRequest = exports.GetBucketByNameRequest = exports.GetBucketRequest = exports.BucketCounters = exports.NonCurrentBucketCounters = exports.CurrentBucketCounters = exports.VersioningPolicy = exports.StorageClass = void 0;
5
+ exports.PutObjectResponse = exports.PutObjectRequestParameters = exports.PostObjectResponse = exports.PostObjectRequestParameters = exports.ListObjectsResponse_ObjectView = exports.ListObjectsResponse = exports.ListObjectsRequestParameters = exports.ListObjectVersionsResponse_DeleteMarkerView = exports.ListObjectVersionsResponse_VersionView = exports.ListObjectVersionsResponse = exports.ListObjectVersionsRequestParameters = exports.ObjectResponse = void 0;
6
6
  const index_1 = require("../../../../runtime/protos/index");
7
7
  const util_1 = require("util");
8
8
  const protobuf_1 = require("../../../protobuf");
@@ -2539,6 +2539,47 @@ exports.LifecycleRule_Status = (0, index_1.createEnum)("nebius.storage.v1.Lifecy
2539
2539
  DISABLED: 2,
2540
2540
  });
2541
2541
  protobuf_1.protoRegistry.registerEnum(exports.LifecycleRule_Status);
2542
+ const LifecycleAccessFilter_Condition_Type_VALUE_COMMENTS = {
2543
+ INCLUDE: " If an include type condition is the first condition that the request match, the request will be included in `days_since_last_access` calculation.\n",
2544
+ EXCLUDE: " If an exclude type condition is the first condition that the request match, the request will be ignored in `days_since_last_access` calculation.\n",
2545
+ };
2546
+ exports.LifecycleAccessFilter_Condition_Type = (0, index_1.createEnum)("nebius.storage.v1.LifecycleAccessFilter.Condition.Type", {
2547
+ TYPE_UNSPECIFIED: 0,
2548
+ /**
2549
+ * If an include type condition is the first condition that the request match, the request will be included in `days_since_last_access` calculation.
2550
+ *
2551
+ */
2552
+ INCLUDE: 1,
2553
+ /**
2554
+ * If an exclude type condition is the first condition that the request match, the request will be ignored in `days_since_last_access` calculation.
2555
+ *
2556
+ */
2557
+ EXCLUDE: 2,
2558
+ }, LifecycleAccessFilter_Condition_Type_VALUE_COMMENTS);
2559
+ protobuf_1.protoRegistry.registerEnum(exports.LifecycleAccessFilter_Condition_Type);
2560
+ const LifecycleAccessFilter_Condition_Method_VALUE_COMMENTS = {
2561
+ COPY_OBJECT: " Copy object method reads the source object.\n We account for those operations as source object accesses when calculating `days_since_last_access` for source object.\n",
2562
+ UPLOAD_PART_COPY: " Upload part copy method reads the source object.\n We account for those operations as source object accesses when calculating `days_since_last_access` for source object.\n",
2563
+ };
2564
+ exports.LifecycleAccessFilter_Condition_Method = (0, index_1.createEnum)("nebius.storage.v1.LifecycleAccessFilter.Condition.Method", {
2565
+ METHOD_UNSPECIFIED: 0,
2566
+ GET_OBJECT: 1,
2567
+ HEAD_OBJECT: 2,
2568
+ GET_OBJECT_TAGGING: 3,
2569
+ /**
2570
+ * Copy object method reads the source object.
2571
+ * We account for those operations as source object accesses when calculating `days_since_last_access` for source object.
2572
+ *
2573
+ */
2574
+ COPY_OBJECT: 4,
2575
+ /**
2576
+ * Upload part copy method reads the source object.
2577
+ * We account for those operations as source object accesses when calculating `days_since_last_access` for source object.
2578
+ *
2579
+ */
2580
+ UPLOAD_PART_COPY: 5,
2581
+ }, LifecycleAccessFilter_Condition_Method_VALUE_COMMENTS);
2582
+ protobuf_1.protoRegistry.registerEnum(exports.LifecycleAccessFilter_Condition_Method);
2542
2583
  exports.LifecycleConfiguration = {
2543
2584
  $type: "nebius.storage.v1.LifecycleConfiguration",
2544
2585
  encode(message, writer = new index_1.BinaryWriter()) {
@@ -2547,6 +2588,11 @@ exports.LifecycleConfiguration = {
2547
2588
  exports.LifecycleRule.encode(v, w);
2548
2589
  w.join();
2549
2590
  }
2591
+ if (message.lastAccessFilter !== undefined) {
2592
+ const w = writer.uint32(18).fork();
2593
+ exports.LifecycleAccessFilter.encode(message.lastAccessFilter, w);
2594
+ w.join();
2595
+ }
2550
2596
  if (message[index_1.unknownFieldsSymbol]) {
2551
2597
  writer.raw(message[index_1.unknownFieldsSymbol]);
2552
2598
  }
@@ -2566,6 +2612,12 @@ exports.LifecycleConfiguration = {
2566
2612
  message.rules.push(exports.LifecycleRule.decode(reader, reader.uint32()));
2567
2613
  continue;
2568
2614
  }
2615
+ case 2: {
2616
+ if (tag !== 18)
2617
+ break;
2618
+ message.lastAccessFilter = exports.LifecycleAccessFilter.decode(reader, reader.uint32());
2619
+ continue;
2620
+ }
2569
2621
  default:
2570
2622
  break;
2571
2623
  }
@@ -2590,6 +2642,9 @@ exports.LifecycleConfiguration = {
2590
2642
  rules: globalThis.Array.isArray(object?.rules ?? object?.rules)
2591
2643
  ? (object.rules ?? object.rules).map((e) => exports.LifecycleRule.fromJSON(e))
2592
2644
  : [],
2645
+ lastAccessFilter: (0, index_1.isSet)(object.lastAccessFilter ?? object.last_access_filter)
2646
+ ? exports.LifecycleAccessFilter.fromJSON(object.lastAccessFilter ?? object.last_access_filter)
2647
+ : undefined,
2593
2648
  });
2594
2649
  },
2595
2650
  toJSON(message, use = "json") {
@@ -2598,6 +2653,11 @@ exports.LifecycleConfiguration = {
2598
2653
  if (message.rules?.length) {
2599
2654
  obj[pick("rules", "rules")] = message.rules.map((e) => e ? exports.LifecycleRule.toJSON(e, use) : undefined);
2600
2655
  }
2656
+ if (message.lastAccessFilter !== undefined) {
2657
+ obj[pick("lastAccessFilter", "last_access_filter")] = message.lastAccessFilter
2658
+ ? exports.LifecycleAccessFilter.toJSON(message.lastAccessFilter, use)
2659
+ : undefined;
2660
+ }
2601
2661
  return obj;
2602
2662
  },
2603
2663
  create(base) {
@@ -2606,6 +2666,9 @@ exports.LifecycleConfiguration = {
2606
2666
  fromPartial(object) {
2607
2667
  const message = createBaseLifecycleConfiguration();
2608
2668
  message.rules = object.rules?.map((e) => exports.LifecycleRule.fromPartial(e)) || [];
2669
+ message.lastAccessFilter = (object.lastAccessFilter !== undefined && object.lastAccessFilter !== null)
2670
+ ? exports.LifecycleAccessFilter.fromPartial(object.lastAccessFilter)
2671
+ : undefined;
2609
2672
  return message;
2610
2673
  },
2611
2674
  };
@@ -2614,6 +2677,8 @@ function LifecycleConfigurationCustomInspect() {
2614
2677
  const parts = [];
2615
2678
  if ((this.rules?.length ?? 0) !== 0)
2616
2679
  parts.push("rules" + "=" + (0, util_1.inspect)(this.rules));
2680
+ if (this.lastAccessFilter !== undefined)
2681
+ parts.push("lastAccessFilter" + "=" + (0, util_1.inspect)(this.lastAccessFilter));
2617
2682
  return `${this.$type}(${parts.join(", ")})`;
2618
2683
  }
2619
2684
  function LifecycleConfigurationCustomJson() {
@@ -2622,6 +2687,8 @@ function LifecycleConfigurationCustomJson() {
2622
2687
  };
2623
2688
  if ((this.rules?.length ?? 0) !== 0)
2624
2689
  obj.rules = (0, logging_1.inspectJson)(this.rules);
2690
+ if (this.lastAccessFilter !== undefined)
2691
+ obj.lastAccessFilter = (0, logging_1.inspectJson)(this.lastAccessFilter);
2625
2692
  return obj;
2626
2693
  }
2627
2694
  function applyLifecycleConfigurationCustom(message) {
@@ -2633,6 +2700,7 @@ function createBaseLifecycleConfiguration() {
2633
2700
  const message = {
2634
2701
  $type: "nebius.storage.v1.LifecycleConfiguration",
2635
2702
  rules: [],
2703
+ lastAccessFilter: undefined,
2636
2704
  };
2637
2705
  return applyLifecycleConfigurationCustom(message);
2638
2706
  }
@@ -3061,6 +3129,254 @@ function createBaseLifecycleFilter() {
3061
3129
  };
3062
3130
  return applyLifecycleFilterCustom(message);
3063
3131
  }
3132
+ exports.LifecycleAccessFilter = {
3133
+ $type: "nebius.storage.v1.LifecycleAccessFilter",
3134
+ encode(message, writer = new index_1.BinaryWriter()) {
3135
+ for (const v of (message.conditions ?? [])) {
3136
+ const w = writer.uint32(10).fork();
3137
+ exports.LifecycleAccessFilter_Condition.encode(v, w);
3138
+ w.join();
3139
+ }
3140
+ if (message[index_1.unknownFieldsSymbol]) {
3141
+ writer.raw(message[index_1.unknownFieldsSymbol]);
3142
+ }
3143
+ return writer;
3144
+ },
3145
+ decode(input, length) {
3146
+ const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
3147
+ const end = length === undefined ? reader.len : reader.pos + length;
3148
+ const message = createBaseLifecycleAccessFilter();
3149
+ let writer = undefined;
3150
+ while (reader.pos < end) {
3151
+ const tag = reader.uint32();
3152
+ switch (tag >>> 3) {
3153
+ case 1: {
3154
+ if (tag !== 10)
3155
+ break;
3156
+ message.conditions.push(exports.LifecycleAccessFilter_Condition.decode(reader, reader.uint32()));
3157
+ continue;
3158
+ }
3159
+ default:
3160
+ break;
3161
+ }
3162
+ if ((tag & 7) === 4 || tag === 0) {
3163
+ break;
3164
+ }
3165
+ {
3166
+ if (!writer)
3167
+ writer = new index_1.BinaryWriter();
3168
+ const skipped = reader.skip(tag & 7, tag >>> 3);
3169
+ writer.uint32(tag).raw(skipped);
3170
+ }
3171
+ }
3172
+ if (writer) {
3173
+ message[index_1.unknownFieldsSymbol] = writer.finish();
3174
+ }
3175
+ return message;
3176
+ },
3177
+ fromJSON(object) {
3178
+ return applyLifecycleAccessFilterCustom({
3179
+ $type: "nebius.storage.v1.LifecycleAccessFilter",
3180
+ conditions: globalThis.Array.isArray(object?.conditions ?? object?.conditions)
3181
+ ? (object.conditions ?? object.conditions).map((e) => exports.LifecycleAccessFilter_Condition.fromJSON(e))
3182
+ : [],
3183
+ });
3184
+ },
3185
+ toJSON(message, use = "json") {
3186
+ const obj = {};
3187
+ const pick = (json, pb) => (use === "json" ? json : pb);
3188
+ if (message.conditions?.length) {
3189
+ obj[pick("conditions", "conditions")] = message.conditions.map((e) => e ? exports.LifecycleAccessFilter_Condition.toJSON(e, use) : undefined);
3190
+ }
3191
+ return obj;
3192
+ },
3193
+ create(base) {
3194
+ return exports.LifecycleAccessFilter.fromPartial(base ?? {});
3195
+ },
3196
+ fromPartial(object) {
3197
+ const message = createBaseLifecycleAccessFilter();
3198
+ message.conditions = object.conditions?.map((e) => exports.LifecycleAccessFilter_Condition.fromPartial(e)) || [];
3199
+ return message;
3200
+ },
3201
+ };
3202
+ protobuf_1.protoRegistry.registerMessage(exports.LifecycleAccessFilter);
3203
+ function LifecycleAccessFilterCustomInspect() {
3204
+ const parts = [];
3205
+ if ((this.conditions?.length ?? 0) !== 0)
3206
+ parts.push("conditions" + "=" + (0, util_1.inspect)(this.conditions));
3207
+ return `${this.$type}(${parts.join(", ")})`;
3208
+ }
3209
+ function LifecycleAccessFilterCustomJson() {
3210
+ const obj = {
3211
+ type: this.$type,
3212
+ };
3213
+ if ((this.conditions?.length ?? 0) !== 0)
3214
+ obj.conditions = (0, logging_1.inspectJson)(this.conditions);
3215
+ return obj;
3216
+ }
3217
+ function applyLifecycleAccessFilterCustom(message) {
3218
+ message[logging_1.custom] = LifecycleAccessFilterCustomInspect;
3219
+ message[logging_1.customJson] = LifecycleAccessFilterCustomJson;
3220
+ return message;
3221
+ }
3222
+ function createBaseLifecycleAccessFilter() {
3223
+ const message = {
3224
+ $type: "nebius.storage.v1.LifecycleAccessFilter",
3225
+ conditions: [],
3226
+ };
3227
+ return applyLifecycleAccessFilterCustom(message);
3228
+ }
3229
+ exports.LifecycleAccessFilter_Condition = {
3230
+ $type: "nebius.storage.v1.LifecycleAccessFilter.Condition",
3231
+ encode(message, writer = new index_1.BinaryWriter()) {
3232
+ if ((message.type ?? exports.LifecycleAccessFilter_Condition_Type.TYPE_UNSPECIFIED) !== exports.LifecycleAccessFilter_Condition_Type.TYPE_UNSPECIFIED) {
3233
+ exports.LifecycleAccessFilter_Condition_Type.encodeField(writer, 1, message.type);
3234
+ }
3235
+ if (message.methods?.length) {
3236
+ const w = writer.uint32(18).fork();
3237
+ for (const v of message.methods)
3238
+ w.int32(v?.code | 0);
3239
+ w.join();
3240
+ }
3241
+ for (const v of (message.userAgents ?? [])) {
3242
+ writer.uint32(26).string(v);
3243
+ }
3244
+ if (message[index_1.unknownFieldsSymbol]) {
3245
+ writer.raw(message[index_1.unknownFieldsSymbol]);
3246
+ }
3247
+ return writer;
3248
+ },
3249
+ decode(input, length) {
3250
+ const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
3251
+ const end = length === undefined ? reader.len : reader.pos + length;
3252
+ const message = createBaseLifecycleAccessFilter_Condition();
3253
+ let writer = undefined;
3254
+ while (reader.pos < end) {
3255
+ const tag = reader.uint32();
3256
+ switch (tag >>> 3) {
3257
+ case 1: {
3258
+ if (tag !== 8)
3259
+ break;
3260
+ message.type = exports.LifecycleAccessFilter_Condition_Type.fromNumber(reader.int32());
3261
+ continue;
3262
+ }
3263
+ case 2: {
3264
+ // packed or unpacked repeated enum
3265
+ if ((tag & 7) === 2) {
3266
+ const end2 = reader.uint32() + reader.pos;
3267
+ while (reader.pos < end2) {
3268
+ message.methods.push(exports.LifecycleAccessFilter_Condition_Method.fromNumber(reader.int32()));
3269
+ }
3270
+ continue;
3271
+ }
3272
+ else if ((tag & 7) === 0) {
3273
+ message.methods.push(exports.LifecycleAccessFilter_Condition_Method.fromNumber(reader.int32()));
3274
+ continue;
3275
+ }
3276
+ break; // wrong wire type
3277
+ }
3278
+ case 3: {
3279
+ if (tag !== 26)
3280
+ break;
3281
+ message.userAgents.push(reader.string());
3282
+ continue;
3283
+ }
3284
+ default:
3285
+ break;
3286
+ }
3287
+ if ((tag & 7) === 4 || tag === 0) {
3288
+ break;
3289
+ }
3290
+ {
3291
+ if (!writer)
3292
+ writer = new index_1.BinaryWriter();
3293
+ const skipped = reader.skip(tag & 7, tag >>> 3);
3294
+ writer.uint32(tag).raw(skipped);
3295
+ }
3296
+ }
3297
+ if (writer) {
3298
+ message[index_1.unknownFieldsSymbol] = writer.finish();
3299
+ }
3300
+ return message;
3301
+ },
3302
+ fromJSON(object) {
3303
+ return applyLifecycleAccessFilter_ConditionCustom({
3304
+ $type: "nebius.storage.v1.LifecycleAccessFilter.Condition",
3305
+ type: (0, index_1.isSet)(object.type ?? object.type)
3306
+ ? exports.LifecycleAccessFilter_Condition_Type.fromJSON(object.type ?? object.type)
3307
+ : exports.LifecycleAccessFilter_Condition_Type.TYPE_UNSPECIFIED,
3308
+ methods: globalThis.Array.isArray(object?.methods ?? object?.methods)
3309
+ ? (object.methods ?? object.methods).map((e) => exports.LifecycleAccessFilter_Condition_Method.fromJSON(e))
3310
+ : [],
3311
+ userAgents: globalThis.Array.isArray(object?.userAgents ?? object?.user_agents)
3312
+ ? (object.userAgents ?? object.user_agents).map((e) => String(e))
3313
+ : [],
3314
+ });
3315
+ },
3316
+ toJSON(message, use = "json") {
3317
+ const obj = {};
3318
+ const pick = (json, pb) => (use === "json" ? json : pb);
3319
+ if ((message.type ?? exports.LifecycleAccessFilter_Condition_Type.TYPE_UNSPECIFIED) !== exports.LifecycleAccessFilter_Condition_Type.TYPE_UNSPECIFIED) {
3320
+ obj[pick("type", "type")] = exports.LifecycleAccessFilter_Condition_Type.toJSON(message.type);
3321
+ }
3322
+ if (message.methods?.length) {
3323
+ obj[pick("methods", "methods")] = message.methods.map((e) => exports.LifecycleAccessFilter_Condition_Method.toJSON(e));
3324
+ }
3325
+ if (message.userAgents?.length) {
3326
+ obj[pick("userAgents", "user_agents")] = message.userAgents.map((e) => e);
3327
+ }
3328
+ return obj;
3329
+ },
3330
+ create(base) {
3331
+ return exports.LifecycleAccessFilter_Condition.fromPartial(base ?? {});
3332
+ },
3333
+ fromPartial(object) {
3334
+ const message = createBaseLifecycleAccessFilter_Condition();
3335
+ message.type = (object.type !== undefined && object.type !== null)
3336
+ ? exports.LifecycleAccessFilter_Condition_Type.fromJSON(object.type.name)
3337
+ : exports.LifecycleAccessFilter_Condition_Type.TYPE_UNSPECIFIED;
3338
+ message.methods = object.methods?.map((e) => exports.LifecycleAccessFilter_Condition_Method.fromJSON(e.name)) || [];
3339
+ message.userAgents = object.userAgents?.map((e) => e) || [];
3340
+ return message;
3341
+ },
3342
+ };
3343
+ protobuf_1.protoRegistry.registerMessage(exports.LifecycleAccessFilter_Condition);
3344
+ function LifecycleAccessFilter_ConditionCustomInspect() {
3345
+ const parts = [];
3346
+ if (this.type !== undefined)
3347
+ parts.push("type" + "=" + (0, util_1.inspect)(this.type));
3348
+ if ((this.methods?.length ?? 0) !== 0)
3349
+ parts.push("methods" + "=" + (0, util_1.inspect)(this.methods));
3350
+ if ((this.userAgents?.length ?? 0) !== 0)
3351
+ parts.push("userAgents" + "=" + (0, util_1.inspect)(this.userAgents));
3352
+ return `${this.$type}(${parts.join(", ")})`;
3353
+ }
3354
+ function LifecycleAccessFilter_ConditionCustomJson() {
3355
+ const obj = {
3356
+ type: this.$type,
3357
+ };
3358
+ if (this.type !== undefined)
3359
+ obj.type = (0, logging_1.inspectJson)(this.type);
3360
+ if ((this.methods?.length ?? 0) !== 0)
3361
+ obj.methods = (0, logging_1.inspectJson)(this.methods);
3362
+ if ((this.userAgents?.length ?? 0) !== 0)
3363
+ obj.userAgents = (0, logging_1.inspectJson)(this.userAgents);
3364
+ return obj;
3365
+ }
3366
+ function applyLifecycleAccessFilter_ConditionCustom(message) {
3367
+ message[logging_1.custom] = LifecycleAccessFilter_ConditionCustomInspect;
3368
+ message[logging_1.customJson] = LifecycleAccessFilter_ConditionCustomJson;
3369
+ return message;
3370
+ }
3371
+ function createBaseLifecycleAccessFilter_Condition() {
3372
+ const message = {
3373
+ $type: "nebius.storage.v1.LifecycleAccessFilter.Condition",
3374
+ type: exports.LifecycleAccessFilter_Condition_Type.TYPE_UNSPECIFIED,
3375
+ methods: [],
3376
+ userAgents: [],
3377
+ };
3378
+ return applyLifecycleAccessFilter_ConditionCustom(message);
3379
+ }
3064
3380
  exports.LifecycleExpiration = {
3065
3381
  $type: "nebius.storage.v1.LifecycleExpiration",
3066
3382
  encode(message, writer = new index_1.BinaryWriter()) {
@@ -3466,6 +3782,9 @@ exports.LifecycleTransition = {
3466
3782
  else if (message.transitedWith?.$case === "days") {
3467
3783
  writer.uint32(16).int32(message.transitedWith.days);
3468
3784
  }
3785
+ else if (message.transitedWith?.$case === "daysSinceLastAccess") {
3786
+ writer.uint32(32).int32(message.transitedWith.daysSinceLastAccess);
3787
+ }
3469
3788
  if (message[index_1.unknownFieldsSymbol]) {
3470
3789
  writer.raw(message[index_1.unknownFieldsSymbol]);
3471
3790
  }
@@ -3504,6 +3823,15 @@ exports.LifecycleTransition = {
3504
3823
  };
3505
3824
  continue;
3506
3825
  }
3826
+ case 4: {
3827
+ if (tag !== 32)
3828
+ break;
3829
+ message.transitedWith = {
3830
+ $case: "daysSinceLastAccess",
3831
+ daysSinceLastAccess: reader.int32()
3832
+ };
3833
+ continue;
3834
+ }
3507
3835
  default:
3508
3836
  break;
3509
3837
  }
@@ -3541,6 +3869,12 @@ exports.LifecycleTransition = {
3541
3869
  days: Number(object.days ?? object.days)
3542
3870
  };
3543
3871
  }
3872
+ if ((0, index_1.isSet)(object.daysSinceLastAccess) || (0, index_1.isSet)(object.days_since_last_access)) {
3873
+ return {
3874
+ $case: "daysSinceLastAccess",
3875
+ daysSinceLastAccess: Number(object.daysSinceLastAccess ?? object.days_since_last_access)
3876
+ };
3877
+ }
3544
3878
  return undefined;
3545
3879
  })(),
3546
3880
  });
@@ -3560,6 +3894,10 @@ exports.LifecycleTransition = {
3560
3894
  obj[pick("days", "days")] = message.transitedWith.days;
3561
3895
  break;
3562
3896
  }
3897
+ case "daysSinceLastAccess": {
3898
+ obj[pick("daysSinceLastAccess", "days_since_last_access")] = message.transitedWith.daysSinceLastAccess;
3899
+ break;
3900
+ }
3563
3901
  default: break;
3564
3902
  }
3565
3903
  return obj;
@@ -3591,6 +3929,15 @@ exports.LifecycleTransition = {
3591
3929
  }
3592
3930
  break;
3593
3931
  }
3932
+ case "daysSinceLastAccess": {
3933
+ if (object.transitedWith?.daysSinceLastAccess !== undefined && object.transitedWith?.daysSinceLastAccess !== null) {
3934
+ message.transitedWith = {
3935
+ $case: "daysSinceLastAccess",
3936
+ daysSinceLastAccess: object.transitedWith.daysSinceLastAccess,
3937
+ };
3938
+ }
3939
+ break;
3940
+ }
3594
3941
  default: break;
3595
3942
  }
3596
3943
  return message;